Added test for EA-49318.
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
fun example(value : Int) {
|
||||||
|
val result: Int = if (value == 0) 1
|
||||||
|
else if (value == 1) 2
|
||||||
|
else throw IllegalArgumentException()
|
||||||
|
result
|
||||||
|
}
|
||||||
|
|
||||||
|
fun <T, S, U : T> foo(u: U) where U : S {}
|
||||||
|
|
||||||
|
|
||||||
|
fun main(args : Array<String>) {
|
||||||
|
foo(null!!)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
fun box() = "OK"
|
||||||
@@ -5756,6 +5756,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/regressions"), Pattern.compile("^(.+)\\.kt$"), true);
|
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/regressions"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("ea49318.kt")
|
||||||
|
public void testEa49318() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/ea49318.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt3173.kt")
|
@TestMetadata("kt3173.kt")
|
||||||
public void testKt3173() throws Exception {
|
public void testKt3173() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3173.kt");
|
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3173.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user