K2: fix outerClassSymbol behavior for local classes #KT-55018 Fixed
This commit is contained in:
committed by
Space Team
parent
fb09f139dd
commit
1d76bce3dd
@@ -0,0 +1,25 @@
|
||||
fun main() {
|
||||
local class Foo {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
@Suppress(names = ["WRONG_MODIFIER_CONTAINING_DECLARATION"])
|
||||
local companion object Companion {
|
||||
private constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Companion.bar()
|
||||
}
|
||||
Reference in New Issue
Block a user