mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
306 B
TypeScript
16 lines
306 B
TypeScript
//// [tests/cases/compiler/concatClassAndString.ts] ////
|
|
|
|
//// [concatClassAndString.ts]
|
|
// Shouldn't compile (the long form f = f + ""; doesn't):
|
|
class f { }
|
|
|
|
f += '';
|
|
|
|
|
|
//// [concatClassAndString.js]
|
|
"use strict";
|
|
// Shouldn't compile (the long form f = f + ""; doesn't):
|
|
class f {
|
|
}
|
|
f += '';
|