summary refs log tree commit diff stats
path: root/tests/errmsgs/tmake_tuple_visible.nim
blob: 90b965c64d09a588659f0bcc3643be0469b4716a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
discard """
  errormsg: '''Mixing types and values in tuples is not allowed.'''
  line: 19
"""

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