QuickFixMultiModule: change tests structure
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
@@ -0,0 +1,3 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
expect annotation class <caret>My(val x: Int, val y: Double)
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected annotation class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual annotation class <caret>My actual constructor(actual val x: Int, actual val y: Double)
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected annotation class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual annotation class My actual constructor(actual val x: Int, actual val y: Double)
|
||||
@@ -0,0 +1,2 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
@@ -0,0 +1,3 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
expect annotation class <caret>My(val x: Int, val y: Double)
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected annotation class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual annotation class <caret>My(actual val x: Int, actual val y: Double)
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected annotation class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual annotation class My actual constructor(actual val x: Int, actual val y: Double)
|
||||
@@ -0,0 +1,2 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
@@ -0,0 +1,13 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
fun String.bar(y: Double): Boolean
|
||||
fun baz()
|
||||
|
||||
constructor(flag: Boolean)
|
||||
|
||||
val isGood: Boolean
|
||||
var status: Int
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
actual fun foo(param: String): Int = 42
|
||||
|
||||
actual fun String.bar(y: Double): Boolean = true
|
||||
|
||||
actual fun baz() {}
|
||||
|
||||
actual constructor(flag: Boolean) {}
|
||||
|
||||
actual val isGood: Boolean
|
||||
get() = true
|
||||
actual var status: Int
|
||||
get() = 0
|
||||
set(value) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun foo(param: String): Int = 42
|
||||
|
||||
actual fun String.bar(y: Double): Boolean = true
|
||||
|
||||
actual fun baz() {}
|
||||
|
||||
actual constructor(flag: Boolean) {}
|
||||
|
||||
actual val isGood: Boolean
|
||||
get() = true
|
||||
actual var status: Int
|
||||
get() = 0
|
||||
set(value) {}
|
||||
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
|
||||
package my
|
||||
idea/testData/multiModuleQuickFix/createExpect/classWithSuperTypeFromOtherPackage/common/My.kt.after
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
|
||||
package my
|
||||
|
||||
import other.Another
|
||||
import other.Other
|
||||
|
||||
expect class My : Other<Another>
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package other
|
||||
|
||||
class Other<T>
|
||||
|
||||
class Another
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package other
|
||||
|
||||
class Other<T>
|
||||
|
||||
class Another
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
package my
|
||||
|
||||
import other.Another
|
||||
import other.Other
|
||||
|
||||
actual class <caret>My : Other<Another>()
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
package my
|
||||
|
||||
import other.Another
|
||||
import other.Other
|
||||
|
||||
actual class My : Other<Another>()
|
||||
@@ -0,0 +1,2 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
@@ -0,0 +1,24 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
/**
|
||||
* Dokka comment: class to be created as expect
|
||||
*/
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
fun String.bar(y: Double): Boolean
|
||||
/**
|
||||
* Dokka comment: Just does nothing
|
||||
*/
|
||||
fun baz()
|
||||
|
||||
/**
|
||||
* Dokka comment: Just does nothing
|
||||
*
|
||||
* @flag this parameter is just ignored
|
||||
*/
|
||||
constructor(flag: Boolean)
|
||||
|
||||
val isGood: Boolean
|
||||
var status: Int
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
/**
|
||||
* Dokka comment: class to be created as expect
|
||||
*/
|
||||
actual class <caret>My {
|
||||
// Helpful function
|
||||
actual fun foo(param: String): Int = 42
|
||||
|
||||
/* Very helpful extension */
|
||||
actual fun String.bar(y: Double): Boolean = true
|
||||
|
||||
/**
|
||||
* Dokka comment: Just does nothing
|
||||
*/
|
||||
actual fun baz() {}
|
||||
|
||||
/**
|
||||
* Dokka comment: Just does nothing
|
||||
*
|
||||
* @flag this parameter is just ignored
|
||||
*/
|
||||
actual constructor(flag: Boolean) {}
|
||||
|
||||
// Some immutable property
|
||||
actual val isGood: Boolean
|
||||
get() = true
|
||||
|
||||
/* Interesting mutable property */
|
||||
actual var status: Int
|
||||
get() = 0
|
||||
set(value) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
/**
|
||||
* Dokka comment: class to be created as expect
|
||||
*/
|
||||
actual class <caret>My {
|
||||
// Helpful function
|
||||
actual fun foo(param: String): Int = 42
|
||||
|
||||
/* Very helpful extension */
|
||||
actual fun String.bar(y: Double): Boolean = true
|
||||
|
||||
/**
|
||||
* Dokka comment: Just does nothing
|
||||
*/
|
||||
actual fun baz() {}
|
||||
|
||||
/**
|
||||
* Dokka comment: Just does nothing
|
||||
*
|
||||
* @flag this parameter is just ignored
|
||||
*/
|
||||
actual constructor(flag: Boolean) {}
|
||||
|
||||
// Some immutable property
|
||||
actual val isGood: Boolean
|
||||
get() = true
|
||||
|
||||
/* Interesting mutable property */
|
||||
actual var status: Int
|
||||
get() = 0
|
||||
set(value) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
expect class Some {
|
||||
companion object {
|
||||
fun createMe(): Some
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>Some {
|
||||
actual companion object {
|
||||
actual fun createMe() = Some()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>Some {
|
||||
actual companion object {
|
||||
actual fun createMe() = Some()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
expect class My(x: Int, y: Int) {
|
||||
val x: Int
|
||||
val y: Int
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual data class <caret>My actual constructor(actual val x: Int, actual val y: Int)
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual data class My actual constructor(actual val x: Int, actual val y: Int)
|
||||
@@ -0,0 +1,2 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
@@ -0,0 +1,6 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
expect enum class My {
|
||||
FIRST, SECOND, LAST;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create expected enum class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual enum class <caret>My {
|
||||
FIRST,
|
||||
SECOND,
|
||||
LAST;
|
||||
|
||||
val num: Int get() = 42
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create expected enum class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual enum class My {
|
||||
FIRST,
|
||||
SECOND,
|
||||
LAST;
|
||||
|
||||
val num: Int get() = 42
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
expect enum class Complex {
|
||||
FIRST {
|
||||
};
|
||||
|
||||
abstract fun foo()
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create expected enum class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual enum class <caret>Complex {
|
||||
FIRST {
|
||||
override fun foo() {}
|
||||
};
|
||||
|
||||
actual abstract fun foo()
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create expected enum class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual enum class Complex {
|
||||
FIRST {
|
||||
override fun foo() {}
|
||||
};
|
||||
|
||||
actual abstract fun foo()
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
@@ -0,0 +1,8 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
expect enum class My {
|
||||
;
|
||||
|
||||
fun getHello(): String
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create expected enum class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual enum class <caret>My {
|
||||
;
|
||||
|
||||
actual fun getHello() = "Hello"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create expected enum class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual enum class My {
|
||||
;
|
||||
|
||||
actual fun getHello() = "Hello"
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expect class SomeString
|
||||
// It would be great to have SomeString in foo() below, but it's problematic
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
expect class SomeString
|
||||
// It would be great to have SomeString in foo() below, but it's problematic
|
||||
expect fun foo(): String
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual typealias SomeString = String
|
||||
|
||||
actual fun <caret>foo(): SomeString = ""
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual typealias SomeString = String
|
||||
|
||||
actual fun foo(): SomeString = ""
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
expect fun foo(): String
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
typealias SomeString = String
|
||||
|
||||
actual fun <caret>foo(): SomeString = ""
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
typealias SomeString = String
|
||||
|
||||
actual fun foo(): SomeString = ""
|
||||
+1
@@ -0,0 +1 @@
|
||||
expect class Some
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
expect class Some
|
||||
|
||||
expect fun foo(some: List<Some>)
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class Some
|
||||
|
||||
actual fun <caret>foo(some: List<Some>) {}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class Some
|
||||
|
||||
actual fun foo(some: List<Some>) {}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
class My
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
class My
|
||||
|
||||
expect fun foo(my: My)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual fun <caret>foo(my: My) {}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual fun foo(my: My) {}
|
||||
+1
@@ -0,0 +1 @@
|
||||
// To be implemented
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: Cannot generate expected function: Type Some is not accessible from common code
|
||||
// DISABLE-ERRORS
|
||||
|
||||
interface Some
|
||||
|
||||
actual fun <T : Some> <caret>foo(some: List<T>) {}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: Cannot generate expected function: Type Some is not accessible from common code
|
||||
// DISABLE-ERRORS
|
||||
|
||||
interface Some
|
||||
|
||||
actual fun <T : Some> foo(some: List<T>) {}
|
||||
+1
@@ -0,0 +1 @@
|
||||
// To be implemented
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: Some){...}
|
||||
// DISABLE-ERRORS
|
||||
|
||||
class Some
|
||||
|
||||
actual fun <caret>foo(some: Some) {}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: Some){...}
|
||||
// DISABLE-ERRORS
|
||||
|
||||
class Some
|
||||
|
||||
actual fun foo(some: Some) {}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
// To be implemented
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: List<Some>){...}
|
||||
// DISABLE-ERRORS
|
||||
|
||||
class Some
|
||||
|
||||
actual fun <caret>foo(some: List<Some>) {}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: List<Some>){...}
|
||||
// DISABLE-ERRORS
|
||||
|
||||
class Some
|
||||
|
||||
actual fun foo(some: List<Some>) {}
|
||||
+1
@@ -0,0 +1 @@
|
||||
expect fun <T> createList(): java.util.ArrayList<T>
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create expected function in common module proj_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun createList() = ArrayList()
|
||||
// DISABLE-ERRORS
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
actual fun <T> <caret>createList(): ArrayList<T> = ArrayList()
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Create expected function in common module proj_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun createList() = ArrayList()
|
||||
// DISABLE-ERRORS
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
actual fun <T> createList(): ArrayList<T> = ArrayList()
|
||||
@@ -0,0 +1,3 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My
|
||||
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun <caret>foo(param: String) = param.length
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun <caret>foo(param: String) = param.length
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
expect fun foo(i: Int, d: Double, s: String): Boolean
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual fun <caret>foo(i: Int, d: Double, s: String) = s == "$i$d"
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual fun foo(i: Int, d: Double, s: String) = s == "$i$d"
|
||||
+1
@@ -0,0 +1 @@
|
||||
expect inline class <caret>InlineMe(val x: Int)
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual inline class Inline<caret>Me(val x: Int)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual inline class InlineMe actual constructor(actual val x: Int)
|
||||
+1
@@ -0,0 +1 @@
|
||||
expect inline class <caret>InlineMe(val x: Int)
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual inline class InlineMe<caret>(actual val x: Int)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual inline class InlineMe actual constructor(actual val x: Int)
|
||||
@@ -0,0 +1,12 @@
|
||||
expect class <caret>My {
|
||||
class Middle {
|
||||
class Inner() {
|
||||
enum class MyEnum {
|
||||
FOO, TEST;
|
||||
|
||||
fun check(): String
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My<caret> {
|
||||
class Middle() {
|
||||
class Inner actual constructor() {
|
||||
enum class MyEnum {
|
||||
FOO, TEST;
|
||||
|
||||
actual fun check() = "42"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My<caret> {
|
||||
actual class Middle() {
|
||||
actual class Inner actual constructor() {
|
||||
actual enum class MyEnum {
|
||||
FOO, TEST;
|
||||
|
||||
actual fun check() = "42"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
inner class Nested(s: String) {
|
||||
fun hello(): String
|
||||
var ss: String
|
||||
|
||||
class OtherNested(d: Double) {
|
||||
val dd: Double
|
||||
var d: Double
|
||||
}
|
||||
|
||||
val s: String
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual inner class <caret>Nested actual constructor(actual val s: String) {
|
||||
actual fun hello() = s
|
||||
|
||||
actual var ss = s
|
||||
|
||||
actual class OtherNested actual constructor(actual var d: Double) {
|
||||
actual val dd = d
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual inner class <caret>Nested actual constructor(actual val s: String) {
|
||||
actual fun hello() = s
|
||||
|
||||
actual var ss = s
|
||||
|
||||
actual class OtherNested actual constructor(actual var d: Double) {
|
||||
actual val dd = d
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
@@ -0,0 +1,25 @@
|
||||
// "Create expected function in common module testModule_Common" "false"
|
||||
// ACTION: Convert member to extension
|
||||
// ACTION: Convert to block body
|
||||
// ACTION: Create expected class in common module testModule_Common
|
||||
// ACTION: Move to companion object
|
||||
// ACTION: Remove 'actual' modifier
|
||||
// ACTION: Remove explicit type specification
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun <caret>foo(param: String): Int = 42
|
||||
|
||||
actual fun String.bar(y: Double): Boolean = true
|
||||
|
||||
actual fun baz() {}
|
||||
|
||||
actual constructor(flag: Boolean) {}
|
||||
|
||||
actual val isGood: Boolean
|
||||
get() = true
|
||||
actual var status: Int
|
||||
get() = 0
|
||||
set(value) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
expect class <caret>My {
|
||||
fun foo(param: String): Int
|
||||
fun String.bar(y: Double): Boolean
|
||||
fun baz()
|
||||
|
||||
constructor(flag: Boolean)
|
||||
|
||||
val isGood: Boolean
|
||||
var status: Int
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun <caret>foo(param: String): Int = 42
|
||||
|
||||
actual fun String.bar(y: Double): Boolean = true
|
||||
|
||||
actual fun baz() {}
|
||||
|
||||
actual constructor(flag: Boolean) {}
|
||||
|
||||
actual val isGood: Boolean
|
||||
get() = true
|
||||
actual var status: Int
|
||||
get() = 0
|
||||
set(value) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun <caret>foo(param: String): Int = 42
|
||||
|
||||
actual fun String.bar(y: Double): Boolean = true
|
||||
|
||||
actual fun baz() {}
|
||||
|
||||
actual constructor(flag: Boolean) {}
|
||||
|
||||
actual val isGood: Boolean
|
||||
get() = true
|
||||
actual var status: Int
|
||||
get() = 0
|
||||
set(value) {}
|
||||
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
expect class <caret>A()
|
||||
@@ -0,0 +1 @@
|
||||
expect class A
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class A actual constructor()
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class A actual <caret>constructor()
|
||||
@@ -0,0 +1,3 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My
|
||||
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
var s: String
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create expected property in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual var <caret>s: String = "Hello"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Create expected property in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual var <caret>s: String = "Hello"
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user