blob: dcee5f604b7134ff48aee5134a633e16ec67f963 [file] [log] [blame]
// Copyright (c) 2018, 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 33864 (Analyzer throws exception
/// if function optional argument is omitted and it's parametrized).
/// Seems like according to the Issue 33684 evaluation there should be a compile
/// error here, so checks that [testme1] function cannot be called without the
/// type parameter specified. Test example 2.
/// @Issue 33864
/// @author
testme1<X extends List<X?>>() {}
testme2<X extends List<int>>() {}
main() {
// [analyzer] unspecified
// [cfe] unspecified