testcase for EA-37609

This commit is contained in:
Alexander Udalov
2012-07-30 20:56:35 +04:00
parent 5b6cf7b1d2
commit 7609d0de8c
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,10 @@
public abstract class AbstractClass<T> {
public abstract val some: T
}
public class Class: AbstractClass<String>() {
public override val some: String
get() = "OK"
}
fun box(): String = Class().some
@@ -55,6 +55,11 @@ public class BridgeMethodGenTest extends CodegenTestCase {
blackBoxFile("bridges/methodFromTrait.kt");
}
public void testOverrideAbstractProperty() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("bridges/overrideAbstractProperty.kt");
}
public void testSimple() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("bridges/simple.kt");