blob: 94f22641289c0d3753a9804450d398d03daa49d9 [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 ... parameter ...
/// @description Check that metadata is allowed before static setter parameter
/// @author
import 'dart:mirrors';
import '../../Utils/expect.dart';
class A {
const A();
class B {
static void set b(@A() int value) {}
main() {
var getterName = MirrorSystem .getSymbol('b=');
MethodMirror bMirror =
reflectClass(B).staticMembers[getterName] as MethodMirror;
ParameterMirror paramMirror = bMirror.parameters[0];