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

equality gets inferred to weird product type

parent 22cd2820
No related branches found
No related tags found
No related merge requests found
...@@ -289,7 +289,7 @@ object Constructors { ...@@ -289,7 +289,7 @@ object Constructors {
* @see [[purescala.Expressions.Equals Equals]] * @see [[purescala.Expressions.Equals Equals]]
*/ */
// @mk I simplified that because it seemed dangerous and unnessecary // @mk I simplified that because it seemed dangerous and unnessecary
def equality(a: Expr, b: Expr) = { def equality(a: Expr, b: Expr): Expr = {
if (a.isInstanceOf[Terminal] && isPurelyFunctional(a) && a == b ) { if (a.isInstanceOf[Terminal] && isPurelyFunctional(a) && a == b ) {
BooleanLiteral(true) BooleanLiteral(true)
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment