8 lines
No EOL
221 B
TypeScript
8 lines
No EOL
221 B
TypeScript
declare var console: { log(msg?: string): void; };
|
|
var _i = "This is what I'd expect to see";
|
|
class Foo {
|
|
constructor(...args: any[]) {
|
|
console.log(_i); // This should result in error
|
|
}
|
|
}
|
|
new Foo(); |