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 10, 2021
1 parent 3481ff6 commit 76ca2fd
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions tests/errmsgs/treportunused.nim
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
discard """
nimout: '''
treportunused.nim(19, 10) Hint: 's1' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(26, 5) Hint: 's8' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(22, 6) Hint: 's4' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(25, 7) Hint: 's7' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(24, 7) Hint: 's6' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(23, 6) Hint: 's5' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(20, 10) Hint: 's2' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(29, 6) Hint: 's11' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(27, 5) Hint: 's9' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(21, 10) Hint: 's3' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(28, 6) Hint: 's10' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(28, 5) Hint: 's8' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(35, 3) Hint: 'v0.99' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(36, 3) Hint: 'v0.99.99' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(26, 7) Hint: 's6' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(25, 6) Hint: 's5' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(22, 10) Hint: 's2' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(23, 10) Hint: 's3' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(30, 6) Hint: 's10' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(21, 10) Hint: 's1' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(24, 6) Hint: 's4' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(27, 7) Hint: 's7' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(31, 6) Hint: 's11' is declared but not used [XDeclaredButNotUsed]
treportunused.nim(29, 5) Hint: 's9' is declared but not used [XDeclaredButNotUsed]
'''
action: compile
"""
Expand All @@ -27,3 +29,8 @@ let s8 = 0
var s9: int
type s10 = object
type s11 = type(1.2)

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

0 comments on commit 76ca2fd

Please sign in to comment.