Test for obsolete KT-9642

#KT-9642 Obsolete
This commit is contained in:
Michael Bogdanov
2015-10-29 17:05:37 +03:00
parent f3092bf390
commit 9f9217b9c3
2 changed files with 23 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
class Outer {
class Nested {
fun fn(): String {
s = "OK"
return s
}
}
companion object {
public var s = "fail"
private set
}
}
fun box(): String {
return Outer.Nested().fn()
}
@@ -1576,6 +1576,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt9642.kt")
public void testKt9642() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/kt9642.kt");
doTest(fileName);
}
@TestMetadata("namedClassObject.kt")
public void testNamedClassObject() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/namedClassObject.kt");