Closed
Description
TypeScript Version: 3.1.6, 3.2.0-rc, 3.3.0-dev.20181121
Search Terms:
conjunction assignable wrong type
Code
declare const a: { a: string; b: number }
declare const b: { a: string } & { b: number }
declare function f(x: { [k: string]: string }): void
f(a) // error
f(b) // NO error
Expected behavior:
Errors on both f(a) and f(b)
Actual behavior:
Errors only on f(a)
Related Issues: gcanti/io-ts#234 (comment)
gcanti/fp-ts-routing#37