use Protobuf; use Test; my $m = parse-proto($?FILE.IO.parent.parent.child('eg/nested.proto').slurp); my @services = $m.services; is @services[0].endpoints[1].request.fields[0].type.name, 'HelloRequest', 'type name'; is @services[0].endpoints[1].request.fields[0].type.fields[0].name, 'name', 'type has nested attributes'; done-testing;