Add regression test for outdated issue
#KT-3738 Obsolete
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user