[server] bump SDK constraint; wildcards FTW!
Change-Id: I35b68be178eb5518f12520dfd523162b0eb3428d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/390583 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Phil Quitslund <pquitslund@google.com>
This commit is contained in:
@@ -197,7 +197,7 @@ abstract final class DartPostfixCompletion {
|
||||
|
||||
static bool _false(_) => false;
|
||||
|
||||
static Future<PostfixCompletion?> _null(_, __) async => null;
|
||||
static Future<PostfixCompletion?> _null(_, _) async => null;
|
||||
}
|
||||
|
||||
/// A description of a postfix completion.
|
||||
|
||||
@@ -3,7 +3,7 @@ name: analysis_server
|
||||
publish_to: none
|
||||
|
||||
environment:
|
||||
sdk: '>=3.3.0 <4.0.0'
|
||||
sdk: '>=3.7.0-edge <4.0.0'
|
||||
|
||||
# Use 'any' constraints here; we get our versions from the DEPS file.
|
||||
dependencies:
|
||||
|
||||
@@ -24,7 +24,7 @@ final errorY = error(ErrorCodes.ParseError, 'y');
|
||||
class ErrorOrRecord2ExtensionTest {
|
||||
test_ifResults_error() {
|
||||
var called = false;
|
||||
(success(1), errorX).ifResults((_, __) => called = true);
|
||||
(success(1), errorX).ifResults((_, _) => called = true);
|
||||
expect(called, isFalse);
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ class ErrorOrRecord2ExtensionTest {
|
||||
class ErrorOrRecord3ExtensionTest {
|
||||
test_ifResults_error() {
|
||||
var called = false;
|
||||
(success(1), success(1), errorX).ifResults((_, __, ___) => called = true);
|
||||
(success(1), success(1), errorX).ifResults((_, _, _) => called = true);
|
||||
expect(called, isFalse);
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ class ErrorOrRecord4ExtensionTest {
|
||||
test_ifResults_error() {
|
||||
var called = false;
|
||||
(success(1), success(1), success(1), errorX)
|
||||
.ifResults((_, __, ___, ____) => called = true);
|
||||
.ifResults((_, _, _, _) => called = true);
|
||||
expect(called, isFalse);
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ var x = B(a: A(), b: const [0]);
|
||||
Future<void> test_implicitConst_invalidConstant() async {
|
||||
await resolveTestCode('''
|
||||
class A {
|
||||
const A(_, __);
|
||||
const A(_, _);
|
||||
}
|
||||
|
||||
void f(bool b) {
|
||||
@@ -151,7 +151,7 @@ void f(bool b) {
|
||||
|
||||
await assertHasFix('''
|
||||
class A {
|
||||
const A(_, __);
|
||||
const A(_, _);
|
||||
}
|
||||
|
||||
void f(bool b) {
|
||||
|
||||
Reference in New Issue
Block a user