I feel like I’m missing something basic here. The following code works when pasted in to the REPL:
using DataStructures: MutableLinkedList
module MyModule
struct MapEntry{T<:Number, M, N}
IC::Array{T,M}
FC::Array{T,M}
Vec::Array{T,N}
end
AssocMap = MutableLinkedList{MapEntry}
end
I can then create variables of type AssocMap, which work as I expect. But when I put that same code in a module definition and include() the module file, I get the following error:
ERROR: LoadError: UndefVarError: MutableLinkedList not defined
pointing to that last line. Which means that the assoc = MutableLinkedList line is interpreted as a type definition when executed in the REPL, but as a variable instantiation when in a file?