1.1 --- a/src/compiler/NameBinding.cpp Thu Dec 20 01:06:30 2012 -0800
1.2 +++ b/src/compiler/NameBinding.cpp Thu Dec 20 01:09:17 2012 -0800
1.3 @@ -818,14 +818,14 @@
1.4 }
1.5 }
1.6
1.7 - if (param->reference()) {
1.8 - if (!type->isPod()) {
1.9 - cc_.reportError(param->pos(), Message_ArrayCantBeReference);
1.10 - return false;
1.11 - }
1.12 - if ((type = zone_->types()->getReference(type, false)) == NULL)
1.13 - return false;
1.14 - }
1.15 + if (param->reference()) {
1.16 + if (!type->isPod()) {
1.17 + cc_.reportError(param->pos(), Message_ArrayCantBeReference);
1.18 + return false;
1.19 + }
1.20 + if ((type = zone_->types()->getReference(type, false)) == NULL)
1.21 + return false;
1.22 + }
1.23
1.24 params->set(zone_, i, type);
1.25 param->sym()->setType(type);