mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
Bug in 'generateThisOrOuterFromContext', it worked while instance of a class was always an object. #KT-27078
12 lines
222 B
Kotlin
Vendored
12 lines
222 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND: JVM_IR
|
|
|
|
inline class R(private val r: Int) {
|
|
fun test() = object {
|
|
override fun toString() = ok()
|
|
}.toString()
|
|
|
|
fun ok() = "OK"
|
|
}
|
|
|
|
fun box() = R(0).test() |