mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-28 09:31:38 +00:00
8
tests/tuples/t12892.nim
Normal file
8
tests/tuples/t12892.nim
Normal file
@@ -0,0 +1,8 @@
|
||||
discard """
|
||||
disabled: i386
|
||||
"""
|
||||
|
||||
template works[T](): auto = T.high - 1
|
||||
template breaks[T](): auto = (T.high - 1, true)
|
||||
doAssert $works[uint]() == "18446744073709551614"
|
||||
doAssert $breaks[uint]() == "(18446744073709551614, true)"
|
||||
Reference in New Issue
Block a user