mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 13:07:48 +00:00
24 lines
469 B
Nim
24 lines
469 B
Nim
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
|