1.1 --- a/src/compiler/NameBinding.cpp Sat Nov 17 22:02:08 2012 -0800
1.2 +++ b/src/compiler/NameBinding.cpp Sat Nov 17 23:11:38 2012 -0800
1.3 @@ -21,6 +21,7 @@
1.4 #include "../TypeManager.h"
1.5 #include "NameBinding.h"
1.6 #include "Scopes.h"
1.7 +#include "ConstantEvaluator.h"
1.8 #include "../Spaces-inl.h"
1.9 #include "../Heap-inl.h"
1.10
1.11 @@ -492,10 +493,15 @@
1.12 if (!type)
1.13 return;
1.14
1.15 + if (node->dims()) {
1.16 +
1.17 + }
1.18 +
1.19 // If the node already has a symbol (meaning it was a global), then
1.20 // we don't have to do anything more.
1.21 if (node->sym()) {
1.22 assert(node->sym()->scope()->kind() == Scope::GLOBAL);
1.23 + node->sym()->setType(type);
1.24 return;
1.25 }
1.26