File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ function normalise(ex)
81
81
return ex
82
82
end
83
83
84
+ # No longer removed from macro calls
85
+ match (:: LineNumberNode , :: LineNumberNode , _) = nothing
86
+
84
87
function match (pat, ex, env)
85
88
pat = normalise (pat)
86
89
pat == :_ && return env
Original file line number Diff line number Diff line change 43
43
@capture (ex, mutable struct T_ fields__ end )
44
44
@test T == :Foo
45
45
@test fields == [:(x:: Int ), :y ]
46
-
46
+
47
47
@capture (ex, mutable struct T_ fields__ end )
48
48
@test T == :Foo
49
49
@test fields == [:(x:: Int ), :y ]
87
87
@test isexpr (x, :kw )
88
88
end
89
89
90
+ let
91
+ ex = :(@foo (a,b))
92
+ @capture (ex, @foo (a_,b_))
93
+ @test (a, b) == (:a , :b )
94
+ end
95
+
90
96
macro nothing_macro ()
91
97
end
92
98
@test @expand (@nothing_macro ) === nothing
You can’t perform that action at this time.
0 commit comments