test case and fix for

public static <T extends @NonNull Enum<T>> getEnum() {
		return null;
	}
This commit is contained in:
snap252
2017-05-30 14:05:29 +02:00
parent 0660c7298a
commit b5474cdcf8
2 changed files with 5 additions and 1 deletions

View File

@ -1416,7 +1416,7 @@ void TypeParameter():
void TypeBound():
{}
{
"extends" ClassOrInterfaceType() ( "&" ClassOrInterfaceType() )*
"extends" ((Annotation() {checkForBadTypeAnnotations();})*) ClassOrInterfaceType() ( "&" ((Annotation() {checkForBadTypeAnnotations();})*) ClassOrInterfaceType() )*
}
void ClassOrInterfaceBody():

View File

@ -176,6 +176,10 @@ public class ParserCornerCases18 {
private byte @Nullable [] getBytes(){
return null;
}
public static <T extends @NonNull Enum<T>> getEnum() {
return null;
}
/**