Require parentheses around operator and setter arguments.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Foo {
|
||||
new(value) { _value = value }
|
||||
toString { _value }
|
||||
bar = value {
|
||||
bar=(value) {
|
||||
_value = value
|
||||
return value
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
bar = value { value }
|
||||
bar=(value) { value }
|
||||
}
|
||||
|
||||
var foo = new Foo
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
bar = value { value }
|
||||
bar=(value) { value }
|
||||
}
|
||||
|
||||
var foo = new Foo
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
bar = value {
|
||||
bar=(value) {
|
||||
IO.print(value)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
bar = value { value }
|
||||
bar=(value) { value }
|
||||
}
|
||||
|
||||
var foo = new Foo
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
bar = value { value }
|
||||
bar=(value) { value }
|
||||
}
|
||||
|
||||
var foo = new Foo
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
bar = value { "result" }
|
||||
bar=(value) { "result" }
|
||||
}
|
||||
|
||||
var foo = new Foo
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
bar = value { IO.print("set") }
|
||||
bar=(value) { IO.print("set") }
|
||||
bar { IO.print("get") }
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Foo {
|
||||
static bar = value {
|
||||
static bar=(value) {
|
||||
IO.print(value)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user