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

Unified Diff: dart/tests/language/main_not_a_function_test.dart

Issue 285903006: Fix main handling in dart2js and add tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r38186. Created 6 years, 5 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 | « dart/tests/language/language.status ('k') | dart/tests/language/main_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/main_not_a_function_test.dart
diff --git a/dart/tests/try/poi/data/empty_main.dart b/dart/tests/language/main_not_a_function_test.dart
similarity index 70%
copy from dart/tests/try/poi/data/empty_main.dart
copy to dart/tests/language/main_not_a_function_test.dart
index 591abebadd6fbd4884c6aef8582a9ec641b89b3a..e2eec9643be2666791185c2b3e2939e64894e089 100644
--- a/dart/tests/try/poi/data/empty_main.dart
+++ b/dart/tests/language/main_not_a_function_test.dart
@@ -2,4 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+/* /// 01: static type warning, runtime error
main() {}
+*/ /// 01: continued
+
+var main; /// 01: continued
« no previous file with comments | « dart/tests/language/language.status ('k') | dart/tests/language/main_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698