[TD] Update test data after previous commit

This commit is contained in:
Dmitriy Novozhilov
2020-12-15 12:58:53 +03:00
parent 49d9b85950
commit e1802fde29
306 changed files with 599 additions and 599 deletions
@@ -13,4 +13,4 @@ fun foo(b: Boolean) {
bar()
}
fun bar() {}
fun bar() {}
@@ -45,4 +45,4 @@ fun test_8(b: Boolean) {
if (true && b) {
1
}
}
}
@@ -19,4 +19,4 @@ internal fun AutoCloseable?.closeFinally(cause: Throwable?) = when {
inline fun <reified T : Any> List<*>.firstIsInstanceOrNull(): T? {
for (element in this) if (element is T) return element
return null
}
}
@@ -9,4 +9,4 @@ fun test_2(x: Int) {
fun test_3(x: Int) {
when (val y = x) {}
}
}
@@ -19,7 +19,7 @@ fun test_2(x: Any, y: Any) {
val a = select(
id(
run {
y.<!UNRESOLVED_REFERENCE!>inc<!>() // Bad
y.<!UNRESOLVED_REFERENCE{LT}!><!UNRESOLVED_REFERENCE{PSI}!>inc<!>()<!> // Bad
x as Int
}
),
@@ -39,14 +39,14 @@ fun test_3(x: Any, y: Any) {
val a = select(
id(
run {
y.<!UNRESOLVED_REFERENCE!>inc<!>() // Bad
y.<!UNRESOLVED_REFERENCE{LT}!><!UNRESOLVED_REFERENCE{PSI}!>inc<!>()<!> // Bad
x as Int
materialize()
}
),
run {
y as Int
x.<!UNRESOLVED_REFERENCE!>inc<!>() // Bad
x.<!UNRESOLVED_REFERENCE{LT}!><!UNRESOLVED_REFERENCE{PSI}!>inc<!>()<!> // Bad
y.inc() // OK
1
}
@@ -60,19 +60,19 @@ fun test_4(x: Any, y: Any) {
val a = select(
id(
myRun {
y.<!UNRESOLVED_REFERENCE!>inc<!>() // Bad
y.<!UNRESOLVED_REFERENCE{LT}!><!UNRESOLVED_REFERENCE{PSI}!>inc<!>()<!> // Bad
x as Int
}
),
y as Int,
myRun {
x.<!UNRESOLVED_REFERENCE!>inc<!>() // Bad
x.<!UNRESOLVED_REFERENCE{LT}!><!UNRESOLVED_REFERENCE{PSI}!>inc<!>()<!> // Bad
y.inc() // OK
1
}
)
<!INAPPLICABLE_CANDIDATE!>takeInt<!>(x) // Bad
<!INAPPLICABLE_CANDIDATE{LT}!><!INAPPLICABLE_CANDIDATE{PSI}!>takeInt<!>(x)<!> // Bad
takeInt(y) // OK
takeInt(a) // Bad
}
@@ -90,4 +90,4 @@ fun test_6() {
}
}
)
}
}
@@ -11,4 +11,4 @@ class Bar {
throw Exception()
val y = 2
}
}
}
@@ -11,4 +11,4 @@ class C(a: A, b: B) {
C(a, it)
}
}
}
}
+2 -2
View File
@@ -15,7 +15,7 @@ fun test_2(x: Int?) {
} else {
x
}
y.<!INAPPLICABLE_CANDIDATE!>inc<!>()
y.<!INAPPLICABLE_CANDIDATE{LT}!><!INAPPLICABLE_CANDIDATE{PSI}!>inc<!>()<!>
}
fun test_3(x: Int?) {
@@ -50,4 +50,4 @@ fun test_6() {
run {
return@run
}
}
}
+1 -1
View File
@@ -65,4 +65,4 @@ fun testDoWhileFalse() {
1
} while (false)
1
}
}
@@ -6,4 +6,4 @@ class B(val s: String) : A(s.let { { it } }) {
fun foo() {
foo()
}
}
}
@@ -3,4 +3,4 @@ inline fun foo(vararg x: Any) {}
fun test(a: Any, b: Any, c: Any) {
foo(a, { "" }, b)
}
}
@@ -40,4 +40,4 @@ val x4 = try {
2
} finally {
0
}
}
@@ -19,4 +19,4 @@ fun test_2() {
fun test_3() {
val x = run { return }
}
}
+1 -1
View File
@@ -5,4 +5,4 @@ fun test() {
val x = 1
val y = x + 1
foo()
}
}
@@ -31,4 +31,4 @@ fun test_3(b: Boolean) {
val y = 2
}
val z = 3
}
}
+1 -1
View File
@@ -15,4 +15,4 @@ fun test_2(x: Any?) {
if (x is A && x is B) {
x is A
}
}
}