allow assign to union (fixes clone())

This commit is contained in:
Michael Davidsaver
2020-08-11 20:57:11 -07:00
parent 3fc91f2cad
commit ba44131704
2 changed files with 66 additions and 4 deletions
+12
View File
@@ -410,6 +410,17 @@ Value neckBolt()
}).create();
}
void testOp()
{
testDiag("%s()", __func__);
Value top(neckBolt());
top["scalar.choice->one"] = 42;
(void)top.cloneEmpty();
(void)top.clone();
}
void testFormat()
{
testDiag("%s()", __func__);
@@ -517,6 +528,7 @@ MAIN(testtype)
testTypeDef();
testTypeDefDynamic();
testTypeDefAppend();
testOp();
testFormat();
cleanup_for_valgrind();
return testDone();