d986e0ee9c
In this commit, tests where backend diagnostics were reported correctly are being moved. FirScopeDumpHandler was added to FIR diagnostic tests with JVM backend to support `SCOPE_DUMP` in `overridesBuiltinNoMagic.kt` and `charAtAndOverload.kt`.
28 lines
494 B
Kotlin
Vendored
28 lines
494 B
Kotlin
Vendored
// SCOPE_DUMP: KA:get
|
|
// RENDER_ALL_DIAGNOSTICS_FULL_TEXT
|
|
|
|
// FILE: A.java
|
|
abstract public class A implements CharSequence {
|
|
public final int length() {
|
|
return 0;
|
|
}
|
|
|
|
public char charAt(int index) {
|
|
return ' ';
|
|
}
|
|
|
|
public char get(int index) {
|
|
return 'X';
|
|
}
|
|
}
|
|
|
|
// FILE: main.kt
|
|
abstract class KA : A() {
|
|
override fun <!ACCIDENTAL_OVERRIDE_CLASH_BY_JVM_SIGNATURE!>get<!>(index: Int) = 'O'
|
|
}
|
|
|
|
fun foo(a: A, ka: KA) {
|
|
a.get(0)
|
|
ka.get(0)
|
|
}
|