cx icon indicating copy to clipboard operation
cx copied to clipboard

No compilation error when using empty argument list after function call

Open vidya88 opened this issue 5 years ago • 1 comments

@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

vidya88 avatar Sep 24 '19 05:09 vidya88

It appeares parenthesis after foo() are being ignored. Writing this in code, doesn't give error either:

foo() ()()()()()()()()

archerixx avatar Mar 18 '21 17:03 archerixx