fixes #13378 [backport] (#13392)

This commit is contained in:
Andreas Rumpf 2020-02-11 23:48:41 +01:00 • committed by GitHub
commit c446c0f57a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View file

@ -4,6 +4,7 @@ discard """
0
float32
float32
(name: "Resource 1", readers: ..., writers: ...)
'''
"""
@ -124,3 +125,18 @@ block tgeneric5:
echo T
bar(0.0'f32)
# bug #13378
type
Resource = ref object of RootObj
name: string
readers, writers: seq[RenderTask]
RenderTask = ref object
name: string
var res = Resource(name: "Resource 1")
(proc (r: typeof(res)) =
echo r[])(res)