Skip to content

Commit

Permalink
Give an error message when referring to an abstract type where it sho…
Browse files Browse the repository at this point in the history
…uld be concrete.
  • Loading branch information
Korbinian Breu committed Sep 4, 2013
1 parent bd63649 commit fa4b3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/semper/sil/ast/Program.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ case class Program(domains: Seq[Domain], fields: Seq[Field], functions: Seq[Func

/** A field declaration. */
case class Field(name: String, typ: Type)(val pos: Position = NoPosition, val info: Info = NoInfo) extends Location with Typed {
require(typ.isConcrete)
require(typ.isConcrete, "Type of field " + name + ":" + typ + " must be concrete!")
}

/** A predicate declaration. */
Expand Down

0 comments on commit fa4b3a2

Please sign in to comment.