Merge ../Nim into devel

This commit is contained in:
Charles Blake 2015-02-14 14:26:16 -05:00
commit 6206795464
4 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1,11 @@
discard """
errormsg: "identifier expected, but found 'keyword when'"
"""
# bug #2123
type num = enum
NUM_NONE = 0
NUM_ALL = 1
when defined(macosx): NUM_OSX = 10 # only this differs for real
NUM_XTRA = 20

View file

@ -0,0 +1,9 @@
# bug #2121
type
Item[K,V] = tuple
key: K
value: V
var q = newseq[Item[int,int]](0)
let (x,y) = q[0]