TypeScript/tests/baselines/reference/switchAssignmentCompat.errors.txt
2014-07-12 17:30:19 -07:00

9 lines
244 B
Plaintext

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