mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
QuickFixMultiModule: change tests structure
GitOrigin-RevId: 497c9eec444e9773abe47e05953bccb224332ef8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e607074acc
commit
ebb45fbd0e
+4
@@ -0,0 +1,4 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
|
||||
annotation class CommonAnnotation
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
|
||||
annotation class CommonAnnotation
|
||||
expect class My {
|
||||
tailrec fun foo(arg: Int): Int
|
||||
var some: Boolean
|
||||
@CommonAnnotation
|
||||
fun initialize()
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// "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
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// "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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user