Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ object ValidateString:
case _: false =>
showPredicateV[E](constValue[V])
case _: And[a, b] =>
// workaround for: https://github.com/lampepfl/dotty/issues/12715
inline val res = validate[V, a]
inline res match
case null =>
validate[V, b]
case _ => res
inline validate[V, a] match
case null => validate[V, b]
case _ =>
// inline vals cannot be null, so we cannot use that here for optimisation.
// In the future, this could be changed into
// `case res => res`, but the issue preventing this is not fixed on LTS yet.
validate[V, a]
case _: Or[a, b] =>
inline validate[V, a] match
case null => null
Expand Down