blob: 7295ca9128b8a78376f6fd3da633170cadf5a134 [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.
// @dart = 2.9
/// @description Regression test for the Issue 33863 (Dart does not throw error
/// if parameter of incorrect type is passed to the function): Checks that
/// parameter type is checked correctly for functions.
/// @Issue 33863
/// @author iarkh@unipro.ru
testme<X extends int>(X x) {}
main() {
testme("incorrect param");
//^
// [analyzer] unspecified
// [cfe] unspecified
}