use "destructuring declarations" term instead of "multi-declarations"
This commit is contained in:
+4
-4
@@ -1,7 +1,7 @@
|
||||
// FILE: first.before.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component2()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component2()' function
|
||||
|
||||
package testing
|
||||
|
||||
@@ -27,8 +27,8 @@ operator fun Some.component2() = 3
|
||||
|
||||
// FILE: first.after.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component2()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component2()' function
|
||||
|
||||
package testing
|
||||
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
// FILE: first.before.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component2()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component2()' function
|
||||
|
||||
package testing
|
||||
|
||||
@@ -36,8 +36,8 @@ operator fun Some.component2() = 3
|
||||
|
||||
// FILE: first.after.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component2()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component2()' function
|
||||
|
||||
package testing
|
||||
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
// FILE: first.before.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component2()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component2()' function
|
||||
|
||||
package testing
|
||||
|
||||
@@ -35,8 +35,8 @@ operator fun Some.component1() = 1
|
||||
|
||||
// FILE: first.after.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component2()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component2()' function
|
||||
|
||||
package testing
|
||||
|
||||
|
||||
Vendored
+4
-4
@@ -1,7 +1,7 @@
|
||||
// FILE: first.before.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type aaa.Some must have a 'component1()' function
|
||||
// ERROR: Multi-declaration initializer of type aaa.Some must have a 'component2()' function
|
||||
// ERROR: Destructuring declaration initializer of type aaa.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type aaa.Some must have a 'component2()' function
|
||||
|
||||
package testing
|
||||
|
||||
@@ -37,8 +37,8 @@ operator fun Some.component2() = 3
|
||||
|
||||
// FILE: first.after.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type aaa.Some must have a 'component1()' function
|
||||
// ERROR: Multi-declaration initializer of type aaa.Some must have a 'component2()' function
|
||||
// ERROR: Destructuring declaration initializer of type aaa.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type aaa.Some must have a 'component2()' function
|
||||
|
||||
package testing
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// FILE: first.before.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component1()' function
|
||||
|
||||
package testing
|
||||
|
||||
@@ -26,7 +26,7 @@ operator fun Some.component2() = 3
|
||||
|
||||
// FILE: first.after.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component1()' function
|
||||
|
||||
package testing
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// FILE: first.before.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component2()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component2()' function
|
||||
|
||||
package testing
|
||||
|
||||
@@ -26,7 +26,7 @@ operator fun Some.component2() = 3
|
||||
|
||||
// FILE: first.after.kt
|
||||
// "Import" "true"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component2()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component2()' function
|
||||
|
||||
package testing
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// FILE: first.before.kt
|
||||
// "Import" "false"
|
||||
// ERROR: Multi-declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type some.Some must have a 'component1()' function
|
||||
// ACTION: Create extension function 'component1'
|
||||
// ACTION: Create member function 'component1'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user