Add a dialog to select members for export in expect class
#KT-31476 Fixed #KT-31446 Fixed #KT-31033 Fixed
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
// My: to be implemented
|
||||
// DISABLE-ERRORS
|
||||
expect annotation class My(val x: Int, val y: Double)
|
||||
expect annotation class <caret>My(val x: Int, val y: Double)
|
||||
@@ -1,4 +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)
|
||||
actual annotation class <caret>My actual constructor(actual val x: Int, actual val y: Double)
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create expected annotation class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual annotation class My(actual val x: Int, actual val y: Double)
|
||||
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)
|
||||
idea/testData/multiModuleQuickFix/expectClassWithConstructorWithParametersWithoutValVar/common/My.kt
Vendored
+1
@@ -0,0 +1 @@
|
||||
// DISABLE-ERRORS
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
expect class <caret>My(a: Int, b: String) {
|
||||
fun foo(param: String): Int
|
||||
val a: Int
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My<caret> actual constructor(actual val a: Int, b: String) {
|
||||
actual fun foo(param: String) = param.length
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My actual constructor(actual val a: Int, b: String) {
|
||||
actual fun foo(param: String) = param.length
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
// DISABLE-ERRORS
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// DISABLE-ERRORS
|
||||
expect class <caret>My {
|
||||
constructor()
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My<caret>(val a: Int) {
|
||||
fun foo(param: String) = param.length
|
||||
|
||||
actual constructor(): this(42)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My(val a: Int) {
|
||||
fun foo(param: String) = param.length
|
||||
|
||||
actual constructor(): this(42)
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
// DISABLE-ERRORS
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// DISABLE-ERRORS
|
||||
expect class <caret>My(a: Int) {
|
||||
val text: String
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My<caret> actual constructor(val a: Int) {
|
||||
fun foo(param: String) = param.length
|
||||
actual val text: String = "test"
|
||||
constructor(): this(42)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My actual constructor(val a: Int) {
|
||||
fun foo(param: String) = param.length
|
||||
actual val text: String = "test"
|
||||
constructor(): this(42)
|
||||
}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
<caret>expect inline class InlineMe(val x: Int)
|
||||
expect inline class <caret>InlineMe(val x: Int)
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual inline class Inline<caret>Me actual constructor(val x: Int)
|
||||
actual inline class Inline<caret>Me(val x: Int)
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual inline class InlineMe actual constructor(val x: Int)
|
||||
actual inline class InlineMe actual constructor(actual val x: Int)
|
||||
@@ -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)
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,12 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual inner class <caret>Nested(actual val s: String) {
|
||||
actual inner class <caret>Nested actual constructor(actual val s: String) {
|
||||
actual fun hello() = s
|
||||
|
||||
actual var ss = s
|
||||
|
||||
actual class OtherNested(actual var d: Double) {
|
||||
actual class OtherNested actual constructor(actual var d: Double) {
|
||||
actual val dd = d
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
actual class My {
|
||||
actual inner class <caret>Nested(actual val s: String) {
|
||||
actual inner class <caret>Nested actual constructor(actual val s: String) {
|
||||
actual fun hello() = s
|
||||
|
||||
actual var ss = s
|
||||
|
||||
actual class OtherNested(actual var d: Double) {
|
||||
actual class OtherNested actual constructor(actual var d: Double) {
|
||||
actual val dd = d
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user