mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 03:32:32 +00:00
made some tests green
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
errormsg: 'type mismatch'
|
||||
errormsg: "type mismatch"
|
||||
line: 7
|
||||
"""
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
discard """
|
||||
file: "system.nim"
|
||||
line: 695
|
||||
line: 696
|
||||
errormsg: "type mismatch"
|
||||
"""
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ template Additive(typ: typeDesc): stmt =
|
||||
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: base, y: typ): typ {.borrow.}
|
||||
proc `div` *(x: typ, y: base): typ {.borrow.}
|
||||
|
||||
Reference in New Issue
Block a user