mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
fixes #24996 uses the lineinfos of `dest` is `ri` is not available (e.g. `=destroy` doesn't have a second parameter)
14 lines
202 B
Nim
14 lines
202 B
Nim
discard """
|
|
errormsg: "'=destroy' is not available for type <X>; routine: main"
|
|
joinable: false
|
|
"""
|
|
|
|
type X = object
|
|
|
|
proc `=destroy`(x: X) {.error.} =
|
|
discard
|
|
|
|
proc main() =
|
|
var x = X()
|
|
|
|
main() |