From 31d755452485eccffa396e0e8432050a63b04c35 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Sun, 3 Mar 2024 22:56:06 +0800 Subject: fixes #13481; fixes #22708; disable using union objects in VM (#23362) fixes #13481; fixes #22708 Otherwise it gives implicit results or bad codegen --- tests/vm/tvmmisc.nim | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests') diff --git a/tests/vm/tvmmisc.nim b/tests/vm/tvmmisc.nim index f277c20d8..d28f76574 100644 --- a/tests/vm/tvmmisc.nim +++ b/tests/vm/tvmmisc.nim @@ -301,14 +301,6 @@ block: # bug #10815 const a = P() doAssert $a == "" -when defined osx: # xxx bug #13481 - block: - type CharSet {.union.} = object - cs: set[char] - vs: array[4, uint64] - const a = Charset(cs: {'a'..'z'}) - doAssert a.repr.len > 0 - import tables block: # bug #8007 -- cgit 1.4.1-2-gfad0