-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correctly handle end of protocol implementation without for
- Loading branch information
1 parent
83329e2
commit f7c36f8
Showing
3 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/support/fixtures/metadata_builder/alias/after_strct_with_implementation.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defprotocol ElixirSenseExample.ExampleProtocol1 do | ||
@spec some(t) :: any | ||
def some(t) | ||
end | ||
|
||
defmodule ElixirSenseExample.Fixtures.MetadataBuilder.Alias.StructWithImplementation do | ||
defstruct name_version: "", github_relative_path: "" | ||
|
||
defimpl ElixirSenseExample.ExampleProtocol1 do | ||
def some(t), do: t | ||
end | ||
end | ||
|
||
defmodule ElixirSenseExample.Fixtures.MetadataBuilder.Alias.AfterStructWithImplementation do | ||
@env __ENV__ | ||
def env, do: @env | ||
end |