Skip to content

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed
 

‎src/julia-syntax.scm

+4-4
Original file line numberDiff line numberDiff line change
@@ -715,12 +715,12 @@
715715
(define (ctor-signature name params bounds method-params sig)
716716
(if (null? params)
717717
(if (null? method-params)
718-
(cons `(call (|::| (curly Type ,name)) ,@sig)
718+
(cons `(call (|::| (curly (core Type) ,name)) ,@sig)
719719
params)
720-
(cons `(call (curly (|::| (curly Type ,name)) ,@method-params) ,@sig)
720+
(cons `(call (curly (|::| (curly (core Type) ,name)) ,@method-params) ,@sig)
721721
params))
722722
(if (null? method-params)
723-
(cons `(call (curly (|::| (curly Type (curly ,name ,@params)))
723+
(cons `(call (curly (|::| (curly (core Type) (curly ,name ,@params)))
724724
,@(map (lambda (p b) `(<: ,p ,b)) params bounds))
725725
,@sig)
726726
params)
@@ -729,7 +729,7 @@
729729
(gensy)
730730
p))
731731
params)))
732-
(cons `(call (curly (|::| (curly Type (curly ,name ,@new-params)))
732+
(cons `(call (curly (|::| (curly (core Type) (curly ,name ,@new-params)))
733733
,@(map (lambda (p b) `(<: ,p ,b)) new-params bounds)
734734
,@method-params)
735735
,@sig)

‎test/parse.jl

+7
Original file line numberDiff line numberDiff line change
@@ -811,3 +811,10 @@ end
811811
```.head == :if
812812

813813
end
814+
815+
# issue 18756
816+
module Mod18756
817+
type Type
818+
end
819+
end
820+
@test method_exists(Mod18756.Type, ())

0 commit comments

Comments
 (0)
Please sign in to comment.