Skip to content

Commit c572719

Browse files
committed
Add missing latestworld after parameterized type alias
Fixes #57267
1 parent b65f004 commit c572719

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/julia-syntax.scm

+1
Original file line numberDiff line numberDiff line change
@@ -1480,6 +1480,7 @@
14801480
`(block
14811481
(= ,rr (where ,type-ex ,@params))
14821482
(,(if allow-local 'assign-const-if-global 'const) ,name ,rr)
1483+
(latestworld-if-toplevel)
14831484
,rr)))
14841485
(expand-forms
14851486
`(const (= ,name ,type-ex)))))

test/syntax.jl

+7
Original file line numberDiff line numberDiff line change
@@ -4081,3 +4081,10 @@ end
40814081

40824082
# Ambiguous 1-arg anymous vs macrosig
40834083
@test_parseerror "function (@foo(a)) end"
4084+
4085+
# #57267 - Missing `latestworld` after typealias
4086+
abstract type A57267{S, T} end
4087+
@test_nowarn @eval begin
4088+
B57267{S} = A57267{S, 1}
4089+
const C57267 = B57267
4090+
end

0 commit comments

Comments
 (0)