t21027.nim 147 B

123456
  1. discard """
  2. errormsg: "Invalid usage of cast, cast requires a type to convert to, e.g., cast[int](0d)."
  3. """
  4. # bug #21027
  5. let x: uint64 = cast(5)