dart-lang / dart-lang/language

No return statement should be compile time error.

Open
#834 2 comments 3 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.