# "type definition not allowed inside a local scope"

**URL:** <https://discourse.julialang.org/t/type-definition-not-allowed-inside-a-local-scope/3907>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 24, 2017, 12:13pm UTC](https://discourse.julialang.org/t/type-definition-not-allowed-inside-a-local-scope/3907 "2017-05-24T12:13:11Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![CiaranOMara](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ciaranomara/32/2589_2.png) [@CiaranOMara](https://discourse.julialang.org/u/CiaranOMara)\
**Post date:** [April 27, 2023, 3:24am UTC](https://discourse.julialang.org/t/type-definition-not-allowed-inside-a-local-scope/3907/21 "2023-04-27T03:24:39Z")

</div>

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.

[Previous page](https://discourse.julialang.org/t/type-definition-not-allowed-inside-a-local-scope/3907.md?page=1)
