From 515cf985f41dcce7751018ee678109b17b886643 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 7 Nov 2012 01:08:31 +0100 Subject: [PATCH] made some tests green --- lib/pure/irc.nim | 4 +++- tests/reject/teffects1.nim | 2 +- tests/reject/teffects2.nim | 2 +- todo.txt | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/pure/irc.nim b/lib/pure/irc.nim index 24777f952e..921c6b09c6 100644 --- a/lib/pure/irc.nim +++ b/lib/pure/irc.nim @@ -68,7 +68,9 @@ type EvMsg, EvDisconnected TIRCEvent* = object ## IRC Event case typ*: TIRCEventType - of EvDisconnected: nil ## Disconnected from the server + of EvDisconnected: + ## Disconnected from the server + nil of EvMsg: ## Message from the server cmd*: TIRCMType ## Command (e.g. PRIVMSG) nick*, user*, host*, servername*: string diff --git a/tests/reject/teffects1.nim b/tests/reject/teffects1.nim index cb5e43b26c..eca88949f5 100644 --- a/tests/reject/teffects1.nim +++ b/tests/reject/teffects1.nim @@ -1,6 +1,6 @@ discard """ line: 15 - errormsg: "instantiation from here" + errormsg: "can raise an unlisted exception: ref EIO" """ type diff --git a/tests/reject/teffects2.nim b/tests/reject/teffects2.nim index 51b5834116..73b5edcc94 100644 --- a/tests/reject/teffects2.nim +++ b/tests/reject/teffects2.nim @@ -1,6 +1,6 @@ discard """ line: 13 - errormsg: "instantiation from here" + errormsg: "can raise an unlisted exception: ref EIO" """ type diff --git a/todo.txt b/todo.txt index b21471e899..90d3aaad03 100755 --- a/todo.txt +++ b/todo.txt @@ -2,6 +2,7 @@ version 0.9.2 ============= - implement the effect system +- implement for loop transformation for first class iterators - overloading based on ASTs: 'constraint' should not be in PType but for the parameter *symbol* @@ -13,7 +14,6 @@ version 0.9.2 - document 'mixin' for generics and symbol lookup rules; special rule for ``[]=`` - implement the compiler as a service -- implement for loop transformation for first class iterators - ``=`` should be overloadable; requires specialization for ``=`` - make 'bind' default for templates and introduce 'mixin' - implicit deref for parameter matching; overloading based on 'var T'