regression test for KT-3903
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class Foo {
|
||||
fun bar(): String {
|
||||
fun foo<T>(t:() -> T) : T = t()
|
||||
foo { }
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Foo().bar()
|
||||
}
|
||||
+6
@@ -6055,6 +6055,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt3903.kt")
|
||||
public void testKt3903() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3903.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt3999.kt")
|
||||
public void testKt3999() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3999.kt");
|
||||
|
||||
Reference in New Issue
Block a user