mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
skip parenthesized expressions during type inference (IDEA-70591)
This commit is contained in:
+18
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user