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 Sep 12, 2023
1 parent ad9c75e commit 16169a3
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 16169a3

Please sign in to comment.