X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Felaboration%2Fexpressions%2FEApply.java;h=5d915a98dce93b2ac88e2476effaed460e2d25ba;hb=refs%2Fchanges%2F18%2F1318%2F2;hp=02c7dff4585c95e0d55d7bf485266f90327b31e6;hpb=666ee533a3cfa9f59e79215a269f8342227cdbda;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/EApply.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/EApply.java index 02c7dff45..5d915a98d 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/EApply.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/EApply.java @@ -265,7 +265,7 @@ public class EApply extends Expression { @Override public Expression checkIgnoredType(TypingContext context) { if(parameters.length == 2 && function instanceof EConstant && ((EConstant)function).value.getName() == Names.Prelude_dollar) - return new EApply(location, parameters[0], parameters[1]).inferType(context); + return new EApply(location, parameters[0], parameters[1]).checkIgnoredType(context); inferType(context, true); if(Types.canonical(getType()) != Types.UNIT) return new ESimpleLet(location, null, this, new ELiteral(NoRepConstant.PUNIT));