fixes #3079, fixes #1146, fixes #2879

This commit is contained in:
Araq 2015-07-22 16:32:56 +02:00
commit b0b716fca7
6 changed files with 33 additions and 3 deletions

View file

@ -0,0 +1,6 @@
discard """
line: 6
errormsg: "type mismatch: got (typedesc[int])"
"""
# bug #3079, #1146
echo repr(int)

View file

@ -0,0 +1,9 @@
discard """
line: 9
errormsg: "type mismatch: got (empty)"
"""
# bug #2879
var s: seq[int]
echo repr(s.new_seq(3))