diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-10-08 23:38:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-08 17:38:22 +0200 |
commit | 5e4dd571d43c904c989c1a256f53df38672a20fe (patch) | |
tree | 575e2a107177d11d93266bddd07c5d25a8c585a5 /tests/stdlib | |
parent | e83f27e6a0f52f167e8eb91cd8f60be62d6725c6 (diff) | |
download | Nim-5e4dd571d43c904c989c1a256f53df38672a20fe.tar.gz |
fixes #20516; system.create doesn't work with bitfield objects (#20518)
* Revert "fixes #19000 (#19032)" This reverts commit 2bda4a30a6b12dd0840dc347e454e54fe26721e7. * fixes #20516; add testcase
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tsystem.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/stdlib/tsystem.nim b/tests/stdlib/tsystem.nim index 1a976f7a2..810c3af04 100644 --- a/tests/stdlib/tsystem.nim +++ b/tests/stdlib/tsystem.nim @@ -162,3 +162,10 @@ block: reset(y) doAssert y.b == {} +block: # bug #20516 + type Foo = object + x {.bitsize:4.}: uint + y {.bitsize:4.}: uint + + when not defined(js): + let a = create(Foo) |