blob: b67f11b7fd080f052a58f839fe45bcaeb5e0b3bc [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 a library, ...
/// @description Check that metadata is allowed before library token.
/// @author
import 'dart:mirrors';
import '../../Utils/expect.dart';
import 'before_library_lib1.dart';
main() {
Symbol libraryName = MirrorSystem.getSymbol('before_library_lib1');
var metadata = currentMirrorSystem().findLibrary(libraryName).metadata;
Expect.equals('before_library_lib1', metadata[0].reflectee.expires);