mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
poly conditional expression type = target type (IDEA-122401)
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Cast to 'B'" "true"
|
||||
class A {
|
||||
void f(B b) {
|
||||
B s = <caret>b == null ? (B) this : b;
|
||||
B s = b == null ? <caret>(B) this : b;
|
||||
}
|
||||
}
|
||||
class B extends A {}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Cast to 'B'" "true"
|
||||
class A {
|
||||
void f(B b) {
|
||||
B s = <caret>b == null ? this : b;
|
||||
B s = b == null ? <caret>this : b;
|
||||
}
|
||||
}
|
||||
class B extends A {}
|
||||
Reference in New Issue
Block a user