Test for not reproduced KT-2700

#KT-2700 Can't Reproduce
This commit is contained in:
Mikhael Bogdanov
2013-06-10 15:56:14 +04:00
parent 16d71eeeac
commit 4ef2f997ed
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,17 @@
package a.b
trait Test {
fun invoke(): String {
return "OK"
}
}
private val a : Test = {
object : Test {
}
}()
fun box(): String {
return a.invoke();
}
@@ -2449,6 +2449,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/localClasses/innerClassInLocalClass.kt");
}
@TestMetadata("kt2700.kt")
public void testKt2700() throws Exception {
doTest("compiler/testData/codegen/box/localClasses/kt2700.kt");
}
@TestMetadata("kt2873.kt")
public void testKt2873() throws Exception {
doTest("compiler/testData/codegen/box/localClasses/kt2873.kt");