Regenerate tests after rebase on master, add FIR tests

This commit is contained in:
Mikhail Zarechenskiy
2019-12-17 15:04:11 +03:00
parent 3849b5e723
commit b98d8bd7c1
17 changed files with 189 additions and 24082 deletions
@@ -0,0 +1,33 @@
// !LANGUAGE: +NewInference +SamConversionForKotlinFunctions +SamConversionPerArgument +FunctionalInterfaceConversion
interface J {
fun foo1(r: KRunnable)
fun foo2(r1: KRunnable, r2: KRunnable)
fun foo3(r1: KRunnable, r2: KRunnable, r3: KRunnable)
}
fun interface KRunnable {
fun run()
}
// FILE: 1.kt
fun test(j: J, r: KRunnable) {
j.foo1(r)
j.foo1({})
j.foo2(r, r)
j.foo2({}, {})
j.foo2(r, {})
j.foo2({}, r)
j.foo3(r, r, r)
j.foo3(r, r, {})
j.foo3(r, {}, r)
j.foo3(r, {}, {})
j.foo3({}, r, r)
j.foo3({}, r, {})
j.foo3({}, {}, r)
j.foo3({}, {}, {})
}