965946d3ef
Do not try to find PSI element, but always use the IR element offsets instead. This greatly simplifies test data because we don't need to have custom PSI- and LT- based diagnostic ranges in every test, and K1/K2 behavior also is mostly the same. The exact offset ranges are not as important for backend diagnostics, so it's better to have K2+PSI and K2+LT behaving the same.
21 lines
409 B
Kotlin
Vendored
21 lines
409 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
public open class A<T> {
|
|
fun foo(x: T) = "O"
|
|
fun foo(x: A<T>) = "K"
|
|
}
|
|
|
|
interface C<E> {
|
|
fun foo(x: E): String
|
|
fun foo(x: A<E>): String
|
|
}
|
|
|
|
interface D {
|
|
fun foo(x: A<String>): String
|
|
}
|
|
|
|
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>class B1 : A<A<String>>(), D<!>
|
|
|
|
<!CONFLICTING_INHERITED_JVM_DECLARATIONS!>interface B2 : C<A<String>>, D<!>
|