16 lines
290 B
TypeScript
16 lines
290 B
TypeScript
//// [concatClassAndString.ts]
|
|
// Shouldn't compile (the long form f = f + ""; doesn't):
|
|
class f { }
|
|
|
|
f += '';
|
|
|
|
|
|
//// [concatClassAndString.js]
|
|
// Shouldn't compile (the long form f = f + ""; doesn't):
|
|
var f = (function () {
|
|
function f() {
|
|
}
|
|
return f;
|
|
}());
|
|
f += '';
|