This commit is contained in:
Andrii Riabushenko 2019-07-25 23:07:43 +01:00
commit 95856ab8d3
3 changed files with 30 additions and 2 deletions

View file

@ -0,0 +1,17 @@
discard """
nimout: '''
compile start
Hint: warn_module [Processing]
Hint: hashes [Processing]
warn_module.nim(4, 6) Hint: 'test' is declared but not used [XDeclaredButNotUsed]
compile end
'''
"""
static:
echo "compile start"
import warn_module
static:
echo "compile end"

View file

@ -0,0 +1,7 @@
{.warning[UnusedImport]: off.}
import hashes
proc test(a: float): float =
a