blob: f61023cd9d319edbc2101329a54c3c6323c56e8b [file] [log] [blame]
// 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.
abstract class Base {
void update(void Function(Iterable) updates);
void update2(void updates(Iterable iterable));
}
class CovariantParsingIssue implements Base {
void update(covariant void Function(List) updates) {}
void update2(covariant void updates(List list)) {}
}
void VoidParsingIssue() {
List<void Function(int)> functions = [(int i) => print(i + 1)];
functions[0](42);
}
void main() {
new CovariantParsingIssue();
VoidParsingIssue();
}