allow generic typedesc field access (#12220)
Co-authored-by: Clyybber <darkmine956@gmail.com>
This commit is contained in:
parent
4476d8a2e0
commit
ba0af0f827
2 changed files with 61 additions and 56 deletions
|
|
@ -6,6 +6,7 @@ method Base
|
|||
yield Base
|
||||
yield Child
|
||||
12
|
||||
1
|
||||
'''
|
||||
"""
|
||||
|
||||
|
|
@ -41,3 +42,11 @@ type
|
|||
MyRefType = ref MyType
|
||||
|
||||
echo sizeof(default(MyRefType)[])
|
||||
|
||||
type
|
||||
Foo[T] = object
|
||||
val: T
|
||||
|
||||
var x: Foo[int].val
|
||||
inc(x)
|
||||
echo x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue