TypeScript/tests/baselines/reference/asiPreventsParsingAsInterface02.js
2015-06-04 15:09:09 -07:00

15 lines
473 B
TypeScript

//// [asiPreventsParsingAsInterface02.ts]
function f(interface: number, I: string) {
interface // This should be the identifier 'interface'
I // This should be the identifier 'I'
{} // This should be a block body
}
//// [asiPreventsParsingAsInterface02.js]
function f(interface, I) {
interface; // This should be the identifier 'interface'
I; // This should be the identifier 'I'
{ } // This should be a block body
}