TypeScript/tests/baselines/reference/switchAssignmentCompat.js
2014-07-12 17:30:19 -07:00

19 lines
268 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;
}