mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
fixes #11747
This commit is contained in:
@@ -5,6 +5,7 @@ proc Child
|
||||
method Base
|
||||
yield Base
|
||||
yield Child
|
||||
12
|
||||
'''
|
||||
"""
|
||||
|
||||
@@ -27,3 +28,16 @@ when false:
|
||||
|
||||
for s in Base.it: echo s
|
||||
for s in Child.it: echo s #<- bug #2662
|
||||
|
||||
|
||||
# bug #11747
|
||||
|
||||
type
|
||||
MyType = object
|
||||
a: int32
|
||||
b: int32
|
||||
c: int32
|
||||
|
||||
MyRefType = ref MyType
|
||||
|
||||
echo sizeof(MyRefType[])
|
||||
|
||||
Reference in New Issue
Block a user