blob: 08f330ad51a4fdab0fed0c7a0d9d649a17dcdf62 [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.
// @dart = 2.9
/// @assertion Metadata can appear before ... class ...
/// @description Check that metadata is allowed before class declaration
/// @author a.semenov@unipro.ru
import 'dart:mirrors';
import '../../Utils/expect.dart';
class A {
const A();
}
@A()
class B {}
main() {
Expect.equals('.A',
MirrorSystem.getName(reflectClass(B).metadata[0].type.qualifiedName));
}