FIR: provide super-type as the self-type for anonymous objects

This commit is a temporary approximation useful before we have
symbols for local classes & objects
This commit is contained in:
Simon Ogorodnik
2019-04-25 15:48:53 +03:00
committed by Mikhail Glukhikh
parent 2f7ced2a8e
commit 99994e6c41
3 changed files with 10 additions and 16 deletions
@@ -1,7 +1,7 @@
FILE: localImplicitBodies.kt
public final fun foo(): R|kotlin/Unit| {
lval x: <ERROR TYPE REF: No result type for initializer> = object : R|kotlin/Any| {
private constructor(): R|class error: Symbol not found, for `<no name provided>`| {
lval x: R|kotlin/Any| = object : R|kotlin/Any| {
private constructor(): R|kotlin/Any| {
super<R|kotlin/Any|>()
}