Files
sdk/pkg/front_end/testcases/general/ignore_function.dart
T
Kallen Tu 7bae7294c9 [cfe/flip-modifiers] Remove error for Function completely. Rely on its modifier errors.
Change-Id: I2532f24b360ea0a2f7afb92f3393719a16fa15e3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286957
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Kallen Tu <kallentu@google.com>
2023-03-07 08:13:19 +00:00

25 lines
667 B
Dart

// Copyright (c) 2019, 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.
// @dart=2.19
import "dart:core" as core;
class A implements core.Function {
// No error here: core.Function is ignored.
operator ==(other) => false;
}
class B implements Function {
// Error here Object.== and Function.== disagree on the type of other.
operator ==(other) => false;
}
// CFE Error here: Function is built-in id, could not used as type id.
class Function {
core.bool operator ==(core.Object other) => false;
}
main() {}