parent
a0aa8fa857
commit
347a04606b
3 changed files with 18 additions and 2 deletions
3
tests/tools/second.nim
Normal file
3
tests/tools/second.nim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import tables
|
||||
|
||||
let dataEx* = {1: 2, 3: 4}.toTable
|
||||
|
|
@ -2,14 +2,23 @@ discard """
|
|||
cmd: '''nim c --hint[Processing]:off $file'''
|
||||
nimout: '''
|
||||
tunused_imports.nim(11, 10) Warning: BEGIN [User]
|
||||
tunused_imports.nim(27, 10) Warning: END [User]
|
||||
tunused_imports.nim(25, 8) Warning: imported and not used: 'strutils' [UnusedImport]
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue