-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).Dart language related items (some items might be better tracked at github.com/dart-lang/language).closed-duplicateClosed in favor of an existing reportClosed in favor of an existing report
Description
This issue was originally filed by [email protected]
What steps will reproduce the problem?
Object thrower(String msg) => throw new UnsupportedOperationException(msg);
What is the expected output? What do you see instead?
Defining the same function with curly braces works, but I don't see why I can't use the short form:
Error: line 1 pos 31: unexpected token 'throw'
Object thrower(String msg) => throw new UnsupportedOperationException(msg);
What version of the product are you using? On what operating system?
Dart SDK version 7904
Metadata
Metadata
Assignees
Labels
area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).Dart language related items (some items might be better tracked at github.com/dart-lang/language).closed-duplicateClosed in favor of an existing reportClosed in favor of an existing report