difftastic/vendored_parsers/tree-sitter-hack/test/cases/expressions/lambda-with-lambda-arg.hack

14 lines
330 B
Plaintext

((function(): void) $test): void ==> {
};
( ( /*test*/ function ( ) : void ) $test ) : void ==> {
};
( ( function ( ) /*test*/ : void ) $test ) : void ==> {
};
// TODO: The line below should not error as it is valid Hack.
// See PR #8 for details.
// ( ( function /*test*/ ( ) : void ) $test ) : void ==> {
// };