TypeScript/tests/baselines/reference/switchAssignmentCompat.errors.txt

9 lines
244 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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'.
}