<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section! Please help us by doing the following steps before logging an issue: * Search: https://github.com/Microsoft/TypeScript/search?type=Issues * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ Please fill in the *entire* template below. --> <!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. --> **TypeScript Version:** `3.5.0-dev.20190410`, (`v3.4.3` doesn't have this bug) <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** enum, class, assignable, index signature **Code** ```ts enum Enum { A } const e0: { [key: string]: any } = Enum; // ok const e1: { [key: string]: unknown } = Enum; // produces an unexpected error report // const obj = { A: 0 }; const o0: { [key: string]: any } = obj; // ok const o1: { [key: string]: unknown } = obj; // ok // class Class {} export const cl0: { [key: string]: any } = new Class; // ok export const cl1: { [key: string]: unknown } = new Class; // produces an unexpected error report ``` **Expected behavior:** This code should compile with no errors. **Actual behavior:** Error near the definition of `e1` and `cl1`: ``` Type 'typeof Enum/Class' is not assignable to type '{ [key: string]: unknown; }'. Index signature is missing in type 'typeof Enum/Class'. ``` **Playground Link:** This works well in the playground as it uses the stable version of `tsc`, but this bug appears in dev build. [Klick me](https://www.typescriptlang.org/play/index.html#src=enum%20Enum%20%7B%20A%20%7D%0D%0A%0D%0Aconst%20e0%3A%20%7B%20%5Bkey%3A%20string%5D%3A%20any%20%20%20%20%20%7D%20%3D%20Enum%3B%20%20%20%20%20%20%2F%2F%20ok%0D%0Aconst%20e1%3A%20%7B%20%5Bkey%3A%20string%5D%3A%20unknown%20%7D%20%3D%20Enum%3B%20%2F%2F%20produces%20an%20unexpected%20error%20report%0D%0A%0D%0A%2F%2F%0D%0A%0D%0Aconst%20obj%20%3D%20%7B%20A%3A%200%20%7D%3B%0D%0A%0D%0Aconst%20o0%3A%20%7B%20%5Bkey%3A%20string%5D%3A%20any%20%20%20%20%20%7D%20%3D%20obj%3B%20%2F%2F%20ok%0D%0Aconst%20o1%3A%20%7B%20%5Bkey%3A%20string%5D%3A%20unknown%20%7D%20%3D%20obj%3B%20%2F%2F%20ok%0D%0A%0D%0A%2F%2F%20%0D%0A%0D%0Aclass%20User%20%7B%7D%0D%0A%0D%0Aexport%20const%20cl0%3A%20%7B%20%5Bkey%3A%20string%5D%3A%20any%20%20%20%20%20%7D%20%3D%20new%20User%3B%20%2F%2F%20ok%0D%0Aexport%20const%20cl1%3A%20%7B%20%5Bkey%3A%20string%5D%3A%20unknown%20%7D%20%3D%20new%20User%3B%20%2F%2F%20produces%20an%20unexpected%20error%20report). **Related Issues:** <!-- Did you find other bugs that looked similar? --> None.