regression test for KT-3903

This commit is contained in:
Dmitry Jemerov
2015-03-04 17:32:40 +01:00
parent 18e54322b8
commit 7522eb4032
2 changed files with 17 additions and 0 deletions
@@ -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()
}
@@ -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");