K2: don't throw an exception for type parameter case in isJavaTypeOnThePath

#KT-63569 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-11-20 12:10:07 +01:00
committed by Space Team
parent 8924e46458
commit 3b7f43a9c2
7 changed files with 68 additions and 1 deletions
@@ -0,0 +1,37 @@
// FIR_IDENTICAL
// ISSUE: KT-63569
// FILE: Baz.java
public class Baz extends Base {
public boolean isSomething() {
return false;
}
}
// FILE: Foo.kt
abstract class Base {
open fun isSomethingElse() = false
}
abstract class Bar {
open fun isSomething() = false
}
abstract class BazBaz : Baz()
abstract class Foo<C : Bar, D : Baz, E : D, F : BazBaz> {
abstract val c: C
abstract val d: D
abstract val e: E
abstract val f: F
fun callMe() {
c.<!FUNCTION_CALL_EXPECTED!>isSomething<!>
d.isSomething
d.<!FUNCTION_CALL_EXPECTED!>isSomethingElse<!>
e.isSomething
f.<!FUNCTION_CALL_EXPECTED!>isSomethingElse<!>
}
}