K2: fix outerClassSymbol behavior for local classes #KT-55018 Fixed

This commit is contained in:
Mikhail Glukhikh
2022-11-18 16:10:44 +01:00
committed by Space Team
parent fb09f139dd
commit 1d76bce3dd
9 changed files with 108 additions and 3 deletions
@@ -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()
}