We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa32ff9 commit 1565e57Copy full SHA for 1565e57
src/julia-parser.scm
@@ -1329,7 +1329,8 @@
1329
1330
(define (valid-func-sig? paren sig)
1331
(and (pair? sig)
1332
- (or (memq (car sig) '(macrocall call tuple))
+ (or (memq (car sig) '(call tuple))
1333
+ (and (not paren) (eq? (car sig) 'macrocall))
1334
(and paren (eq? (car sig) 'block))
1335
(and paren (eq? (car sig) '...))
1336
(and (eq? (car sig) '|::|)
test/syntax.jl
@@ -3932,3 +3932,6 @@ end
3932
@test callme(2.0) === 2
3933
@test callme(3, 3) === 3
3934
@test callme(4, 4, 4) === 4.0
3935
+
3936
+# Ambiguous 1-arg anymous vs macrosig
3937
+@test_parseerror "function (@foo(a)) end"
0 commit comments