Skip to content

Commit

Permalink
float parsing: Add test for a fixed issue
Browse files Browse the repository at this point in the history
Fixes nim-lang#14407 .

This issue was fixed by nim-lang#18139.
  • Loading branch information
kaushalmodi committed Jun 23, 2021
1 parent 63456c6 commit 915be25
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/errmsgs/t14407.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
discard """
nimout: '''
t14407.nim(11, 3) Hint: 'v0.99' is declared but not used [XDeclaredButNotUsed]
t14407.nim(12, 3) Hint: 'v0.99.99' is declared but not used [XDeclaredButNotUsed]
'''
action: compile
"""

# https://github.com/nim-lang/Nim/issues/14407
let
`v0.99` = "0.99"
`v0.99.99` = "0.99.99"

0 comments on commit 915be25

Please sign in to comment.