Fix DescriptorUtils.isLocal semantics
Non-member descriptors, e.g. type parameters, value parameters that defined in local function should be local too Otherwise a lot of exceptions happens when resolving references within anonymous objects
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
val prop = object {
|
||||
private fun <K> foo(x: <caret>K) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// REF: K
|
||||
@@ -0,0 +1,9 @@
|
||||
open class B
|
||||
class A
|
||||
val prop = object : B() {
|
||||
private fun foo(x: A): A {
|
||||
return <caret>x
|
||||
}
|
||||
}
|
||||
|
||||
// REF: x
|
||||
Reference in New Issue
Block a user