From 4a4a45e9a4a881a6c9a30722089bec7d3cc07e8c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 1 May 2021 19:29:32 +0100 Subject: Error on bad cast of referenced object --- test/fixtures/json/shared_ptr_wrong_type.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/fixtures/json/shared_ptr_wrong_type.json (limited to 'test/fixtures/json') diff --git a/test/fixtures/json/shared_ptr_wrong_type.json b/test/fixtures/json/shared_ptr_wrong_type.json new file mode 100644 index 0000000..68f7533 --- /dev/null +++ b/test/fixtures/json/shared_ptr_wrong_type.json @@ -0,0 +1,8 @@ +{ + "@typeid": "SharedTestObject", + "sptr": { + "@typeid": "SubObject2", + "@id": "someid" + }, + "ssptr": "someid" +} -- cgit v1.2.3