blob: 78a304abf1b741e0faebfd6bbd1d6b070f19efc9 [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.
// From co19/Language/Types/Type_Aliases/scope_t02
class A {}
class C<T> {}
typedef AAlias = A;
typedef CAlias<T> = C<T>;
typedef AAlias = A; // error
typedef AAlias = C<String>; // error
typedef CAlias<T> = C<T>; // error
typedef CAlias = C<String>; // error
typedef CAlias<T1, T2> = C<T1>; // error
main() {}