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
following
package org.ssatguru.babylonjs; import static jsweet.dom.Globals.console; public class CodeSnippet { public static void main(String args[]){ int i =1; if (i==1)console.log("is true"); else console.log("is false"); } }
gives following error during TS compile
[INFO] JSweet transpiler version 1.0.0-SNAPSHOT (build date: 2016-01-16 10:30:13) ERROR: ';' expected. at org\ssatguru\babylonjs\CodeSnippet.ts(6) [ERROR] transpilation failed
The text was updated successfully, but these errors were encountered:
Thank you for this one (good one). There is a lack of support for statements with optional blocks.
Temporary workaround: use blocks.
if (i==1) { console.log("is true"); } else { console.log("is false"); }
I should be committing a fix very soon though.
Sorry, something went wrong.
It should be fixed with some variations (see https://github.com/cincheo/jsweet/blob/master/src/test/java/source/syntax/StatementsWithNoBlocks.java)
Great, Thanks
renaudpawlak
No branches or pull requests
following
gives following error during TS compile
The text was updated successfully, but these errors were encountered: