[FIR-TEST] Mute some failing tests according to changes in DFA

This commit is contained in:
Dmitriy Novozhilov
2020-01-21 15:47:13 +03:00
parent 9bc62fc34d
commit d7c85406fb
5 changed files with 6 additions and 6 deletions
@@ -196,7 +196,7 @@ fun mergeSmartCasts(a: Any?) {
a.<!INAPPLICABLE_CANDIDATE!>compareTo<!>("")
}
when (a) {
is String, is Any -> a.<!UNRESOLVED_REFERENCE!>compareTo<!>("")
is String, is Any -> a.compareTo("")
}
if (a is String && a is Any) {
val i: Int = a.compareTo("")
@@ -27,8 +27,8 @@ fun g(a: SomeClass?) {
c = Impl
if (c != null) {
// 'a' cannot be cast to SomeSubClass
a.<!INAPPLICABLE_CANDIDATE!>hashCode<!>()
a.<!UNRESOLVED_REFERENCE!>foo<!>
a.hashCode()
a.foo
(a as? SomeSubClass).<!INAPPLICABLE_CANDIDATE!>foo<!>
c.hashCode()
c.foo
@@ -52,7 +52,7 @@ fun kt4565_1(a: SomeClass?) {
a.data.hashCode()
}
if (a?.data is String) {
a.data.length
a.<!INAPPLICABLE_CANDIDATE!>data<!>.<!UNRESOLVED_REFERENCE!>length<!>
data.length
}
}
@@ -2,7 +2,7 @@
fun foo(arg: Int?): Int {
var i = arg
if (i != null && i++ == 5) {
return i-- + i
return i<!INAPPLICABLE_CANDIDATE!>--<!> + i
}
return 0
}
@@ -4,6 +4,6 @@ fun foo(y: String?) {
var x: String? = null
if (x != null) {
y?.let { x = it }
x.length // not-null or not-null
x.<!INAPPLICABLE_CANDIDATE!>length<!> // not-null or not-null
}
}