This commit is contained in:
Andreas Rumpf 2019-07-03 07:22:30 +02:00 • committed by GitHub
commit 71b7383f12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View file

@ -1,3 +1,7 @@
discard """
output: ''''''
"""
import system
type Bar[T] = ref object
@ -11,3 +15,18 @@ proc Foo[T: Bar[types]](): T =
discard Foo[Bar[int32]]()
#bug #6073
# bug #11479
import tables
proc test() =
discard readfile("temp.nim")
echo "ho"
const
map = {
"test": test,
}.toTable
#map["test"]()