blob: 43d6fe65a1604b2d369b1314573eb5dfd0866dcb [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 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
}