[FIR IDE] Add unwrapping substitution overrides which doesn't affect function's signature

Also, do not use PSI to restore SUBSTITUTION_OVERRIDE function/property
symbols
This commit is contained in:
Roman Golyshev
2021-10-28 13:16:33 +03:00
committed by teamcityserver
parent 2766dc938b
commit fa8bb47bdf
51 changed files with 1291 additions and 33 deletions
@@ -442,7 +442,7 @@ KtFunctionSymbol:
KtFunctionSymbol:
annotationsList: []
callableIdIfNonLocal: kotlin/collections/MutableList.isEmpty
callableIdIfNonLocal: kotlin/collections/List.isEmpty
hasStableParameterNames: true
isExtension: false
isExternal: false
@@ -461,7 +461,7 @@ KtFunctionSymbol:
typeParameters: []
valueParameters: []
visibility: Public
getDispatchReceiver(): kotlin/collections/MutableList<E>
getDispatchReceiver(): kotlin/collections/List<E>
deprecationStatus: null
KtFunctionSymbol:
@@ -516,10 +516,10 @@ KtFunctionSymbol:
KtKotlinPropertySymbol:
annotationsList: []
callableIdIfNonLocal: kotlin/collections/MutableList.size
getter: null
callableIdIfNonLocal: kotlin/collections/List.size
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: false
hasGetter: false
hasGetter: true
hasSetter: false
initializer: null
isConst: false
@@ -539,7 +539,7 @@ KtKotlinPropertySymbol:
symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Public
getDispatchReceiver(): kotlin/collections/MutableList<E>
getDispatchReceiver(): kotlin/collections/List<E>
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getSize
@@ -1,19 +0,0 @@
// DO_NOT_CHECK_SYMBOL_RESTORE
package test
interface OtherInterface
interface TwoParams<T, TT>
interface MyInterface<T> {
fun <TT1 : T, TT2 : OtherInterface> funWithOuterAndOwnGenericsAndBounds(tT1: TT1?, tT2: TT2?)
val <TT1 : T, TT2 : OtherInterface> TwoParams<TT1, TT2>.propWithOuterAndOwnGenericsAndBounds: T? get() = null
}
class Foo
abstract class MyClass : MyInterface<Foo>
// class: test/MyClass