blob: ae64c4c7dc26e7f8f97c6317baa67a5ab1982669 [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 ... type parameter ...
* @description Check that metadata is allowed before type parameter declaration
* @author a.semenov@unipro.ru
* @issue 43186
*/
import 'dart:mirrors';
import '../../Utils/expect.dart';
class A {
const A();
}
class B<@A() T> {
}
main() {
Expect.equals('.A',
MirrorSystem.getName(reflectClass(B).typeVariables[0]
.metadata[0].type.qualifiedName));
}