Skip to content

Commit

Permalink
Use correct error message and remove targetlocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao-senXiong committed Nov 22, 2024
1 parent c014b09 commit f689022
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@
@SubtypeOf({TemplateforaUnknown.class})
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
@TargetLocations({TypeUseLocation.EXPLICIT_LOWER_BOUND, TypeUseLocation.EXPLICIT_UPPER_BOUND})
public @interface TemplateforaBottom {}
2 changes: 1 addition & 1 deletion tests/templatefora/SubtypingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class SubtypeTest {
void allSubtypingRelationships(@TemplateforaUnknown int x, @TemplateforaBottom int y) {
@TemplateforaUnknown int a = x;
@TemplateforaUnknown int b = y;
// :: error: assignment
// :: error: (assignment.type.incompatible)
@TemplateforaBottom int c = x; // expected error on this line
@TemplateforaBottom int d = y;
}
Expand Down

0 comments on commit f689022

Please sign in to comment.