Skip to content

Commit

Permalink
resolve merge confilct
Browse files Browse the repository at this point in the history
  • Loading branch information
noordahx committed Oct 7, 2024
1 parent cf753eb commit e31661e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/main/scala/mlscript/TyperDatatypes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ abstract class TyperDatatypes extends TyperHelpers { Typer: Typer =>
} else N
case (a: TupleType, b: RecordType) if pol => lcg(pol, a.toRecord, b)
case (a: RecordType, b: RecordType) =>
val default = FieldType(N, if (pol) TopType else BotType)(noProv)
val default = FieldType(N, if (pol) TopType else BotType, false)(noProv)
if (b.fields.map(_._1).forall(a.fields.map(_._1).contains)) {
val u = a.fields.map {
case (v, f) => lcgField(pol, f, b.fields.find(_._1 === v).fold(default)(_._2))
Expand Down

0 comments on commit e31661e

Please sign in to comment.