ad9025afa6
At the moment, SubclassOptInRequired is marked with the ExperimentalSubclassOptIn annotation. However, it does not work as expected due to a missing opt-in error. To use SubclassOptInRequired, an explicit opt-in is necessary because SubclassOptInRequired is an unstable feature now. ^KT-64739
49 lines
1.6 KiB
Plaintext
Vendored
49 lines
1.6 KiB
Plaintext
Vendored
FILE: ClassIdDiagnosticRendering.kt
|
|
@FILE:R|kotlin/OptIn|(markerClass = vararg(<getClass>(Q|kotlin/ExperimentalSubclassOptIn|)))
|
|
package a.b.c
|
|
|
|
@R|kotlin/RequiresOptIn|() public final annotation class Marker : R|kotlin/Annotation| {
|
|
public constructor(): R|a/b/c/Marker| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
}
|
|
@R|a/b/c/Marker|() public final class Some : R|kotlin/Any| {
|
|
public constructor(): R|a/b/c/Some| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
}
|
|
public final fun main(): R|kotlin/Unit| {
|
|
R|a/b/c/Some.Some|()
|
|
}
|
|
public final annotation class DummyAnnotation : R|kotlin/Annotation| {
|
|
public constructor(): R|a/b/c/DummyAnnotation| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
}
|
|
@R|kotlin/SubclassOptInRequired|(markerClass = <getClass>(Q|a/b/c/DummyAnnotation|)) public open class IncorrectSubclassOptInArgumentMarker : R|kotlin/Any| {
|
|
public constructor(): R|a/b/c/IncorrectSubclassOptInArgumentMarker| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
}
|
|
internal abstract fun interface StableInterface : R|kotlin/Any| {
|
|
@R|a/b/c/Marker|() public abstract fun experimentalMethod(): R|kotlin/Unit|
|
|
|
|
}
|
|
public final fun testOverrides(): R|kotlin/Unit| {
|
|
object : R|a/b/c/StableInterface| {
|
|
private constructor(): R|a/b/c/<anonymous>| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public open override fun experimentalMethod(): R|kotlin/Unit| {
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
public final actual typealias TypealiasToKotlinPkg = R|kotlin/Deprecated|
|