QuickFixMultiModule: change tests structure

This commit is contained in:
Dmitry Gridin
2019-08-19 21:15:18 +07:00
parent 02fd137cec
commit 18f0bbe8f1
608 changed files with 786 additions and 747 deletions
@@ -0,0 +1,4 @@
// My: to be implemented
// DISABLE-ERRORS
annotation class CommonAnnotation
@@ -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()
}
@@ -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
}
}
@@ -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
}
}