Closed
Description
openedon Oct 23, 2017
TypeScript Version: 2.5.3
Code
interface X {
x: number
}
interface Y {
x: number
y: number
}
function f(x: Y) { }
const g : (x: X) => void = f
Expected behavior:
I would expect g
to have an error because f can get called without the necessary y
property...
Actual behavior:
...but there isnt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment