We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source:
if True then { status = "placed" } else { status = "cancelled", cancelledAt = "2015-03-10" }
Output:
should_compile[hotfix/issue-98] % f2j TypingIf.sf -r TypingIf using [Naive] Compiling to Java source code ( ./TypingIf.java ) ./TypingIf.java:13: error: incompatible types: Tuple2 cannot be converted to String ifres1 = x2; ^ 1 error
System FI:
if True then { status = "placed" } else ({ status = "cancelled" } ,, { cancelledAt = "2015-03-10" })
FCore:
if True then "placed" else ("cancelled", "2015-03-10")
Simplify did not generate valid a System F expression in this case.
The text was updated successfully, but these errors were encountered:
zhiyuanshi
No branches or pull requests
Source:
Output:
System FI:
FCore:
Simplify did not generate valid a System F expression in this case.
The text was updated successfully, but these errors were encountered: