This commit is contained in:
Andreas Rumpf 2018-02-23 11:28:54 +01:00
commit 3dab0877da
4 changed files with 44 additions and 61 deletions

View file

@ -1,12 +1,21 @@
discard """
output: '''int64
int64'''
output: '''false'''
"""
import typetraits
when false:
import typetraits
proc `@`[T: SomeInteger](x, y: T): T = x
proc `@`[T: SomeInteger](x, y: T): T = x
echo(type(5'i64 @ 6'i32))
echo(type(5'i64 @ 6'i32))
echo(type(5'i32 @ 6'i64))
echo(type(5'i32 @ 6'i64))
import sets
# bug #7247
type
n8 = range[0'i8..127'i8]
var tab = initSet[n8]()
echo tab.contains(8)