test for KT-1939

#KT-1939 fixed
This commit is contained in:
Alexander Udalov
2012-07-30 19:17:31 +04:00
parent d9893d9940
commit a286c475e4
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,12 @@
abstract class Foo<T> {
fun hello(id: T) = "Hi $id"
}
trait Tr {
fun hello(s : String)
}
class Bar: Foo<String>(), Tr {
}
fun box(): String = if (Bar().hello("Reg") == "Hi Reg") "OK" else "Fail"
@@ -134,4 +134,9 @@ public class BridgeMethodGenTest extends CodegenTestCase {
createEnvironmentWithFullJdk();
blackBoxFile("regressions/kt2498.kt");
}
public void testKt1939() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("regressions/kt1939.kt");
}
}