diff --git a/lib/core.js b/lib/core.js index 397dea90838..22f74a51b56 100644 --- a/lib/core.js +++ b/lib/core.js @@ -235,7 +235,7 @@ declare class $ReadOnlyArray<+T> { some(callbackfn: (value: T, index: number, array: $ReadOnlyArray) => any, thisArg?: any): boolean; values(): Iterator; +[key: number]: T; - length: number; + +length: number; } declare class Array extends $ReadOnlyArray { @@ -275,6 +275,7 @@ declare class Array extends $ReadOnlyArray { [key: number]: T; + length: number; static (...values:Array): Array; static isArray(obj: any): bool; static from(iter: Iterable, mapFn: (elem: A, index: number) => B, thisArg?: any): Array; diff --git a/newtests/array_literal_tuple_spread/test.js b/newtests/array_literal_tuple_spread/test.js index d592e84c241..725f6f535a2 100644 --- a/newtests/array_literal_tuple_spread/test.js +++ b/newtests/array_literal_tuple_spread/test.js @@ -261,8 +261,8 @@ export default suite(({addFile, addFiles, addCode}) => [ test.js:3 3: const arr: Array = [..."hello"]; ^^^^^^ number. This type is incompatible with - 290: @@iterator(): Iterator; - ^^^^^^ string. See lib: [LIB] core.js:290 + 291: @@iterator(): Iterator; + ^^^^^^ string. See lib: [LIB] core.js:291 `, ) .because('String is an Iterable'), diff --git a/newtests/autocomplete/test.js b/newtests/autocomplete/test.js index a52ed3b81b1..6115dcd39ae 100644 --- a/newtests/autocomplete/test.js +++ b/newtests/autocomplete/test.js @@ -205,8 +205,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 290, - "endline": 290, + "line": 291, + "endline": 291, "start": 5, "end": 34 }, @@ -223,8 +223,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 291, - "endline": 291, + "line": 292, + "endline": 292, "start": 5, "end": 32 }, @@ -241,8 +241,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 292, - "endline": 292, + "line": 293, + "endline": 293, "start": 5, "end": 31 }, @@ -259,8 +259,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 293, - "endline": 293, + "line": 294, + "endline": 294, "start": 5, "end": 37 }, @@ -277,8 +277,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 294, - "endline": 294, + "line": 295, + "endline": 295, "start": 5, "end": 38 }, @@ -295,8 +295,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 295, - "endline": 295, + "line": 296, + "endline": 296, "start": 5, "end": 45 }, @@ -317,8 +317,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 297, - "endline": 297, + "line": 298, + "endline": 298, "start": 5, "end": 62 }, @@ -339,8 +339,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 298, - "endline": 298, + "line": 299, + "endline": 299, "start": 5, "end": 62 }, @@ -361,8 +361,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 299, - "endline": 299, + "line": 300, + "endline": 300, "start": 5, "end": 60 }, @@ -383,8 +383,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 300, - "endline": 300, + "line": 301, + "endline": 301, "start": 5, "end": 64 }, @@ -393,8 +393,8 @@ export default suite(({addFile, flowCmd}) => [ "type": "number", "func_details": null, "path": "[LIB] core.js", - "line": 324, - "endline": 324, + "line": 325, + "endline": 325, "start": 13, "end": 18 }, @@ -411,8 +411,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 301, - "endline": 301, + "line": 302, + "endline": 302, "start": 5, "end": 30 }, @@ -437,8 +437,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 302, - "endline": 302, + "line": 303, + "endline": 303, "start": 5, "end": 91 }, @@ -455,8 +455,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 303, - "endline": 303, + "line": 304, + "endline": 304, "start": 5, "end": 50 }, @@ -473,8 +473,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 304, - "endline": 304, + "line": 305, + "endline": 305, "start": 5, "end": 38 }, @@ -495,8 +495,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 305, - "endline": 305, + "line": 306, + "endline": 306, "start": 5, "end": 60 }, @@ -517,8 +517,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 306, - "endline": 306, + "line": 307, + "endline": 307, "start": 5, "end": 62 }, @@ -535,8 +535,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 307, - "endline": 307, + "line": 308, + "endline": 308, "start": 5, "end": 33 }, @@ -557,8 +557,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 308, - "endline": 308, + "line": 309, + "endline": 309, "start": 5, "end": 124 }, @@ -575,8 +575,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 309, - "endline": 309, + "line": 310, + "endline": 310, "start": 5, "end": 43 }, @@ -597,8 +597,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 310, - "endline": 310, + "line": 311, + "endline": 311, "start": 5, "end": 47 }, @@ -619,8 +619,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 311, - "endline": 311, + "line": 312, + "endline": 312, "start": 5, "end": 69 }, @@ -641,8 +641,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 312, - "endline": 312, + "line": 313, + "endline": 313, "start": 5, "end": 64 }, @@ -663,8 +663,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 313, - "endline": 313, + "line": 314, + "endline": 314, "start": 5, "end": 49 }, @@ -685,8 +685,8 @@ export default suite(({addFile, flowCmd}) => [ ] }, "path": "[LIB] core.js", - "line": 314, - "endline": 314, + "line": 315, + "endline": 315, "start": 5, "end": 50 }, @@ -698,8 +698,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 315, - "endline": 315, + "line": 316, + "endline": 316, "start": 5, "end": 31 }, @@ -711,8 +711,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 316, - "endline": 316, + "line": 317, + "endline": 317, "start": 5, "end": 31 }, @@ -724,8 +724,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 317, - "endline": 317, + "line": 318, + "endline": 318, "start": 5, "end": 25 }, @@ -737,8 +737,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 323, - "endline": 323, + "line": 324, + "endline": 324, "start": 5, "end": 22 }, @@ -750,8 +750,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 318, - "endline": 318, + "line": 319, + "endline": 319, "start": 5, "end": 25 }, @@ -763,8 +763,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 319, - "endline": 319, + "line": 320, + "endline": 320, "start": 5, "end": 18 }, @@ -776,8 +776,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 320, - "endline": 320, + "line": 321, + "endline": 321, "start": 5, "end": 22 }, @@ -789,8 +789,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 321, - "endline": 321, + "line": 322, + "endline": 322, "start": 5, "end": 23 }, @@ -802,8 +802,8 @@ export default suite(({addFile, flowCmd}) => [ "params": [] }, "path": "[LIB] core.js", - "line": 322, - "endline": 322, + "line": 323, + "endline": 323, "start": 5, "end": 21 } diff --git a/tests/arraylib/arraylib.exp b/tests/arraylib/arraylib.exp index 7a61552dedd..b81f404b3e3 100644 --- a/tests/arraylib/arraylib.exp +++ b/tests/arraylib/arraylib.exp @@ -54,5 +54,17 @@ array_lib.js:47 47: [""].reduceRight((acc, str) => acc * str.length); // error, string ~> number ^^^ Number +length.js:7 + 7: r.length = 6; //ng + ^^^^^^ property `length`. Covariant property `length` incompatible with contravariant use in + 7: r.length = 6; //ng + ^^^^^^^^ assignment of property `length` -Found 10 errors +length.js:10 + 10: t.length = 7; //ng + ^^^^^^ property `length`. Covariant property `length` incompatible with contravariant use in + 10: t.length = 7; //ng + ^^^^^^^^ assignment of property `length` + + +Found 12 errors diff --git a/tests/arraylib/length.js b/tests/arraylib/length.js new file mode 100644 index 00000000000..256feaa5e0f --- /dev/null +++ b/tests/arraylib/length.js @@ -0,0 +1,10 @@ +/* @flow */ + +declare var a: Array; +a.length = 5; + +declare var r: $ReadOnlyArray; +r.length = 6; //ng + +declare var t: [number]; +t.length = 7; //ng diff --git a/tests/async/async.exp b/tests/async/async.exp index 8bd5c80a3c7..c3c7d2eeb02 100644 --- a/tests/async/async.exp +++ b/tests/async/async.exp @@ -7,16 +7,16 @@ async.js:12 async.js:31 31: return await p; // error, number != bool ^^^^^^^ number. This type is incompatible with -681: declare function $await(p: Promise | T): T; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of async return. See lib: /core.js:681 +682: declare function $await(p: Promise | T): T; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of async return. See lib: /core.js:682 Member 1: - 681: declare function $await(p: Promise | T): T; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:681 + 682: declare function $await(p: Promise | T): T; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:682 Error: 31: return await p; // error, number != bool ^^^^^^^ number. This type is incompatible with - 681: declare function $await(p: Promise | T): T; - ^^^^^^^^^^ Promise. See lib: /core.js:681 + 682: declare function $await(p: Promise | T): T; + ^^^^^^^^^^ Promise. See lib: /core.js:682 Member 2: 31: return await p; // error, number != bool ^^^^^^^ type parameter `T` of async return diff --git a/tests/autocomplete/autocomplete.exp b/tests/autocomplete/autocomplete.exp index 86d329b0bbb..3e0055ed1dd 100644 --- a/tests/autocomplete/autocomplete.exp +++ b/tests/autocomplete/autocomplete.exp @@ -9,7 +9,7 @@ valueOf () => Object foo.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"num","type":"number","func_details":null,"path":"foo.js","line":6,"endline":6,"start":8,"end":10},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"str","type":"string","func_details":null,"path":"foo.js","line":7,"endline":7,"start":8,"end":14},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21}]} bar.js = {"error":"not enough type information to autocomplete","result":[]} qux.js = {"result":[{"name":"x","type":"number","func_details":null,"path":"qux.js","line":3,"endline":3,"start":14,"end":19}]} -str.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":290,"endline":290,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":291,"endline":291,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":292,"endline":292,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":293,"endline":293,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":294,"endline":294,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":295,"endline":295,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":297,"endline":297,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":298,"endline":298,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":299,"endline":299,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":300,"endline":300,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":324,"endline":324,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":301,"endline":301,"start":5,"end":30},{"name":"localeCompare","type":"(that: string, locales?: string | Array, options?: Object) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"},{"name":"locales?","type":"string | Array"},{"name":"options?","type":"Object"}]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":91},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":308,"endline":308,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":310,"endline":310,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":311,"endline":311,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":312,"endline":312,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":313,"endline":313,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":314,"endline":314,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":315,"endline":315,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":316,"endline":316,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":317,"endline":317,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":323,"endline":323,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":318,"endline":318,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":319,"endline":319,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":320,"endline":320,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":321,"endline":321,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":322,"endline":322,"start":5,"end":21}]} +str.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":291,"endline":291,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":292,"endline":292,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":293,"endline":293,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":294,"endline":294,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":295,"endline":295,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":296,"endline":296,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":298,"endline":298,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":299,"endline":299,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":300,"endline":300,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":301,"endline":301,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":325,"endline":325,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":30},{"name":"localeCompare","type":"(that: string, locales?: string | Array, options?: Object) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"},{"name":"locales?","type":"string | Array"},{"name":"options?","type":"Object"}]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":91},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":308,"endline":308,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":310,"endline":310,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":311,"endline":311,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":312,"endline":312,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":313,"endline":313,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":314,"endline":314,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":315,"endline":315,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":316,"endline":316,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":317,"endline":317,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":318,"endline":318,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":324,"endline":324,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":319,"endline":319,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":320,"endline":320,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":321,"endline":321,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":322,"endline":322,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":323,"endline":323,"start":5,"end":21}]} num.js = {"result":[{"name":"toExponential","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":143,"endline":143,"start":5,"end":50},{"name":"toFixed","type":"(fractionDigits?: number) => string","func_details":{"return_type":"string","params":[{"name":"fractionDigits?","type":"number"}]},"path":"[LIB] core.js","line":144,"endline":144,"start":5,"end":44},{"name":"toLocaleString","type":"(locales?: string | Array, options?: {currency?: string, currencyDisplay?: string, localeMatcher?: string, maximumFractionDigits?: number, maximumSignificantDigits?: number, minimumFractionDigits?: number, minimumIntegerDigits?: number, minimumSignificantDigits?: number, style?: string, useGrouping?: boolean}) => string","func_details":{"return_type":"string","params":[{"name":"locales?","type":"string | Array"},{"name":"options?","type":"{currency?: string, currencyDisplay?: string, localeMatcher?: string, maximumFractionDigits?: number, maximumSignificantDigits?: number, minimumFractionDigits?: number, minimumIntegerDigits?: number, minimumSignificantDigits?: number, style?: string, useGrouping?: boolean}"}]},"path":"[LIB] core.js","line":145,"endline":145,"start":5,"end":92},{"name":"toPrecision","type":"(precision?: number) => string","func_details":{"return_type":"string","params":[{"name":"precision?","type":"number"}]},"path":"[LIB] core.js","line":146,"endline":146,"start":5,"end":43},{"name":"toString","type":"(radix?: number) => string","func_details":{"return_type":"string","params":[{"name":"radix?","type":"number"}]},"path":"[LIB] core.js","line":147,"endline":147,"start":5,"end":36},{"name":"valueOf","type":"() => number","func_details":{"return_type":"number","params":[]},"path":"[LIB] core.js","line":148,"endline":148,"start":5,"end":21}]} bool.js = {"result":[{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":110,"endline":110,"start":5,"end":22},{"name":"valueOf","type":"() => boolean","func_details":{"return_type":"boolean","params":[]},"path":"[LIB] core.js","line":109,"endline":109,"start":5,"end":22}]} union.js = {"result":[{"name":"bar","type":"string","func_details":null,"path":"union.js","line":3,"endline":3,"start":36,"end":41},{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21}]} @@ -24,5 +24,5 @@ jsx1.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","f jsx2.js = {"result":[{"name":"hasOwnProperty","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":53,"endline":53,"start":5,"end":38},{"name":"isPrototypeOf","type":"(o: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"o","type":"any"}]},"path":"[LIB] core.js","line":54,"endline":54,"start":5,"end":34},{"name":"propertyIsEnumerable","type":"(prop: any) => boolean","func_details":{"return_type":"boolean","params":[{"name":"prop","type":"any"}]},"path":"[LIB] core.js","line":55,"endline":55,"start":5,"end":44},{"name":"toLocaleString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":56,"endline":56,"start":5,"end":28},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":57,"endline":57,"start":5,"end":22},{"name":"valueOf","type":"() => Object","func_details":{"return_type":"Object","params":[]},"path":"[LIB] core.js","line":58,"endline":58,"start":5,"end":21},{"name":"x","type":"number","func_details":null,"path":"jsx2.js","line":6,"endline":6,"start":15,"end":20},{"name":"y","type":"string","func_details":null,"path":"jsx2.js","line":6,"endline":6,"start":26,"end":31}]} customfun.js = {"result":[{"name":"objectGetPrototypeOf","type":"(o: any) => any","func_details":{"return_type":"any","params":[{"name":"o","type":"any"}]},"path":"customfun.js","line":8,"endline":8,"start":1,"end":55},{"name":"objectAssign","type":"(target: any, ...sources: Array) => any","func_details":{"return_type":"any","params":[{"name":"target","type":"any"},{"name":"...sources","type":"Array"}]},"path":"customfun.js","line":9,"endline":9,"start":1,"end":39},{"name":"mixin","type":"(...objects: Array) => [class: Object]","func_details":{"return_type":"[class: Object]","params":[{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":7,"endline":7,"start":1,"end":38},{"name":"mergeInto","type":"(target: Object, ...objects: Array) => void","func_details":{"return_type":"void","params":[{"name":"target","type":"Object"},{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":6,"endline":6,"start":1,"end":46},{"name":"mergeDeepInto","type":"(target: Object, ...objects: Array) => void","func_details":{"return_type":"void","params":[{"name":"target","type":"Object"},{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":5,"endline":5,"start":1,"end":54},{"name":"merge","type":"(...objects: Array) => Object","func_details":{"return_type":"Object","params":[{"name":"...objects","type":"Array"}]},"path":"customfun.js","line":4,"endline":4,"start":1,"end":38},{"name":"idx","type":"","func_details":{"return_type":"?IdxResult","params":[{"name":"obj","type":"IdxObject"},{"name":"pathCallback","type":""}]},"path":"customfun.js","line":3,"endline":3,"start":1,"end":34},{"name":"exports","type":"{}","func_details":null,"path":"","line":0,"endline":0,"start":1,"end":0}]} issue-1368.js = {"result":[{"name":"extended","type":"string","func_details":null,"path":"issue-1368.js","line":11,"endline":11,"start":13,"end":18},{"name":"method","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"issue-1368.js","line":18,"endline":21,"start":3,"end":3},{"name":"prop","type":"number","func_details":null,"path":"issue-1368.js","line":3,"endline":3,"start":9,"end":14}]} -if.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":290,"endline":290,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":291,"endline":291,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":292,"endline":292,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":293,"endline":293,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":294,"endline":294,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":295,"endline":295,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":297,"endline":297,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":298,"endline":298,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":299,"endline":299,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":300,"endline":300,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":324,"endline":324,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":301,"endline":301,"start":5,"end":30},{"name":"localeCompare","type":"(that: string, locales?: string | Array, options?: Object) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"},{"name":"locales?","type":"string | Array"},{"name":"options?","type":"Object"}]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":91},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":308,"endline":308,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":310,"endline":310,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":311,"endline":311,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":312,"endline":312,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":313,"endline":313,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":314,"endline":314,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":315,"endline":315,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":316,"endline":316,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":317,"endline":317,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":323,"endline":323,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":318,"endline":318,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":319,"endline":319,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":320,"endline":320,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":321,"endline":321,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":322,"endline":322,"start":5,"end":21}]} +if.js = {"result":[{"name":"@@iterator","type":"() => Iterator","func_details":{"return_type":"Iterator","params":[]},"path":"[LIB] core.js","line":291,"endline":291,"start":5,"end":34},{"name":"anchor","type":"(name: string) => string","func_details":{"return_type":"string","params":[{"name":"name","type":"string"}]},"path":"[LIB] core.js","line":292,"endline":292,"start":5,"end":32},{"name":"charAt","type":"(pos: number) => string","func_details":{"return_type":"string","params":[{"name":"pos","type":"number"}]},"path":"[LIB] core.js","line":293,"endline":293,"start":5,"end":31},{"name":"charCodeAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":294,"endline":294,"start":5,"end":37},{"name":"codePointAt","type":"(index: number) => number","func_details":{"return_type":"number","params":[{"name":"index","type":"number"}]},"path":"[LIB] core.js","line":295,"endline":295,"start":5,"end":38},{"name":"concat","type":"(...strings: Array) => string","func_details":{"return_type":"string","params":[{"name":"...strings","type":"Array"}]},"path":"[LIB] core.js","line":296,"endline":296,"start":5,"end":45},{"name":"endsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":298,"endline":298,"start":5,"end":62},{"name":"includes","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":299,"endline":299,"start":5,"end":62},{"name":"indexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":300,"endline":300,"start":5,"end":60},{"name":"lastIndexOf","type":"(searchString: string, position?: number) => number","func_details":{"return_type":"number","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":301,"endline":301,"start":5,"end":64},{"name":"length","type":"number","func_details":null,"path":"[LIB] core.js","line":325,"endline":325,"start":13,"end":18},{"name":"link","type":"(href: string) => string","func_details":{"return_type":"string","params":[{"name":"href","type":"string"}]},"path":"[LIB] core.js","line":302,"endline":302,"start":5,"end":30},{"name":"localeCompare","type":"(that: string, locales?: string | Array, options?: Object) => number","func_details":{"return_type":"number","params":[{"name":"that","type":"string"},{"name":"locales?","type":"string | Array"},{"name":"options?","type":"Object"}]},"path":"[LIB] core.js","line":303,"endline":303,"start":5,"end":91},{"name":"match","type":"(regexp: string | RegExp) => ?Array","func_details":{"return_type":"?Array","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":304,"endline":304,"start":5,"end":50},{"name":"normalize","type":"(format?: string) => string","func_details":{"return_type":"string","params":[{"name":"format?","type":"string"}]},"path":"[LIB] core.js","line":305,"endline":305,"start":5,"end":38},{"name":"padEnd","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":306,"endline":306,"start":5,"end":60},{"name":"padStart","type":"(targetLength: number, padString?: string) => string","func_details":{"return_type":"string","params":[{"name":"targetLength","type":"number"},{"name":"padString?","type":"string"}]},"path":"[LIB] core.js","line":307,"endline":307,"start":5,"end":62},{"name":"repeat","type":"(count: number) => string","func_details":{"return_type":"string","params":[{"name":"count","type":"number"}]},"path":"[LIB] core.js","line":308,"endline":308,"start":5,"end":33},{"name":"replace","type":"(searchValue: string | RegExp, replaceValue: string | ((substring: string, ...args: Array) => string)) => string","func_details":{"return_type":"string","params":[{"name":"searchValue","type":"string | RegExp"},{"name":"replaceValue","type":"string | ((substring: string, ...args: Array) => string)"}]},"path":"[LIB] core.js","line":309,"endline":309,"start":5,"end":124},{"name":"search","type":"(regexp: string | RegExp) => number","func_details":{"return_type":"number","params":[{"name":"regexp","type":"string | RegExp"}]},"path":"[LIB] core.js","line":310,"endline":310,"start":5,"end":43},{"name":"slice","type":"(start?: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start?","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":311,"endline":311,"start":5,"end":47},{"name":"split","type":"(separator?: string | RegExp, limit?: number) => Array","func_details":{"return_type":"Array","params":[{"name":"separator?","type":"string | RegExp"},{"name":"limit?","type":"number"}]},"path":"[LIB] core.js","line":312,"endline":312,"start":5,"end":69},{"name":"startsWith","type":"(searchString: string, position?: number) => boolean","func_details":{"return_type":"boolean","params":[{"name":"searchString","type":"string"},{"name":"position?","type":"number"}]},"path":"[LIB] core.js","line":313,"endline":313,"start":5,"end":64},{"name":"substr","type":"(from: number, length?: number) => string","func_details":{"return_type":"string","params":[{"name":"from","type":"number"},{"name":"length?","type":"number"}]},"path":"[LIB] core.js","line":314,"endline":314,"start":5,"end":49},{"name":"substring","type":"(start: number, end?: number) => string","func_details":{"return_type":"string","params":[{"name":"start","type":"number"},{"name":"end?","type":"number"}]},"path":"[LIB] core.js","line":315,"endline":315,"start":5,"end":50},{"name":"toLocaleLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":316,"endline":316,"start":5,"end":31},{"name":"toLocaleUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":317,"endline":317,"start":5,"end":31},{"name":"toLowerCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":318,"endline":318,"start":5,"end":25},{"name":"toString","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":324,"endline":324,"start":5,"end":22},{"name":"toUpperCase","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":319,"endline":319,"start":5,"end":25},{"name":"trim","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":320,"endline":320,"start":5,"end":18},{"name":"trimLeft","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":321,"endline":321,"start":5,"end":22},{"name":"trimRight","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":322,"endline":322,"start":5,"end":23},{"name":"valueOf","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"[LIB] core.js","line":323,"endline":323,"start":5,"end":21}]} override.js = {"result":[{"name":"bar","type":"() => void","func_details":{"return_type":"void","params":[]},"path":"override.js","line":10,"endline":11,"start":3,"end":0},{"name":"foo","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"override.js","line":8,"endline":8,"start":3,"end":34},{"name":"override","type":"() => string","func_details":{"return_type":"string","params":[]},"path":"override.js","line":9,"endline":9,"start":3,"end":35}]} diff --git a/tests/core_tests/core_tests.exp b/tests/core_tests/core_tests.exp index 071f8c15060..f8f1f211452 100644 --- a/tests/core_tests/core_tests.exp +++ b/tests/core_tests/core_tests.exp @@ -3,16 +3,16 @@ map.js:23 ^^^^^^^^^^^^^^^^^^^^^ constructor call 23: let x = new Map(['foo', 123]); // error ^^^^^ string. This type is incompatible with -610: constructor(iterable: ?Iterable<[K, V]>): void; - ^^^^^^ tuple type. See lib: /core.js:610 +611: constructor(iterable: ?Iterable<[K, V]>): void; + ^^^^^^ tuple type. See lib: /core.js:611 map.js:23 23: let x = new Map(['foo', 123]); // error ^^^^^^^^^^^^^^^^^^^^^ constructor call 23: let x = new Map(['foo', 123]); // error ^^^ number. This type is incompatible with -610: constructor(iterable: ?Iterable<[K, V]>): void; - ^^^^^^ tuple type. See lib: /core.js:610 +611: constructor(iterable: ?Iterable<[K, V]>): void; + ^^^^^^ tuple type. See lib: /core.js:611 map.js:24 24: let y: Map = new Map([['foo', 123]]); // error @@ -51,46 +51,46 @@ map.js:30 regexp.js:26 26: RegExp('foo', 'z'); // error ^^^ string. This type is incompatible with the expected param type of -401: static (pattern: string | RegExp, flags?: RegExp$flags): RegExp; - ^^^^^^^^^^^^ string enum. See lib: /core.js:401 +402: static (pattern: string | RegExp, flags?: RegExp$flags): RegExp; + ^^^^^^^^^^^^ string enum. See lib: /core.js:402 regexp.js:27 27: new RegExp('foo', 'z'); // error ^^^ string. This type is incompatible with the expected param type of -403: constructor(pattern: string | RegExp, flags?: RegExp$flags): RegExp; - ^^^^^^^^^^^^ string enum. See lib: /core.js:403 +404: constructor(pattern: string | RegExp, flags?: RegExp$flags): RegExp; + ^^^^^^^^^^^^ string enum. See lib: /core.js:404 weakset.js:19 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^ number. This type is incompatible with -648: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:648 +649: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:649 weakset.js:19 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^ number. This type is incompatible with -648: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:648 +649: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:649 weakset.js:19 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 19: let ws3 = new WeakSet([1, 2, 3]); // error, must be objects ^ number. This type is incompatible with -648: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:648 +649: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:649 weakset.js:36 36: let ws5 = new WeakSet(numbers()); // error, must be objects ^^^^^^^^^^^^^^^^^^^^^^ constructor call 29: function* numbers(): Iterable { ^^^^^^ number. This type is incompatible with -648: declare class WeakSet { - ^^^^^^ object type. See lib: /core.js:648 +649: declare class WeakSet { + ^^^^^^ object type. See lib: /core.js:649 Found 13 errors diff --git a/tests/date/date.exp b/tests/date/date.exp index 6365056b6dd..b3379828fff 100644 --- a/tests/date/date.exp +++ b/tests/date/date.exp @@ -10,37 +10,37 @@ date.js:18 18: new Date({}); ^^^^ intersection Member 1: - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 Error: 18: new Date({}); ^^ unused function argument - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:435 Member 2: - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 Error: 18: new Date({}); ^^ object literal. This type is incompatible with the expected param type of - 435: constructor(timestamp: number): void; - ^^^^^^ number. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^ number. See lib: /core.js:436 Member 3: - 436: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 Error: 18: new Date({}); ^^ object literal. This type is incompatible with the expected param type of - 436: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:437 Member 4: - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:438 Error: 18: new Date({}); ^^ object literal. This type is incompatible with the expected param type of - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:438 date.js:19 19: new Date(2015, '6'); @@ -48,37 +48,37 @@ date.js:19 19: new Date(2015, '6'); ^^^^ intersection Member 1: - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 Error: 19: new Date(2015, '6'); ^^^^ unused function argument - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:435 Member 2: - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 Error: 19: new Date(2015, '6'); ^^^ unused function argument - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:436 Member 3: - 436: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 Error: 19: new Date(2015, '6'); ^^^^ number. This type is incompatible with the expected param type of - 436: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:437 Member 4: - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:438 Error: 19: new Date(2015, '6'); ^^^ string. This type is incompatible with the expected param type of - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:438 date.js:20 20: new Date(2015, 6, '18'); @@ -86,37 +86,37 @@ date.js:20 20: new Date(2015, 6, '18'); ^^^^ intersection Member 1: - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 Error: 20: new Date(2015, 6, '18'); ^^^^ unused function argument - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:435 Member 2: - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 Error: 20: new Date(2015, 6, '18'); ^ unused function argument - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:436 Member 3: - 436: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 Error: 20: new Date(2015, 6, '18'); ^^^^ number. This type is incompatible with the expected param type of - 436: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:437 Member 4: - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:438 Error: 20: new Date(2015, 6, '18'); ^^^^ string. This type is incompatible with the expected param type of - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:438 date.js:21 21: new Date(2015, 6, 18, '11'); @@ -124,37 +124,37 @@ date.js:21 21: new Date(2015, 6, 18, '11'); ^^^^ intersection Member 1: - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 Error: 21: new Date(2015, 6, 18, '11'); ^^^^ unused function argument - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:435 Member 2: - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 Error: 21: new Date(2015, 6, 18, '11'); ^ unused function argument - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:436 Member 3: - 436: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 Error: 21: new Date(2015, 6, 18, '11'); ^^^^ number. This type is incompatible with the expected param type of - 436: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:437 Member 4: - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:438 Error: 21: new Date(2015, 6, 18, '11'); ^^^^ string. This type is incompatible with the expected param type of - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:438 date.js:22 22: new Date(2015, 6, 18, 11, '55'); @@ -162,37 +162,37 @@ date.js:22 22: new Date(2015, 6, 18, 11, '55'); ^^^^ intersection Member 1: - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 Error: 22: new Date(2015, 6, 18, 11, '55'); ^^^^ unused function argument - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:435 Member 2: - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 Error: 22: new Date(2015, 6, 18, 11, '55'); ^ unused function argument - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:436 Member 3: - 436: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 Error: 22: new Date(2015, 6, 18, 11, '55'); ^^^^ number. This type is incompatible with the expected param type of - 436: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:437 Member 4: - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:438 Error: 22: new Date(2015, 6, 18, 11, '55'); ^^^^ string. This type is incompatible with the expected param type of - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:438 date.js:23 23: new Date(2015, 6, 18, 11, 55, '42'); @@ -200,37 +200,37 @@ date.js:23 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ intersection Member 1: - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ unused function argument - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:435 Member 2: - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^ unused function argument - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:436 Member 3: - 436: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ number. This type is incompatible with the expected param type of - 436: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:437 Member 4: - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:438 Error: 23: new Date(2015, 6, 18, 11, 55, '42'); ^^^^ string. This type is incompatible with the expected param type of - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:438 date.js:24 24: new Date(2015, 6, 18, 11, 55, 42, '999'); @@ -238,37 +238,37 @@ date.js:24 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^ intersection Member 1: - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^ unused function argument - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:435 Member 2: - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^ unused function argument - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:436 Member 3: - 436: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^ number. This type is incompatible with the expected param type of - 436: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:437 Member 4: - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:438 Error: 24: new Date(2015, 6, 18, 11, 55, 42, '999'); ^^^^^ string. This type is incompatible with the expected param type of - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:438 date.js:25 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); @@ -276,37 +276,37 @@ date.js:25 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^ intersection Member 1: - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^ unused function argument - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:435 Member 2: - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^ unused function argument - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:436 Member 3: - 436: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^ number. This type is incompatible with the expected param type of - 436: constructor(dateString: string): void; - ^^^^^^ string. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^ string. See lib: /core.js:437 Member 4: - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:438 Error: 25: new Date(2015, 6, 18, 11, 55, 42, 999, 'hahaha'); ^^^^^^^^ unused function argument - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 7 arguments. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 7 arguments. See lib: /core.js:438 date.js:26 26: new Date('2015', 6); @@ -314,37 +314,37 @@ date.js:26 26: new Date('2015', 6); ^^^^ intersection Member 1: - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 Error: 26: new Date('2015', 6); ^^^^^^ unused function argument - 434: constructor(): void; - ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:434 + 435: constructor(): void; + ^^^^^^^^^^^^^^^^^^^ function type expects no arguments. See lib: /core.js:435 Member 2: - 435: constructor(timestamp: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 Error: 26: new Date('2015', 6); ^^^^^^ string. This type is incompatible with the expected param type of - 435: constructor(timestamp: number): void; - ^^^^^^ number. See lib: /core.js:435 + 436: constructor(timestamp: number): void; + ^^^^^^ number. See lib: /core.js:436 Member 3: - 436: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 Error: 26: new Date('2015', 6); ^ unused function argument - 436: constructor(dateString: string): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:436 + 437: constructor(dateString: string): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type expects no more than 1 argument. See lib: /core.js:437 Member 4: - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /core.js:438 Error: 26: new Date('2015', 6); ^^^^^^ string. This type is incompatible with the expected param type of - 437: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; - ^^^^^^ number. See lib: /core.js:437 + 438: constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; + ^^^^^^ number. See lib: /core.js:438 Found 10 errors diff --git a/tests/fetch/fetch.exp b/tests/fetch/fetch.exp index 0198dabe501..499f1371da2 100644 --- a/tests/fetch/fetch.exp +++ b/tests/fetch/fetch.exp @@ -492,8 +492,8 @@ response.js:30 851: type BodyInit = string | URLSearchParams | FormData | Blob | ArrayBuffer | $ArrayBufferView; ^^^^^^^^^^^^^^^^ union: $TypedArray | DataView. See lib: /bom.js:851 Member 1: - 696: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^^^^ $TypedArray. See lib: /core.js:696 + 697: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^^^^ $TypedArray. See lib: /core.js:697 Error: v 30: const i: Response = new Response({ @@ -502,11 +502,11 @@ response.js:30 ...: 35: }); // incorrect ^ object literal. This type is incompatible with - 696: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^^^^ $TypedArray. See lib: /core.js:696 + 697: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^^^^ $TypedArray. See lib: /core.js:697 Member 2: - 696: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^ DataView. See lib: /core.js:696 + 697: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^ DataView. See lib: /core.js:697 Error: v 30: const i: Response = new Response({ @@ -515,8 +515,8 @@ response.js:30 ...: 35: }); // incorrect ^ object literal. This type is incompatible with - 696: type $ArrayBufferView = $TypedArray | DataView; - ^^^^^^^^ DataView. See lib: /core.js:696 + 697: type $ArrayBufferView = $TypedArray | DataView; + ^^^^^^^^ DataView. See lib: /core.js:697 response.js:42 42: h.text().then((t: Buffer) => t); // incorrect diff --git a/tests/function/function.exp b/tests/function/function.exp index db3e52a3353..bd43f460de2 100644 --- a/tests/function/function.exp +++ b/tests/function/function.exp @@ -41,8 +41,8 @@ apply.js:25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call of method `apply` 1: function test(a: string, b: number): number { ^^^^^^ number. This type is incompatible with -290: @@iterator(): Iterator; - ^^^^^^ string. See lib: /core.js:290 +291: @@iterator(): Iterator; + ^^^^^^ string. See lib: /core.js:291 apply.js:32 32: (test.call.apply(test, [0, 123, 'foo']): void); diff --git a/tests/generators/generators.exp b/tests/generators/generators.exp index f594c1cf419..81643df32dd 100644 --- a/tests/generators/generators.exp +++ b/tests/generators/generators.exp @@ -57,8 +57,8 @@ class.js:122 class.js:125 125: examples.delegate_next_iterable([]).next(""); // error: Iterator has no next value ^^ string. This type is incompatible with -568: type Iterator<+T> = $Iterator; - ^^^^ undefined. See lib: /core.js:568 +569: type Iterator<+T> = $Iterator; + ^^^^ undefined. See lib: /core.js:569 class.js:128 128: (x : string) // error: number ~> string @@ -151,8 +151,8 @@ generators.js:87 generators.js:94 94: delegate_next_iterable([]).next(""); // error: Iterator has no next value ^^ string. This type is incompatible with -568: type Iterator<+T> = $Iterator; - ^^^^ undefined. See lib: /core.js:568 +569: type Iterator<+T> = $Iterator; + ^^^^ undefined. See lib: /core.js:569 generators.js:100 100: (x : string) // error: number ~> string diff --git a/tests/iterable/iterable.exp b/tests/iterable/iterable.exp index 69340bf1e5a..100da035c6a 100644 --- a/tests/iterable/iterable.exp +++ b/tests/iterable/iterable.exp @@ -19,20 +19,20 @@ caching_bug.js:21 iterator_result.js:23 23: return { done, value: "still going..." }; // Error string ~> void ^^^^ boolean. Expected boolean literal `false`, got `true` instead -562: | { done: false, value: Yield }; - ^^^^^ boolean literal `false`. See lib: /core.js:562 +563: | { done: false, value: Yield }; + ^^^^^ boolean literal `false`. See lib: /core.js:563 iterator_result.js:25 25: return { done }; // Error void ~> string ^^^^ boolean. Expected boolean literal `true`, got `false` instead -561: | { done: true, value?: Return } - ^^^^ boolean literal `true`. See lib: /core.js:561 +562: | { done: true, value?: Return } + ^^^^ boolean literal `true`. See lib: /core.js:562 map.js:13 13: function mapTest4(map: Map): Iterable { ^^^^^^ string. This type is incompatible with -609: @@iterator(): Iterator<[K, V]>; - ^^^^^^ tuple type. See lib: /core.js:609 +610: @@iterator(): Iterator<[K, V]>; + ^^^^^^ tuple type. See lib: /core.js:610 set.js:13 13: function setTest4(set: Set): Iterable { @@ -43,8 +43,8 @@ set.js:13 string.js:5 5: ("hi": Iterable); // Error - string is a Iterable ^^^^^^ number. This type is incompatible with -290: @@iterator(): Iterator; - ^^^^^^ string. See lib: /core.js:290 +291: @@iterator(): Iterator; + ^^^^^^ string. See lib: /core.js:291 Found 8 errors diff --git a/tests/misc/misc.exp b/tests/misc/misc.exp index 4a67ae18ba1..bb06f429382 100644 --- a/tests/misc/misc.exp +++ b/tests/misc/misc.exp @@ -67,8 +67,8 @@ G.js:6 ^^^^^^^^ assignment of property `length` 6: b.length = "duck"; ^^^^^^ string. This type is incompatible with -238: length: number; - ^^^^^^ number. See lib: /core.js:238 + 6: b.length = "duck"; + ^^^^^^^^ number G.js:7 7: b.length(); diff --git a/tests/object_api/object_api.exp b/tests/object_api/object_api.exp index 4534bbcd225..9b0d3a8daba 100644 --- a/tests/object_api/object_api.exp +++ b/tests/object_api/object_api.exp @@ -187,8 +187,8 @@ object_prototype.js:150 object_prototype.js:151 151: var xToLocaleString2 : () => number = x.toLocaleString; // error ^^^^^^ number. This type is incompatible with -475: toLocaleString(locales?: string | Array, options?: Date$LocaleOptions): string; - ^^^^^^ string. See lib: /core.js:475 +476: toLocaleString(locales?: string | Array, options?: Date$LocaleOptions): string; + ^^^^^^ string. See lib: /core.js:476 object_prototype.js:155 155: var yToLocaleString : number = y.toLocaleString; // error diff --git a/tests/objmap/objmap.exp b/tests/objmap/objmap.exp index e4a8760ba0d..1cca7e24a86 100644 --- a/tests/objmap/objmap.exp +++ b/tests/objmap/objmap.exp @@ -7,11 +7,11 @@ objmap.js:10 objmap.js:13 13: foo: Promise.resolve(0), ^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -681: declare function $await(p: Promise | T): T; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of object map. See lib: /core.js:681 +682: declare function $await(p: Promise | T): T; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of object map. See lib: /core.js:682 Member 1: - 681: declare function $await(p: Promise | T): T; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:681 + 682: declare function $await(p: Promise | T): T; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:682 Error: 16: (o.foo: string); // error, number ~> string ^^^^^ number. This type is incompatible with diff --git a/tests/overload/overload.exp b/tests/overload/overload.exp index db8f3882d0d..5d7ac55d7f8 100644 --- a/tests/overload/overload.exp +++ b/tests/overload/overload.exp @@ -3,24 +3,24 @@ overload.js:7 ^^^^^^^^^^^ call of method `match` 7: var x1: number = "".match(0)[0]; ^ number. This type is incompatible with -303: match(regexp: string | RegExp): ?Array; - ^^^^^^^^^^^^^^^ union: string | RegExp. See lib: /core.js:303 +304: match(regexp: string | RegExp): ?Array; + ^^^^^^^^^^^^^^^ union: string | RegExp. See lib: /core.js:304 Member 1: - 303: match(regexp: string | RegExp): ?Array; - ^^^^^^ string. See lib: /core.js:303 + 304: match(regexp: string | RegExp): ?Array; + ^^^^^^ string. See lib: /core.js:304 Error: 7: var x1: number = "".match(0)[0]; ^ number. This type is incompatible with - 303: match(regexp: string | RegExp): ?Array; - ^^^^^^ string. See lib: /core.js:303 + 304: match(regexp: string | RegExp): ?Array; + ^^^^^^ string. See lib: /core.js:304 Member 2: - 303: match(regexp: string | RegExp): ?Array; - ^^^^^^ RegExp. See lib: /core.js:303 + 304: match(regexp: string | RegExp): ?Array; + ^^^^^^ RegExp. See lib: /core.js:304 Error: 7: var x1: number = "".match(0)[0]; ^ number. This type is incompatible with - 303: match(regexp: string | RegExp): ?Array; - ^^^^^^ RegExp. See lib: /core.js:303 + 304: match(regexp: string | RegExp): ?Array; + ^^^^^^ RegExp. See lib: /core.js:304 overload.js:7 7: var x1: number = "".match(0)[0]; diff --git a/tests/promises/promises.exp b/tests/promises/promises.exp index 98af1fb54de..64adae20893 100644 --- a/tests/promises/promises.exp +++ b/tests/promises/promises.exp @@ -37,16 +37,16 @@ all.js:19 all.js:24 24: Promise.all(); // Error: expected array instead of undefined (too few arguments) ^^^^^^^^^^^^^ call of method `all` -676: static all>(promises: T): Promise<$TupleMap>; - ^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in possibly undefined value. See lib: /core.js:676 +677: static all>(promises: T): Promise<$TupleMap>; + ^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in possibly undefined value. See lib: /core.js:677 24: Promise.all(); // Error: expected array instead of undefined (too few arguments) ^^^^^^^^^^^^^ undefined (too few arguments, expected default/rest parameters) all.js:27 27: Promise.all(0); // Error: expected array instead of number ^^^^^^^^^^^^^^ call of method `all` -676: static all>(promises: T): Promise<$TupleMap>; - ^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in. See lib: /core.js:676 +677: static all>(promises: T): Promise<$TupleMap>; + ^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in. See lib: /core.js:677 27: Promise.all(0); // Error: expected array instead of number ^ number @@ -73,11 +73,11 @@ promise.js:30 31: resolve(0); 32: })); -^ Promise. This type is incompatible with -661: resolve: (result: Promise | R) => void, - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `R` of constructor call. See lib: /core.js:661 +662: resolve: (result: Promise | R) => void, + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `R` of constructor call. See lib: /core.js:662 Member 1: - 661: resolve: (result: Promise | R) => void, - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:661 + 662: resolve: (result: Promise | R) => void, + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:662 Error: 35: var b: string = num; // Error: number ~> string ^^^ number. This type is incompatible with @@ -108,11 +108,11 @@ promise.js:41 42: resolve(0); 43: })); -^ Promise. This type is incompatible with -661: resolve: (result: Promise | R) => void, - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `R` of constructor call. See lib: /core.js:661 +662: resolve: (result: Promise | R) => void, + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `R` of constructor call. See lib: /core.js:662 Member 1: - 661: resolve: (result: Promise | R) => void, - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:661 + 662: resolve: (result: Promise | R) => void, + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:662 Error: 47: var b: string = num; // Error: number ~> string ^^^ number. This type is incompatible with @@ -147,11 +147,11 @@ promise.js:117 promise.js:121 121: Promise.resolve(Promise.resolve(0)).then(function(num) { ^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:674 +675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:675 Member 1: - 674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:674 + 675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:675 Error: 123: var b: string = num; // Error: number ~> string ^^^ number. This type is incompatible with @@ -169,11 +169,11 @@ promise.js:121 promise.js:127 127: Promise.resolve(Promise.resolve(Promise.resolve(0))).then(function(num) { ^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:674 +675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:675 Member 1: - 674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:674 + 675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:675 Error: 129: var b: string = num; // Error: number ~> string ^^^ number. This type is incompatible with @@ -197,11 +197,11 @@ promise.js:161 promise.js:166 166: .then(function(num) { return Promise.resolve('asdf'); }) ^^^^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -666: onFulfill?: (value: R) => Promise | U, - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `U` of call of method `then`. See lib: /core.js:666 +667: onFulfill?: (value: R) => Promise | U, + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `U` of call of method `then`. See lib: /core.js:667 Member 1: - 666: onFulfill?: (value: R) => Promise | U, - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:666 + 667: onFulfill?: (value: R) => Promise | U, + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:667 Error: 169: var b: number = str; // Error: string ~> number ^^^ string. This type is incompatible with @@ -221,11 +221,11 @@ promise.js:166 promise.js:174 174: .then(function(num) { return Promise.resolve(Promise.resolve('asdf')); }) ^^^^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:674 +675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:675 Member 1: - 674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:674 + 675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:675 Error: 177: var b: number = str; // Error: string ~> number ^^^ string. This type is incompatible with @@ -249,11 +249,11 @@ promise.js:201 promise.js:206 206: .catch(function(num) { return Promise.resolve('asdf'); }) ^^^^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -671: onReject?: (error: any) => Promise | U - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `U` of call of method `catch`. See lib: /core.js:671 +672: onReject?: (error: any) => Promise | U + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `U` of call of method `catch`. See lib: /core.js:672 Member 1: - 671: onReject?: (error: any) => Promise | U - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:671 + 672: onReject?: (error: any) => Promise | U + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:672 Error: 209: var b: number = str; // Error: string ~> number ^^^ string. This type is incompatible with @@ -273,11 +273,11 @@ promise.js:206 promise.js:214 214: .catch(function(num) { return Promise.resolve(Promise.resolve('asdf')); }) ^^^^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with -674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:674 +675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:675 Member 1: - 674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:674 + 675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:675 Error: 217: var b: number = str; // Error: string ~> number ^^^ string. This type is incompatible with @@ -325,16 +325,16 @@ resolve_void.js:3 resolve_void.js:5 5: (Promise.resolve(undefined): Promise); // error ^^^^^^^^^ undefined. This type is incompatible with -674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:674 +675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `T` of call of method `resolve`. See lib: /core.js:675 Member 1: - 674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:674 + 675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ type application of class `Promise`. See lib: /core.js:675 Error: 5: (Promise.resolve(undefined): Promise); // error ^^^^^^^^^ undefined. This type is incompatible with - 674: static resolve(object: Promise | T): Promise; - ^^^^^^^^^^ Promise. See lib: /core.js:674 + 675: static resolve(object: Promise | T): Promise; + ^^^^^^^^^^ Promise. See lib: /core.js:675 Member 2: 5: (Promise.resolve(undefined): Promise); // error ^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` of call of method `resolve`