queryType = newResource ()
claim queryType L0.Inherits MOD.SCLQuery
claimRelatedValue queryType L0.HasName name
- claimAssertion MOD.SCLQuery.values $ createSCLValueIndependent MOD.SCLQuery.Value "[]"
+ claimAssertion queryType MOD.SCLQuery.values $ createSCLValueIndependent MOD.SCLQuery.Value "[]"
claim queryType L0.PartOf library
addCommentMetadata ("Created SCL Query Type " + name)
queryType
@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));
@Test public void Guards1() { test(); }
@Test public void Guards2() { test(); }
@Test public void IdAsOperator() { test(); }
+ @Test public void IfBranchesWithDifferentTypes() { test(); }
//@Test public void IfWithoutElse() { test(); }
@Test public void IllegalChar() { test(); }
@Test public void ImportJavaConstructor() { test(); }
--- /dev/null
+import "StandardLibrary"
+
+find a = a
+foo x = True
+
+main = iter (\x -> do
+ if x == "A"
+ then foo $ find 23
+ else ()
+ ()
+ ) ["x"]
+ where
+ set = MSet.create ()
+--
+()
\ No newline at end of file