This seems unexpected to me:
module MyMod
type AType
val
end
global a = AType(5.0)
global b = 10.0
end
Then in the REPL...
julia> MyMod.b = 7.6
ERROR: cannot assign variables in other modules
julia> MyMod.a.val = 4.5
4.5
So, in summation, no errors when assigning to fields of a composite type in
another module, but an error with assigning to a variable in that module.
Any insight as to what's going on here? Is this intended behavior, and if
so, why?
