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:
Alexey Sedunov
2018-02-07 13:25:08 +03:00
parent 91a4bbed2e
commit 930e51e30e
28 changed files with 32 additions and 28 deletions
@@ -1,7 +1,7 @@
package test
actual class C(s: String) {
constructor(n: Int, b: Boolean): this("")
actual constructor(n: Int, b: Boolean): this("")
}
fun test() {
@@ -1,6 +1,6 @@
package test
actual class C(n: Int, b: Boolean) {
actual class C actual constructor(n: Int, b: Boolean) {
constructor(s: String): this(1, false)
}
@@ -1,7 +1,7 @@
package test
actual class C(s: String) {
constructor(n: Int): this("")
actual constructor(n: Int): this("")
}
fun test() {
@@ -1,6 +1,6 @@
package test
actual class C<caret>(n: Int) {
actual class C actual constructor<caret>(n: Int) {
constructor(s: String): this(1)
}
@@ -1,6 +1,8 @@
package test
actual class C(n: Int)
actual class C {
actual constructor(n: Int)
}
fun test() {
C(1)
@@ -1,6 +1,6 @@
package test
actual class C(n: Int)
actual class C actual constructor(n: Int)
fun test() {
C(1)
@@ -1,6 +1,8 @@
package test
actual class C()
actual class C {
actual constructor()
}
fun test() {
C()
@@ -1,6 +1,6 @@
package test
actual class <caret>C
actual class C actual constructor<caret>()
fun test() {
C()
@@ -1,7 +1,7 @@
package test
actual class C(s: String) {
constructor(n: Int, b: Boolean): this("")
actual constructor(n: Int, b: Boolean): this("")
}
fun test() {
@@ -1,6 +1,6 @@
package test
actual class C(n: Int, b: Boolean) {
actual class C actual constructor(n: Int, b: Boolean) {
constructor(s: String): this(1, false)
}
@@ -1,7 +1,7 @@
package test
actual class C(s: String) {
<caret>constructor(n: Int): this("")
actual <caret>constructor(n: Int): this("")
}
fun test() {
@@ -1,6 +1,6 @@
package test
actual class C(n: Int) {
actual class C actual constructor(n: Int) {
constructor(s: String): this(1)
}