forked from Mirror/wren
wren/compiler: Allow multiline empty parameter lists and calls. (#925)
This commit is contained in:
19
test/language/method/no_parameters_new_line.wren
Normal file
19
test/language/method/no_parameters_new_line.wren
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
class Foo {
|
||||
static call(
|
||||
) {
|
||||
System.print("Success") // expect: Success
|
||||
}
|
||||
|
||||
construct new () {}
|
||||
|
||||
call(
|
||||
) {
|
||||
System.print("Success") // expect: Success
|
||||
}
|
||||
}
|
||||
|
||||
Foo.call(
|
||||
)
|
||||
Foo.new().call(
|
||||
)
|
||||
Reference in New Issue
Block a user