mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-27 17:53:58 +00:00
fixes #24996 uses the lineinfos of `dest` is `ri` is not available (e.g. `=destroy` doesn't have a second parameter)
This commit is contained in:
14
tests/errmsgs/t24996.nim
Normal file
14
tests/errmsgs/t24996.nim
Normal file
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user