2014-11-05 21:26:03 +01:00
|
|
|
tests/cases/compiler/switchAssignmentCompat.ts(4,10): error TS2322: Type 'typeof Foo' is not assignable to type 'number'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/switchAssignmentCompat.ts (1 errors) ====
|
|
|
|
class Foo { }
|
|
|
|
|
|
|
|
switch (0) {
|
|
|
|
case Foo: break; // Error expected
|
|
|
|
~~~
|
2014-11-05 21:26:03 +01:00
|
|
|
!!! error TS2322: Type 'typeof Foo' is not assignable to type 'number'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|