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

Side by Side Diff: dart/tests/language/main_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 main(
6
7 a /// 01: ok
8 a, b /// 02: ok
9 a, b, c /// 03: static type warning, runtime error
10 a, b, {c} /// 04: ok
11 a, b, [c] /// 05: ok
12
13 [a] /// 20: ok
14 a, [b] /// 21: ok
15 [a, b] /// 22: ok
16
17 {a} /// 41: ok
18 a, {b} /// 42: ok
19 {a, b} /// 43: ok
20 [a, b, c] /// 44: ok
21 {a, b, c} /// 45: ok
22
23 ) {
24 }
OLDNEW
« no previous file with comments | « dart/tests/language/main_not_a_function_test.dart ('k') | dart/tests/language/no_main_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698