blob: ba995b584fd50dc78f6e05bac37540fc64fb75a2 [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.
import 'package:analyzer/src/dart/error/syntactic_errors.dart';
import 'partial_code_support.dart';
main() {
new ParameterTest().buildAll();
}
class ParameterTest extends PartialCodeTest {
buildAll() {
buildTests(
'required',
[
new TestDescriptor(
'functionType_noIdentifier',
'f(Function(void)) {}',
[
ScannerErrorCode.EXPECTED_TOKEN,
],
'f(Function(void) _s_) {}',
failing: ['eof'],
),
],
[],
);
}
}