14531fa62d
Only delta from the original is a bad merge of tests/corelib/list_test.dart
This reverts commit 44d8be0ed3.
BUG=
Review-Url: https://codereview.chromium.org/2774783002 .
25 lines
638 B
Dart
25 lines
638 B
Dart
// Copyright (c) 2012, 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.
|
|
|
|
class X {
|
|
call() => 42;
|
|
}
|
|
|
|
class Y {
|
|
call(int x) => 87;
|
|
}
|
|
|
|
typedef F(int x);
|
|
typedef G(String y);
|
|
|
|
main() {
|
|
X x = new X();
|
|
Function f = x; // Should pass checked mode test
|
|
Y y = new Y();
|
|
Function g = y; // Should pass checked mode test
|
|
F f0 = y; // Should pass checked mode test
|
|
F f1 = x; // //# 00: dynamic type error, static type warning
|
|
G g0 = y; // //# 01: dynamic type error, static type warning
|
|
}
|