Tests for declaration mappings dumping from compiler

This commit is contained in:
Ilya Gorbunov
2016-03-17 22:26:46 +03:00
parent e7d75fccd6
commit 25abdf9fdb
18 changed files with 1402 additions and 1 deletions
@@ -0,0 +1,38 @@
// FILE: Part1.kt
class A {
fun a() : String {
class B() {
fun s() : String = "OK"
inner class C {}
}
return B().s()
}
}
class B {
fun a(p: String) : String {
class B() {
fun s() : String = p
}
return B().s()
}
}
class L {
fun a(lambda: () -> Unit) = lambda()
inline fun b() {
a {
println("OK")
}
}
}
// FILE: Part2.kt
fun box() {
L().b()
}