blob: 83fb8e083331c8b2f716028cc77206aa0fc8f5b9 [file] [log] [blame] [edit]
/*
* Copyright (c) 2017, 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.
*/
// Formatting can break multitests, so don't format them.
// dart format off
// 'covariant' when used incorrectly should report an error and not crash
// the VM.
typedef bool Test(covariant num arg); //# none: compile-time error
void main() {
Test t = (int value) => false;
}