* fixes #21027; cast expressions need a type * Apply suggestions from code review Thanks to @beef331
5 lines
147 B
Nim
5 lines
147 B
Nim
discard """
|
|
errormsg: "Invalid usage of cast, cast requires a type to convert to, e.g., cast[int](0d)."
|
|
"""
|
|
# bug #21027
|
|
let x: uint64 = cast(5)
|