| FILE: localClassWithCompanionObject.kt | |
| public final fun box(): R|kotlin/String| { | |
| @R|org/jetbrains/kotlin/plugin/sandbox/CompanionWithFoo|() local final class SomeClass : R|kotlin/Any| { | |
| public constructor(): R|<local>/SomeClass| { | |
| super<R|kotlin/Any|>() | |
| } | |
| local final companion object Companion : R|kotlin/Any| { | |
| public final fun foo(): R|kotlin/Int| { | |
| ^foo throw R|kotlin/Throwable.Throwable|(String(Stub for declaration generated by Plugin[CompanionGeneratorKey])) | |
| } | |
| private constructor(): R|<local>/SomeClass.Companion| { | |
| super<R|kotlin/Any|>() | |
| } | |
| } | |
| } | |
| local final fun takeInt(x: R|kotlin/Int|): R|kotlin/Unit| { | |
| when () { | |
| !=(R|<local>/x|, Int(10)) -> { | |
| throw R|java/lang/IllegalArgumentException.IllegalArgumentException|() | |
| } | |
| } | |
| } | |
| local final fun test(): R|kotlin/Unit| { | |
| R|<local>/takeInt|(Q|<local>/SomeClass|.R|<local>/SomeClass.Companion.foo|()) | |
| R|<local>/takeInt|(Q|<local>/SomeClass.Companion|.R|<local>/SomeClass.Companion.foo|()) | |
| } | |
| R|<local>/test|() | |
| ^box String(OK) | |
| } |