Skip to content

Commit

Permalink
Make type more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
Goose97 committed Aug 30, 2023
1 parent 3fad3c5 commit de4e73d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/elixir_sense/core/metadata_builder_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
end

test "struct guards" do
assert %VarInfo{name: :x, type: :struct} = var_with_guards("is_struct(x)")
assert %VarInfo{name: :x, type: {:struct, [], nil, nil}} = var_with_guards("is_struct(x)")

assert %VarInfo{name: :x, type: {:struct, [], {:atom, URI}, nil}} =
var_with_guards("is_struct(x, URI)")
Expand Down

0 comments on commit de4e73d

Please sign in to comment.