allow generic typedesc field access (#12220)

Co-authored-by: Clyybber <darkmine956@gmail.com>
This commit is contained in:
Jasper Jenkins 2020-04-20 06:36:57 -07:00 • committed by GitHub
commit ba0af0f827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 61 additions and 56 deletions

View file

@ -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