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

Side by Side Diff: tests/isolate/static_function_lib.dart

Issue 68813002: Fix VM not accepting static methods for Isolate.spawn. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rule out anonymous closures. Created 7 years, 1 month 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) 2012, 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 library static_function_testlib;
6
7 // Used by static_function_test.dart.
8
9 void function(port) { port.send("LIBTOP"); }
10 void _function(port) { port.send("_LIBTOP"); }
11
12 Function get privateFunction => _function;
13
14 class C {
15 static void function(SendPort port) { port.send("LIB"); }
16 static void _function(SendPort port) { port.send("LIBPRIVATE"); }
17 static Function get privateFunction => _function;
18 }
19
20 Function get privateClassFunction => _C.function;
21 Function get privateClassAndFunction => _C._function;
22
23 class _C {
24 static void function(SendPort port) { port.send("_LIB"); }
25 static void _function(SendPort port) { port.send("_LIBPRIVATE"); }
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698