Change signature fix: correct parameter add / remove from enum constructor calls, relevant test fixes
This commit is contained in:
Vendored
+3
-3
@@ -4,9 +4,9 @@
|
||||
// ERROR: No value passed for parameter foo
|
||||
|
||||
enum class E {
|
||||
A
|
||||
B
|
||||
C
|
||||
A,
|
||||
B,
|
||||
C;
|
||||
|
||||
val t: Int = <caret>foo
|
||||
}
|
||||
+3
-3
@@ -4,9 +4,9 @@
|
||||
// ERROR: No value passed for parameter foo
|
||||
|
||||
enum class E(foo: Int) {
|
||||
A : E()
|
||||
B : E()
|
||||
C : E()
|
||||
A(),
|
||||
B(),
|
||||
C();
|
||||
|
||||
val t: Int = foo
|
||||
}
|
||||
Vendored
+2
-2
@@ -4,9 +4,9 @@
|
||||
// ERROR: No value passed for parameter foo
|
||||
|
||||
enum class E {
|
||||
A
|
||||
A,
|
||||
B {
|
||||
val t: Int = <caret>foo
|
||||
}
|
||||
},
|
||||
C
|
||||
}
|
||||
+4
-4
@@ -4,9 +4,9 @@
|
||||
// ERROR: No value passed for parameter foo
|
||||
|
||||
enum class E(val foo: Int) {
|
||||
A : E()
|
||||
B : E() {
|
||||
A(),
|
||||
B() {
|
||||
val t: Int = foo
|
||||
}
|
||||
C : E()
|
||||
},
|
||||
C()
|
||||
}
|
||||
Reference in New Issue
Block a user