process diamonds on safe delete of type parameter (IDEA-73968)

This commit is contained in:
anna
2011-09-07 12:18:00 +02:00
parent 8fef5fc92d
commit b0d0f28f03
6 changed files with 59 additions and 12 deletions

View File

@@ -0,0 +1,8 @@
public class Test<T<caret>T> {}
class Foo {
void test() {
Test<String> test = new Test<>();
Test<String> test2 = new Test<String>();
}
}

View File

@@ -0,0 +1,8 @@
public class Test {}
class Foo {
void test() {
Test test = new Test();
Test test2 = new Test();
}
}

View File

@@ -0,0 +1,8 @@
public class Test<<caret>T, U> {}
class Foo {
void test() {
Test<String, Long> test = new Test<>();
Test<String, Long> test2 = new Test<String, Long>();
}
}

View File

@@ -0,0 +1,8 @@
public class Test<U> {}
class Foo {
void test() {
Test<Long> test = new Test<>();
Test<Long> test2 = new Test<Long>();
}
}