fixes #7247
This commit is contained in:
parent
fb3e460f6d
commit
3dab0877da
4 changed files with 44 additions and 61 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue