TypeScript/tests/baselines/reference/asiPreventsParsingAsInterface02.js

15 lines
473 B
TypeScript
Raw Normal View History

2015-06-04 23:03:00 +02:00
//// [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) {
2015-06-04 23:37:40 +02:00
interface; // This should be the identifier 'interface'
I; // This should be the identifier 'I'
{ } // This should be a block body
2015-06-04 23:03:00 +02:00
}