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
|
|
|
}
|