test case for KT-2655 which duplicates KT-2786
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
trait TextField {
|
||||||
|
fun getText(): String
|
||||||
|
fun setText(text: String)
|
||||||
|
}
|
||||||
|
|
||||||
|
class SimpleTextField : TextField {
|
||||||
|
private var text = ""
|
||||||
|
override fun getText() = text
|
||||||
|
override fun setText(text: String) {
|
||||||
|
this.text = text
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class TextFieldWrapper(textField: TextField) : TextField by textField
|
||||||
|
|
||||||
|
fun box() : String {
|
||||||
|
val textField = TextFieldWrapper(SimpleTextField())
|
||||||
|
textField.setText("OK")
|
||||||
|
return textField.getText()
|
||||||
|
}
|
||||||
@@ -282,6 +282,11 @@ public class PropertyGenTest extends CodegenTestCase {
|
|||||||
blackBoxFile("regressions/kt2786.kt");
|
blackBoxFile("regressions/kt2786.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testKt2655() throws Exception {
|
||||||
|
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||||
|
blackBoxFile("regressions/kt2655.kt");
|
||||||
|
}
|
||||||
|
|
||||||
public void testKt1528() throws Exception {
|
public void testKt1528() throws Exception {
|
||||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||||
blackBoxMultiFile("regressions/kt1528_1.kt", "regressions/kt1528_3.kt");
|
blackBoxMultiFile("regressions/kt1528_1.kt", "regressions/kt1528_3.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user