mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 19:52:36 +00:00
fixes #24552
Could also implement `{.used.}` for imports but this wouldn't be
backwards compatible. The same problem as #24552 also exists for
`{.hint[XDeclaredButNotUsed].}` but this isn't as much of a problem
since `{.used.}`/`{.push used.}` exist.
(cherry picked from commit 986ca7dcd4)
17 lines
205 B
Nim
17 lines
205 B
Nim
discard """
|
|
action: compile
|
|
matrix: "--hints:off"
|
|
nimoutFull: true
|
|
nimout: '''
|
|
'''
|
|
"""
|
|
|
|
# issue #24552
|
|
|
|
{.push warning[UnusedImport]: off.}
|
|
import tables
|
|
{.pop.}
|
|
|
|
proc test*(a: float): float =
|
|
a
|