_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
TypeScript/tests/cases/compiler/localTypeParameterInferencePriority.ts_0_605
export type UnrollOnHover<O extends object> = O extends object ? { [K in keyof O]: O[K]; } : never; export type Schema = Record<string, unknown>; class Table<S extends Schema> { __schema!: S; // Removing this line, removes the error getRows<C extends keyof S>(): Array<UnrollOnHover<Pick<S, C>>>...
{ "end_byte": 605, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/localTypeParameterInferencePriority.ts" }
TypeScript/tests/cases/compiler/noSymbolForMergeCrash.ts_0_92
// @Filename: initial.ts interface A { } namespace A {} // @Filename: final.ts type A = {}
{ "end_byte": 92, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/noSymbolForMergeCrash.ts" }
TypeScript/tests/cases/compiler/nestedBlockScopedBindings14.ts_0_98
var x; for (; false;) { let x; () => x; } var y; for (; false;) { let y; y = 1; }
{ "end_byte": 98, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/nestedBlockScopedBindings14.ts" }
TypeScript/tests/cases/compiler/downlevelLetConst12.ts_0_187
// @target:es5 'use strict' // top level let\const should not be renamed let foo; const bar = 1; let [baz] = []; let {a: baz2} = { a: 1 }; const [baz3] = [] const {a: baz4} = { a: 1 };
{ "end_byte": 187, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/downlevelLetConst12.ts" }
TypeScript/tests/cases/compiler/systemModule4.ts_0_51
// @module: system export var x = 1; export var y;
{ "end_byte": 51, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/systemModule4.ts" }
TypeScript/tests/cases/compiler/moduleResolutionWithSymlinks_notInNodeModules.ts_0_1101
// When symlinked files are not in node_modules, realpath is not used. // A symlink file acts like the real thing. So, 2 symlinks act like 2 different files. // See GH#10364. // @noImplicitReferences: true // @traceResolution: true // @fullEmitPaths: true // @filename: /shared/abc.ts // @symlink: /src/shared/abc.ts,/...
{ "end_byte": 1101, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/moduleResolutionWithSymlinks_notInNodeModules.ts" }
TypeScript/tests/cases/compiler/declarationEmitComputedNameConstEnumAlias.ts_0_233
// @declaration: true // @filename: EnumExample.ts enum EnumExample { TEST = 'TEST', } export default EnumExample; // @filename: index.ts import EnumExample from './EnumExample'; export default { [EnumExample.TEST]: {}, };
{ "end_byte": 233, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/declarationEmitComputedNameConstEnumAlias.ts" }
TypeScript/tests/cases/compiler/uncaughtCompilerError2.ts_0_40
function getObj() { ().toString(); }
{ "end_byte": 40, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/uncaughtCompilerError2.ts" }
TypeScript/tests/cases/compiler/assignmentCompatability27.ts_0_336
module __test1__ { export interface interfaceWithPublicAndOptional<T,U> { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional<number,string> = { one: 1 };; export var __val__obj4 = obj4; } module __test2__ { export var aa:{two:string;};; export var __val__aa = aa; } __test2__.__val__aa = __tes...
{ "end_byte": 336, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/assignmentCompatability27.ts" }
TypeScript/tests/cases/compiler/accessorsInAmbientContext.ts_0_296
// @target: es5 declare module M { class C { get X() { return 1; } set X(v) { } static get Y() { return 1; } static set Y(v) { } } } declare class C { get X() { return 1; } set X(v) { } static get Y() { return 1; } static set Y(v) { } }
{ "end_byte": 296, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/accessorsInAmbientContext.ts" }
TypeScript/tests/cases/compiler/functionTypesLackingReturnTypes.ts_1_127
// Error (no '=>') function f(x: ()) { } // Error (no '=>') var g: (param); // Okay var h: { () } // Okay var i: { new () }
{ "end_byte": 127, "start_byte": 1, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/functionTypesLackingReturnTypes.ts" }
TypeScript/tests/cases/compiler/moduleAugmentationGlobal6.ts_0_47
declare global { interface Array<T> { x } }
{ "end_byte": 47, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/moduleAugmentationGlobal6.ts" }
TypeScript/tests/cases/compiler/overloadOnConstInheritance2.ts_0_223
interface Base { addEventListener(x: string): any; addEventListener(x: 'foo'): string; } interface Deriver extends Base { addEventListener(x: 'bar'): string; // shouldn't need to redeclare the string overload }
{ "end_byte": 223, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/overloadOnConstInheritance2.ts" }
TypeScript/tests/cases/compiler/arrayTypeInSignatureOfInterfaceAndClass.ts_0_869
declare module WinJS { class Promise<T> { then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; } } declare module Data { export interface IListItem<T> { itemIndex: number; key: any; data: T; g...
{ "end_byte": 869, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/arrayTypeInSignatureOfInterfaceAndClass.ts" }
TypeScript/tests/cases/compiler/destructuringFromUnionSpread.ts_0_109
interface A { a: string } interface B { b: number } declare const x: A | B; const { a } = { ...x } // error
{ "end_byte": 109, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/destructuringFromUnionSpread.ts" }
TypeScript/tests/cases/compiler/noImplicitAnyParametersInBareFunctions.ts_3_1004
@noImplicitAny: true // No implicit-'any' errors. function f1(): void { } // Implicit-'any' error for x. function f2(x): void { } // No implicit-'any' errors. function f3(x: any): void { } // Implicit-'any' errors for x, y, and z. function f4(x, y, z): void { } // Implicit-'any' errors for x, and z. function f5(x,...
{ "end_byte": 1004, "start_byte": 3, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/noImplicitAnyParametersInBareFunctions.ts" }
TypeScript/tests/cases/compiler/awaitLiteralValues.ts_0_269
function awaitString() { await 'literal'; } function awaitNumber() { await 1; } function awaitTrue() { await true; } function awaitFalse() { await false; } function awaitNull() { await null; } function awaitUndefined() { await undefined; }
{ "end_byte": 269, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/awaitLiteralValues.ts" }
TypeScript/tests/cases/compiler/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts_0_137
//@module: amd //@declaration: true export interface A<T> { f1(callback: (p: T) => any); } export interface B<T> extends A<T> { }
{ "end_byte": 137, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts" }
TypeScript/tests/cases/compiler/restArgAssignmentCompat.ts_0_161
function f(...x: number[]) { x.forEach((n, i) => void ('item ' + i + ' = ' + n)); } function g(x: number[], y: string) { } var n = g; n = f; n([4], 'foo');
{ "end_byte": 161, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/restArgAssignmentCompat.ts" }
TypeScript/tests/cases/compiler/chainedAssignment1.ts_0_345
class X { constructor(public z) { } a: number; } class Y { constructor(public z) { } a: number; b: string; } class Z { z: any; c: string; } var c1 = new X(3); var c2 = new Y(5); var c3 = new Z(); c1 = c2 = c3; // a bug made this not report the same error as below c2 = c3; // Error TS1...
{ "end_byte": 345, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/chainedAssignment1.ts" }
TypeScript/tests/cases/compiler/contextualTyping6.ts_0_42
var foo:{id:number;}[] = [{id:1}, {id:2}];
{ "end_byte": 42, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/contextualTyping6.ts" }
TypeScript/tests/cases/compiler/compoundVarDecl1.ts_0_66
module Foo { var a = 1, b = 1; a = b + 2; } var foo = 4, bar = 5;
{ "end_byte": 66, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/compoundVarDecl1.ts" }
TypeScript/tests/cases/compiler/underscoreTest1.ts_0_6295
// @Filename: underscoreTest1_underscore.ts interface Dictionary<T> { [x: string]: T; } interface Iterator_<T, U> { (value: T, index: any, list: any): U; } interface Reducer<T, U> { (accumulator: U, value: T, index: any, list: any): U; } interface Tuple2<T0, T1> extends Array<any> { 0: T0; 1: T1;...
{ "end_byte": 6295, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/underscoreTest1.ts" }
TypeScript/tests/cases/compiler/underscoreTest1.ts_6301_10269
export interface WrappedDictionary<T> extends WrappedObject<Dictionary<T>> { each(iterator: Iterator_<T, void>, context?: any): void; forEach(iterator: Iterator_<T, void>, context?: any): void; map<U>(iterator: Iterator_<T, U>, context?: any): U[]; collect<U>(iterator: Iterator_<T, U>, c...
{ "end_byte": 10269, "start_byte": 6301, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/underscoreTest1.ts" }
TypeScript/tests/cases/compiler/underscoreTest1.ts_10275_15970
export interface ChainedArray<T> extends ChainedObject<Array<T>> { each(iterator: Iterator_<T, void>, context?: any): ChainedObject<void>; forEach(iterator: Iterator_<T, void>, context?: any): ChainedObject<void>; map<U>(iterator: Iterator_<T, U>, context?: any): ChainedArray<U>; collect...
{ "end_byte": 15970, "start_byte": 10275, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/underscoreTest1.ts" }
TypeScript/tests/cases/compiler/underscoreTest1.ts_15976_19787
export interface ChainedDictionary<T> extends ChainedObject<Dictionary<T>> { each(iterator: Iterator_<T, void>, context?: any): ChainedObject<void>; forEach(iterator: Iterator_<T, void>, context?: any): ChainedObject<void>; map<U>(iterator: Iterator_<T, U>, context?: any): ChainedArray<U>; ...
{ "end_byte": 19787, "start_byte": 15976, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/underscoreTest1.ts" }
TypeScript/tests/cases/compiler/underscoreTest1.ts_19788_27177
{ <T>(list: T[]): WrappedArray<T>; <T>(list: Dictionary<T>): WrappedDictionary<T>; <T extends Function>(func: T): WrappedFunction<T>; <T>(obj: T): WrappedObject<T>; chain<T>(list: T[]): ChainedArray<T>; chain<T>(list: Dictionary<T>): ChainedDictionary<T>; chain<T...
{ "end_byte": 27177, "start_byte": 19788, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/underscoreTest1.ts" }
TypeScript/tests/cases/compiler/underscoreTest1.ts_27187_33563
flatten<T>(list: T[][]): T[]; flatten<T>(array: any[], shallow?: boolean): T[]; without<T>(list: T[], ...values: T[]): T[]; union<T>(...arrays: T[][]): T[]; intersection<T>(...arrays: T[][]): T[]; difference<T>(list: T[], ...others: T[][]): T[]; uniq<T>(list: T[], is...
{ "end_byte": 33563, "start_byte": 27187, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/underscoreTest1.ts" }
TypeScript/tests/cases/compiler/underscoreTest1.ts_33565_38857
_.flatten([1, 2, 3, 4]); _.flatten([1, [2]]); // typescript doesn't like the elements being different _.flatten([1, [2], [3, [[4]]]]); _.flatten([1, [2], [3, [[4]]]], true); _.without([1, 2, 1, 0, 3, 1, 4], 0, 1); _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]); _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]); _.differ...
{ "end_byte": 38857, "start_byte": 33565, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/underscoreTest1.ts" }
TypeScript/tests/cases/compiler/complexClassRelationships.ts_0_954
// @target: ES5 // There should be no errors in this file class Derived extends Base { public static createEmpty(): Derived { var item = new Derived(); return item; } } class BaseCollection<T extends Base> { constructor(f: () => T) { (item: Thing) => { return [item.Components]; }; ...
{ "end_byte": 954, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/complexClassRelationships.ts" }
TypeScript/tests/cases/compiler/commentOnBlock1.ts_0_36
// asdf function f() { /*asdf*/{} }
{ "end_byte": 36, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/commentOnBlock1.ts" }
TypeScript/tests/cases/compiler/jsxPropsAsIdentifierNames.tsx_0_229
// @jsx: preserve // @filename: index.tsx declare namespace JSX { interface Element { } interface IntrinsicElements { div: { static?: boolean; }; } } export default <div static={true} />;
{ "end_byte": 229, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/jsxPropsAsIdentifierNames.tsx" }
TypeScript/tests/cases/compiler/defaultPropsEmptyCurlyBecomesAnyForJs.ts_0_561
// @allowJs: true // @outDir: ./built // @filename: library.d.ts export class Foo<T = {}, U = {}> { props: T; state: U; constructor(props: T, state: U); } // @filename: component.js import { Foo } from "./library"; export class MyFoo extends Foo { member; } // @filename: typed_component.ts import { My...
{ "end_byte": 561, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/defaultPropsEmptyCurlyBecomesAnyForJs.ts" }
TypeScript/tests/cases/compiler/superPropertyAccess1.ts_0_384
class C { public foo() { } public get x() { return 1; } public bar() { } } class D extends C { public foo() { super.bar(); super.x; // error } constructor() { super(); super.bar(); super.x; // error } public get y() { ...
{ "end_byte": 384, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/superPropertyAccess1.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_0_3306
// @strict: true // The control flow graph for the following statement block is 10000 nodes deep. Check that // we gracefully handle this, possibly by issuing an error. const data = []; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; dat...
{ "end_byte": 3306, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_3307_6491
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 6491, "start_byte": 3307, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_6492_9676
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 9676, "start_byte": 6492, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_9677_12861
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 12861, "start_byte": 9677, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_12862_16046
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 16046, "start_byte": 12862, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_16047_19231
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 19231, "start_byte": 16047, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_19232_22416
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 22416, "start_byte": 19232, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_22417_25601
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 25601, "start_byte": 22417, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_25602_28786
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 28786, "start_byte": 25602, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_28787_31971
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 31971, "start_byte": 28787, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_31972_35156
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 35156, "start_byte": 31972, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_35157_38341
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 38341, "start_byte": 35157, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_38342_41526
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 41526, "start_byte": 38342, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_41527_44711
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 44711, "start_byte": 41527, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_44712_47896
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 47896, "start_byte": 44712, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_47897_51081
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 51081, "start_byte": 47897, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_51082_54266
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 54266, "start_byte": 51082, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_54267_57451
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 57451, "start_byte": 54267, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_57452_60636
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 60636, "start_byte": 57452, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_60637_63821
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 63821, "start_byte": 60637, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_63822_67006
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 67006, "start_byte": 63822, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_67007_70191
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 70191, "start_byte": 67007, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_70192_73376
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 73376, "start_byte": 70192, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_73377_76561
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 76561, "start_byte": 73377, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_76562_79746
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 79746, "start_byte": 76562, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_79747_82931
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 82931, "start_byte": 79747, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_82932_86116
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 86116, "start_byte": 82932, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_86117_89301
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 89301, "start_byte": 86117, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_89302_92486
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 92486, "start_byte": 89302, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_92487_95671
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 95671, "start_byte": 92487, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_95672_98856
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 98856, "start_byte": 95672, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_98857_102041
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 102041, "start_byte": 98857, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_102042_105226
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 105226, "start_byte": 102042, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_105227_108411
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 108411, "start_byte": 105227, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_108412_111596
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 111596, "start_byte": 108412, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_111597_114781
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 114781, "start_byte": 111597, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_114782_117966
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 117966, "start_byte": 114782, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_117967_121151
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 121151, "start_byte": 117967, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_121152_124336
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 124336, "start_byte": 121152, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_124337_127521
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 127521, "start_byte": 124337, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/largeControlFlowGraph.ts_127522_130186
data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] = 0; data[0] ...
{ "end_byte": 130186, "start_byte": 127522, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/largeControlFlowGraph.ts" }
TypeScript/tests/cases/compiler/emitTopOfFileTripleSlashCommentOnNotEmittedNodeIfRemoveCommentsIsFalse.ts_3_199
@removeComments: false // @Filename: file0.ts var x = 10 // @Filename: file1.ts /// <reference path="file0.ts" /> declare var OData: any; /// <reference path="file0.ts" /> interface F { }
{ "end_byte": 199, "start_byte": 3, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/emitTopOfFileTripleSlashCommentOnNotEmittedNodeIfRemoveCommentsIsFalse.ts" }
TypeScript/tests/cases/compiler/unusedPrivateMethodInClass3.ts_0_225
//@noUnusedLocals:true //@noUnusedParameters:true class greeter { private function1() { var y = 10; } private function2() { var y = 10; } public function3() { var y = 10; } }
{ "end_byte": 225, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/unusedPrivateMethodInClass3.ts" }
TypeScript/tests/cases/compiler/unusedFunctionsinNamespaces3.ts_0_127
//@noUnusedLocals:true //@noUnusedParameters:true namespace Validation { var function1 = function(param1:string) { } }
{ "end_byte": 127, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/unusedFunctionsinNamespaces3.ts" }
TypeScript/tests/cases/compiler/sourceMapValidationModule.ts_0_177
// @sourcemap: true module m2 { var a = 10; a++; } module m3 { module m4 { export var x = 30; } export function foo() { return m4.x; } }
{ "end_byte": 177, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/sourceMapValidationModule.ts" }
TypeScript/tests/cases/compiler/capturedLetConstInLoop5_ES6.ts_0_4502
// @target: ES6 declare function use(a: any); //====let function foo0(x) { for (let x of []) { var v = x; (function() { return x + v }); (() => x + v); if (x == 1) { return; } } use(v); } function foo00(x) { for (let x in []) { var v = x; ...
{ "end_byte": 4502, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/capturedLetConstInLoop5_ES6.ts" }
TypeScript/tests/cases/compiler/excessPropertyCheckIntersectionWithIndexSignature.ts_0_336
// @strict: true // Repro from #51875 let x: { [x: string]: { a: 0 } } & { [x: string]: { b: 0 } }; x = { y: { a: 0 } }; // Error x = { y: { a: 0, b: 0 } }; x = { y: { a: 0, b: 0, c: 0 } }; // Error type A = { a: string }; type B = { b: string }; const yy: Record<string, A> & Record<string, B> = { foo: { a: ...
{ "end_byte": 336, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/excessPropertyCheckIntersectionWithIndexSignature.ts" }
TypeScript/tests/cases/compiler/signatureLengthMismatchInOverload.ts_0_189
function f(callback: (arg: string, arg2: string) => void): void; function f(callback: (arg: number) => void): void; function f(callback: unknown) { } f((arg: number, arg2: number) => {});
{ "end_byte": 189, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/signatureLengthMismatchInOverload.ts" }
TypeScript/tests/cases/compiler/spreadObjectNoCircular1.ts_0_196
// @strict: true // @noEmit: true type Box = { content?: Foo | Box; }; declare const b: Box; class Foo { get foo() { return { content: this as Foo | Box, ...b, }; } }
{ "end_byte": 196, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/spreadObjectNoCircular1.ts" }
TypeScript/tests/cases/compiler/es6ExportClauseWithoutModuleSpecifier.ts_0_408
// @target: es6 // @declaration: true // @filename: server.ts export class c { } export interface i { } export module m { export var x = 10; } export var x = 10; export module uninstantiated { } // @filename: client.ts export { c } from "server"; export { c as c2 } from "server"; export { i, m as instantiatedModu...
{ "end_byte": 408, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/es6ExportClauseWithoutModuleSpecifier.ts" }
TypeScript/tests/cases/compiler/functionCall3.ts_0_49
function foo():any[]{return [1];} var x = foo();
{ "end_byte": 49, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/functionCall3.ts" }
TypeScript/tests/cases/compiler/computedPropertiesInDestructuring2_ES6.ts_0_67
// @target: ES6 let foo2 = () => "bar"; let {[foo2()]: bar3} = {};
{ "end_byte": 67, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/computedPropertiesInDestructuring2_ES6.ts" }
TypeScript/tests/cases/compiler/functionOverloads5.ts_0_58
class baz { public foo(); private foo(bar?:any){ } }
{ "end_byte": 58, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/functionOverloads5.ts" }
TypeScript/tests/cases/compiler/internalAliasClassInsideLocalModuleWithExport.ts_0_334
//@module: commonjs // @declaration: true export module x { export class c { foo(a: number) { return a; } } } export module m2 { export module m3 { export import c = x.c; export var cProp = new c(); var cReturnVal = cProp.foo(10); } } export var d = ...
{ "end_byte": 334, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/internalAliasClassInsideLocalModuleWithExport.ts" }
TypeScript/tests/cases/compiler/arrayDestructuringInSwitch2.ts_0_240
type X = { kind: "a", a: [1] } | { kind: "b", a: [] } function foo(x: X): 1 { const { kind, a } = x; switch (kind) { case "a": return a[0]; case "b": return 1; default: const [n] = a; return a; } }
{ "end_byte": 240, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/arrayDestructuringInSwitch2.ts" }
TypeScript/tests/cases/compiler/importNotElidedWhenNotFound.ts_0_221
import X from 'file'; import Z from 'other_file'; class Y extends Z { constructor() { super(X); } } import X2 from 'file2'; import X3 from 'file3'; class Q extends Z { constructor() { super(X2, X3); } }
{ "end_byte": 221, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/importNotElidedWhenNotFound.ts" }
TypeScript/tests/cases/compiler/mergedInstantiationAssignment.ts_0_579
// @strict: true // @noEmit: true // https://github.com/microsoft/TypeScript/issues/56320 class GenericObject<T = number> { set x(x: T) {} } const v1 = new GenericObject() as GenericObject & ({ a?: string } | { b?: number }); v1.x = 432; class GenericObjectWithoutSetter<T = number> { declare x: T; } const v2...
{ "end_byte": 579, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/mergedInstantiationAssignment.ts" }
TypeScript/tests/cases/compiler/moduleExports1.ts_0_239
//@module: amd export module TypeScript.Strasse.Street { export class Rue { public address:string; } } var rue = new TypeScript.Strasse.Street.Rue(); rue.address = "1 Main Street"; void 0; if (!module.exports) module.exports = "";
{ "end_byte": 239, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/moduleExports1.ts" }
TypeScript/tests/cases/compiler/implicitAnyDeclareFunctionWithoutFormalType2.ts_0_299
//@noimplicitany: true //@declaration: true // generates function fn1(): number; function fn1() { var x: number; return x; } // generates function fn2(): any; function fn2(): any { var x: any; return x; } // generates function fn3(); function fn3() { var x: any; return x; }
{ "end_byte": 299, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/implicitAnyDeclareFunctionWithoutFormalType2.ts" }
TypeScript/tests/cases/compiler/commentOnArrayElement9.ts_3_68
nst array = [ /* element 1 */ 1, /* end of element 1 */ ];
{ "end_byte": 68, "start_byte": 3, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/commentOnArrayElement9.ts" }
TypeScript/tests/cases/compiler/externalModuleRefernceResolutionOrderInImportDeclaration.ts_0_610
// @module: commonjs // @Filename: externalModuleRefernceResolutionOrderInImportDeclaration_file1.ts export function foo() { }; // @Filename: externalModuleRefernceResolutionOrderInImportDeclaration_file2.ts declare module "externalModuleRefernceResolutionOrderInImportDeclaration_file1" { export function bar(); } ...
{ "end_byte": 610, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/externalModuleRefernceResolutionOrderInImportDeclaration.ts" }
TypeScript/tests/cases/compiler/functionExpressionWithResolutionOfTypeOfSameName02.ts_3_64
terface Foo { } var x = function Foo() { var x: Foo; }
{ "end_byte": 64, "start_byte": 3, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/functionExpressionWithResolutionOfTypeOfSameName02.ts" }
TypeScript/tests/cases/compiler/jsFileCompilationAmbientVarDeclarationSyntax.ts_0_51
// @allowJs: true // @filename: a.js declare var v;
{ "end_byte": 51, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/jsFileCompilationAmbientVarDeclarationSyntax.ts" }
TypeScript/tests/cases/compiler/constructorOverloads6.ts_0_387
declare class FooBase { constructor(s: string); constructor(n: number); constructor(x: any) { } bar1():void; } declare class Foo extends FooBase { constructor(s: string); constructor(n: number); constructor(x: any, y?:any); bar1():void; } var f1 = new Foo("hey"); var f2 = new Foo(0...
{ "end_byte": 387, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/constructorOverloads6.ts" }
TypeScript/tests/cases/compiler/baseClassImprovedMismatchErrors.ts_0_315
class Base { n: Base | string; fn() { return 10; } } class Derived extends Base { n: Derived | string; fn() { return 10 as number | string; } } class DerivedInterface implements Base { n: DerivedInterface | string; fn() { return 10 as number | string; } }
{ "end_byte": 315, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/baseClassImprovedMismatchErrors.ts" }
TypeScript/tests/cases/compiler/classExtendsClauseClassNotReferringConstructor.ts_0_90
class A { a: number; } module Foo { var A = 1; class B extends A { b: string; } }
{ "end_byte": 90, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/compiler/classExtendsClauseClassNotReferringConstructor.ts" }