added a test case for bug #6776
This commit is contained in:
parent
1548743856
commit
c59ab1d9c6
1 changed files with 23 additions and 0 deletions
23
tests/errmsgs/tmake_tuple_visible.nim
Normal file
23
tests/errmsgs/tmake_tuple_visible.nim
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
discard """
|
||||
errormsg: '''got (tuple of (type NimEdAppWindow, int))'''
|
||||
line: 22
|
||||
nimout: '''got (tuple of (type NimEdAppWindow, int))
|
||||
but expected one of:
|
||||
template xxx(tn: typedesc; i: int)'''
|
||||
"""
|
||||
|
||||
type
|
||||
NimEdAppWindow = ptr NimEdAppWindowObj
|
||||
NimEdAppWindowObj = object
|
||||
i: int
|
||||
|
||||
template gDefineTypeExtended*(tn: typeDesc) =
|
||||
discard
|
||||
|
||||
gDefineTypeExtended (NimEdAppWindow)
|
||||
|
||||
template xxx*(tn: typeDesc, i: int) =
|
||||
discard
|
||||
|
||||
xxx (NimEdAppWindow, 0)
|
||||
# bug #6776
|
||||
Loading…
Add table
Add a link
Reference in a new issue