Skip to content

Commit

Permalink
do not use underlying type when inferring the type of some (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 authored Nov 1, 2023
1 parent 4c1c3dd commit 91739fe
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ trait GhostExprTyping extends BaseTyping { this: TypeInfoImpl =>
case POptionNone(t) => OptionT(typeSymbType(t))
case POptionSome(e) =>
val et = exprType(e)
val ut = underlyingType(et)
ut match {
et match {
case Single(t) => OptionT(t)
case t => violation(s"expected a single type, but got $t")
}
Expand Down

0 comments on commit 91739fe

Please sign in to comment.