Allow to use "static" part of class in own constructors by short name, including in primary constructor
This commit is contained in:
@@ -404,9 +404,9 @@ public class ResolveElementCache(
|
||||
bodyResolver.resolveDelegationSpecifierList(DataFlowInfo.EMPTY,
|
||||
classOrObject,
|
||||
descriptor,
|
||||
descriptor.getUnsubstitutedPrimaryConstructor(),
|
||||
descriptor.getScopeForClassHeaderResolution(),
|
||||
descriptor.getScopeForMemberDeclarationResolution())
|
||||
descriptor.unsubstitutedPrimaryConstructor,
|
||||
descriptor.scopeForConstructorHeaderResolution,
|
||||
descriptor.scopeForMemberDeclarationResolution)
|
||||
|
||||
return trace
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ interface I {
|
||||
val p: CCCC.Nested
|
||||
}
|
||||
|
||||
class CCCC(override val p: CCCC.Nested<caret>val x: Int) : I {
|
||||
class CCCC(override val p: Nested<caret>val x: Int) : I {
|
||||
interface Nested
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -2,6 +2,8 @@ package ppp
|
||||
|
||||
import ppp.Base.Nested
|
||||
|
||||
class Base(p: Nested) {
|
||||
fun foo(p: Nested) {}
|
||||
|
||||
class Base {
|
||||
class Nested
|
||||
}
|
||||
|
||||
+3
-1
@@ -2,6 +2,8 @@ package ppp
|
||||
|
||||
import ppp.Base.Nested
|
||||
|
||||
class Base(p: Nested) {
|
||||
fun foo(p: Nested) {}
|
||||
|
||||
class Base {
|
||||
class Nested
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user