Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #632 If in a Range, error "Floats aren't allowed in Ranges"; otherwise, error "Float literals are not allowed in types. Use float() instead.".
- Loading branch information
1 parent
772516a
commit 6baf9a0
Showing
3 changed files
with
50 additions
and
7 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
2 changes: 2 additions & 0 deletions
2
testData/org/elixir_lang/annotator/module_attribute/issue_632.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,2 @@ | ||
@type unity <error descr="Float literals are not allowed in types: use float() instead">1.0</error> | ||
@type percentage_change -100.0..<error descr="Floats aren't allowed in Ranges">100.0</error> |
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