Skip to content
Snippets Groups Projects
Commit 71b6a002 authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Warning about ADT fields should be positioned

parent e623a4cf
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ resolvers ++= Seq(
)
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-compiler" % "2.11.6",
"org.scala-lang" % "scala-compiler" % "2.11.7",
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"com.typesafe.akka" %% "akka-actor" % "2.3.4",
"info.hupel" %% "libisabelle" % "0.1.1",
......
......@@ -17,7 +17,7 @@ object CheckADTFieldsTypes extends UnitPhase[Program] {
for(vd <- ccd.fields) {
val tpe = vd.getType
if (bestRealType(tpe) != tpe) {
ctx.reporter.warning("Definition of "+ccd.id.asString(ctx)+" has a field of a sub-type ("+vd.asString(ctx)+"): " +
ctx.reporter.warning(ccd.getPos, "Definition of "+ccd.id.asString(ctx)+" has a field of a sub-type ("+vd.asString(ctx)+"): " +
"this type is not supported as-is by solvers and will be up-cast. " +
"This may cause issues such as crashes.")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment