TypeScript/tests/baselines/reference/switchAssignmentCompat.js

18 lines
277 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) {
2015-01-23 00:58:00 +01:00
case Foo: break; // Error expected
2014-07-13 01:04:16 +02:00
}