TypeScript/tests/baselines/reference/switchAssignmentCompat.js

18 lines
259 B
JavaScript

//// [switchAssignmentCompat.ts]
class Foo { }
switch (0) {
case Foo: break; // Error expected
}
//// [switchAssignmentCompat.js]
var Foo = (function () {
function Foo() {
}
return Foo;
})();
switch (0) {
case Foo: break;
}