Files
kotlin-fork/idea/testData/multiModuleQuickFix/expectWithAnnotations/jvm/My.kt
T

20 lines
478 B
Kotlin
Vendored

// "Create expected class in common module testModule_Common" "true"
// DISABLE-ERRORS
annotation class PlatformAnnotation
actual class <caret>My {
@PlatformAnnotation
actual tailrec fun foo(arg: Int): Int {
if (arg <= 1) return 1
return foo(arg - 1)
}
// Here we will have an error (lateinit is not supported on both sides)
actual lateinit var some: Boolean
@CommonAnnotation
actual fun initialize() {
some = true
}
}