diff --git a/grammar/src/types.grm b/grammar/src/types.grm index 163ea9314e0..ae299a85c24 100644 --- a/grammar/src/types.grm +++ b/grammar/src/types.grm @@ -34,10 +34,10 @@ userType ; simpleUserType - : SimpleName ("<" (optionalProjection type | "*"){","} ">")? + : SimpleName ("<" (projection? type | "*"){","} ">")? ; -optionalProjection +projection : varianceAnnotation ;