summary refs log tree commit diff stats
path: root/tests/reject/topaque.nim
blob: ac390835b4be78ff4c4a010c53788b91d7c21aa7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  file: "topaque.nim"
  line: 16
  errormsg: "undeclared field: \'buffer\'"
"""
# Test the new opaque types

import 
  mopaque
  
var
  L: TLexer
  
L.filename = "ha"
L.line = 34
L.buffer[0] = '\0' #ERROR_MSG undeclared field: 'buffer'