-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from sodapopcan/allow-defeffect-with-no-parens
Do not require parens for `defeffect`
- Loading branch information
Showing
3 changed files
with
24 additions
and
2 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
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 |
---|---|---|
|
@@ -28,4 +28,9 @@ defmodule EfxCase.EfxExample do | |
defeffect multi_fun(string) do | ||
string | ||
end | ||
|
||
@spec without_parens :: atom | ||
defeffect without_parens do | ||
Check warning on line 33 in test/support/efx_example.ex GitHub Actions / Test on OTP 25.0.4 / Elixir 1.14.0
|
||
:ok | ||
end | ||
end |