mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
When a test is marked as ignored in JVM BE (i.e. IGNORE_BACKEND: JVM) it's ignored in LightAnalysisModeTestGenerated. This means that this tests is expected to fail. However, often tests that fail in JVM blackbox tests, don't fail in LAMTG, therefore it's reasonable to skip these tests in LAMTG at all.
28 lines
496 B
Kotlin
Vendored
28 lines
496 B
Kotlin
Vendored
// Enable for JVM backend when KT-8120 gets fixed
|
|
// IGNORE_BACKEND: JVM
|
|
|
|
fun box(): String {
|
|
var log = ""
|
|
|
|
var s: Any? = null
|
|
for (t in arrayOf("1", "2", "3")) {
|
|
class C() {
|
|
val y = t
|
|
|
|
inner class D() {
|
|
fun copyOuter() = C()
|
|
}
|
|
}
|
|
|
|
if (s == null) {
|
|
s = C()
|
|
}
|
|
|
|
val c = (s as C).D().copyOuter()
|
|
log += c.y
|
|
}
|
|
|
|
if (log != "111") return "fail: ${log}"
|
|
|
|
return "OK"
|
|
} |