Accept new baselines

This commit is contained in:
Anders Hejlsberg
2020-04-12 15:28:25 -07:00
parent 2fbab38323
commit 957d9e6418
48 changed files with 137 additions and 137 deletions
@@ -23,9 +23,9 @@ someFunction(function(BaseClass) {
this.foo = "bar";
>this.foo = "bar" : "bar"
>this.foo : string
>this.foo : any
>this : this
>foo : string
>foo : any
>"bar" : "bar"
}
_render(error) {
@@ -25,9 +25,9 @@ class B extends A {
this.foo = () => 3;
>this.foo = () => 3 : () => number
>this.foo : () => number
>this.foo : any
>this : this
>foo : () => number
>foo : any
>() => 3 : () => number
>3 : 3
}
@@ -12,9 +12,9 @@ class Derived {
this.x = 10;
>this.x = 10 : 10
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>10 : 10
var that = this;
@@ -91,9 +91,9 @@ class Sql extends Wagon {
this.foonly = 12
>this.foonly = 12 : 12
>this.foonly : number
>this.foonly : any
>this : this
>foonly : number
>foonly : any
>12 : 12
}
/**
@@ -67,9 +67,9 @@ class B extends Err {
this.wat = 12
>this.wat = 12 : 12
>this.wat : number
>this.wat : any
>this : this
>wat : number
>wat : any
>12 : 12
}
f() {
@@ -32,9 +32,9 @@ exports.Classic = class {
constructor() {
this.p = 1
>this.p = 1 : 1
>this.p : number
>this.p : any
>this : this
>p : number
>p : any
>1 : 1
}
}
@@ -11,24 +11,24 @@ class C {
this.inConstructor = 0;
>this.inConstructor = 0 : 0
>this.inConstructor : string | number
>this.inConstructor : any
>this : this
>inConstructor : string | number
>inConstructor : any
>0 : 0
}
else {
this.inConstructor = "string"
>this.inConstructor = "string" : "string"
>this.inConstructor : string | number
>this.inConstructor : any
>this : this
>inConstructor : string | number
>inConstructor : any
>"string" : "string"
}
this.inMultiple = 0;
>this.inMultiple = 0 : 0
>this.inMultiple : number
>this.inMultiple : any
>this : this
>inMultiple : number
>inMultiple : any
>0 : 0
}
method() {
@@ -5,9 +5,9 @@ class Base {
constructor() {
this.p = 1
>this.p = 1 : 1
>this.p : number
>this.p : any
>this : this
>p : number
>p : any
>1 : 1
}
}
@@ -25,9 +25,9 @@ class Derived extends Base {
// should be OK, and p should have type number from this assignment
this.p = 1
>this.p = 1 : 1
>this.p : number
>this.p : any
>this : this
>p : number
>p : any
>1 : 1
}
test() {
@@ -209,16 +209,16 @@ export class K {
constructor() {
this.p1 = 12;
>this.p1 = 12 : 12
>this.p1 : number
>this.p1 : any
>this : this
>p1 : number
>p1 : any
>12 : 12
this.p2 = "ok";
>this.p2 = "ok" : "ok"
>this.p2 : string
>this.p2 : any
>this : this
>p2 : string
>p2 : any
>"ok" : "ok"
}
@@ -243,9 +243,9 @@ export class M extends null {
constructor() {
this.prop = 12;
>this.prop = 12 : 12
>this.prop : number
>this.prop : any
>this : this
>prop : number
>prop : any
>12 : 12
}
}
@@ -270,9 +270,9 @@ export class N extends L {
this.another = param;
>this.another = param : T
>this.another : T
>this.another : any
>this : this
>another : T
>another : any
>param : T
}
}
@@ -298,9 +298,9 @@ export class O extends N {
this.another2 = param;
>this.another2 = param : U
>this.another2 : U
>this.another2 : any
>this : this
>another2 : U
>another2 : any
>param : U
}
}
@@ -15,9 +15,9 @@ module.exports = class Thing {
this.t = 12 + p;
>this.t = 12 + p : number
>this.t : number
>this.t : any
>this : this
>t : number
>t : any
>12 + p : number
>12 : 12
>p : number
@@ -14,9 +14,9 @@ module.exports = class {
this.t = 12 + p;
>this.t = 12 + p : number
>this.t : number
>this.t : any
>this : this
>t : number
>t : any
>12 + p : number
>12 : 12
>p : number
@@ -14,9 +14,9 @@ module.exports = class {
this.t = 12 + p;
>this.t = 12 + p : number
>this.t : number
>this.t : any
>this : this
>t : number
>t : any
>12 + p : number
>12 : 12
>p : number
@@ -34,9 +34,9 @@ module.exports.Sub = class {
constructor() {
this.instance = new module.exports(10);
>this.instance = new module.exports(10) : import("tests/cases/conformance/jsdoc/declarations/index")
>this.instance : import("tests/cases/conformance/jsdoc/declarations/index")
>this.instance : any
>this : this
>instance : import("tests/cases/conformance/jsdoc/declarations/index")
>instance : any
>new module.exports(10) : import("tests/cases/conformance/jsdoc/declarations/index")
>module.exports : typeof import("tests/cases/conformance/jsdoc/declarations/index")
>module : { "\"tests/cases/conformance/jsdoc/declarations/index\"": typeof import("tests/cases/conformance/jsdoc/declarations/index"); }
@@ -25,9 +25,9 @@ module.exports = class Q {
constructor() {
this.x = new A();
>this.x = new A() : A
>this.x : A
>this.x : any
>this : this
>x : A
>x : any
>new A() : A
>A : typeof A
}
@@ -11,9 +11,9 @@ class Container {
constructor() {
this.usage = new Obj();
>this.usage = new Obj() : import("tests/cases/conformance/jsdoc/declarations/obj")
>this.usage : import("tests/cases/conformance/jsdoc/declarations/obj")
>this.usage : any
>this : this
>usage : import("tests/cases/conformance/jsdoc/declarations/obj")
>usage : any
>new Obj() : import("tests/cases/conformance/jsdoc/declarations/obj")
>Obj : typeof import("tests/cases/conformance/jsdoc/declarations/obj")
}
@@ -38,9 +38,9 @@ module.exports = class Obj {
constructor() {
this.x = 12;
>this.x = 12 : 12
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>12 : 12
}
}
@@ -38,9 +38,9 @@ class Wrap {
this.connItem = c.item;
>this.connItem = c.item : number
>this.connItem : number
>this.connItem : any
>this : this
>connItem : number
>connItem : any
>c.item : number
>c : import("tests/cases/conformance/jsdoc/declarations/conn")
>item : number
@@ -5,9 +5,9 @@ class C {
constructor () {
this.p = 0;
>this.p = 0 : 0
>this.p : number
>this.p : any
>this : this
>p : number
>p : any
>0 : 0
}
}
@@ -8,17 +8,17 @@ class C {
this.p = null;
>this.p = null : null
>this.p : number
>this.p : any
>this : this
>p : number
>p : any
>null : null
}
else {
this.p = 0;
>this.p = 0 : 0
>this.p : number
>this.p : any
>this : this
>p : number
>p : any
>0 : 0
}
}
@@ -4,15 +4,15 @@ export class StackOverflowTest {
constructor () {
this.testStackOverflow = this.testStackOverflow.bind(this)
>this.testStackOverflow = this.testStackOverflow.bind(this) : any
>this.testStackOverflow = this.testStackOverflow.bind(this) : error
>this.testStackOverflow : any
>this : this
>testStackOverflow : any
>this.testStackOverflow.bind(this) : any
>this.testStackOverflow.bind : any
>this.testStackOverflow : any
>this.testStackOverflow.bind(this) : error
>this.testStackOverflow.bind : error
>this.testStackOverflow : undefined
>this : this
>testStackOverflow : any
>testStackOverflow : undefined
>bind : any
>this : this
}
@@ -20,9 +20,9 @@ class C {
constructor() {
this.member = {};
>this.member = {} : {}
>this.member : {}
>this.member : any
>this : this
>member : {}
>member : any
>{} : {}
this.member.a = 0;
@@ -52,9 +52,9 @@ class C {
*/
this.priv2 = 1;
>this.priv2 = 1 : 1
>this.priv2 : number
>this.priv2 : any
>this : this
>priv2 : number
>priv2 : any
>1 : 1
/**
@@ -64,9 +64,9 @@ class C {
*/
this.prot2 = 2;
>this.prot2 = 2 : 2
>this.prot2 : number
>this.prot2 : any
>this : this
>prot2 : number
>prot2 : any
>2 : 2
/**
@@ -76,9 +76,9 @@ class C {
*/
this.pub2 = 3;
>this.pub2 = 3 : 3
>this.pub2 : number
>this.pub2 : any
>this : this
>pub2 : number
>pub2 : any
>3 : 3
}
h() { return this.priv2 }
@@ -2,9 +2,9 @@
class A { constructor() { this.x = 0; } }
>A : A
>this.x = 0 : 0
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>0 : 0
/** @augments */
@@ -2,9 +2,9 @@
class A { constructor() { this.x = 0; } }
>A : A
>this.x = 0 : 0
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>0 : 0
/** @augments A */
@@ -44,9 +44,9 @@ class C {
this.length = n;
>this.length = n : number
>this.length : number
>this.length : any
>this : this
>length : number
>length : any
>n : number
}
}
@@ -2,9 +2,9 @@
class A { constructor() { this.x = 0; } }
>A : A
>this.x = 0 : 0
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>0 : 0
/** @implements */
@@ -2,9 +2,9 @@
class A { constructor() { this.x = 0; } }
>A : A
>this.x = 0 : 0
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>0 : 0
/** @implements A*/
@@ -26,9 +26,9 @@ class B3 {
constructor() { this.x = 10 }
>this.x = 10 : 10
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>10 : 10
}
@@ -45,9 +45,9 @@ class Chunk {
constructor() {
this.chunk = 1;
>this.chunk = 1 : 1
>this.chunk : number
>this.chunk : any
>this : this
>chunk : number
>chunk : any
>1 : 1
}
}
@@ -50,9 +50,9 @@ module.exports = class Chunk {
constructor() {
this.chunk = 1;
>this.chunk = 1 : 1
>this.chunk : number
>this.chunk : any
>this : this
>chunk : number
>chunk : any
>1 : 1
}
}
@@ -35,9 +35,9 @@ class LOL {
/** @readonly ok */
this.ka = 2
>this.ka = 2 : 2
>this.ka : number
>this.ka : any
>this : this
>ka : number
>ka : any
>2 : 2
}
}
@@ -14,9 +14,9 @@ class Foo {
this.a = x
>this.a = x : T
>this.a : T
>this.a : any
>this : this
>a : T
>a : any
>x : T
}
/**
@@ -39,9 +39,9 @@ class MW {
this.compiler = compiler;
>this.compiler = compiler : import("tests/cases/conformance/jsdoc/MC")
>this.compiler : import("tests/cases/conformance/jsdoc/MC")
>this.compiler : any
>this : this
>compiler : import("tests/cases/conformance/jsdoc/MC")
>compiler : any
>compiler : import("tests/cases/conformance/jsdoc/MC")
}
}
@@ -42,9 +42,9 @@ class MW {
this.compiler = compiler;
>this.compiler = compiler : typeof MC
>this.compiler : typeof MC
>this.compiler : any
>this : this
>compiler : typeof MC
>compiler : any
>compiler : typeof MC
}
}
@@ -43,9 +43,9 @@ class SomeBase {
constructor() {
this.p = 42;
>this.p = 42 : 42
>this.p : number
>this.p : any
>this : this
>p : number
>p : any
>42 : 42
}
}
@@ -60,9 +60,9 @@ class SomeDerived extends SomeBase {
this.x = 42;
>this.x = 42 : 42
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>42 : 42
}
}
@@ -72,9 +72,9 @@ class SomeOther {
constructor() {
this.q = 42;
>this.q = 42 : 42
>this.q : number
>this.q : any
>this : this
>q : number
>q : any
>42 : 42
}
}
@@ -8,16 +8,16 @@ class C {
this.x = x
>this.x = x : number
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>x : number
this.exports = [x]
>this.exports = [x] : number[]
>this.exports : number[]
>this.exports : any
>this : this
>exports : number[]
>exports : any
>[x] : number[]
>x : number
}
@@ -39,9 +39,9 @@ module.exports.Classic = class {
constructor() {
this.p = 1
>this.p = 1 : 1
>this.p : number
>this.p : any
>this : this
>p : number
>p : any
>1 : 1
}
}
@@ -5,9 +5,9 @@ class Entry {
constructor() {
this.c = 1
>this.c = 1 : 1
>this.c : number
>this.c : any
>this : this
>c : number
>c : any
>1 : 1
}
/**
@@ -28,9 +28,9 @@ class Group {
constructor() {
this.d = 'no'
>this.d = 'no' : "no"
>this.d : string
>this.d : any
>this : this
>d : string
>d : any
>'no' : "no"
}
/**
@@ -5,9 +5,9 @@ export class Foo {
constructor() {
this.foo = "Hello";
>this.foo = "Hello" : "Hello"
>this.foo : string
>this.foo : any
>this : this
>foo : string
>foo : any
>"Hello" : "Hello"
}
slicey() {
@@ -23,9 +23,9 @@ class Bar extends Foo {
this.p = 2
>this.p = 2 : 2
>this.p : number
>this.p : any
>this : this
>p : number
>p : any
>2 : 2
}
}
@@ -50,9 +50,9 @@ exports.B = class {
constructor() {
this.x = 1;
>this.x = 1 : 1
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>1 : 1
}
};
@@ -135,9 +135,9 @@ export class E {
constructor() {
this.x = 1;
>this.x = 1 : 1
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>1 : 1
}
}
@@ -206,9 +206,9 @@ class H {
constructor() {
this.x = 1;
>this.x = 1 : 1
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>1 : 1
}
}
@@ -13,9 +13,9 @@ Outer.Inner = class {
constructor() {
this.x = 1
>this.x = 1 : 1
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>1 : 1
}
m() { }
@@ -20,9 +20,9 @@ Outer.Inner = class I {
constructor() {
this.x = 1
>this.x = 1 : 1
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>1 : 1
}
}
@@ -5,9 +5,9 @@ class B {
constructor () {
this.n = 1
>this.n = 1 : 1
>this.n : number
>this.n : any
>this : this
>n : number
>n : any
>1 : 1
}
foo() {
@@ -13,9 +13,9 @@ Common.I = class {
constructor() {
this.i = 1
>this.i = 1 : 1
>this.i : number
>this.i : any
>this : this
>i : number
>i : any
>1 : 1
}
}
@@ -36,9 +36,9 @@ Common.O = class extends Common.I {
this.o = 2
>this.o = 2 : 2
>this.o : number
>this.o : any
>this : this
>o : number
>o : any
>2 : 2
}
}
@@ -13,9 +13,9 @@ UI.TreeElement = class {
constructor() {
this.treeOutline = 12
>this.treeOutline = 12 : 12
>this.treeOutline : number
>this.treeOutline : any
>this : this
>treeOutline : number
>treeOutline : any
>12 : 12
}
};
@@ -3,9 +3,9 @@
class C { constructor() { this.p = 1; } }
>C : C
>this.p = 1 : 1
>this.p : number
>this.p : any
>this : this
>p : number
>p : any
>1 : 1
// Property assignment does nothing.
@@ -22,9 +22,9 @@ Outer.Inner = class I {
constructor() {
this.x = 1
>this.x = 1 : 1
>this.x : number
>this.x : any
>this : this
>x : number
>x : any
>1 : 1
}
}
@@ -34,9 +34,9 @@ Emu.D = class {
constructor() {
this._model = 1
>this._model = 1 : 1
>this._model : number
>this._model : any
>this : this
>_model : number
>_model : any
>1 : 1
}
}
@@ -44,9 +44,9 @@ export class Crunch {
this.n = n
>this.n = n : number
>this.n : number
>this.n : any
>this : this
>n : number
>n : any
>n : number
}
m() {