Add regression test for outdated issue

#KT-3738 Obsolete
This commit is contained in:
Alexander Udalov
2014-02-12 19:14:34 +04:00
parent 35c7c4afd8
commit a98434263b
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,19 @@
class A {
fun foo() {}
fun bar(f: A.() -> Unit = {}) {}
}
class B {
class D {
{
A().bar {
this.foo()
}
}
}
}
fun box(): String {
B.D()
return "OK"
}
@@ -1455,6 +1455,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/closures/kt3523.kt");
}
@TestMetadata("kt3738.kt")
public void testKt3738() throws Exception {
doTest("compiler/testData/codegen/box/closures/kt3738.kt");
}
@TestMetadata("kt3905.kt")
public void testKt3905() throws Exception {
doTest("compiler/testData/codegen/box/closures/kt3905.kt");