Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Unified Diff: tests/language/void_arrow_return_test.dart

Issue 2899683003: Included setters in testing of the void => return-any-type feature. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/type_checker_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/void_arrow_return_test.dart
diff --git a/tests/language/void_arrow_return_test.dart b/tests/language/void_arrow_return_test.dart
index 0bbcdadc93b3e71fce96edfb4fc2e77c9480dd18..17ab84c9190b0caa5162011e1a2a81e9e21b94eb 100644
--- a/tests/language/void_arrow_return_test.dart
+++ b/tests/language/void_arrow_return_test.dart
@@ -5,7 +5,9 @@
// Testing that a void arrow function is allowed to return any type of value.
void foo() => 42;
+void set bar(x) => 43;
main() {
foo();
+ bar = 44;
}
« no previous file with comments | « tests/compiler/dart2js/type_checker_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698