blob: 41bb7f59f94e2d7a3b00c8c61711a7f32a6ffc2b [file] [log] [blame]
// 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.
/// @assertion Static member declarations in the extension declaration can be
/// accessed the same way as static members of a class or mixin declaration: By
/// prefixing with the extension's name.
/// @description Check that non-static member can not be accessed by prefixing
/// with the extension's name
/// @author
extension MySmart on Object {
int getId() => 128;
main() {
// ^
// [analyzer] unspecified
// [cfe] unspecified