test case and fix for
public static <T extends @NonNull Enum<T>> getEnum() { return null; }
This commit is contained in:
@ -1416,7 +1416,7 @@ void TypeParameter():
|
|||||||
void TypeBound():
|
void TypeBound():
|
||||||
{}
|
{}
|
||||||
{
|
{
|
||||||
"extends" ClassOrInterfaceType() ( "&" ClassOrInterfaceType() )*
|
"extends" ((Annotation() {checkForBadTypeAnnotations();})*) ClassOrInterfaceType() ( "&" ((Annotation() {checkForBadTypeAnnotations();})*) ClassOrInterfaceType() )*
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClassOrInterfaceBody():
|
void ClassOrInterfaceBody():
|
||||||
|
@ -177,6 +177,10 @@ public class ParserCornerCases18 {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static <T extends @NonNull Enum<T>> getEnum() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Explicit receiver Parameters
|
* Explicit receiver Parameters
|
||||||
|
Reference in New Issue
Block a user