Skip to content

Commit

Permalink
Suppress warnings - false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Jul 13, 2024
1 parent 85c2d34 commit cc6094e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ object TestTypeProviders {
override def determineType(id: Identifier): DataType = ???

override def determineType(inClass: ClassSpec, name: String): DataType = {
(inClass.name.last, name) match {
// It is fine to suppress non-exhaustive warning because test has only
// specified variants
((inClass.name.last, name): @unchecked) match {
case ("block", "bar") => CalcStrType
case ("block", "inner") => userOwnedType(List("top_class", "block", "innerblock"))
case ("innerblock", "baz") => CalcIntType
Expand Down

0 comments on commit cc6094e

Please sign in to comment.