Files
kotlin-fork/compiler/testData/diagnostics/tests/constructorConsistency/twoSecondaryConstructors.kt
T
Mikhail Glukhikh 729de536de Rewrite slice error removed for LEAKING_THIS #KT-13371 Fixed
Also EA-86478 fixed
(cherry picked from commit 5ac3126)
2016-08-09 10:28:40 +03:00

12 lines
204 B
Kotlin
Vendored

fun use(x: Any?) = x
class Eap {
private val foo = <!DEBUG_INFO_LEAKING_THIS!>toString<!>()
constructor(foo: Int) {
use(foo)
}
constructor(foo: String) {
use(foo)
}
}