mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-18 02:54:52 +00:00
fixes #23505
(cherry picked from commit acd4c8a353)
This commit is contained in:
@@ -688,3 +688,15 @@ block: # bug #22259
|
||||
f(wrapper)
|
||||
|
||||
main()
|
||||
|
||||
block: # bug #23505
|
||||
type
|
||||
K = object
|
||||
C = object
|
||||
value: ptr K
|
||||
|
||||
proc init(T: type C): C =
|
||||
let tmp = new K
|
||||
C(value: addr tmp[])
|
||||
|
||||
discard init(C)
|
||||
|
||||
Reference in New Issue
Block a user