Skip to content

Instantly share code, notes, and snippets.

@adetaylor
Last active November 4, 2022 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adetaylor/73fbf89032c1efbb2f8132bd6b2ff92d to your computer and use it in GitHub Desktop.
Save adetaylor/73fbf89032c1efbb2f8132bd6b2ff92d to your computer and use it in GitHub Desktop.
TEST(ValuesTest, TypeConfusion) {
Value parent(Value::Type::LIST);
parent.GetList().Append(Value(Value::Type::LIST));
Value& child = parent.GetList().back();
child.SetKey("a", Value(3));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment