e6b5cb5216
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
36 lines
1.3 KiB
Plaintext
Vendored
36 lines
1.3 KiB
Plaintext
Vendored
FILE: implicitInAnonymous.kt
|
|
private final val x: R|<anonymous>| = object : R|kotlin/Any| {
|
|
private constructor(): R|<anonymous>| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public final fun foo(x: R|kotlin/Int|): R|kotlin/Boolean| {
|
|
^foo this@R|/<anonymous>|.R|/<anonymous>.bar|(R|<local>/x|)
|
|
}
|
|
|
|
public final fun bar(y: R|kotlin/Int|): R|kotlin/Boolean| {
|
|
^bar CMP(>, this@R|/<anonymous>|.R|kotlin/Any.hashCode|().R|kotlin/Int.plus|(R|<local>/y|).R|kotlin/Int.compareTo|(Int(0)))
|
|
}
|
|
|
|
public final val w: R|kotlin/Boolean|
|
|
public get(): R|kotlin/Boolean| {
|
|
^ this@R|/<anonymous>|.R|/<anonymous>.z|
|
|
}
|
|
|
|
public final val z: R|kotlin/Boolean|
|
|
public get(): R|kotlin/Boolean| {
|
|
^ ==(this@R|/<anonymous>|.R|kotlin/Any.hashCode|(), Int(0))
|
|
}
|
|
|
|
}
|
|
|
|
private get(): R|<anonymous>|
|
|
public final fun useBoolean(b: R|kotlin/Boolean|): R|kotlin/Unit| {
|
|
}
|
|
public final fun main(): R|kotlin/Unit| {
|
|
R|/useBoolean|(R|/x|.R|/<anonymous>.foo|(Int(1)))
|
|
R|/useBoolean|(R|/x|.R|/<anonymous>.bar|(Int(2)))
|
|
R|/useBoolean|(R|/x|.R|/<anonymous>.w|)
|
|
R|/useBoolean|(R|/x|.R|/<anonymous>.z|)
|
|
}
|