mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
31 lines
476 B
Nim
31 lines
476 B
Nim
discard """
|
|
cmd: "nim check $options $file"
|
|
action: "reject"
|
|
nimout: '''
|
|
tmetafield.nim(26, 5) Error: 'proc' is not a concrete type; for a callback without parameters use 'proc()'
|
|
tmetafield.nim(27, 5) Error: 'Foo' is not a concrete type
|
|
tmetafield.nim(29, 5) Error: invalid type: 'proc' in this context: 'TBaseMed' for var
|
|
'''
|
|
"""
|
|
|
|
# bug #188
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# line 20
|
|
type
|
|
Foo[T] = object
|
|
x: T
|
|
|
|
TBaseMed = object
|
|
doSmth: proc
|
|
data: seq[Foo]
|
|
|
|
var a: TBaseMed
|
|
|