mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
25 lines
459 B
Nim
25 lines
459 B
Nim
discard """
|
|
cmd: "nim check --warnings:off --hints:off $file"
|
|
errormsg: ""
|
|
nimout: '''
|
|
t20588.nim(20, 12) Error: illegal type conversion to 'auto'
|
|
t20588.nim(21, 14) Error: illegal type conversion to 'typed'
|
|
t20588.nim(22, 16) Error: illegal type conversion to 'untyped'
|
|
t20588.nim(24, 7) Error: illegal type conversion to 'any'
|
|
'''
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
discard 0.0.auto
|
|
discard typed("abc")
|
|
discard untyped(4)
|
|
var a = newSeq[bool](1000)
|
|
if any(a):
|
|
echo "ok?" |