blob: 1f0656231228c7b4ce7faa31de5f05d2a0f9e553 [file] [log] [blame]
// Copyright (c) 2015, 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 Metadata can appear before ... function ...
/// @description Check that metadata is allowed before static getter
/// @author
import 'dart:mirrors';
import '../../Utils/expect.dart';
class A {
const A();
class B {
@A() static int get b => 0;
main() {
var getterName = MirrorSystem .getSymbol('b');
MethodMirror bMirror =
reflectClass(B).staticMembers[getterName] as MethodMirror;