blob: 1a149d38580df6b813d5b91a02c905cc01e82f39 [file] [log] [blame]
/*
* Copyright (c) 2019, 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.
*/
/**
* @description Regression test for the issue 34560 (Analyzer: Some correct
* super-bounded types are rejected): check case with non-function type alias.
* @author iarkh@unipro.ru
*/
// SharedOptions=--enable-experiment=nonfunction-type-aliases
class C<X> {}
typedef A<X extends num> = C<X>;
A<dynamic> a;
List<A<dynamic>> lst;
main() {
A<dynamic>(); //# 01: compile-time error
}