From 20b5f31c03fb556ec0aa2428a40adbac004d8987 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 13 Jan 2014 02:10:03 +0100 Subject: new tester; all tests categorized --- tests/objvariant/temptycaseobj.nim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/objvariant/temptycaseobj.nim (limited to 'tests/objvariant/temptycaseobj.nim') diff --git a/tests/objvariant/temptycaseobj.nim b/tests/objvariant/temptycaseobj.nim new file mode 100644 index 000000000..5c012746e --- /dev/null +++ b/tests/objvariant/temptycaseobj.nim @@ -0,0 +1,14 @@ +discard """ + line: 11 + errormsg: "identifier expected, but found 'keyword of'" +""" + +type + TMyEnum = enum enA, enU, enO + TMyCase = object + case e: TMyEnum + of enA: + of enU: x, y: int + of enO: a, b: string + + -- cgit 1.4.1-2-gfad0 nches'> This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/lib/pure/marshal.nim
blob: 789f6ad767214bfedd369a9d5af8afc53f5dd9c2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10