{"body":"raku -MJSON::Class -e '\n\nclass TestObject does JSON::Class {\n    has Str $.string;\n}\n\nconstant TestObjects = (Array[TestObject] but JSON::Class);\n\n\nclass Bla does JSON::Class {\n    has TestObjects %.aaa;\n}\n\n\n\nmy $json = q<{\"aaa\": [{ \"string\" : \"one\" }, { \"string\" : \"two\" }]}>;\n\n\nsay Bla.from-json: $json\n\n\n\n'\nType check failed in assignment to %!aaa; expected Array[TestObject]+{JSON::Class} but got Array ([TestObject.new(stri...)\n  in sub _unmarshal at /Users/fernando/.rakubrew/versions/moar-2020.11/share/perl6/site/sources/BD58585C8BB103CC821AB89EFD8D30DA4FB8FDF9 (JSON::Unmarshal) line 112\n  in sub unmarshal at /Users/fernando/.rakubrew/versions/moar-2020.11/share/perl6/site/sources/BD58585C8BB103CC821AB89EFD8D30DA4FB8FDF9 (JSON::Unmarshal) line 158\n  in method from-json at /Users/fernando/.rakubrew/versions/moar-2020.11/share/perl6/site/sources/C0029D661A8CA443DB83A67FE58F3E10D590C1A0 (JSON::Class) line 91\n  in block <unit> at -e line 19","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/Xb8uUGSF","modified":1608410887,"id":"Xb8uUGSF","size":952,"lines":28,"own_paste":false,"theme":"","date":1608410887}