close #9961 by adding a test

This commit is contained in:
narimiran
2019-05-30 12:34:27 +02:00
parent cb71564785
commit 3b73da310c

View File

@@ -0,0 +1,17 @@
discard """
errormsg: "'typedesc' metatype is not valid here; typed '=' instead of ':'?"
file: "typedescs2.nim"
line: 16
"""
# issue #9961
import typetraits
import tables
proc test(v: typedesc) =
echo v.type.name
# This crashes the compiler
const b: typedesc = Table
test b