Skip to content

Commit 53f3515

Browse files
committed
thisfunction error should refer to macro
1 parent 8433123 commit 53f3515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/julia-syntax.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3006,7 +3006,7 @@
30063006

30073007
(define (check-no-thisfunction e)
30083008
(if (has-thisfunction? e)
3009-
(error "\"thisfunction\" not allowed inside comprehension or generator")))
3009+
(error "\"@__FUNCTION__\" not allowed inside comprehension or generator")))
30103010

30113011
(define (has-break-or-continue? e)
30123012
(expr-contains-p (lambda (x) (and (pair? x) (memq (car x) '(break continue))))

0 commit comments

Comments
 (0)