make record fields resolve type-factory calls before runtime validation

This commit is contained in:
2026-07-20 15:49:52 +02:00
parent ec36b6b861
commit 05aa7d084a
5 changed files with 76 additions and 12 deletions
+6 -10
View File
@@ -34,17 +34,13 @@ expect_equal func($T type, expected, actual T, location SourceLocation) void ! E
return .expectation_failed
}
}
.slice: {
if !mem.eql(expected, actual) {
debug.print("{s}:{d}:{d}: expected and actual slices differ\n", {location.file, location.line, location.column})
return .expectation_failed
}
.slice: if !mem.eql(expected, actual) {
debug.print("{s}:{d}:{d}: expected and actual slices differ\n", {location.file, location.line, location.column})
return .expectation_failed
}
else: {
if expected != actual {
debug.print("{s}:{d}:{d}: expected {}, found {}\n", {location.file, location.line, location.column, expected, actual})
return .expectation_failed
}
else: if expected != actual {
debug.print("{s}:{d}:{d}: expected {}, found {}\n", {location.file, location.line, location.column, expected, actual})
return .expectation_failed
}
}
}