This commit is contained in:
Ganesh Viswanathan 2018-09-12 12:00:01 -05:00
commit 9b2115558b
3 changed files with 21 additions and 0 deletions

10
tests/types/t6969.nim Normal file
View file

@ -0,0 +1,10 @@
discard """
errormsg: "invalid type: 'object' for var"
line: 6
"""
var a: object a: int
# or
var b: ref object a: int
# or
var c: ptr object a: int