'+=' etc for all floating point types

This commit is contained in:
Araq 2012-05-29 00:42:28 +02:00
commit b5d8e8bfaa
6 changed files with 21 additions and 13 deletions

View file

@ -0,0 +1,9 @@
discard """
errormsg: "type mismatch"
"""
type
TE1 = enum eA, eB
TE2 = enum eC, eD
assert eA != eC

View file

@ -1,4 +1,5 @@
discard """
disabled: true
output: '''StmtList
VarSection
IdentDefs
@ -11,6 +12,8 @@ output: '''StmtList
IntLit 56'''
"""
# disabled; can't work as the output is done by the compiler
import macros
#emit("type\n TFoo = object\n bar: int")