<!-- 🚨 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.3 **Code** ```ts type Record2<K extends keyof any, T> = { [P in K]: T; }; function defaultRecord(x: Record<'a', string>, y: Record<string, string>) { x = y; // no error, but error expected. } function customRecord(x: Record2<'a', string>, y: Record2<string, string>) { x = y; // no error, but error expected. } function mixed1(x: Record2<'a', string>, y: Record<string, string>) { x = y; // error } function mixed2(x: Record<'a', string>, y: Record2<string, string>) { x = y; // error } ``` **Playground Link:** [link](https://www.typescriptlang.org/play/#src=type%20Record2%3CK%20extends%20keyof%20any%2C%20T%3E%20%3D%20%7B%0A%20%20%20%20%5BP%20in%20K%5D%3A%20T%3B%0A%7D%3B%0A%0Afunction%20defaultRecord(x%3A%20Record%3C'a'%2C%20string%3E%2C%20y%3A%20Record%3Cstring%2C%20string%3E)%20%7B%0A%20%20%20%20x%20%3D%20y%3B%20%2F%2F%20no%20error%2C%20but%20error%20expected.%0A%7D%0A%0Afunction%20customRecord(x%3A%20Record2%3C'a'%2C%20string%3E%2C%20y%3A%20Record2%3Cstring%2C%20string%3E)%20%7B%0A%20%20%20%20x%20%3D%20y%3B%20%2F%2F%20no%20error%2C%20but%20error%20expected.%0A%7D%0A%0Afunction%20mixed1(x%3A%20Record2%3C'a'%2C%20string%3E%2C%20y%3A%20Record%3Cstring%2C%20string%3E)%20%7B%0A%20%20%20%20x%20%3D%20y%3B%20%2F%2F%20error%0A%7D%0A%0Afunction%20mixed2(x%3A%20Record%3C'a'%2C%20string%3E%2C%20y%3A%20Record2%3Cstring%2C%20string%3E)%20%7B%0A%20%20%20%20x%20%3D%20y%3B%20%2F%2F%20error%0A%7D) **Related Issues:** #28798 <!-- Did you find other bugs that looked similar? -->