diff --git a/shared/src/main/scala/io/kaitai/struct/datatype/DataType.scala b/shared/src/main/scala/io/kaitai/struct/datatype/DataType.scala index 7316bbcdd..b5b0317b5 100644 --- a/shared/src/main/scala/io/kaitai/struct/datatype/DataType.scala +++ b/shared/src/main/scala/io/kaitai/struct/datatype/DataType.scala @@ -174,7 +174,7 @@ object DataType { classSpec.get.isExternal(curClass) def isOpaque = { val cs = classSpec.get - cs.isTopLevel || cs.meta.isOpaque + cs.meta.isOpaque } } case class UserTypeInstream(