Fails with ERROR: cannot assign variable Core.Array from module Foo:
module Foo
dump(Array)
struct Array end
end
Is the conclusion that adding a type that is named the same as a type in Base is disallowed now? I’m asking because some code in CxxWrap that creates (non-exported) types named e.g. Array seems to fail now in 1.0, and I’m wondering if this is because of a new rule or because I am creating the type using the C interface. I also wonder why it only fails in the second case.
Is there a way to check if a type is defined in a module without having the symbol marked as used? I am doing this check because of precompilation, to see if the type is available from precompilation or if it needs to be created.