[mcs] Don't do empty array interpolation on user code, weird code expects empty array...
[mono.git] / mcs / mcs / cs-parser.jay
index b0c771f7207b2eb26aa12a288bd58e11f811aae3..6783a7edbb672ef70e00d3684e3f35427ea12eab 100644 (file)
@@ -3926,7 +3926,9 @@ array_creation_expression
                if ($4 == null)
                        report.Error (1586, GetLocation ($1), "Array creation must have array size or array initializer");
 
-               $$ = new ArrayCreation ((FullNamedExpression) $2, (ComposedTypeSpecifier) $3, (ArrayInitializer) $4, GetLocation ($1));
+               $$ = new ArrayCreation ((FullNamedExpression) $2, (ComposedTypeSpecifier) $3, (ArrayInitializer) $4, GetLocation ($1)) {
+                       NoEmptyInterpolation = true
+               };
          }
        | NEW rank_specifier array_initializer
          {