TypeScript/tests/baselines/reference/switchAssignmentCompat.errors.txt
2014-09-11 16:11:08 -07:00

9 lines
258 B
Plaintext

==== tests/cases/compiler/switchAssignmentCompat.ts (1 errors) ====
class Foo { }
switch (0) {
case Foo: break; // Error expected
~~~
!!! error TS2323: Type 'typeof Foo' is not assignable to type 'number'.
}