FIR IDE/LC: introduce/use delegated member scope
This commit is contained in:
committed by
Ilya Kirillov
parent
700f8ac287
commit
3f2c86afb8
@@ -0,0 +1,12 @@
|
||||
// DO_NOT_CHECK_SYMBOL_RESTORE
|
||||
|
||||
interface I {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class A(
|
||||
private val p: I
|
||||
) : I by p
|
||||
|
||||
// class: A
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
KtFunctionSymbol:
|
||||
annotatedType: [] kotlin/Unit
|
||||
annotationClassIds: []
|
||||
annotations: []
|
||||
callableIdIfNonLocal: /I.foo
|
||||
dispatchType: A
|
||||
hasStableParameterNames: true
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: OPEN
|
||||
name: foo
|
||||
origin: DELEGATED
|
||||
receiverType: null
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
deprecationStatus: null
|
||||
@@ -0,0 +1,27 @@
|
||||
// DO_NOT_CHECK_SYMBOL_RESTORE
|
||||
|
||||
interface I1 {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class I1Impl: I1 {
|
||||
override fun foo() {}
|
||||
}
|
||||
|
||||
interface I2 {
|
||||
fun bar()
|
||||
fun baz()
|
||||
}
|
||||
|
||||
class I2Impl: I2 {
|
||||
override fun bar() {}
|
||||
override fun baz() {}
|
||||
}
|
||||
|
||||
open class A : I1 by I1Impl()
|
||||
|
||||
class B : I2 by I2Impl(), A() {
|
||||
override fun baz() {}
|
||||
}
|
||||
|
||||
// class: B
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
KtFunctionSymbol:
|
||||
annotatedType: [] kotlin/Unit
|
||||
annotationClassIds: []
|
||||
annotations: []
|
||||
callableIdIfNonLocal: /I2.bar
|
||||
dispatchType: B
|
||||
hasStableParameterNames: true
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: OPEN
|
||||
name: bar
|
||||
origin: DELEGATED
|
||||
receiverType: null
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
deprecationStatus: null
|
||||
Reference in New Issue
Block a user