summary refs log tree commit diff stats
path: root/tests/arithm/tand.nim
blob: fd0fa0dea581e7e32491991d31f5156f5d9158df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)