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:
Denis Zharkov
2015-06-04 10:49:56 +03:00
parent e874ad9cbb
commit 4f85afb3f0
4 changed files with 35 additions and 2 deletions
@@ -0,0 +1,7 @@
val prop = object {
private fun <K> foo(x: <caret>K) {
}
}
// REF: K
+9
View File
@@ -0,0 +1,9 @@
open class B
class A
val prop = object : B() {
private fun foo(x: A): A {
return <caret>x
}
}
// REF: x