cx
cx copied to clipboard
No compilation error when using empty argument list after function call
@asahi3g commented on Mar 12
To Reproduce
package main
func foo()() {
printf("foo\n")
}
func main()() {
foo() ()
}
Expected behavior Compilation error
Screenshots
foo
Desktop:
- OS: Linux
- CX Version : 0.6.1, d8775bf
It appeares parenthesis after foo()
are being ignored.
Writing this in code, doesn't give error either:
foo() ()()()()()()()()