blob: 650160caa58f276e17bcb9fb998e3963988a7224 [file] [log] [blame]
/*
* Copyright (c) 2021, 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:
* (‘@’ qualified (‘.’ identifier)? (arguments)?)*
* ;
* @description Check that it is a compile error if wrong type argument is used
* @author sgrekhov@unipro.ru
*/
// SharedOptions=--enable-experiment=generic-metadata
import 'syntax_lib1.dart';
@Y<String>()
// [error line 17, column 0]
// [analyzer] unspecified
// [cfe] unspecified
class Test1 {}
@Z<String>(42)
// [error line 23, column 0]
// [analyzer] unspecified
// [cfe] unspecified
class Test2 {}
main() {
Test1 test1 = new Test1();
Test2 test2 = new Test2();
}