dart-lang / dart-lang/language

Specification: The return type of a function literal needs to take inference into account

Open
#3,752 0 comments 0 reactions 0 assignees View on GitHub
specification
Dominant language
TeX
Stars
2.9k
Forks
239
Avg merge
2d 18h
Merged PRs (30d)
14

Description

Section 'Function Expressions' in the language specification mentions that type inference is assumed to have taken place already, and that it may provide a return type for any given function literal.

But the text below does not allow for taking such a provided-by-inference return type into account when computing the static (and, consequently, dynamic) type of the function. This needs to be fixed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.