Closed
Description
Hi there.
I'm using the tsc compiler, version 1.8.0-dev.20151231, and I'm running into a weird issue where widening of structural types works when I'm defining a class with a function property, and fails when I'm replacing that function property by a "proper" method.
But see for yourself: This is the version that compiles, and this is the version that doesn't.
What is the difference here? Is this a bug in the type inference engine?