mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-30 18:41:45 +00:00
16 lines
305 B
Nim
16 lines
305 B
Nim
discard """
|
|
line: 15
|
|
errmsg: "type mismatch: got <int>"
|
|
nimout: '''type mismatch: got <int>
|
|
but expected one of:
|
|
proc inc[T: Ordinal | uint | uint64](x: var T; y = 1)
|
|
for a 'var' type a variable needs to be passed, but 'i' is immutable
|
|
|
|
expression: inc i
|
|
'''
|
|
"""
|
|
|
|
for i in 0..10:
|
|
echo i
|
|
inc i
|