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.
@nospecialize(::T)
1 parent fcdbfe5 commit 38a8a6cCopy full SHA for 38a8a6c
src/macroexpand.scm
@@ -210,7 +210,8 @@
210
((atom? v) '())
211
(else
212
(case (car v)
213
- ((... kw |::| =) (try-arg-name (cadr v)))
+ ((|::|) (if (length= v 2) '() (try-arg-name (cadr v))))
214
+ ((... kw =) (try-arg-name (cadr v)))
215
((escape) (list v))
216
((hygienic-scope) (try-arg-name (cadr v)))
217
((meta) ;; allow certain per-argument annotations
test/syntax.jl
@@ -2686,3 +2686,9 @@ macro m_begin_hygiene(a)
2686
end
2687
2688
@test @m_begin_hygiene([1, 2, 3]) == 1
2689
+
2690
+macro m_nospecialize_unnamed_hygiene()
2691
+ return :(f(@nospecialize(::Any)) = Any)
2692
+end
2693
2694
+@test @m_nospecialize_unnamed_hygiene()(1) === Any
0 commit comments