This commit is contained in:
Araq 2017-01-27 09:49:45 +01:00
commit 68617adb91
2 changed files with 25 additions and 5 deletions

20
tests/arithm/tand.nim Normal file
View file

@ -0,0 +1,20 @@
discard """
output: '''int32
int32
1280
1280'''
"""
# bug #5216
import typetraits
echo(name type((0x0A'i8 and 0x7F'i32) shl 7'i32))
let i8 = 0x0A'i8
echo(name type((i8 and 0x7F'i32) shl 7'i32))
echo((0x0A'i8 and 0x7F'i32) shl 7'i32)
let ii8 = 0x0A'i8
echo((ii8 and 0x7F'i32) shl 7'i32)