"type definition not allowed inside a local scope"

I’ve just done a similar thing to @leethargo. In a @testset block, I’m subtyping form an abstract type and testing the new type’s inherited functionality.