Skip to content
Snippets Groups Projects
Commit 421cd146 authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

All types are supported for pattern matching

parent 88a25fe4
No related branches found
No related tags found
No related merge requests found
...@@ -138,11 +138,8 @@ object Constructors { ...@@ -138,11 +138,8 @@ object Constructors {
case _ => true case _ => true
}) })
case _: TupleType | Int32Type | IntegerType | BooleanType | UnitType | _: AbstractClassType => case _ =>
cases cases
case t =>
scala.sys.error("Constructing match expression on non-supported type: "+t)
} }
resType match { resType match {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment