Skip to content

Commit bb9d96f

Browse files
author
Dart CI
committed
Version 2.14.0-146.0.dev
Merge commit '95daf6a38362989c7d3025d09ed11fb0a26c7695' into 'dev'
2 parents c696ecf + 95daf6a commit bb9d96f

File tree

2 files changed

+1
-129
lines changed

2 files changed

+1
-129
lines changed

pkg/analyzer/test/src/task/strong/checker_test.dart

Lines changed: 0 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -3697,79 +3697,6 @@ void f<T extends num>(T x, T y) {
36973697
]);
36983698
}
36993699

3700-
test_typeSubtyping_assigningClass() async {
3701-
await assertErrorsInCode('''
3702-
class A {}
3703-
class B extends A {}
3704-
3705-
void main() {
3706-
dynamic y;
3707-
Object o;
3708-
int i = 0;
3709-
double d = 0.0;
3710-
num n;
3711-
A a;
3712-
B b;
3713-
y = a;
3714-
o = a;
3715-
i = a;
3716-
d = a;
3717-
n = a;
3718-
a = a;
3719-
b = a;
3720-
}
3721-
''', [
3722-
error(HintCode.UNUSED_LOCAL_VARIABLE, 58, 1),
3723-
error(HintCode.UNUSED_LOCAL_VARIABLE, 71, 1),
3724-
error(HintCode.UNUSED_LOCAL_VARIABLE, 81, 1),
3725-
error(HintCode.UNUSED_LOCAL_VARIABLE, 98, 1),
3726-
error(HintCode.UNUSED_LOCAL_VARIABLE, 114, 1),
3727-
error(HintCode.UNUSED_LOCAL_VARIABLE, 130, 1),
3728-
error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 160, 1),
3729-
error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 170, 1),
3730-
error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 180, 1),
3731-
]);
3732-
}
3733-
3734-
test_typeSubtyping_assigningSubclass() async {
3735-
await assertErrorsInCode('''
3736-
class A {}
3737-
class B extends A {}
3738-
class C extends A {}
3739-
3740-
void main() {
3741-
dynamic y;
3742-
Object o;
3743-
int i = 0;
3744-
double d = 0.0;
3745-
num n;
3746-
A a;
3747-
B b;
3748-
C c;
3749-
y = b;
3750-
o = b;
3751-
i = b;
3752-
d = b;
3753-
n = b;
3754-
a = b;
3755-
b = b;
3756-
c = b;
3757-
}
3758-
''', [
3759-
error(HintCode.UNUSED_LOCAL_VARIABLE, 79, 1),
3760-
error(HintCode.UNUSED_LOCAL_VARIABLE, 92, 1),
3761-
error(HintCode.UNUSED_LOCAL_VARIABLE, 102, 1),
3762-
error(HintCode.UNUSED_LOCAL_VARIABLE, 119, 1),
3763-
error(HintCode.UNUSED_LOCAL_VARIABLE, 135, 1),
3764-
error(HintCode.UNUSED_LOCAL_VARIABLE, 143, 1),
3765-
error(HintCode.UNUSED_LOCAL_VARIABLE, 159, 1),
3766-
error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 189, 1),
3767-
error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 199, 1),
3768-
error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 209, 1),
3769-
error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 239, 1),
3770-
]);
3771-
}
3772-
37733700
test_typeSubtyping_dynamicDowncasts() async {
37743701
await assertErrorsInCode('''
37753702
class A {}
@@ -3825,49 +3752,6 @@ void main() {
38253752
]);
38263753
}
38273754

3828-
test_typeSubtyping_interfaces() async {
3829-
await assertErrorsInCode('''
3830-
class A {}
3831-
class B extends A {}
3832-
class C extends A {}
3833-
class D extends B implements C {}
3834-
3835-
void main() {
3836-
A top;
3837-
B left;
3838-
C right;
3839-
D bot;
3840-
{
3841-
top = top;
3842-
top = left;
3843-
top = right;
3844-
top = bot;
3845-
}
3846-
{
3847-
left = top;
3848-
left = left;
3849-
left = right;
3850-
left = bot;
3851-
}
3852-
{
3853-
right = top;
3854-
right = left;
3855-
right = right;
3856-
right = bot;
3857-
}
3858-
{
3859-
bot = top;
3860-
bot = left;
3861-
bot = right;
3862-
bot = bot;
3863-
}
3864-
}
3865-
''', [
3866-
error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 274, 5),
3867-
error(CompileTimeErrorCode.INVALID_ASSIGNMENT, 339, 4),
3868-
]);
3869-
}
3870-
38713755
test_unaryOperators() async {
38723756
await assertErrorsInCode('''
38733757
class A {
@@ -3924,18 +3808,6 @@ test() {
39243808
]);
39253809
}
39263810

3927-
test_unboundRedirectingConstructor() async {
3928-
// This is a regression test for https://github.com/dart-lang/sdk/issues/25071
3929-
await assertErrorsInCode('''
3930-
class Foo {
3931-
Foo() : this.init();
3932-
}
3933-
''', [
3934-
error(CompileTimeErrorCode.REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR, 22,
3935-
11),
3936-
]);
3937-
}
3938-
39393811
test_unboundTypeName() async {
39403812
await assertErrorsInCode('''
39413813
void main() {

tools/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ CHANNEL dev
2727
MAJOR 2
2828
MINOR 14
2929
PATCH 0
30-
PRERELEASE 145
30+
PRERELEASE 146
3131
PRERELEASE_PATCH 0

0 commit comments

Comments
 (0)