test for KT-1939
#KT-1939 fixed
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user