Tests: extract addMissingActualMembers from multiModuleQuickFix/other
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "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
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect object O {
|
||||
fun <T : Any> hello(): MutableMap<String, T>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect object O {
|
||||
fun <T : Any> hello(): MutableMap<String, T>
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual object <caret>O {
|
||||
fun <T> hello(): MutableMap<String, T> {
|
||||
TODO("not implemented")
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "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
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My() {
|
||||
fun test()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My() {
|
||||
fun test()
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
actual constructor()
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual constructor()
|
||||
|
||||
actual fun test() {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My(a: Int, b: String) {
|
||||
fun test()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My(a: Int, b: String) {
|
||||
fun test()
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
actual constructor(a: Int, b: String)
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual constructor(a: Int, b: String)
|
||||
|
||||
actual fun test() {
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My(a: Int, b: String) {
|
||||
fun test()
|
||||
|
||||
constructor(b: String, a: Int)
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My(a: Int, b: String) {
|
||||
fun test()
|
||||
|
||||
constructor(b: String, a: Int)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
actual constructor(b: String, a: Int)
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "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() {
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
|
||||
fun foo(param: Int): Int
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
|
||||
fun foo(param: Int): Int
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
fun foo(param: String) = 42
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "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
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
val name: String
|
||||
|
||||
val age: String
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
val name: String
|
||||
|
||||
val age: String
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My(actual val name: String)
|
||||
idea/testData/multiModuleQuickFix/addMissingActualMembers/classPropertyInConstructor/jvm/My.kt.after
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "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.
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
|
||||
val x: String
|
||||
|
||||
val pi: Double
|
||||
|
||||
val correct: Boolean
|
||||
}
|
||||
idea/testData/multiModuleQuickFix/addMissingActualMembers/classSomeProperties/header/header.kt.after
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
fun foo(param: String): Int
|
||||
|
||||
val x: String
|
||||
|
||||
val pi: Double
|
||||
|
||||
val correct: Boolean
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My {
|
||||
actual fun foo(param: String) = 42
|
||||
|
||||
actual val correct = true
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// "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
@@ -0,0 +1,6 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
// Incompilable function
|
||||
fun foo() {}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My {
|
||||
// Incompilable function
|
||||
fun foo() {}
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>My
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual fun foo() {
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithCompanion {
|
||||
companion object {
|
||||
fun foo()
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithCompanion {
|
||||
companion object {
|
||||
fun foo()
|
||||
}
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>WithCompanion {
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class WithCompanion {
|
||||
actual companion object {
|
||||
actual fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
idea/testData/multiModuleQuickFix/addMissingActualMembers/primaryConstructorAbsence/header/header.kt
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithPrimaryConstructor(x: Int, s: String) {
|
||||
fun bar(x: String)
|
||||
|
||||
val z: Double
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithPrimaryConstructor(x: Int, s: String) {
|
||||
fun bar(x: String)
|
||||
|
||||
val z: Double
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>WithPrimaryConstructor {
|
||||
fun bar(x: String) {}
|
||||
|
||||
val z: Double = 3.14
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "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
@@ -0,0 +1,9 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithSecondaryConstructor {
|
||||
constructor(x: Int, s: String)
|
||||
|
||||
fun bar(x: String)
|
||||
|
||||
val z: Double
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class WithSecondaryConstructor {
|
||||
constructor(x: Int, s: String)
|
||||
|
||||
fun bar(x: String)
|
||||
|
||||
val z: Double
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Add missing actual members" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class <caret>WithSecondaryConstructor {
|
||||
fun bar(x: String) {}
|
||||
|
||||
val z: Double = 3.14
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "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