Add actual: handle primary & secondary constructors as compatible
So #KT-23686 Fixed
This commit is contained in:
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
expect class My(a: Int, b: String) {
|
||||
fun test()
|
||||
|
||||
constructor(b: String, a: Int)
|
||||
}
|
||||
Vendored
+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)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user