diff -r 7c5be05296e3 -r 5cbec15fadfe src/compiler/NameBinding.cpp --- a/src/compiler/NameBinding.cpp Sat Nov 17 22:02:08 2012 -0800 +++ b/src/compiler/NameBinding.cpp Sat Nov 17 23:11:38 2012 -0800 @@ -21,6 +21,7 @@ #include "../TypeManager.h" #include "NameBinding.h" #include "Scopes.h" +#include "ConstantEvaluator.h" #include "../Spaces-inl.h" #include "../Heap-inl.h" @@ -492,10 +493,15 @@ if (!type) return; + if (node->dims()) { + + } + // If the node already has a symbol (meaning it was a global), then // we don't have to do anything more. if (node->sym()) { assert(node->sym()->scope()->kind() == Scope::GLOBAL); + node->sym()->setType(type); return; }