Skip to content

Commit

Permalink
Add test case for crash (expecting error)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao-senXiong committed Jan 30, 2025
1 parent a014022 commit 9e31ec0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions framework/tests/viewpointtest/PolyGenerics.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import viewpointtest.quals.*;

// Test case for EISOP issue #1074:
// https://github.com/eisop/checker-framework/issues/1074
public class PolyGenerics<E> {
static <E> Object copyOf(PolyGenerics<? extends E> elements) {
Object[] array = elements.toArray();
return null;
}

Object[] toArray(PolyGenerics<@PolyVP E> this) {
return null;
}
}

0 comments on commit 9e31ec0

Please sign in to comment.