disable make class extend itself when assignment is not valid e.g. due to wrong type args

This commit is contained in:
Anna Kozlova
2012-06-14 20:20:35 +04:00
parent 45565ae31d
commit c6e6a726ad
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
// "Make 'Generic' extend 'Generic'" "false"
class Generic<E> {
Generic(E arg) { }
}
class Tester {
void method() {
Generic<Integer> aIntegerGeneric = new <caret>Generic<String>("");
}
}