made some tests green

This commit is contained in:
Araq 2013-05-16 08:54:58 +02:00
commit 064df34ae4
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
discard """ discard """
errormsg: 'type mismatch' errormsg: "type mismatch"
line: 7 line: 7
""" """

View file

@ -1,6 +1,6 @@
discard """ discard """
file: "system.nim" file: "system.nim"
line: 695 line: 696
errormsg: "type mismatch" errormsg: "type mismatch"
""" """

View file

@ -10,7 +10,7 @@ template Additive(typ: typeDesc): stmt =
proc `+` *(x: typ): typ {.borrow.} proc `+` *(x: typ): typ {.borrow.}
proc `-` *(x: typ): typ {.borrow.} proc `-` *(x: typ): typ {.borrow.}
template Multiplicative(typ, base: typeDesc): stmt = template Multiplicative(typ, base: typeDesc): stmt {.immediate.} =
proc `*` *(x: typ, y: base): typ {.borrow.} proc `*` *(x: typ, y: base): typ {.borrow.}
proc `*` *(x: base, y: typ): typ {.borrow.} proc `*` *(x: base, y: typ): typ {.borrow.}
proc `div` *(x: typ, y: base): typ {.borrow.} proc `div` *(x: typ, y: base): typ {.borrow.}