skip parenthesized expressions during type inference (IDEA-70591)

This commit is contained in:
anna
2011-06-03 17:59:04 +04:00
parent 48e81bb6c1
commit 2280dade76
2 changed files with 42 additions and 5 deletions
@@ -135,3 +135,21 @@ class TestLocal<X> {
class QualifiedTest {
java.util.Map<String, String> s = new java.util.HashMap<>();
}
class TZ {
}
class ParenthTest<T extends TZ> {
public ParenthTest(T x) {
}
public T z = null;
public int a() {
ParenthTest<T> x = (new ParenthTest<>(null)); //red code is here
return 1;
}
}