Open haoyu234 opened 3 months ago
Slightly simplified
type
Chunk* = ref object of RootObj
nextChunk: Chunk
TestObj = object
c: Chunk
proc newChunk*(): Chunk =
Chunk()
proc `=destroy`(t: TestObj) =
`=destroy`(t.c) # Warning: `=destroy`(t.c) can raise an unlisted exception: Exception [Effect]
Description
https://play.nim-lang.org/#pasty=XdqZmWbb
What should I do to resolve the warning?
Nim Version
Nim Compiler Version 2.1.1 [Linux: amd64] Compiled at 2024-05-30 Copyright (c) 2006-2024 by Andreas Rumpf
git hash: b172b34a245959c7d5e8f4df3c3dcbe88b7ba6fa active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response