dart-lang / dart-lang/language
No return statement should be compile time error.
Open
feature
- Dominant language
- TeX
- Stars
- 2.9k
- Forks
- 239
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 14
Description
In dart, I can write a method that returns type Foo. I can then omit the return statement from the method, not returning any instance of Foo.
This should be a compile time error.
Contributor guide
Research direction
The issue names no files, tests, or entry points. Start by reading the Dart language specification and determine where return requirements are defined; then identify the specification change and conformance tests needed to establish that methods declared to return Foo cannot omit a return statement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100