mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-27 17:11:40 +00:00
18 lines
372 B
Nim
18 lines
372 B
Nim
discard """
|
|
errmsg: "type mismatch: got <int>"
|
|
line: 17
|
|
nimout: '''type mismatch: got <int>
|
|
but expected one of:
|
|
proc inc[T: Ordinal | uint | uint64](x: var T; y = 1)
|
|
first type mismatch at position: 1
|
|
required type for x: var T: Ordinal or uint or uint64
|
|
but expression 'i' is immutable, not 'var'
|
|
|
|
expression: inc i
|
|
'''
|
|
"""
|
|
|
|
for i in 0..10:
|
|
echo i
|
|
inc i
|