[FIR-TEST] Fix incorrect testdata

This commit is contained in:
Dmitriy Novozhilov
2019-12-12 10:45:01 +03:00
parent 4faa2c0c2c
commit f1f2e1830b
5 changed files with 12 additions and 12 deletions
@@ -1,7 +1,7 @@
fun foo(func: (Int).Int -> Int) {}
fun foo(func: Int.(Int) -> Int) {}
fun test() {
<!INAPPLICABLE_CANDIDATE!>foo<!> {
this + <!UNRESOLVED_REFERENCE!>it<!>
foo {
this + it
}
}
@@ -1,10 +1,9 @@
FILE: incorrectFunctionalType.kt
public final fun foo(func: R|kotlin/Int.() -> class error: Incomplete code|, Int: <implicit>): R|kotlin/Unit|
fun <anonymous>(): R|kotlin/Unit| {
public final fun foo(func: R|kotlin/Int.(kotlin/Int) -> kotlin/Int|): R|kotlin/Unit| {
}
public final fun test(): R|kotlin/Unit| {
<Inapplicable(PARAMETER_MAPPING_ERROR): [/foo]>#(<L> = foo@fun <anonymous>(): R|kotlin/String| {
this#.R|kotlin/plus|(<Unresolved name: it>#)
R|/foo|(<L> = foo@fun R|kotlin/Int|.<anonymous>(it: R|kotlin/Int|): R|kotlin/Int| {
this@R|special/anonymous|.R|kotlin/Int.plus|(R|<local>/it|)
}
)
}
@@ -1,4 +1,4 @@
// FILE B.kt
// FILE: B.kt
package b
@@ -10,7 +10,7 @@ fun I() {}
interface I {}
// FILE A.kt
// FILE: A.kt
package a
import b.MyClass
@@ -1,4 +1,4 @@
FILE: simpleImport.kt
FILE: B.kt
public abstract class MyClass : R|kotlin/Any| {
public constructor(): R|b/MyClass| {
super<R|kotlin/Any|>()
@@ -11,8 +11,9 @@ FILE: simpleImport.kt
}
public abstract interface I : R|kotlin/Any| {
}
FILE: A.kt
public final class YourClass : R|b/MyClass| {
public constructor(): R|b/YourClass| {
public constructor(): R|a/YourClass| {
super<R|b/MyClass|>()
}
@@ -1,4 +1,4 @@
7class U {
class U {
operator fun contains(g: String): Boolean {
return false
}