This is weird. Seems to only occur in Juno at the Julia REPL, not when Julia REPL is run at the command line.
struct A
a::Float64
b::Int
c::Float64
end
julia> a = A(9, 6, 1.5)
Then repeatedly print a
.
Sporadically, the displayed text will change between A(9.0, 6, 1.5)
and A(9.0, 6, 1.2)
.
a.c
always prints the correct value.
What’s going on here?