7429dd4b94
The inter-module interaction was partially supported, but the DiagnosticCompilerTestFE10TestdataTestGenerated and LFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated were failing. This is because the arguments of annotations were not fully resolved in loadExperimentalitiesFromAnnotationTo function. ^KT-60262 Fixed
16 lines
238 B
Kotlin
Vendored
16 lines
238 B
Kotlin
Vendored
// MODULE: a
|
|
@file:OptIn(ExperimentalSubclassOptIn::class)
|
|
package a
|
|
|
|
@RequiresOptIn
|
|
annotation class Boom
|
|
|
|
@SubclassOptInRequired(Boom::class)
|
|
open class B {}
|
|
|
|
// MODULE: b(a)
|
|
package b
|
|
import a.B
|
|
|
|
class C : <!OPT_IN_USAGE_ERROR!>B<!>()
|