[Analysis API] Fix exceptions around type parameters being treated as callables
- `toResolvedCallableSymbol`: cast defensively because the resolved symbol might not be a callable symbol. - `toKtCallInfo`: Check that the resolved symbol is actually callable. ^KTIJ-23003 fixed
This commit is contained in:
committed by
teamcity
parent
170c19d293
commit
c5e5140c08
+1
@@ -0,0 +1 @@
|
||||
dependency.T
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// See: KTIJ-23003 (ClassCastException)
|
||||
|
||||
// FILE: main.kt
|
||||
package test
|
||||
|
||||
import dependency.T
|
||||
|
||||
fun <T> usage() {
|
||||
println(T)
|
||||
}
|
||||
|
||||
// FILE: dependency.kt
|
||||
package dependency
|
||||
|
||||
class T(i: Int)
|
||||
Reference in New Issue
Block a user