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():
|
||||
{}
|
||||
{
|
||||
"extends" ClassOrInterfaceType() ( "&" ClassOrInterfaceType() )*
|
||||
"extends" ((Annotation() {checkForBadTypeAnnotations();})*) ClassOrInterfaceType() ( "&" ((Annotation() {checkForBadTypeAnnotations();})*) ClassOrInterfaceType() )*
|
||||
}
|
||||
|
||||
void ClassOrInterfaceBody():
|
||||
|
@ -176,6 +176,10 @@ public class ParserCornerCases18 {
|
||||
private byte @Nullable [] getBytes(){
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <T extends @NonNull Enum<T>> getEnum() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user