mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 14:03:23 +00:00
37 lines
602 B
Nim
37 lines
602 B
Nim
discard """
|
|
cmd: '''nim c --hint[Processing]:off $file'''
|
|
nimout: '''
|
|
tunused_imports.nim(11, 10) Warning: BEGIN [User]
|
|
tunused_imports.nim(36, 10) Warning: END [User]
|
|
tunused_imports.nim(34, 8) Warning: imported and not used: 'strutils' [UnusedImport]
|
|
'''
|
|
action: "compile"
|
|
"""
|
|
|
|
{.warning: "BEGIN".}
|
|
|
|
# bug #12885
|
|
|
|
import tables, second
|
|
|
|
template test(key: int): untyped =
|
|
`[]`(dataEx, key)
|
|
|
|
echo test(1)
|
|
|
|
import net, dontmentionme
|
|
|
|
echo AF_UNIX
|
|
|
|
import macros
|
|
# bug #11809
|
|
macro bar(): untyped =
|
|
template baz() = discard
|
|
result = getAst(baz())
|
|
|
|
bar()
|
|
|
|
import strutils
|
|
|
|
{.warning: "END".}
|