TypeScript/tests/baselines/reference/switchAssignmentCompat.js

19 lines
268 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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;
}