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
37 lines
826 B
Kotlin
Vendored
37 lines
826 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// !CHECK_TYPE
|
|
object Outer {
|
|
private var x
|
|
get() = object : CharSequence {
|
|
override val length: Int
|
|
get() = 0
|
|
|
|
override fun get(index: Int): Char {
|
|
checkSubtype<CharSequence>(<!DEBUG_INFO_MISSING_UNRESOLVED{NI}, TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM!>x<!>)
|
|
return ' '
|
|
}
|
|
|
|
override fun subSequence(startIndex: Int, endIndex: Int) = ""
|
|
|
|
fun bar() {
|
|
}
|
|
}
|
|
set(q) {
|
|
checkSubtype<CharSequence>(x)
|
|
y = q
|
|
x = q
|
|
}
|
|
|
|
private var y = <!DEBUG_INFO_LEAKING_THIS!>x<!>
|
|
|
|
fun foo() {
|
|
x = y
|
|
|
|
checkSubtype<CharSequence>(x)
|
|
checkSubtype<CharSequence>(y)
|
|
|
|
x.bar()
|
|
y.bar()
|
|
}
|
|
}
|