[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<!>("") a.<!INAPPLICABLE_CANDIDATE!>compareTo<!>("")
} }
when (a) { when (a) {
is String, is Any -> a.<!UNRESOLVED_REFERENCE!>compareTo<!>("") is String, is Any -> a.compareTo("")
} }
if (a is String && a is Any) { if (a is String && a is Any) {
val i: Int = a.compareTo("") val i: Int = a.compareTo("")
@@ -27,8 +27,8 @@ fun g(a: SomeClass?) {
c = Impl c = Impl
if (c != null) { if (c != null) {
// 'a' cannot be cast to SomeSubClass // 'a' cannot be cast to SomeSubClass
a.<!INAPPLICABLE_CANDIDATE!>hashCode<!>() a.hashCode()
a.<!UNRESOLVED_REFERENCE!>foo<!> a.foo
(a as? SomeSubClass).<!INAPPLICABLE_CANDIDATE!>foo<!> (a as? SomeSubClass).<!INAPPLICABLE_CANDIDATE!>foo<!>
c.hashCode() c.hashCode()
c.foo c.foo
@@ -52,7 +52,7 @@ fun kt4565_1(a: SomeClass?) {
a.data.hashCode() a.data.hashCode()
} }
if (a?.data is String) { if (a?.data is String) {
a.data.length a.<!INAPPLICABLE_CANDIDATE!>data<!>.<!UNRESOLVED_REFERENCE!>length<!>
data.length data.length
} }
} }
@@ -2,7 +2,7 @@
fun foo(arg: Int?): Int { fun foo(arg: Int?): Int {
var i = arg var i = arg
if (i != null && i++ == 5) { if (i != null && i++ == 5) {
return i-- + i return i<!INAPPLICABLE_CANDIDATE!>--<!> + i
} }
return 0 return 0
} }
@@ -4,6 +4,6 @@ fun foo(y: String?) {
var x: String? = null var x: String? = null
if (x != null) { if (x != null) {
y?.let { x = it } y?.let { x = it }
x.length // not-null or not-null x.<!INAPPLICABLE_CANDIDATE!>length<!> // not-null or not-null
} }
} }