021ebb2033
Fix some misspelled flags. Remove some non-existent flags. Fix --short_socket_read and --short_socket_write flags used in IO tests. Running with --ignore-unrecognized-flags is still on because some flags are only visible in DEBUG mode. BUG= R=asiva@google.com Review URL: https://codereview.chromium.org/2247733005 .
19 lines
477 B
Dart
19 lines
477 B
Dart
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
// 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.
|
|
// VMOptions=--enable_type_checks
|
|
//
|
|
// Test of calling Function, which is field of some class.
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
class Wrapper {
|
|
Function f;
|
|
}
|
|
|
|
main() {
|
|
Wrapper w = new Wrapper();
|
|
w.f = () {return 42;};
|
|
Expect.equals(42, w.f());
|
|
}
|