blob: 861ac375e3cf7a770f2451e8b9f59f2e5804c5c5 [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.
// @dart = 2.9
/// @assertion
/// metadata:
/// (‘@’ qualified (‘.’ identifier)? (arguments)?)*
/// ;
/// @description Check that it is a compile error if wrong type argument is used
/// @author sgrekhov@unipro.ru
import 'syntax_lib1.dart';
@Y<String>()
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
class Test1 {}
@Z<String>(42)
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
class Test2 {}
main() {
Test1 test1 = new Test1();
Test2 test2 = new Test2();
}