langtools/test/tools/javac/annotations/typeAnnotations/failures/TypeVariableCycleTest.java
equal
deleted
inserted
replaced
33 |
33 |
34 import java.lang.annotation.*; |
34 import java.lang.annotation.*; |
35 |
35 |
36 class TypeVariableCycleTest<CTV> { |
36 class TypeVariableCycleTest<CTV> { |
37 <MTV extends @TA CTV> MTV cast(CTV p) { |
37 <MTV extends @TA CTV> MTV cast(CTV p) { |
38 return (@TA MTV) p; |
38 return (@TB MTV) p; |
39 } |
39 } |
40 } |
40 } |
41 |
41 |
42 @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) |
42 @Target(ElementType.TYPE_USE) |
43 @interface TA {} |
43 @interface TA {} |
44 |
44 |
|
45 @Target(ElementType.TYPE_USE) |
|
46 @interface TB {} |