Test for not reproduced KT-2700
#KT-2700 Can't Reproduce
This commit is contained in:
@@ -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");
|
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")
|
@TestMetadata("kt2873.kt")
|
||||||
public void testKt2873() throws Exception {
|
public void testKt2873() throws Exception {
|
||||||
doTest("compiler/testData/codegen/box/localClasses/kt2873.kt");
|
doTest("compiler/testData/codegen/box/localClasses/kt2873.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user