Skip to content
Snippets Groups Projects
Commit 6ed62e86 authored by Ali Sinan Köksal's avatar Ali Sinan Köksal
Browse files

simplest value for set expressions

parent 013a33b9
No related branches found
No related tags found
No related merge requests found
...@@ -1165,6 +1165,7 @@ object Trees { ...@@ -1165,6 +1165,7 @@ object Trees {
case CaseClassType(ccd) => case CaseClassType(ccd) =>
val fields = ccd.fields val fields = ccd.fields
CaseClass(ccd, fields.map(f => simplestValue(f.getType))) CaseClass(ccd, fields.map(f => simplestValue(f.getType)))
case SetType(baseType) => FiniteSet(Nil)
case _ => throw new Exception("I can't choose simplest value for type " + tpe) case _ => throw new Exception("I can't choose simplest value for type " + tpe)
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment