mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
^KT-70407 Fixed GitOrigin-RevId: 1a45214c9c4ffc983e1e16affc6828733b45f8e3
23 lines
912 B
Kotlin
23 lines
912 B
Kotlin
// "Propagate 'SubclassOptInRequired(UnstableApi::class)' opt-in requirement to 'SomeImplementation'" "false"
|
|
// IGNORE_K2
|
|
// ERROR: This class or interface requires opt-in to be implemented. Its usage must be marked with '@UnstableApi', '@OptIn(UnstableApi::class)' or '@SubclassOptInRequired(UnstableApi::class)'
|
|
// ACTION: Introduce import alias
|
|
// ACTION: Opt in for 'UnstableApi' in containing file 'propagateOptIn8.kt'
|
|
// ACTION: Opt in for 'UnstableApi' in module 'light_idea_test_case'
|
|
// ACTION: Opt in for 'UnstableApi' on 'foo'
|
|
// ACTION: Propagate 'UnstableApi' opt-in requirement to 'foo'
|
|
// COMPILER_ARGUMENTS: -opt-in=kotlin.RequiresOptIn
|
|
// WITH_STDLIB
|
|
@file:OptIn(ExperimentalSubclassOptIn::class)
|
|
|
|
@RequiresOptIn
|
|
annotation class UnstableApi
|
|
|
|
interface MockApi
|
|
|
|
@SubclassOptInRequired(UnstableApi::class)
|
|
interface CoreLibraryApi
|
|
|
|
fun foo() {
|
|
open class LocalClass : CoreLibrary<caret>Api
|
|
} |