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(): void TypeBound():
{} {}
{ {
"extends" ClassOrInterfaceType() ( "&" ClassOrInterfaceType() )* "extends" ((Annotation() {checkForBadTypeAnnotations();})*) ClassOrInterfaceType() ( "&" ((Annotation() {checkForBadTypeAnnotations();})*) ClassOrInterfaceType() )*
} }
void ClassOrInterfaceBody(): void ClassOrInterfaceBody():

View File

@ -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