We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
TypeScript Version: 3.0.0-dev.20180630
Search Terms:
Code
import * as ts from 'typescript'; const n = ts.createArrowFunction( /*modifiers*/ undefined, /*typeParameters*/ undefined, [], /*type*/ undefined, /*equalsGreaterThanToken*/ undefined, ts.createBinary(ts.createLiteral('a'), ts.SyntaxKind.CommaToken, ts.createLiteral('b')), ); ts.createPrinter().printNode(ts.EmitHint.Unspecified, n, ts.createSourceFile('dummy.ts', '', ts.ScriptTarget.Latest));
Expected behavior:
() => ("a", "b")
Actual behavior:
() => "a", "b" // which parses as (() => "a"), "b"
The text was updated successfully, but these errors were encountered:
I'll fix this once my approach for testing in #25342 is approved.
Sorry, something went wrong.
createArrowFunction: parenthesize comma sequence
f4470cd
Fixes: microsoft#25366
No branches or pull requests
TypeScript Version: 3.0.0-dev.20180630
Search Terms:
Code
Expected behavior:
Actual behavior:
The text was updated successfully, but these errors were encountered: