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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/ClassesInterfaces.dart

Issue 11533010: Issue 6710. Report error for function libteral with return type and name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
Index: compiler/javatests/com/google/dart/compiler/parser/ClassesInterfaces.dart
diff --git a/compiler/javatests/com/google/dart/compiler/parser/ClassesInterfaces.dart b/compiler/javatests/com/google/dart/compiler/parser/ClassesInterfaces.dart
index 9535c88072b1c878182857492f6c3fcf07ed271c..7faaeac605caaa2bb2ca60ee4e703ff51c714b30 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/ClassesInterfaces.dart
+++ b/compiler/javatests/com/google/dart/compiler/parser/ClassesInterfaces.dart
@@ -77,20 +77,12 @@ class Baz extends Kuk implements A, B, C {
id(x) { return x; }
int id(x) { return x; }
Box<int, double> id(x) { return x; }
- var f = hest() { };
- var f = int horse() { };
- var f = Box<int> llama() { };
- var f = Box<int, double> llama() { };
+ var f = () { };
assert(x == 12);
- id(void foo(x) {});
- id(foo(x) {});
- id(Box<int> foo(x) {});
- id(Box<int, double> foo(x) {});
- id(Box<int, double> foo);
+ id((x) {});
a < b;
int x = a < b;
id(() {});
- id(void _() {});
}
}

Powered by Google App Engine
This is Rietveld 408576698