TypeScript/tests/baselines/reference/switchAssignmentCompat.js
2015-12-08 17:51:10 -08:00

18 lines
277 B
TypeScript

//// [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; // Error expected
}