Skip to content

Commit

Permalink
Removed unreachable cases.
Browse files Browse the repository at this point in the history
Added -Xfatal-warnings.
All tests pass
  • Loading branch information
NicolasRouquette committed May 16, 2022
1 parent 396349c commit aba3a19
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions compiler/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ lazy val settings = Seq(
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-Xfatal-warnings"
),
libraryDependencies ++= dependencies,
Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-oNCXELOPQRM"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ trait TypeVisitor {
case t : Type.PrimitiveInt => primitiveInt(in, t)
case t : Type.String => string(in, t)
case t : Type.Struct => struct(in, t)
case _ => default(in, t)
}

type In
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ trait ValueVisitor {
case v : Value.EnumConstant => enumConstant(in, v)
case v : Value.AnonStruct => anonStruct(in, v)
case v : Value.Struct => struct(in, v)
case _ => default(in, v)
}
}

Expand Down

0 comments on commit aba3a19

Please sign in to comment.