Misc: Update test data due to changes in 'actual' constructor checking
Now actual class constructor is considered an implementation only if it has 'actual' modifier itself
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C(s: String) {
|
actual class C(s: String) {
|
||||||
constructor(n: Int, b: Boolean): this("")
|
actual constructor(n: Int, b: Boolean): this("")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C(n: Int, b: Boolean) {
|
actual class C actual constructor(n: Int, b: Boolean) {
|
||||||
constructor(s: String): this(1, false)
|
constructor(s: String): this(1, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C(s: String) {
|
actual class C(s: String) {
|
||||||
constructor(n: Int): this("")
|
actual constructor(n: Int): this("")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C<caret>(n: Int) {
|
actual class C actual constructor<caret>(n: Int) {
|
||||||
constructor(s: String): this(1)
|
constructor(s: String): this(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -1,6 +1,8 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C(n: Int)
|
actual class C {
|
||||||
|
actual constructor(n: Int)
|
||||||
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
C(1)
|
C(1)
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C(n: Int)
|
actual class C actual constructor(n: Int)
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
C(1)
|
C(1)
|
||||||
|
|||||||
+3
-1
@@ -1,6 +1,8 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C()
|
actual class C {
|
||||||
|
actual constructor()
|
||||||
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
C()
|
C()
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class <caret>C
|
actual class C actual constructor<caret>()
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
C()
|
C()
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C(s: String) {
|
actual class C(s: String) {
|
||||||
constructor(n: Int, b: Boolean): this("")
|
actual constructor(n: Int, b: Boolean): this("")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C(n: Int, b: Boolean) {
|
actual class C actual constructor(n: Int, b: Boolean) {
|
||||||
constructor(s: String): this(1, false)
|
constructor(s: String): this(1, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C(s: String) {
|
actual class C(s: String) {
|
||||||
<caret>constructor(n: Int): this("")
|
actual <caret>constructor(n: Int): this("")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class C(n: Int) {
|
actual class C actual constructor(n: Int) {
|
||||||
constructor(s: String): this(1)
|
constructor(s: String): this(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(x: Int) {
|
actual class Foo actual constructor(x: Int) {
|
||||||
constructor(s: String): this(0)
|
constructor(s: String): this(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(s: String) {
|
actual class Foo(s: String) {
|
||||||
constructor(x: Int): this("")
|
actual constructor(x: Int): this("")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(/*rename*/n: Int) {
|
actual class Foo actual constructor(/*rename*/n: Int) {
|
||||||
constructor(s: String): this(0)
|
constructor(s: String): this(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(s: String) {
|
actual class Foo(s: String) {
|
||||||
constructor(n: Int): this("")
|
actual constructor(n: Int): this("")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(x: Int) {
|
actual class Foo actual constructor (x: Int) {
|
||||||
constructor(s: String): this(0)
|
constructor(s: String): this(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(s: String) {
|
actual class Foo(s: String) {
|
||||||
constructor(x: Int): this("")
|
actual constructor(x: Int): this("")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(n: Int) {
|
actual class Foo actual constructor (n: Int) {
|
||||||
constructor(s: String): this(0)
|
constructor(s: String): this(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(s: String) {
|
actual class Foo(s: String) {
|
||||||
constructor(/*rename*/n: Int): this("")
|
actual constructor(/*rename*/n: Int): this("")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo() {
|
actual class Foo actual constructor() {
|
||||||
val x = n + 1
|
val x = n + 1
|
||||||
constructor(s: String): this(0)
|
constructor(s: String): this(0)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(s: String) {
|
actual class Foo(s: String) {
|
||||||
constructor(): this("") {
|
actual constructor(): this("") {
|
||||||
val x = n + 1
|
val x = n + 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(<caret>n: Int) {
|
actual class Foo actual constructor(<caret>n: Int) {
|
||||||
val x = n + 1
|
val x = n + 1
|
||||||
constructor(s: String): this(0)
|
constructor(s: String): this(0)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(s: String) {
|
actual class Foo(s: String) {
|
||||||
constructor(n: Int): this("") {
|
actual constructor(n: Int): this("") {
|
||||||
val x = n + 1
|
val x = n + 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo() {
|
actual class Foo actual constructor() {
|
||||||
val x = n + 1
|
val x = n + 1
|
||||||
constructor(s: String): this(0)
|
constructor(s: String): this(0)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(s: String) {
|
actual class Foo(s: String) {
|
||||||
constructor(): this("") {
|
actual constructor(): this("") {
|
||||||
val x = n + 1
|
val x = n + 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(n: Int) {
|
actual class Foo actual constructor(n: Int) {
|
||||||
val x = n + 1
|
val x = n + 1
|
||||||
constructor(s: String): this(0)
|
constructor(s: String): this(0)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
actual class Foo(s: String) {
|
actual class Foo(s: String) {
|
||||||
constructor(<caret>n: Int): this("") {
|
actual constructor(<caret>n: Int): this("") {
|
||||||
val x = n + 1
|
val x = n + 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user