afd59f0d46
Check worked incorrectly in case when argument type and expected type are the same intersection type, which is possible for local variables without explicit type declaration.