blob: 31d6cf7d7a8135ecd0b12f0a8f02ea205da3b5e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
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".}
|