use "destructuring declarations" term instead of "multi-declarations"

This commit is contained in:
Dmitry Jemerov
2015-11-16 16:03:46 +01:00
parent ba47bfa752
commit bf35099e0c
14 changed files with 47 additions and 47 deletions
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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,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'