resolve struct in union ambiguity in Value[] expressions

This commit is contained in:
Michael Davidsaver
2020-03-17 10:17:11 -07:00
parent 0782591053
commit 738c454e28
3 changed files with 27 additions and 6 deletions
+2 -2
View File
@@ -205,7 +205,7 @@ R"out(
fld = arr.freeze().castTo<const void>();
testEq(val["arbitrary.sarr[1]value"].as<double>(), 2.0);
testEq(val["arbitrary.sarr[1].value"].as<double>(), 2.0);
}
// Union
@@ -251,7 +251,7 @@ R"out(
fld = arr.freeze().castTo<const void>();
testEq(fld["[0]"].as<uint64_t>(), 123u);
testEq(fld["[1]q"].as<std::string>(), "theq");
testEq(fld["[1].q"].as<std::string>(), "theq");
}
testEq(std::string(SB()<<val),