FIR: make declarations marked with 'override' implicitly open
#KT-52236 Fixed
This commit is contained in:
committed by
Space Team
parent
9c1a68fcec
commit
6af616d3c3
Vendored
+1
-1
@@ -25,7 +25,7 @@ FILE: main.kt
|
||||
super<R|JavaClass|>()
|
||||
}
|
||||
|
||||
public final override fun bar(x: R|kotlin/CharSequence|): R|kotlin/Int| {
|
||||
public open override fun bar(x: R|kotlin/CharSequence|): R|kotlin/Int| {
|
||||
^bar Int(1)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ FILE: inAnonymousObject.kt
|
||||
this@R|/<anonymous>|.R|/<anonymous>.leaked| = R|<local>/b|
|
||||
}
|
||||
|
||||
public final override fun run(): R|kotlin/Unit| {
|
||||
public open override fun run(): R|kotlin/Unit| {
|
||||
R|<local>/c|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -9,7 +9,7 @@ FILE: anonymousInDelegate.kt
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final override fun bar(): R|kotlin/Int| {
|
||||
public open override fun bar(): R|kotlin/Int| {
|
||||
^bar Int(42)
|
||||
}
|
||||
|
||||
|
||||
compiler/fir/analysis-tests/testData/resolveWithStdlib/delegates/delegateWithAnonymousObject.fir.txt
Vendored
+2
-2
@@ -28,11 +28,11 @@ FILE: delegateWithAnonymousObject.kt
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final override operator fun getValue(thisRef: R|IssuesListUserProfile|, property: R|kotlin/reflect/KProperty<*>|): R|IssueListView| {
|
||||
public open override operator fun getValue(thisRef: R|IssuesListUserProfile|, property: R|kotlin/reflect/KProperty<*>|): R|IssueListView| {
|
||||
^getValue R|/IssueListView.IssueListView|()
|
||||
}
|
||||
|
||||
public final override operator fun setValue(thisRef: R|IssuesListUserProfile|, property: R|kotlin/reflect/KProperty<*>|, value: R|IssueListView|): R|kotlin/Unit| {
|
||||
public open override operator fun setValue(thisRef: R|IssuesListUserProfile|, property: R|kotlin/reflect/KProperty<*>|, value: R|IssueListView|): R|kotlin/Unit| {
|
||||
^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ FILE: functionX.kt
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final override operator fun invoke(p1: R|kotlin/Int|, p2: R|kotlin/String|): R|kotlin/Unit| {
|
||||
public open override operator fun invoke(p1: R|kotlin/Int|, p2: R|kotlin/String|): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+3
-3
@@ -31,13 +31,13 @@ FILE: hashTableWithForEach.kt
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final override val key: R|K| = R|<local>/key|
|
||||
public open override val key: R|K| = R|<local>/key|
|
||||
public get(): R|K|
|
||||
|
||||
public final override val value: R|V| = R|<local>/value|
|
||||
public open override val value: R|V| = R|<local>/value|
|
||||
public get(): R|V|
|
||||
|
||||
public final override fun setValue(newValue: R|V|): R|V| {
|
||||
public open override fun setValue(newValue: R|V|): R|V| {
|
||||
^setValue throw R|java/lang/UnsupportedOperationException.UnsupportedOperationException|()
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ FILE: buildSetWithVisitor.kt
|
||||
super<R|AnyVisitor|>()
|
||||
}
|
||||
|
||||
public final override fun visit(arg: R|Wrapper|): R|kotlin/Unit| {
|
||||
public open override fun visit(arg: R|Wrapper|): R|kotlin/Unit| {
|
||||
this@R|special/anonymous|.R|SubstitutionOverride<kotlin/collections/MutableSet.add: R|kotlin/Boolean|>|(R|<local>/arg|.R|/Wrapper.tag|)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ FILE: EnumWithToString.kt
|
||||
super<R|Some|>()
|
||||
}
|
||||
|
||||
public final override fun toString(): R|kotlin/String| {
|
||||
public open override fun toString(): R|kotlin/String| {
|
||||
^toString String(Entry)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ FILE: m2.kt
|
||||
super<R|m1/BaseSingleDatabaseIntrospector<m2/SqliteRoot, m2/SqliteSchema>|>()
|
||||
}
|
||||
|
||||
protected final override fun createDatabaseRetriever(database: R|m2/SqliteRoot|): R|m1/BaseIntrospector.AbstractDatabaseRetriever<m2/SqliteRoot, m2/SqliteRoot, m2/SqliteSchema>| {
|
||||
protected open override fun createDatabaseRetriever(database: R|m2/SqliteRoot|): R|m1/BaseIntrospector.AbstractDatabaseRetriever<m2/SqliteRoot, m2/SqliteRoot, m2/SqliteSchema>| {
|
||||
^createDatabaseRetriever object : R|m1/BaseIntrospector.AbstractDatabaseRetriever<m2/SqliteRoot, m2/SqliteRoot, m2/SqliteSchema>| {
|
||||
private constructor(): R|<anonymous>| {
|
||||
this@R|m2/SqliteIntrospector|.super<R|m1/BaseIntrospector.AbstractDatabaseRetriever<m2/SqliteRoot, m2/SqliteRoot, m2/SqliteSchema>|>(R|<local>/database|)
|
||||
|
||||
Vendored
+1
-1
@@ -13,7 +13,7 @@ FILE: defaultParameterFromBase.kt
|
||||
super<R|Base|>()
|
||||
}
|
||||
|
||||
public final override fun foo(arg: R|kotlin/Int|, def: R|kotlin/String|): R|kotlin/Unit| {
|
||||
public open override fun foo(arg: R|kotlin/Int|, def: R|kotlin/String|): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ FILE: test.kt
|
||||
super<R|A|>()
|
||||
}
|
||||
|
||||
public final override fun foo(): R|B| {
|
||||
public open override fun foo(): R|B| {
|
||||
^foo this@R|/B|
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -4,22 +4,22 @@ FILE: smartSet.kt
|
||||
super<R|java/util/AbstractSet<T>|>()
|
||||
}
|
||||
|
||||
public final override var size: R|kotlin/Int| = Int(0)
|
||||
public open override var size: R|kotlin/Int| = Int(0)
|
||||
public get(): R|kotlin/Int|
|
||||
public set(value: R|kotlin/Int|): R|kotlin/Unit|
|
||||
|
||||
public final override operator fun iterator(): R|kotlin/collections/MutableIterator<T>| {
|
||||
public open override operator fun iterator(): R|kotlin/collections/MutableIterator<T>| {
|
||||
^iterator R|kotlin/TODO|()
|
||||
}
|
||||
|
||||
public final override fun add(element: R|T|): R|kotlin/Boolean| {
|
||||
public open override fun add(element: R|T|): R|kotlin/Boolean| {
|
||||
^add Boolean(true)
|
||||
}
|
||||
|
||||
public final override fun clear(): R|kotlin/Unit| {
|
||||
public open override fun clear(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public final override operator fun contains(element: R|T|): R|kotlin/Boolean| {
|
||||
public open override operator fun contains(element: R|T|): R|kotlin/Boolean| {
|
||||
^contains Boolean(false)
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -26,7 +26,7 @@ FILE: WithValidityAssertion.kt
|
||||
private final val lazyValue: R|kotlin/Lazy<T>| = R|kotlin/lazy|<R|T|>(Q|kotlin/LazyThreadSafetyMode|.R|kotlin/LazyThreadSafetyMode.PUBLICATION|, R|<local>/init|)
|
||||
private get(): R|kotlin/Lazy<T>|
|
||||
|
||||
@R|kotlin/Suppress|(names = vararg(String(UNCHECKED_CAST))) public final override operator fun getValue(thisRef: R|kotlin/Any|, property: R|kotlin/reflect/KProperty<*>|): R|T| {
|
||||
@R|kotlin/Suppress|(names = vararg(String(UNCHECKED_CAST))) public open override operator fun getValue(thisRef: R|kotlin/Any|, property: R|kotlin/reflect/KProperty<*>|): R|T| {
|
||||
this@R|/ValidityAwareCachedValue|.R|/ValidityAwareCachedValue.token|.R|/KtLifetimeToken.assertIsValid|()
|
||||
^getValue this@R|/ValidityAwareCachedValue|.R|/ValidityAwareCachedValue.lazyValue|.R|SubstitutionOverride<kotlin/Lazy.value: R|T|>|
|
||||
}
|
||||
|
||||
+2
-2
@@ -53,7 +53,7 @@ FILE: selfReferenceToCompanionObject.kt
|
||||
))
|
||||
}
|
||||
|
||||
public final override val y: R|kotlin/String| = String(K)
|
||||
public open override val y: R|kotlin/String| = String(K)
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
public final val closure2: R|() -> kotlin/String| = fun <anonymous>(): R|kotlin/String| <inline=Unknown> {
|
||||
@@ -62,7 +62,7 @@ FILE: selfReferenceToCompanionObject.kt
|
||||
|
||||
public get(): R|() -> kotlin/String|
|
||||
|
||||
public final override val z: R|kotlin/String| = this@R|/<anonymous>|.R|/<anonymous>.closure2|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/String|>|()
|
||||
public open override val z: R|kotlin/String| = this@R|/<anonymous>|.R|/<anonymous>.closure2|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/String|>|()
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user