fixes #5354
This commit is contained in:
parent
c8ae7164e5
commit
36d3fd64da
2 changed files with 22 additions and 5 deletions
17
tests/metatype/tfieldaccessor.nim
Normal file
17
tests/metatype/tfieldaccessor.nim
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
type
|
||||
Test = object
|
||||
x: int
|
||||
case p: bool
|
||||
of true:
|
||||
a: int
|
||||
else:
|
||||
case q: bool
|
||||
of true:
|
||||
b: int
|
||||
else:
|
||||
discard
|
||||
|
||||
proc f[T](t: typedesc[T]): int =
|
||||
1
|
||||
|
||||
assert Test.f == 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue