summary refs log tree commit diff stats
path: root/tests/generics/tspecial_numeric_inference.nim
blob: 41a84a5e9ec93eefcf7537813676db68bf101eee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
discard """
  output: '''false'''
"""

when false:
  import typetraits

  proc `@`[T: SomeInteger](x, y: T): T = x

  echo(type(5'i64 @ 6'i32))

  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)