Skip to content

Commit 2459ad3

Browse files
committed
Accept new baselines
1 parent ffd2b4a commit 2459ad3

File tree

50 files changed

+611
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+611
-70
lines changed

testdata/baselines/reference/submodule/compiler/abstractClassInLocalScopeIsAbstract.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
>A : A
1515

1616
new A();
17-
>new A() : any
17+
>new A() : A
1818
>A : typeof A
1919

2020
new B();
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- old.abstractClassInLocalScopeIsAbstract.types
2+
+++ new.abstractClassInLocalScopeIsAbstract.types
3+
@@= skipped -13, +13 lines =@@
4+
>A : A
5+
6+
new A();
7+
->new A() : any
8+
+>new A() : A
9+
>A : typeof A
10+
11+
new B();

testdata/baselines/reference/submodule/compiler/newAbstractInstance2.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ import A from "./a";
99
>A : typeof A
1010

1111
new A();
12-
>new A() : any
12+
>new A() : A
1313
>A : typeof A
1414

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--- old.newAbstractInstance2.types
2+
+++ new.newAbstractInstance2.types
3+
@@= skipped -8, +8 lines =@@
4+
>A : typeof A
5+
6+
new A();
7+
->new A() : any
8+
+>new A() : A
9+
>A : typeof A

testdata/baselines/reference/submodule/compiler/noCrashOnMixin.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CrashTrigger extends Mixin(Empty) {
4242
>trigger : () => void
4343

4444
new Concrete();
45-
>new Concrete() : any
45+
>new Concrete() : Concrete
4646
>Concrete : typeof Concrete
4747
}
4848
}

testdata/baselines/reference/submodule/compiler/noCrashOnMixin.types.diff

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,12 @@
2424
+>Mixin : <TBase extends Constructor<{}>>(Base: TBase) => { new (...args: any[]): (Anonymous class); prototype: Mixin.(Anonymous class); } & TBase
2525
>Empty : typeof Empty
2626

27-
public trigger() {
27+
public trigger() {
28+
>trigger : () => void
29+
30+
new Concrete();
31+
->new Concrete() : any
32+
+>new Concrete() : Concrete
33+
>Concrete : typeof Concrete
34+
}
35+
}

testdata/baselines/reference/submodule/conformance/classAbstractConstructorAssignability.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ new AA;
3232
>AA : typeof A
3333

3434
new BB;
35-
>new BB : any
35+
>new BB : B
3636
>BB : typeof B
3737

3838
new CC;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- old.classAbstractConstructorAssignability.types
2+
+++ new.classAbstractConstructorAssignability.types
3+
@@= skipped -31, +31 lines =@@
4+
>AA : typeof A
5+
6+
new BB;
7+
->new BB : any
8+
+>new BB : B
9+
>BB : typeof B
10+
11+
new CC;

testdata/baselines/reference/submodule/conformance/classAbstractFactoryFunction.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function NewB(Factory: typeof B) {
2424
>B : typeof B
2525

2626
return new B;
27-
>new B : any
27+
>new B : B
2828
>B : typeof B
2929
}
3030

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- old.classAbstractFactoryFunction.types
2+
+++ new.classAbstractFactoryFunction.types
3+
@@= skipped -23, +23 lines =@@
4+
>B : typeof B
5+
6+
return new B;
7+
->new B : any
8+
+>new B : B
9+
>B : typeof B
10+
}

0 commit comments

Comments
 (0)