thanks for watching!
This is actually a mistake. When a function is contextually introduced, we should consider it as if there were an annotation of the return type that represents the intended return type (in section 4.9 of the language specification), so you are correct that there should be an error.
I already have a fix for this, but can you register a bug on the CodePlex website so our team can track it? Today I can push the correction to our development industry.
Thanks again!
source share