Skip to content

Commit

Permalink
add case for ghost slice
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 committed May 20, 2024
1 parent 0da53fa commit 4883590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/viper/gobra/ast/frontend/Ast.scala
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ case class PImplicitSizeArrayType(elem: PType) extends PLiteralType

case class PSliceType(elem: PType) extends PTypeLit with PLiteralType

case class PVariadicType(elem: PType) extends PTypeLit with PLiteralType
case class PVariadicType(elem: PType) extends PTypeLit

case class PMapType(key: PType, elem: PType) extends PTypeLit with PLiteralType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ trait GhostExprTyping extends BaseTyping { this: TypeInfoImpl =>
case _: PImplicitSizeArrayType => true
case t: PType => underlyingTypeP(t) match {
case Some(ut) => ut match {
case _: PSliceType | _: PMapType => false
case _: PSliceType | _: PGhostSliceType | _: PMapType => false
case _ => true
}
case None => false
Expand Down

0 comments on commit 4883590

Please sign in to comment.