* cs-parser.jay (type_arguments): Add CS1644 check.
[mono.git] / mcs / gmcs / cs-parser.jay
index edd817410662857a1d6b7dae5766b313d5d1db9f..1e91ac3dfc2525a1ebcbd498a9aeabf7232045af 100644 (file)
@@ -2657,10 +2657,14 @@ opt_type_argument_list
        | OP_GENERICS_LT type_arguments OP_GENERICS_GT
          {
                $$ = $2;
+               if (RootContext.Version == LanguageVersion.ISO_1)
+                       Report.FeatureIsNotStandardized (lexer.Location, "generics");
          }
        | GENERIC_DIMENSION
          {
                $$ = new TypeArguments ((int) $1, lexer.Location);
+               if (RootContext.Version == LanguageVersion.ISO_1)
+                       Report.FeatureIsNotStandardized (lexer.Location, "generics");
          }
        ;