Skip to content

Commit

Permalink
Fix incorrect reported path for switch types when validating types
Browse files Browse the repository at this point in the history
This change requires corresponding change in kaitai_struct_tests repository
  • Loading branch information
Mingun committed Apr 10, 2023
1 parent dfc36b9 commit d3924d2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ class TypeValidator(specs: ClassSpecs, topClass: ClassSpec) extends PrecompileSt
} else {
None
}
val problems2 = validateDataType(caseType, casePath)
// All properties of types is declared on the common level for all variants so
// we don't use `casePath` here
val problems2 = validateDataType(caseType, path)
problems1 ++ problems2
}
}
Expand Down

0 comments on commit d3924d2

Please sign in to comment.