Fix modifiers generation for companion objects
when language verion is 1.3 #KT-23002: Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
|
||||
class Test {
|
||||
private companion object {
|
||||
val res = "OK"
|
||||
}
|
||||
fun res() = res
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Test().res()
|
||||
}
|
||||
@@ -22,7 +22,7 @@ final class TestPrivateCompanion$Test {
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class TestPrivateCompanion {
|
||||
public private final static field Test: TestPrivateCompanion$Test
|
||||
private final static field Test: TestPrivateCompanion$Test
|
||||
inner class TestPrivateCompanion$Test
|
||||
static method <clinit>(): void
|
||||
public method <init>(): void
|
||||
@@ -37,7 +37,7 @@ public final class TestProtectedCompanion$Test {
|
||||
|
||||
@kotlin.Metadata
|
||||
public class TestProtectedCompanion {
|
||||
public protected final static field Test: TestProtectedCompanion$Test
|
||||
protected final static field Test: TestProtectedCompanion$Test
|
||||
inner class TestProtectedCompanion$Test
|
||||
static method <clinit>(): void
|
||||
public method <init>(): void
|
||||
|
||||
Reference in New Issue
Block a user