tyInt tyUint fit target int bit width (#20829)
This commit is contained in:
parent
a70d3abd37
commit
658b28dc57
17 changed files with 306 additions and 267 deletions
2
tests/arithm/t1.nim
Normal file
2
tests/arithm/t1.nim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
doAssert typeOf(1.int64 + 1.int) is int64
|
||||
doAssert typeOf(1.uint64 + 1.uint) is uint64
|
||||
|
|
@ -1,14 +1,5 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got <int>"
|
||||
nimout: '''tprevent_forloopvar_mutations.nim(16, 7) Error: type mismatch: got <int>
|
||||
but expected one of:
|
||||
proc inc[T: Ordinal](x: var T; y = 1)
|
||||
first type mismatch at position: 1
|
||||
required type for x: var T: Ordinal
|
||||
but expression 'i' is immutable, not 'var'
|
||||
|
||||
expression: inc i
|
||||
'''
|
||||
"""
|
||||
|
||||
for i in 0..10:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue