mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
nullity inference: a more self-explanatory "test delegation to nullable means nothing"
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ String bar() { return "z"; }
|
||||
}
|
||||
|
||||
void "test delegation to nullable means nothing"() {
|
||||
assert inferNullity(parse('String foo() { return bar(); }; String bar() { if (equals(2)) return null; return "a"; }; ')) == UNKNOWN
|
||||
assert inferNullity(parse('String foo() { return bar("2"); }; String bar(String s) { if (s != "2") return null; return "a"; }; ')) == UNKNOWN
|
||||
}
|
||||
|
||||
void "test return boxed boolean constant"() {
|
||||
|
||||
Reference in New Issue
Block a user