blob: 524b4f6fd7581ce82a4f7ac8af4078884800ca53 [file] [log] [blame]
// Copyright (c) 2021, 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.
// This test illustrates the error scenario described in
class C {}
extension on C {
void Function() get call => () {};
test(C c) {
// ^
// [cfe] Cannot invoke an instance of 'C' because it declares 'call' to be something other than a method.
main() {}