Skip to content

Commit 9140a54

Browse files
committed
fix tests
1 parent ec5d3d0 commit 9140a54

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/elixir_sense/core/compiler_test.exs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,9 +1018,24 @@ defmodule ElixirSense.Core.CompilerTest do
10181018

10191019
{{:->, meta, args}, state}
10201020

1021+
{:fn, meta, args} = _node, state ->
1022+
meta =
1023+
if Version.match?(System.version(), ">= 1.19.0-rc.0") do
1024+
Keyword.delete(meta, :capture)
1025+
else
1026+
meta
1027+
end
1028+
{{:fn, meta, args}, state}
1029+
10211030
{:capture, meta, nil} = _node, state ->
10221031
# elixir changes the name to capture and does different counter tracking
10231032
meta = Keyword.delete(meta, :counter)
1033+
meta =
1034+
if Version.match?(System.version(), ">= 1.19.0-rc.0") do
1035+
Keyword.delete(meta, :capture)
1036+
else
1037+
meta
1038+
end
10241039
{{:capture, meta, nil}, state}
10251040

10261041
node, state ->

0 commit comments

Comments
 (0)