Test for obsolete KT-9642
#KT-9642 Obsolete
This commit is contained in:
+17
@@ -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()
|
||||
}
|
||||
+6
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user