Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,7 @@
`(block
(= ,rr (where ,type-ex ,@params))
(,(if allow-local 'assign-const-if-global 'const) ,name ,rr)
(latestworld-if-toplevel)
,rr)))
(expand-forms
`(const (= ,name ,type-ex)))))
Expand Down
7 changes: 7 additions & 0 deletions test/syntax.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4081,3 +4081,10 @@ end

# Ambiguous 1-arg anymous vs macrosig
@test_parseerror "function (@foo(a)) end"

# #57267 - Missing `latestworld` after typealias
abstract type A57267{S, T} end
@test_nowarn @eval begin
B57267{S} = A57267{S, 1}
const C57267 = B57267
end