Tests: extract addMissingActualMembers from multiModuleQuickFix/other
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My
|
||||
@@ -1,8 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun foo(param: String): Int {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect object O {
|
||||
fun <T : Any> hello(): MutableMap<String, T>
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect object O {
|
||||
fun <T : Any> hello(): MutableMap<String, T>
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual object <caret>O {
|
||||
fun <T> hello(): MutableMap<String, T> {
|
||||
TODO("not implemented")
|
||||
}
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual object O {
|
||||
fun <T> hello(): MutableMap<String, T> {
|
||||
TODO("not implemented")
|
||||
}
|
||||
|
||||
actual fun <T : Any> hello(): MutableMap<String, T> {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My() {
|
||||
fun test()
|
||||
}
|
||||
Vendored
-5
@@ -1,5 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My() {
|
||||
fun test()
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
actual constructor()
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual constructor()
|
||||
|
||||
actual fun test() {
|
||||
}
|
||||
}
|
||||
Vendored
-5
@@ -1,5 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My(a: Int, b: String) {
|
||||
fun test()
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My(a: Int, b: String) {
|
||||
fun test()
|
||||
}
|
||||
Vendored
-6
@@ -1,6 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
actual constructor(a: Int, b: String)
|
||||
}
|
||||
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual constructor(a: Int, b: String)
|
||||
|
||||
actual fun test() {
|
||||
}
|
||||
}
|
||||
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My(a: Int, b: String) {
|
||||
fun test()
|
||||
|
||||
constructor(b: String, a: Int)
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My(a: Int, b: String) {
|
||||
fun test()
|
||||
|
||||
constructor(b: String, a: Int)
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
actual constructor(b: String, a: Int)
|
||||
}
|
||||
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My actual constructor(a: Int, b: String) {
|
||||
actual constructor(b: String, a: Int)
|
||||
|
||||
actual fun test() {
|
||||
}
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
|
||||
fun foo(param: Int): Int
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
|
||||
fun foo(param: Int): Int
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
fun foo(param: String) = 42
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
fun foo(param: String) = 42
|
||||
actual fun foo(param: Int): Int {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
val name: String
|
||||
|
||||
val age: String
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
val name: String
|
||||
|
||||
val age: String
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My(actual val name: String)
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My(actual val name: String) {
|
||||
actual val age: String
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
|
||||
val x: String
|
||||
|
||||
val pi: Double
|
||||
|
||||
val correct: Boolean
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
|
||||
val x: String
|
||||
|
||||
val pi: Double
|
||||
|
||||
val correct: Boolean
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
actual fun foo(param: String) = 42
|
||||
|
||||
actual val correct = true
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
actual fun foo(param: String) = 42
|
||||
|
||||
actual val correct = true
|
||||
actual val x: String
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
actual val pi: Double
|
||||
get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates.
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
// Incompilable function
|
||||
fun foo() {}
|
||||
}
|
||||
Vendored
-6
@@ -1,6 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
// Incompilable function
|
||||
fun foo() {}
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun foo() {
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithCompanion {
|
||||
companion object {
|
||||
fun foo()
|
||||
}
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithCompanion {
|
||||
companion object {
|
||||
fun foo()
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>WithCompanion {
|
||||
|
||||
}
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class WithCompanion {
|
||||
actual companion object {
|
||||
actual fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithPrimaryConstructor(x: Int, s: String) {
|
||||
fun bar(x: String)
|
||||
|
||||
val z: Double
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithPrimaryConstructor(x: Int, s: String) {
|
||||
fun bar(x: String)
|
||||
|
||||
val z: Double
|
||||
}
|
||||
Vendored
-8
@@ -1,8 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>WithPrimaryConstructor {
|
||||
fun bar(x: String) {}
|
||||
|
||||
val z: Double = 3.14
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class WithPrimaryConstructor actual constructor(x: Int, s: String) {
|
||||
fun bar(x: String) {}
|
||||
|
||||
val z: Double = 3.14
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithSecondaryConstructor {
|
||||
constructor(x: Int, s: String)
|
||||
|
||||
fun bar(x: String)
|
||||
|
||||
val z: Double
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithSecondaryConstructor {
|
||||
constructor(x: Int, s: String)
|
||||
|
||||
fun bar(x: String)
|
||||
|
||||
val z: Double
|
||||
}
|
||||
Vendored
-8
@@ -1,8 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>WithSecondaryConstructor {
|
||||
fun bar(x: String) {}
|
||||
|
||||
val z: Double = 3.14
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class WithSecondaryConstructor {
|
||||
fun bar(x: String) {}
|
||||
|
||||
val z: Double = 3.14
|
||||
|
||||
actual constructor(x: Int, s: String) {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user