From 8a190a09688fd893ddb0ee5d904114c45ab61c68 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Thu, 5 Nov 2026 10:38:38 -0800 Subject: [PATCH 1/7] Fail tests whose baseline should be deleted When a test stops producing a baseline that has a reference, the harness wrote the .delete marker but did not fail the test, so the change went unnoticed until someone ran baseline-accept and lost the reference without reviewing why. --- tsc/internal/testutil/baseline/baseline.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tsc/internal/testutil/baseline/baseline.go b/tsc/internal/testutil/baseline/baseline.go index 539728ce16579..bdec15966b34a 100644 --- a/tsc/internal/testutil/baseline/baseline.go +++ b/tsc/internal/testutil/baseline/baseline.go @@ -65,7 +65,9 @@ func writeComparison(t *testing.T, actualContent string, local, reference string if actualContent == NoContent { if err := os.WriteFile(local+".delete", []byte{}, 0o644); err != nil { t.Error(fmt.Errorf("failed to write the local baseline file %s: %w", local+".delete", err)) + return } + t.Errorf("the baseline file %s should be deleted. (Run `hereby baseline-accept` if the deletion is correct.)", reference) return } if err := os.WriteFile(local, []byte(actualContent), 0o644); err != nil { From c7e2c49be3a3e7b88ddf6c31df9123434ff479ec Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 21 Oct 2026 21:38:28 -0700 Subject: [PATCH 2/7] Add check order variants and a check order fuzzer to the test harness Checker results should not depend on which files were checked first, on which types an editor happened to ask for before diagnostics were requested, or on whether a file was emitted before it was checked. Tests had no way to show such dependence, so fixes for it could only be described, not demonstrated. The harness-only checkOrder option queries the checker in a different order: files in reverse, each file in its own program, or every expression's type, symbol, contextual type, resolved signature, and the types of names in type annotations before any diagnostics. The same orders apply to emit. Listing several orders produces a baseline for each, so order dependence shows up as differing baselines. Fixed orders over whole files miss results that depend on which single query a checker answers first. With TS_CHECK_ORDER_FUZZ=n, each test without a checkOrder option is checked again n times in fresh programs that first answer a seeded random selection of queries and single file emits. Any change in diagnostics, emitted output, or the type or symbol of a node fails the test with the seed and a minimized list of queries that reproduces it. Symbol IDs in printed names are ignored, as they follow creation order by design. The fuzzer is off by default, so it does not slow the normal suite. --- tsc/internal/testrunner/compiler_runner.go | 11 +- .../testutil/harnessutil/checkorderfuzz.go | 353 ++++++++++++++++++ .../testutil/harnessutil/harnessutil.go | 149 +++++++- 3 files changed, 507 insertions(+), 6 deletions(-) create mode 100644 tsc/internal/testutil/harnessutil/checkorderfuzz.go diff --git a/tsc/internal/testrunner/compiler_runner.go b/tsc/internal/testrunner/compiler_runner.go index 75c8329bafba8..c7081ce8b6b44 100644 --- a/tsc/internal/testrunner/compiler_runner.go +++ b/tsc/internal/testrunner/compiler_runner.go @@ -13,6 +13,7 @@ import ( "github.com/microsoft/TypeScript/tsc/internal/ast" "github.com/microsoft/TypeScript/tsc/internal/checker" + "github.com/microsoft/TypeScript/tsc/internal/collections" "github.com/microsoft/TypeScript/tsc/internal/core" "github.com/microsoft/TypeScript/tsc/internal/repo" "github.com/microsoft/TypeScript/tsc/internal/testutil" @@ -186,6 +187,14 @@ func (r *CompilerBaselineRunner) runSingleConfigTest(t *testing.T, testName stri compilerTest.verifyParentPointers(t) } +// compilerTestVaryBy adds harness options that may vary to the compiler options +// that may vary. +var compilerTestVaryBy = func() *collections.Set[string] { + s := compilerVaryBy.Clone() + s.Add("checkorder") + return s +}() + type compilerFileBasedTest struct { filename string content string @@ -198,7 +207,7 @@ func getCompilerFileBasedTest(t *testing.T, filename string) *compilerFileBasedT panic("Could not read test file: " + filename) } settings := extractCompilerSettings(content) - configurations := harnessutil.GetFileBasedTestConfigurations(t, settings, compilerVaryBy) + configurations := harnessutil.GetFileBasedTestConfigurations(t, settings, compilerTestVaryBy) return &compilerFileBasedTest{ filename: filename, content: content, diff --git a/tsc/internal/testutil/harnessutil/checkorderfuzz.go b/tsc/internal/testutil/harnessutil/checkorderfuzz.go new file mode 100644 index 0000000000000..3411de7c29fcd --- /dev/null +++ b/tsc/internal/testutil/harnessutil/checkorderfuzz.go @@ -0,0 +1,353 @@ +package harnessutil + +import ( + "context" + "fmt" + "hash/fnv" + "math/rand/v2" + "os" + "regexp" + "strconv" + "strings" + "testing" + + "github.com/microsoft/TypeScript/tsc/internal/ast" + "github.com/microsoft/TypeScript/tsc/internal/checker" + "github.com/microsoft/TypeScript/tsc/internal/compiler" + "github.com/microsoft/TypeScript/tsc/internal/core" + "github.com/microsoft/TypeScript/tsc/internal/scanner" + "github.com/microsoft/TypeScript/tsc/internal/tsoptions" + "github.com/microsoft/TypeScript/tsc/internal/tspath" +) + +// Setting TS_CHECK_ORDER_FUZZ=n checks each test that has no checkOrder +// option n more times, each time in a fresh program that first answers a +// random selection of queries in a random order: the type, symbol, +// contextual type or resolved signature of a node, or the diagnostics of a +// file. A test fails if its diagnostics, or any of those results for any +// node, then differ from checking in program order, and reports the smallest list of queries that still makes them +// differ. TS_CHECK_ORDER_FUZZ_SEED=s runs only seed s. + +type fuzzQuery struct { + file *ast.SourceFile + node *ast.Node // nil to get the diagnostics of file + index int // of node in fuzzNodes(file) + kind fuzzQueryKind +} + +type fuzzQueryKind int + +const ( + fuzzQueryType fuzzQueryKind = iota + fuzzQuerySymbol + fuzzQueryContextualType + fuzzQuerySignature + fuzzQueryDiagnostics + fuzzQueryEmit +) + +var fuzzQueryKindNames = [...]string{ + fuzzQueryType: "type", + fuzzQuerySymbol: "symbol", + fuzzQueryContextualType: "contextual type", + fuzzQuerySignature: "signature", +} + +func (q fuzzQuery) String() string { + switch q.kind { + case fuzzQueryDiagnostics: + return fmt.Sprintf("diagnostics of %s", q.file.FileName()) + case fuzzQueryEmit: + return fmt.Sprintf("emit of %s", q.file.FileName()) + } + kind := fuzzQueryKindNames[q.kind] + if ast.PositionIsSynthesized(q.node.Pos()) { + return fmt.Sprintf("%s of synthesized %s %d in %s", kind, q.node.Kind, q.index, q.file.FileName()) + } + pos := scanner.GetTokenPosOfNode(q.node, q.file, false) + line, character := scanner.GetECMALineAndUTF16CharacterOfPosition(q.file, pos) + return fmt.Sprintf("%s of %s at %s(%d,%d)", kind, scanner.GetTextOfNode(q.node), q.file.FileName(), line+1, int(character)+1) +} + +// fuzzResult is what a check order must not change: diagnostics, emitted +// files, and the result of every query of every queryable node. +type fuzzResult []string + +func fuzzCheckOrder(t *testing.T, host compiler.CompilerHost, config *tsoptions.ParsedCommandLine, harnessOptions *HarnessOptions) { + n, _ := strconv.Atoi(os.Getenv("TS_CHECK_ORDER_FUZZ")) + if t == nil || n <= 0 || harnessOptions.CheckOrder != "" && harnessOptions.CheckOrder != "default" { + return + } + options := config.CompilerOptions().Clone() + options.TraceResolution = core.TSFalse + fuzzConfig := tsoptions.NewParsedCommandLine(options, config.FileNames(), config.ProjectReferences(), config.BaseDirectory(), config.CaseSensitivity()) + fuzzConfig.ParsedConfig.ContentMappers = config.ContentMappers() + fuzzConfig.ConfigFile = config.ConfigFile + fuzzConfig.Errors = config.Errors + + ctx := context.Background() + expected := fuzzRun(t, ctx, host, fuzzConfig, nil) + seeds := make([]uint64, n) + for i := range seeds { + seeds[i] = uint64(i) + } + if s := os.Getenv("TS_CHECK_ORDER_FUZZ_SEED"); s != "" { + seed, err := strconv.ParseUint(s, 10, 64) + if err != nil { + t.Fatalf("invalid TS_CHECK_ORDER_FUZZ_SEED: %v", err) + } + seeds = []uint64{seed} + } + h := fnv.New64a() + h.Write([]byte(t.Name())) + stream := h.Sum64() + for _, seed := range seeds { + queries := fuzzQueries(createProgram(t, host, fuzzConfig), rand.New(rand.NewPCG(seed, stream))) + diverges := func(queries []fuzzQuery) bool { + return fuzzDiff(expected, fuzzRun(t, ctx, host, fuzzConfig, queries)) != "" + } + if !diverges(queries) { + continue + } + queries = fuzzMinimize(queries, diverges) + var b strings.Builder + fmt.Fprintf(&b, "check order fuzzing with TS_CHECK_ORDER_FUZZ_SEED=%d changed results after querying:\n", seed) + for _, q := range queries { + fmt.Fprintf(&b, " %s\n", q) + } + b.WriteString("results in program order (-) and after the queries (+):\n") + b.WriteString(fuzzDiff(expected, fuzzRun(t, ctx, host, fuzzConfig, queries))) + t.Error(b.String()) + } +} + +// fuzzQueries returns the queries for one seed: a random selection of every +// possible query, often only a few so that the first query matters. +func fuzzQueries(program compiler.ProgramLike, rng *rand.Rand) []fuzzQuery { + var queries []fuzzQuery + for _, file := range fuzzCheckedFiles(program) { + queries = append(queries, fuzzQuery{file: file, kind: fuzzQueryDiagnostics}, fuzzQuery{file: file, kind: fuzzQueryEmit}) + for i, node := range fuzzNodes(file) { + for _, kind := range fuzzNodeQueryKinds(node) { + queries = append(queries, fuzzQuery{file, node, i, kind}) + } + } + } + rng.Shuffle(len(queries), func(i, j int) { queries[i], queries[j] = queries[j], queries[i] }) + if len(queries) == 0 { + return nil + } + switch rng.IntN(3) { + case 0: + return queries[:1+rng.IntN(min(len(queries), 4))] + case 1: + return queries[:rng.IntN(len(queries)+1)] + default: + return queries + } +} + +// fuzzMinimize returns a 1-minimal sublist of queries for which diverges +// still holds (Zeller's ddmin). +func fuzzMinimize(queries []fuzzQuery, diverges func([]fuzzQuery) bool) []fuzzQuery { + n := 2 + for len(queries) >= 2 { + chunk := (len(queries) + n - 1) / n + reduced := false + for start := 0; start < len(queries); start += chunk { + complement := append(queries[:start:start], queries[min(start+chunk, len(queries)):]...) + if diverges(complement) { + queries = complement + n = max(n-1, 2) + reduced = true + break + } + } + if !reduced { + if n >= len(queries) { + break + } + n = min(n*2, len(queries)) + } + } + return queries +} + +func fuzzCheckedFiles(program compiler.ProgramLike) []*ast.SourceFile { + var files []*ast.SourceFile + for _, file := range program.GetSourceFiles() { + if !program.Program().SkipTypeChecking(file, false) { + files = append(files, file) + } + } + return files +} + +// fuzzNodes returns the nodes of file that queryNodes queries. +func fuzzNodes(file *ast.SourceFile) []*ast.Node { + var nodes []*ast.Node + var visit func(n *ast.Node) bool + visit = func(n *ast.Node) bool { + if n.Flags&ast.NodeFlagsReparsed == 0 && (ast.IsExpressionNode(n) || n.Kind == ast.KindIdentifier || ast.IsDeclarationName(n)) { + nodes = append(nodes, n) + } + n.ForEachChild(visit) + return false + } + file.AsNode().ForEachChild(visit) + return nodes +} + +func fuzzHasType(node *ast.Node) bool { + return !ast.IsOmittedExpression(node) +} + +// fuzzNodeQueryKinds returns the kinds of query that apply to node. +func fuzzNodeQueryKinds(node *ast.Node) []fuzzQueryKind { + kinds := make([]fuzzQueryKind, 0, 4) + if fuzzHasType(node) { + kinds = append(kinds, fuzzQueryType) + if ast.IsExpression(node) { + kinds = append(kinds, fuzzQueryContextualType) + } + } + kinds = append(kinds, fuzzQuerySymbol) + if ast.IsCallLikeExpression(node) { + kinds = append(kinds, fuzzQuerySignature) + } + return kinds +} + +// fuzzSymbolIDs matches the symbol IDs that the names of unique symbol +// properties end with, which depend on the order symbols were created in. +var fuzzSymbolIDs = regexp.MustCompile(`(\\uFFFD@[^@"]*)@\d+`) + +// fuzzQueryResult answers a query of a node, returning its result as text, +// or "" if it has none. +func fuzzQueryResult(c *checker.Checker, node *ast.Node, kind fuzzQueryKind) string { + return fuzzSymbolIDs.ReplaceAllString(fuzzQueryResultWithIDs(c, node, kind), "$1") +} + +func fuzzQueryResultWithIDs(c *checker.Checker, node *ast.Node, kind fuzzQueryKind) string { + switch kind { + case fuzzQueryType: + return c.TypeToString(c.GetTypeAtLocation(node)) + case fuzzQuerySymbol: + if symbol := c.GetSymbolAtLocation(node); symbol != nil { + return c.SymbolToString(symbol) + } + case fuzzQueryContextualType: + if t := c.GetContextualType(node, checker.ContextFlagsNone); t != nil { + return c.TypeToString(t) + } + case fuzzQuerySignature: + if signature := c.GetResolvedSignature(node); signature != nil { + return c.SignatureToStringEx(signature, nil, checker.TypeFormatFlagsNone, nil) + } + } + return "" +} + +// fuzzRun answers queries, given in the files of the program that +// fuzzQueries was given, in a fresh program, then returns its results. +func fuzzRun(t *testing.T, ctx context.Context, host compiler.CompilerHost, config *tsoptions.ParsedCommandLine, queries []fuzzQuery) fuzzResult { + program := createProgram(t, host, config) + files := fuzzCheckedFiles(program) + // Queries name nodes of another program over the same files, so find + // the same nodes here by their index. + nodesByFile := make(map[string][]*ast.Node) + for _, file := range files { + nodesByFile[string(file.FileName())] = fuzzNodes(file) + } + for _, q := range queries { + file := program.GetSourceFile(q.file.FileName()) + switch q.kind { + case fuzzQueryDiagnostics: + program.GetSemanticDiagnostics(ctx, file) + continue + case fuzzQueryEmit: + program.Emit(ctx, compiler.EmitOptions{TargetSourceFiles: []*ast.SourceFile{file}, WriteFile: fuzzDiscardOutput}) + continue + } + node := nodesByFile[string(file.FileName())][q.index] + c, done := program.Program().GetTypeCheckerForFile(ctx, file) + fuzzQueryResult(c, node, q.kind) + done() + } + + var diags []*ast.Diagnostic + diags = append(diags, program.GetSyntacticDiagnostics(ctx, nil)...) + diags = append(diags, program.GetSemanticDiagnostics(ctx, nil)...) + diags = append(diags, program.GetGlobalDiagnostics(ctx)...) + if program.Options().GetEmitDeclarations() { + diags = append(diags, program.GetDeclarationDiagnostics(ctx, nil)...) + } + var result fuzzResult + for _, d := range compiler.SortAndDeduplicateDiagnostics(diags) { + var b strings.Builder + fuzzFormatDiagnostic(&b, d, "") + result = append(result, b.String()) + } + program.Emit(ctx, compiler.EmitOptions{WriteFile: func(fileName tspath.RootedFilePath, text string, data *compiler.WriteFileData) error { + result = append(result, fmt.Sprintf("emit of %s:\n%s", fileName, text)) + return nil + }}) + for _, file := range files { + c, done := program.Program().GetTypeCheckerForFile(ctx, file) + for i, node := range nodesByFile[string(file.FileName())] { + for _, kind := range fuzzNodeQueryKinds(node) { + if r := fuzzQueryResult(c, node, kind); r != "" { + result = append(result, fmt.Sprintf("%s: %s", fuzzQuery{file, node, i, kind}, r)) + } + } + } + done() + } + return result +} + +func fuzzDiscardOutput(tspath.RootedFilePath, string, *compiler.WriteFileData) error { + return nil +} + +func fuzzFormatDiagnostic(b *strings.Builder, d *ast.Diagnostic, indent string) { + b.WriteString(indent) + if d.File() != nil { + line, character := scanner.GetECMALineAndUTF16CharacterOfPosition(d.File(), d.Pos()) + fmt.Fprintf(b, "%s(%d,%d): ", d.File().FileName(), line+1, int(character)+1) + } + fmt.Fprintf(b, "TS%d: %s", d.Code(), d.String()) + for _, chained := range d.MessageChain() { + b.WriteString("\n") + fuzzFormatDiagnostic(b, chained, indent+" ") + } + for _, related := range d.RelatedInformation() { + b.WriteString("\n") + fuzzFormatDiagnostic(b, related, indent+" related ") + } +} + +// fuzzDiff describes how actual differs from expected, or returns "". +func fuzzDiff(expected, actual fuzzResult) string { + count := make(map[string]int) + for _, line := range expected { + count[line]++ + } + for _, line := range actual { + count[line]-- + } + var b strings.Builder + for _, line := range expected { + if count[line] > 0 { + count[line]-- + fmt.Fprintf(&b, "- %s\n", line) + } + } + for _, line := range actual { + if count[line] < 0 { + count[line]++ + fmt.Fprintf(&b, "+ %s\n", line) + } + } + return b.String() +} diff --git a/tsc/internal/testutil/harnessutil/harnessutil.go b/tsc/internal/testutil/harnessutil/harnessutil.go index 97055cb812622..ce171273c6d53 100644 --- a/tsc/internal/testutil/harnessutil/harnessutil.go +++ b/tsc/internal/testutil/harnessutil/harnessutil.go @@ -18,6 +18,7 @@ import ( "github.com/microsoft/TypeScript/tsc/internal/ast" "github.com/microsoft/TypeScript/tsc/internal/bundled" + "github.com/microsoft/TypeScript/tsc/internal/checker" "github.com/microsoft/TypeScript/tsc/internal/collections" "github.com/microsoft/TypeScript/tsc/internal/compiler" "github.com/microsoft/TypeScript/tsc/internal/contentmapper" @@ -76,6 +77,7 @@ type HarnessOptions struct { ReportDiagnostics bool CaptureSuggestions bool TypescriptVersion string + CheckOrder string } func CompileFiles( @@ -226,6 +228,7 @@ func CompileFilesEx( result := compileFilesWithHost(t, host, config, harnessOptions) result.Symlinks = symlinks result.Trace = host.tracer.String() + fuzzCheckOrder(t, host, config, harnessOptions) result.Repeat = func(testConfig TestConfiguration) *CompilationResult { newHarnessOptions := *harnessOptions newCompilerOptions := compilerOptions.Clone() @@ -362,6 +365,28 @@ var harnessCommandLineOptions = []*tsoptions.CommandLineOption{ Name: "captureSuggestions", Kind: tsoptions.CommandLineOptionTypeBoolean, }, + // Changes the order in which the checker is queried; see checkOrders + { + Name: "checkOrder", + Kind: tsoptions.CommandLineOptionTypeString, + }, +} + +// Checker results should not depend on the order in which files and +// locations are queried. These orders let tests demonstrate that. Each +// applies to both checking and emit, which queries the checker too. +var checkOrders = []string{ + // Check and emit all files in program order. + "default", + // Check and emit files one at a time in reverse program order. + "reverse", + // Check and emit each file with a fresh program that has checked + // nothing else. + "isolated", + // Before checking or emitting, ask for the type, symbol, contextual + // type and resolved signature of every expression and name in each + // file, innermost and last first, as an editor might. + "typesfirst", } func getHarnessOption(name string) *tsoptions.CommandLineOption { @@ -407,6 +432,12 @@ func parseHarnessOption(t *testing.T, key string, value any, harnessOptions *Har harnessOptions.CaptureSuggestions = value.(bool) case "typescriptVersion": harnessOptions.TypescriptVersion = value.(string) + case "checkOrder": + order := strings.ToLower(value.(string)) + if !slices.Contains(checkOrders, order) { + t.Fatalf("Unknown check order '%s'.", value) + } + harnessOptions.CheckOrder = order default: t.Fatalf("Unknown harness option '%s'.", key) } @@ -645,8 +676,7 @@ func compileFilesWithHost( preErrors = append(preErrors, preProgram.GetConfigFileParsingDiagnostics()...) preErrors = append(preErrors, preProgram.GetProgramDiagnostics()...) preErrors = append(preErrors, preProgram.GetSyntacticDiagnostics(ctx, nil)...) - preErrors = append(preErrors, preProgram.GetSemanticDiagnostics(ctx, nil)...) - preErrors = append(preErrors, preProgram.GetGlobalDiagnostics(ctx)...) + preErrors = append(preErrors, getCheckerDiagnostics(t, ctx, host, preConfig, preProgram, harnessOptions.CheckOrder)...) if harnessOptions.CaptureSuggestions { preErrors = append(preErrors, preProgram.GetSuggestionDiagnostics(ctx, nil)...) } @@ -656,13 +686,12 @@ func compileFilesWithHost( preErrors = compiler.SortAndDeduplicateDiagnostics(preErrors) postProgram := createProgram(t, host, config) - emitResult := postProgram.Emit(ctx, compiler.EmitOptions{}) + emitResult := emitInOrder(t, ctx, host, config, postProgram, harnessOptions.CheckOrder) var postErrors []*ast.Diagnostic postErrors = append(postErrors, postProgram.GetConfigFileParsingDiagnostics()...) postErrors = append(postErrors, postProgram.GetProgramDiagnostics()...) postErrors = append(postErrors, postProgram.GetSyntacticDiagnostics(ctx, nil)...) - postErrors = append(postErrors, postProgram.GetSemanticDiagnostics(ctx, nil)...) - postErrors = append(postErrors, postProgram.GetGlobalDiagnostics(ctx)...) + postErrors = append(postErrors, getCheckerDiagnostics(t, ctx, host, config, postProgram, harnessOptions.CheckOrder)...) if postProgram.Options().GetEmitDeclarations() { postErrors = append(postErrors, postProgram.GetDeclarationDiagnostics(ctx, nil)...) } @@ -702,6 +731,113 @@ func compileFilesWithHost( return newCompilationResult(host, harnessOptions.CurrentDirectory, config.CompilerOptions(), postProgram, emitResult, errors, harnessOptions) } +// getCheckerDiagnostics returns the semantic and global diagnostics of +// program, querying the checker in the given order. +func getCheckerDiagnostics(t *testing.T, ctx context.Context, host compiler.CompilerHost, config *tsoptions.ParsedCommandLine, program compiler.ProgramLike, order string) []*ast.Diagnostic { + var files []*ast.SourceFile + for _, file := range program.GetSourceFiles() { + if !program.Program().SkipTypeChecking(file, false) { + files = append(files, file) + } + } + var result []*ast.Diagnostic + switch order { + case "", "default": + result = append(result, program.GetSemanticDiagnostics(ctx, nil)...) + result = append(result, program.GetGlobalDiagnostics(ctx)...) + case "reverse": + for _, file := range slices.Backward(files) { + result = append(result, program.GetSemanticDiagnostics(ctx, file)...) + } + result = append(result, program.GetGlobalDiagnostics(ctx)...) + case "isolated": + for _, file := range files { + isolated := createProgram(t, host, config) + isolatedFile := isolated.GetSourceFile(file.FileName()) + result = append(result, isolated.GetSemanticDiagnostics(ctx, isolatedFile)...) + result = append(result, isolated.GetGlobalDiagnostics(ctx)...) + } + case "typesfirst": + for _, file := range slices.Backward(files) { + c, done := program.Program().GetTypeCheckerForFile(ctx, file) + queryNodes(c, file) + done() + } + result = append(result, program.GetSemanticDiagnostics(ctx, nil)...) + result = append(result, program.GetGlobalDiagnostics(ctx)...) + default: + panic("unknown check order " + order) + } + return compiler.SortAndDeduplicateDiagnostics(result) +} + +// emitInOrder emits program, querying the checker in the given order: each +// file emitted separately, in reverse or in a program of its own, or after +// querying every node of every file in reverse. +func emitInOrder(t *testing.T, ctx context.Context, host compiler.CompilerHost, config *tsoptions.ParsedCommandLine, program compiler.ProgramLike, order string) *compiler.EmitResult { + options := program.Options() + if order == "" || order == "default" || options.OutFile != "" || options.NoEmitOnError.IsTrue() { + // Emitting files separately would change what a bundle or an emit + // blocked by errors contains. + return program.Emit(ctx, compiler.EmitOptions{}) + } + files := program.GetSourceFiles() + if order == "typesfirst" { + for _, file := range slices.Backward(files) { + if program.Program().SkipTypeChecking(file, false) { + continue + } + c, done := program.Program().GetTypeCheckerForFile(ctx, file) + queryNodes(c, file) + done() + } + return program.Emit(ctx, compiler.EmitOptions{}) + } + result := &compiler.EmitResult{} + emitFile := func(p compiler.ProgramLike, file *ast.SourceFile) { + r := p.Emit(ctx, compiler.EmitOptions{TargetSourceFiles: []*ast.SourceFile{file}}) + result.EmitSkipped = result.EmitSkipped || r.EmitSkipped + result.Diagnostics = append(result.Diagnostics, r.Diagnostics...) + result.EmittedFiles = append(result.EmittedFiles, r.EmittedFiles...) + result.SourceMaps = append(result.SourceMaps, r.SourceMaps...) + } + switch order { + case "reverse": + for _, file := range slices.Backward(files) { + emitFile(program, file) + } + case "isolated": + for _, file := range files { + isolated := createProgram(t, host, config) + emitFile(isolated, isolated.GetSourceFile(file.FileName())) + } + default: + panic("unknown check order " + order) + } + result.Diagnostics = compiler.SortAndDeduplicateDiagnostics(result.Diagnostics) + return result +} + +func queryNodes(c *checker.Checker, file *ast.SourceFile) { + var nodes []*ast.Node + var visit func(n *ast.Node) bool + visit = func(n *ast.Node) bool { + if n.Flags&ast.NodeFlagsReparsed == 0 { + nodes = append(nodes, n) + } + n.ForEachChild(visit) + return false + } + file.AsNode().ForEachChild(visit) + for _, n := range slices.Backward(nodes) { + if ast.IsExpressionNode(n) || n.Kind == ast.KindIdentifier || ast.IsDeclarationName(n) { + for _, kind := range fuzzNodeQueryKinds(n) { + fuzzQueryResult(c, n, kind) + } + } + } +} + type CompilationResult struct { Diagnostics []*ast.Diagnostic Result *compiler.EmitResult @@ -1165,6 +1301,9 @@ func getValueOfOptionString(t *testing.T, option string, value string) tsoptions func tryGetValueOfOptionString(option string, value string) (tsoptions.CompilerOptionsValue, bool) { optionDecl := getCommandLineOption(option) + if optionDecl == nil { + optionDecl = getHarnessOption(option) + } if optionDecl == nil { return nil, false } From 569077e83fe9f9e5213625be096d4fe16d511052 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 3 Nov 2026 14:16:07 -0800 Subject: [PATCH 3/7] Fuzz which files share a checker Order independence should also mean that results do not depend on which files a checker has been given, since project and compiler checker pools assign files differently. Let tests pick the checker of every file, and have the check order fuzzer use a seeded random assignment over two to four checkers for half of its seeds. --- tsc/internal/compiler/checkerpool.go | 41 +++++++++---- tsc/internal/compiler/program.go | 11 ++-- .../testutil/harnessutil/checkorderfuzz.go | 58 +++++++++++++++---- .../testutil/harnessutil/harnessutil.go | 6 ++ 4 files changed, 91 insertions(+), 25 deletions(-) diff --git a/tsc/internal/compiler/checkerpool.go b/tsc/internal/compiler/checkerpool.go index 2ee68c75c6275..6f63f62cf535a 100644 --- a/tsc/internal/compiler/checkerpool.go +++ b/tsc/internal/compiler/checkerpool.go @@ -33,6 +33,7 @@ type checkerPool struct { checkers []*checker.Checker locks []*sync.Mutex fileAssociations map[*ast.SourceFile]*checker.Checker + associations []int // from ProgramFactories.AssignCheckers, if set } var _ CheckerPool = (*checkerPool)(nil) @@ -307,20 +308,35 @@ func newCheckerPool(program *Program) *checkerPool { } func newCheckerPoolWithTracing(program *Program, tr *tracing.Tracing) *checkerPool { + return newCheckerPoolWithAssignment(program, tr, nil) +} + +// newCheckerPoolWithAssignment is newCheckerPoolWithTracing with the checker +// of each file given by assign, if set; see ProgramFactories.AssignCheckers. +func newCheckerPoolWithAssignment(program *Program, tr *tracing.Tracing, assign func([]*ast.SourceFile) []int) *checkerPool { + var associations []int checkerCount := 4 - if program.SingleThreaded() { + if assign != nil { + associations = assign(program.files) checkerCount = 1 - } else if c := program.Options().Checkers; c != nil { - checkerCount = *c + if len(associations) > 0 { + checkerCount = slices.Max(associations) + 1 + } + } else { + if program.SingleThreaded() { + checkerCount = 1 + } else if c := program.Options().Checkers; c != nil { + checkerCount = *c + } + checkerCount = max(min(checkerCount, len(program.files), 256), 1) } - checkerCount = max(min(checkerCount, len(program.files), 256), 1) - pool := &checkerPool{ - program: program, - checkers: make([]*checker.Checker, checkerCount), - locks: make([]*sync.Mutex, checkerCount), - tracing: tr, + program: program, + checkers: make([]*checker.Checker, checkerCount), + locks: make([]*sync.Mutex, checkerCount), + tracing: tr, + associations: associations, } return pool @@ -380,8 +396,11 @@ func (p *checkerPool) createCheckers() { wg.RunAndWait() - associations := make([]int, len(p.program.files)) - if checkerCount > 1 { + associations := p.associations + if associations == nil { + associations = make([]int, len(p.program.files)) + } + if checkerCount > 1 && p.associations == nil { baseWeights := make([]int, len(p.program.files)) importCounts := make([]int, len(p.program.files)) isDeclarationFile := make([]bool, len(p.program.files)) diff --git a/tsc/internal/compiler/program.go b/tsc/internal/compiler/program.go index 06854eada0bb7..30dc482904816 100644 --- a/tsc/internal/compiler/program.go +++ b/tsc/internal/compiler/program.go @@ -60,6 +60,9 @@ type ProgramHosts struct { type ProgramFactories struct { CreateCheckerPool func(*Program) CheckerPool CreateModuleResolver func(module.ResolverOptions) module.Resolver + // AssignCheckers, for testing, returns the index of the checker for each + // file of the program, in place of the usual checker count and assignment. + AssignCheckers func(files []*ast.SourceFile) []int } func (p *ProgramConfig) canUseProjectReferenceSource() bool { @@ -332,7 +335,7 @@ func NewProgram(ctx context.Context, opts ProgramOptions) (*Program, error) { if err := ctx.Err(); err != nil { return nil, err } - p.initCheckerPool(opts.CreateCheckerPool) + p.initCheckerPool(opts.CreateCheckerPool, opts.AssignCheckers) p.verifyCompilerOptions() p.collectContentMapperOptionDiagnostics() if err := ctx.Err(); err != nil { @@ -462,11 +465,11 @@ func (p *Program) ReuseProgram( } } result.replaceSyntheticImports(newFile, newSupplementalFiles) - result.initCheckerPool(createCheckerPool) + result.initCheckerPool(createCheckerPool, nil) return result, newFile, true } -func (p *Program) initCheckerPool(create func(*Program) CheckerPool) { +func (p *Program) initCheckerPool(create func(*Program) CheckerPool, assign func([]*ast.SourceFile) []int) { if !p.finishedProcessing { panic("Program must finish processing files before initializing checker pool") } @@ -474,7 +477,7 @@ func (p *Program) initCheckerPool(create func(*Program) CheckerPool) { if create != nil { p.checkerPool = create(p) } else { - pool := newCheckerPoolWithTracing(p, p.hosts.Tracing) + pool := newCheckerPoolWithAssignment(p, p.hosts.Tracing, assign) p.checkerPool = pool p.compilerCheckerPool = pool } diff --git a/tsc/internal/testutil/harnessutil/checkorderfuzz.go b/tsc/internal/testutil/harnessutil/checkorderfuzz.go index 3411de7c29fcd..f22957b7710f2 100644 --- a/tsc/internal/testutil/harnessutil/checkorderfuzz.go +++ b/tsc/internal/testutil/harnessutil/checkorderfuzz.go @@ -86,7 +86,7 @@ func fuzzCheckOrder(t *testing.T, host compiler.CompilerHost, config *tsoptions. fuzzConfig.Errors = config.Errors ctx := context.Background() - expected := fuzzRun(t, ctx, host, fuzzConfig, nil) + expected := fuzzRun(t, ctx, host, fuzzConfig, nil, nil) seeds := make([]uint64, n) for i := range seeds { seeds[i] = uint64(i) @@ -102,21 +102,40 @@ func fuzzCheckOrder(t *testing.T, host compiler.CompilerHost, config *tsoptions. h.Write([]byte(t.Name())) stream := h.Sum64() for _, seed := range seeds { - queries := fuzzQueries(createProgram(t, host, fuzzConfig), rand.New(rand.NewPCG(seed, stream))) + rng := rand.New(rand.NewPCG(seed, stream)) + queries := fuzzQueries(createProgram(t, host, fuzzConfig), rng) + assign := fuzzAssignCheckers(rng) diverges := func(queries []fuzzQuery) bool { - return fuzzDiff(expected, fuzzRun(t, ctx, host, fuzzConfig, queries)) != "" + return fuzzDiff(expected, fuzzRun(t, ctx, host, fuzzConfig, assign, queries)) != "" } if !diverges(queries) { continue } - queries = fuzzMinimize(queries, diverges) var b strings.Builder - fmt.Fprintf(&b, "check order fuzzing with TS_CHECK_ORDER_FUZZ_SEED=%d changed results after querying:\n", seed) - for _, q := range queries { - fmt.Fprintf(&b, " %s\n", q) + fmt.Fprintf(&b, "check order fuzzing with TS_CHECK_ORDER_FUZZ_SEED=%d changed results", seed) + if assign != nil { + b.WriteString(" with files checked by checkers:\n") + program := createProgram(t, host, fuzzConfig).Program() + files := program.GetSourceFiles() + for i, c := range assign(files) { + if !program.IsSourceFileDefaultLibrary(files[i].PathKey()) { + fmt.Fprintf(&b, " %s: %d\n", files[i].FileName(), c) + } + } + } else { + b.WriteString("\n") + } + if diverges(nil) { + queries = nil + } else { + queries = fuzzMinimize(queries, diverges) + b.WriteString("after querying:\n") + for _, q := range queries { + fmt.Fprintf(&b, " %s\n", q) + } } b.WriteString("results in program order (-) and after the queries (+):\n") - b.WriteString(fuzzDiff(expected, fuzzRun(t, ctx, host, fuzzConfig, queries))) + b.WriteString(fuzzDiff(expected, fuzzRun(t, ctx, host, fuzzConfig, assign, queries))) t.Error(b.String()) } } @@ -248,10 +267,29 @@ func fuzzQueryResultWithIDs(c *checker.Checker, node *ast.Node, kind fuzzQueryKi return "" } +// fuzzAssignCheckers returns, for half of the seeds, a random assignment of +// files to up to four checkers, so that results cannot depend on which +// files share a checker. +func fuzzAssignCheckers(rng *rand.Rand) func([]*ast.SourceFile) []int { + if rng.IntN(2) == 0 { + return nil + } + count := 2 + rng.IntN(3) + seed := rng.Uint64() + return func(files []*ast.SourceFile) []int { + r := rand.New(rand.NewPCG(seed, 0)) + associations := make([]int, len(files)) + for i := range associations { + associations[i] = r.IntN(count) + } + return associations + } +} + // fuzzRun answers queries, given in the files of the program that // fuzzQueries was given, in a fresh program, then returns its results. -func fuzzRun(t *testing.T, ctx context.Context, host compiler.CompilerHost, config *tsoptions.ParsedCommandLine, queries []fuzzQuery) fuzzResult { - program := createProgram(t, host, config) +func fuzzRun(t *testing.T, ctx context.Context, host compiler.CompilerHost, config *tsoptions.ParsedCommandLine, assign func([]*ast.SourceFile) []int, queries []fuzzQuery) fuzzResult { + program := createProgramWithCheckers(t, host, config, assign) files := fuzzCheckedFiles(program) // Queries name nodes of another program over the same files, so find // the same nodes here by their index. diff --git a/tsc/internal/testutil/harnessutil/harnessutil.go b/tsc/internal/testutil/harnessutil/harnessutil.go index ce171273c6d53..5df552f26e102 100644 --- a/tsc/internal/testutil/harnessutil/harnessutil.go +++ b/tsc/internal/testutil/harnessutil/harnessutil.go @@ -1109,6 +1109,11 @@ func getTestBuildInfoReader(host compiler.CompilerHost) *testBuildInfoReader { } func createProgram(t *testing.T, host compiler.CompilerHost, config *tsoptions.ParsedCommandLine) compiler.ProgramLike { + t.Helper() + return createProgramWithCheckers(t, host, config, nil) +} + +func createProgramWithCheckers(t *testing.T, host compiler.CompilerHost, config *tsoptions.ParsedCommandLine, assignCheckers func([]*ast.SourceFile) []int) compiler.ProgramLike { t.Helper() var singleThreaded core.Tristate if testutil.TestProgramIsSingleThreaded() { @@ -1119,6 +1124,7 @@ func createProgram(t *testing.T, host compiler.CompilerHost, config *tsoptions.P Config: config, Host: host, SingleThreaded: singleThreaded, + AssignCheckers: assignCheckers, } program, err := compiler.NewProgram(t.Context(), programOptions) if err != nil { From 5242d8f28475fce4b15ea070925e5f101ae59f36 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:33:49 -0800 Subject: [PATCH 4/7] Fuzz language service requests Editors ask the checker for more than the types and symbols the fuzzer queries: hover, signature help, completions and inlay hints reach parts of the checker those queries do not, such as the node builder and call resolution for signature help. With TS_CHECK_ORDER_FUZZ_LS set, the fuzzer also makes these requests, and compares their results. --- .../testutil/harnessutil/checkorderfuzz.go | 48 +++- .../testutil/harnessutil/checkorderfuzz_ls.go | 208 ++++++++++++++++++ 2 files changed, 255 insertions(+), 1 deletion(-) create mode 100644 tsc/internal/testutil/harnessutil/checkorderfuzz_ls.go diff --git a/tsc/internal/testutil/harnessutil/checkorderfuzz.go b/tsc/internal/testutil/harnessutil/checkorderfuzz.go index f22957b7710f2..e33977195e1cd 100644 --- a/tsc/internal/testutil/harnessutil/checkorderfuzz.go +++ b/tsc/internal/testutil/harnessutil/checkorderfuzz.go @@ -44,6 +44,11 @@ const ( fuzzQuerySignature fuzzQueryDiagnostics fuzzQueryEmit + fuzzQueryHover + fuzzQueryDefinition + fuzzQuerySignatureHelp + fuzzQueryCompletion + fuzzQueryInlayHints ) var fuzzQueryKindNames = [...]string{ @@ -51,6 +56,10 @@ var fuzzQueryKindNames = [...]string{ fuzzQuerySymbol: "symbol", fuzzQueryContextualType: "contextual type", fuzzQuerySignature: "signature", + fuzzQueryHover: "hover", + fuzzQueryDefinition: "definition", + fuzzQuerySignatureHelp: "signature help", + fuzzQueryCompletion: "completions", } func (q fuzzQuery) String() string { @@ -59,6 +68,8 @@ func (q fuzzQuery) String() string { return fmt.Sprintf("diagnostics of %s", q.file.FileName()) case fuzzQueryEmit: return fmt.Sprintf("emit of %s", q.file.FileName()) + case fuzzQueryInlayHints: + return fmt.Sprintf("inlay hints of %s", q.file.FileName()) } kind := fuzzQueryKindNames[q.kind] if ast.PositionIsSynthesized(q.node.Pos()) { @@ -146,6 +157,9 @@ func fuzzQueries(program compiler.ProgramLike, rng *rand.Rand) []fuzzQuery { var queries []fuzzQuery for _, file := range fuzzCheckedFiles(program) { queries = append(queries, fuzzQuery{file: file, kind: fuzzQueryDiagnostics}, fuzzQuery{file: file, kind: fuzzQueryEmit}) + if fuzzLS { + queries = append(queries, fuzzQuery{file: file, kind: fuzzQueryInlayHints}) + } for i, node := range fuzzNodes(file) { for _, kind := range fuzzNodeQueryKinds(node) { queries = append(queries, fuzzQuery{file, node, i, kind}) @@ -234,7 +248,7 @@ func fuzzNodeQueryKinds(node *ast.Node) []fuzzQueryKind { if ast.IsCallLikeExpression(node) { kinds = append(kinds, fuzzQuerySignature) } - return kinds + return fuzzLSNodeQueryKinds(node, kinds) } // fuzzSymbolIDs matches the symbol IDs that the names of unique symbol @@ -297,6 +311,10 @@ func fuzzRun(t *testing.T, ctx context.Context, host compiler.CompilerHost, conf for _, file := range files { nodesByFile[string(file.FileName())] = fuzzNodes(file) } + var lang *fuzzLSService + if fuzzLS { + lang = fuzzLanguageService(program.Program()) + } for _, q := range queries { file := program.GetSourceFile(q.file.FileName()) switch q.kind { @@ -306,8 +324,15 @@ func fuzzRun(t *testing.T, ctx context.Context, host compiler.CompilerHost, conf case fuzzQueryEmit: program.Emit(ctx, compiler.EmitOptions{TargetSourceFiles: []*ast.SourceFile{file}, WriteFile: fuzzDiscardOutput}) continue + case fuzzQueryInlayHints: + fuzzLSResult(ctx, lang, file, nil, q.kind) + continue } node := nodesByFile[string(file.FileName())][q.index] + if fuzzIsLSQuery(q.kind) { + fuzzLSResult(ctx, lang, file, node, q.kind) + continue + } c, done := program.Program().GetTypeCheckerForFile(ctx, file) fuzzQueryResult(c, node, q.kind) done() @@ -334,6 +359,9 @@ func fuzzRun(t *testing.T, ctx context.Context, host compiler.CompilerHost, conf c, done := program.Program().GetTypeCheckerForFile(ctx, file) for i, node := range nodesByFile[string(file.FileName())] { for _, kind := range fuzzNodeQueryKinds(node) { + if fuzzIsLSQuery(kind) { + continue + } if r := fuzzQueryResult(c, node, kind); r != "" { result = append(result, fmt.Sprintf("%s: %s", fuzzQuery{file, node, i, kind}, r)) } @@ -341,6 +369,24 @@ func fuzzRun(t *testing.T, ctx context.Context, host compiler.CompilerHost, conf } done() } + if lang != nil { + // Language service requests take the checker themselves. + for _, file := range files { + if r := fuzzLSResult(ctx, lang, file, nil, fuzzQueryInlayHints); r != "" { + result = append(result, fmt.Sprintf("%s: %s", fuzzQuery{file: file, kind: fuzzQueryInlayHints}, r)) + } + for i, node := range nodesByFile[string(file.FileName())] { + for _, kind := range fuzzNodeQueryKinds(node) { + if !fuzzIsLSQuery(kind) { + continue + } + if r := fuzzLSResult(ctx, lang, file, node, kind); r != "" { + result = append(result, fmt.Sprintf("%s: %s", fuzzQuery{file, node, i, kind}, r)) + } + } + } + } + } return result } diff --git a/tsc/internal/testutil/harnessutil/checkorderfuzz_ls.go b/tsc/internal/testutil/harnessutil/checkorderfuzz_ls.go new file mode 100644 index 0000000000000..d949355a9d07b --- /dev/null +++ b/tsc/internal/testutil/harnessutil/checkorderfuzz_ls.go @@ -0,0 +1,208 @@ +package harnessutil + +import ( + "cmp" + "context" + "os" + "slices" + "sync" + + "github.com/microsoft/TypeScript/tsc/internal/ast" + "github.com/microsoft/TypeScript/tsc/internal/compiler" + "github.com/microsoft/TypeScript/tsc/internal/core" + "github.com/microsoft/TypeScript/tsc/internal/json" + "github.com/microsoft/TypeScript/tsc/internal/ls" + "github.com/microsoft/TypeScript/tsc/internal/ls/autoimport" + "github.com/microsoft/TypeScript/tsc/internal/ls/lsconv" + "github.com/microsoft/TypeScript/tsc/internal/ls/lsutil" + "github.com/microsoft/TypeScript/tsc/internal/lsp/lsproto" + "github.com/microsoft/TypeScript/tsc/internal/scanner" + "github.com/microsoft/TypeScript/tsc/internal/sourcemap" + "github.com/microsoft/TypeScript/tsc/internal/tspath" +) + +// Setting TS_CHECK_ORDER_FUZZ_LS=1 as well also makes language service +// requests queries: hover and definition at identifiers, signature help at +// arguments, member completions after property accesses, and the inlay hints +// of a file. Their results must not differ either. +var fuzzLS = os.Getenv("TS_CHECK_ORDER_FUZZ_LS") != "" + +// fuzzLSNodeQueryKinds returns the kinds of language service request that +// apply to node. +func fuzzLSNodeQueryKinds(node *ast.Node, kinds []fuzzQueryKind) []fuzzQueryKind { + if !fuzzLS || ast.PositionIsSynthesized(node.Pos()) { + return kinds + } + if ast.IsIdentifier(node) { + kinds = append(kinds, fuzzQueryHover, fuzzQueryDefinition) + if ast.IsPropertyAccessExpression(node.Parent) && node.Parent.Name() == node { + kinds = append(kinds, fuzzQueryCompletion) + } + } + if parent := node.Parent; parent != nil && ast.IsCallOrNewExpression(parent) && node != parent.Expression() { + kinds = append(kinds, fuzzQuerySignatureHelp) + } + return kinds +} + +func fuzzIsLSQuery(kind fuzzQueryKind) bool { + return kind >= fuzzQueryHover +} + +// fuzzLanguageService returns a language service for program. +func fuzzLanguageService(program *compiler.Program) *fuzzLSService { + host := &fuzzLSHost{program: program} + // Results in lib files are converted often, and computing their line + // maps each time makes requests quadratic in their size. + var mu sync.Mutex + lineMaps := make(map[tspath.RootedFilePath]*lsconv.LSPLineMap) + host.converters = lsconv.NewConverters(lsproto.PositionEncodingKindUTF16, func(fileName tspath.RootedFilePath) *lsconv.LSPLineMap { + mu.Lock() + defer mu.Unlock() + if lineMap, ok := lineMaps[fileName]; ok { + return lineMap + } + var lineMap *lsconv.LSPLineMap + if file := program.GetSourceFile(fileName); file != nil { + lineMap = lsconv.ComputeLSPLineStarts(file.Text()) + } + lineMaps[fileName] = lineMap + return lineMap + }) + return &fuzzLSService{ls.NewLanguageService(fuzzProjectID{}, program, host, ""), host.converters} +} + +type fuzzLSService struct { + *ls.LanguageService + converters *lsconv.Converters +} + +// fuzzLSResult makes the language service request of kind at node, or for +// the whole file if node is nil, returning its result as text. +func fuzzLSResult(ctx context.Context, lang *fuzzLSService, file *ast.SourceFile, node *ast.Node, kind fuzzQueryKind) string { + uri := lsconv.FileNameToDocumentURI(file.FileName()) + if uri.FileName() != file.FileName() { + // The language service cannot find a file whose name a URI does not + // preserve. + return "" + } + position := func(pos int) lsproto.Position { + p, _ := lang.converters.ToLSPPosition(file, core.TextPos(pos)) + return p + } + var result any + var err error + switch kind { + case fuzzQueryHover: + result, err = lang.ProvideHover(ctx, &lsproto.HoverParams{ + TextDocument: lsproto.TextDocumentIdentifier{Uri: uri}, + Position: position(scanner.GetTokenPosOfNode(node, file, false)), + }) + case fuzzQueryDefinition: + result, err = lang.ProvideDefinition(ctx, uri, position(scanner.GetTokenPosOfNode(node, file, false))) + case fuzzQuerySignatureHelp: + result, err = lang.ProvideSignatureHelp(ctx, uri, position(scanner.GetTokenPosOfNode(node, file, false)), nil) + case fuzzQueryCompletion: + var completions lsproto.CompletionResponse + completions, err = lang.ProvideCompletion(ctx, uri, position(node.End()), nil) + if completions.List != nil { + // Editors sort items by sort text and label, and the language + // service leaves those that tie in no particular order. + slices.SortStableFunc(completions.List.Items, func(a, b *lsproto.CompletionItem) int { + return cmp.Or(cmp.Compare(fuzzSortText(a), fuzzSortText(b)), cmp.Compare(a.Label, b.Label)) + }) + } + result = completions + case fuzzQueryInlayHints: + result, err = lang.ProvideInlayHint(ctx, &lsproto.InlayHintParams{ + TextDocument: lsproto.TextDocumentIdentifier{Uri: uri}, + Range: lsproto.Range{Start: position(0), End: position(len(file.Text()))}, + }) + } + if err != nil { + return "error: " + err.Error() + } + text, err := json.Marshal(result) + if err != nil { + return "error: " + err.Error() + } + if string(text) == "null" { + return "" + } + return string(text) +} + +func fuzzSortText(item *lsproto.CompletionItem) string { + if item.SortText == nil { + return "" + } + return *item.SortText +} + +type fuzzProjectID struct{} + +func (fuzzProjectID) String() string { return "fuzz" } + +// fuzzLSHost is the language service host of a program alone. +type fuzzLSHost struct { + program *compiler.Program + converters *lsconv.Converters +} + +func (h *fuzzLSHost) CaseSensitivity() tspath.CaseSensitivity { + return h.program.Host().FS().CaseSensitivity() +} + +func (h *fuzzLSHost) ReadFile(path tspath.RootedFilePath) (string, bool) { + return h.program.Host().FS().ReadFile(path) +} + +func (h *fuzzLSHost) Converters() *lsconv.Converters { + return h.converters +} + +func (h *fuzzLSHost) GetPreferences(activeFile string) lsutil.UserPreferences { + preferences := lsutil.NewDefaultUserPreferences() + preferences.IncludeCompletionsForModuleExports = core.TSFalse + preferences.IncludeCompletionsForImportStatements = core.TSFalse + preferences.InlayHintsPreferences = lsutil.InlayHintsPreferences{ + IncludeInlayEnumMemberValueHints: core.TSTrue, + IncludeInlayFunctionLikeReturnTypeHints: core.TSTrue, + IncludeInlayFunctionParameterTypeHints: core.TSTrue, + IncludeInlayParameterNameHints: lsutil.IncludeInlayParameterNameHintsAll, + IncludeInlayPropertyDeclarationTypeHints: core.TSTrue, + IncludeInlayVariableTypeHints: core.TSTrue, + } + return preferences +} + +func (h *fuzzLSHost) GetWorkspaceFolders() []ls.WorkspaceFolder { + return nil +} + +func (h *fuzzLSHost) GetECMALineInfo(fileName tspath.RootedFilePath) *sourcemap.ECMALineInfo { + if file := h.program.GetSourceFile(fileName); file != nil { + return sourcemap.CreateECMALineInfo(file.Text(), file.ECMALineMap()) + } + return nil +} + +func (h *fuzzLSHost) AutoImportRegistry() *autoimport.Registry { + return nil +} + +func (h *fuzzLSHost) ReadDirectory(path tspath.RootedDirectoryPath, extensions []string, excludes []string, includes []string, depth int) []tspath.RootedFilePath { + return nil +} + +func (h *fuzzLSHost) GetDirectories(path tspath.RootedDirectoryPath) []string { + return nil +} + +func (h *fuzzLSHost) DirectoryExists(path tspath.RootedDirectoryPath) bool { + return h.program.Host().FS().DirectoryExists(path) +} + +func (h *fuzzLSHost) FileExists(path tspath.RootedFilePath) bool { + return h.program.Host().FS().FileExists(path) +} From 8c53553baeb1258439976db765974c243a9040d7 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Sat, 7 Nov 2026 08:59:18 -0800 Subject: [PATCH 5/7] Add a check order that makes editor requests first Editors show inlay hints, hover and signature help, each of which asks the checker for things checking alone does not, and none of which is supposed to change the diagnostics or output of checking and emit. A check order that makes those requests first lets tests show where they do. --- .../testutil/harnessutil/harnessutil.go | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/tsc/internal/testutil/harnessutil/harnessutil.go b/tsc/internal/testutil/harnessutil/harnessutil.go index 5df552f26e102..eaec6c7286621 100644 --- a/tsc/internal/testutil/harnessutil/harnessutil.go +++ b/tsc/internal/testutil/harnessutil/harnessutil.go @@ -387,6 +387,10 @@ var checkOrders = []string{ // type and resolved signature of every expression and name in each // file, innermost and last first, as an editor might. "typesfirst", + // Before checking or emitting, make the requests an editor makes of + // each file: signature help at every argument, its inlay hints, then + // hover over every name, innermost and last first. + "editorfirst", } func getHarnessOption(name string) *tsoptions.CommandLineOption { @@ -765,6 +769,10 @@ func getCheckerDiagnostics(t *testing.T, ctx context.Context, host compiler.Comp } result = append(result, program.GetSemanticDiagnostics(ctx, nil)...) result = append(result, program.GetGlobalDiagnostics(ctx)...) + case "editorfirst": + makeEditorRequests(ctx, program, files) + result = append(result, program.GetSemanticDiagnostics(ctx, nil)...) + result = append(result, program.GetGlobalDiagnostics(ctx)...) default: panic("unknown check order " + order) } @@ -793,6 +801,12 @@ func emitInOrder(t *testing.T, ctx context.Context, host compiler.CompilerHost, } return program.Emit(ctx, compiler.EmitOptions{}) } + if order == "editorfirst" { + makeEditorRequests(ctx, program, core.Filter(files, func(file *ast.SourceFile) bool { + return !program.Program().SkipTypeChecking(file, false) + })) + return program.Emit(ctx, compiler.EmitOptions{}) + } result := &compiler.EmitResult{} emitFile := func(p compiler.ProgramLike, file *ast.SourceFile) { r := p.Emit(ctx, compiler.EmitOptions{TargetSourceFiles: []*ast.SourceFile{file}}) @@ -838,6 +852,29 @@ func queryNodes(c *checker.Checker, file *ast.SourceFile) { } } +// makeEditorRequests asks for signature help at every argument of each of +// files, its inlay hints, then hover over every name, innermost and last +// first. +func makeEditorRequests(ctx context.Context, program compiler.ProgramLike, files []*ast.SourceFile) { + lang := fuzzLanguageService(program.Program()) + for _, file := range slices.Backward(files) { + nodes := core.Filter(fuzzNodes(file), func(n *ast.Node) bool { + return !ast.PositionIsSynthesized(n.Pos()) + }) + for _, n := range slices.Backward(nodes) { + if parent := n.Parent; parent != nil && ast.IsCallOrNewExpression(parent) && n != parent.Expression() { + fuzzLSResult(ctx, lang, file, n, fuzzQuerySignatureHelp) + } + } + fuzzLSResult(ctx, lang, file, nil, fuzzQueryInlayHints) + for _, n := range slices.Backward(nodes) { + if ast.IsIdentifier(n) { + fuzzLSResult(ctx, lang, file, n, fuzzQueryHover) + } + } + } +} + type CompilationResult struct { Diagnostics []*ast.Diagnostic Result *compiler.EmitResult From 1301434a55c387c165565dbf21f21ade955f21f7 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 21 Oct 2026 23:07:33 -0700 Subject: [PATCH 6/7] Add tests for check order dependence These tests record checker results that depend on the order in which files, declarations, and queries are checked, so that each later fix shows up as a reviewable baseline change. Most list several checkOrder variants; where the variants disagree, that disagreement is the bug. Some existing tests also gain the typesfirst order, as asking for types and symbols first changes the results they report. The cases cover: - variance measured through cycles of recursive references, which depended on which type in the cycle was measured first (a reduction of the react-relay DefinitelyTyped tests); - circularities whose blamed location is whichever use resolved first: circular type parameter defaults and constraints, a cycle through namespace spreads, awaiting a promise that refers back to itself, and import elision computing types before checking; - the base types of a cycle of interfaces, which kept their bases depending on which interface was resolved first; - the keyof of a type whose index signature refers to it, which missed the index signature when the type was checked first, and with several bases or a class base left the type without its index signature (65543); - instantiation limit and excessive depth errors, reported only in whichever file reached the limit first; - errors in the constraint of a mapped type, reported at the mapped type only when its own declaration created it first; - late-bound members, computed enum members, and aliased module.exports members, which differ when queried before checking; - relation results cached against truncated or in-progress comparisons, including cycles through checks that branch on whether a nested comparison fails; - inference through nested references to the same generic type with unrelated type arguments, which a rule for tracking recursion that does not depend on how types were created must not cut short (seen in rakazo); - an error in an object literal that refers to itself, dropped when one checker checks the literal's file after another file reads the literal (65483); - inference through a call signature of a generic type alias, and from a recursive mapped type, which gave up and inferred unknown (64757); - a tuple type too large to represent, built by a type alias, reported only where the alias was first resolved, and not at all when types are queried first (64384); - property accesses on a deep chain of indexed accesses, whose base constraint was cut short unless its inner levels were already resolved (65508); - a function expression whose this is typed contextually, whose assertion and never-returning calls narrowed only when the call was checked before its types were requested (42175); - JSDoc links to types and namespaces, reported as values when the editor asked about the comment first (59401); - inference through a pipe from the error union of the piped effect, which failed after signature help for the call (62183); - element accesses in a JS chain of assignments, whose implicit any errors were reported twice or not at all depending on which assignment was typed first (64710, 64849); - a return type cycle through a this type guard, reported only when the members of the class were typed before the class was checked (55069); - a generic call with an object literal method inside Object.fromEntries, inferred as any when the editor asked about the call first (43948); - mixin classes with methods referring to the class built from them, whose circularity error moved when types were requested first (55640); - a cycle of generic types with defaults whose variances are measured from an alias assignment, which decided whether an argument was assignable depending on whether types were requested first (64635); - signature help for a call in a callback of another call, for a call in a loop that its result flows around, and for a call inferring a reverse mapped type, which left results and errors behind that changed what checking found (48135, 49529, 29479); - the order of types in unions, which followed type ids, and so creation order, for object literals, rest types, indexed accesses, type parameters, and iterator method types; - return type cycles through callbacks and subtype reduction, JSDoc type tags on contextually typed functions, a scope whose thunks refer to the scope, a never narrowing after a loop, and a const assertion inferred before its binding pattern (seen in OmniRoute, effect, webpack, arktype, uglify-js, and check order fuzzing). The circularity tests from PR 64834 are copied unchanged, to compare against how that PR handles the same cases. --- tsc/internal/testrunner/compiler_runner.go | 13 + ...hCheckOrder(checkorder=default).errors.txt | 19 + ...epthCheckOrder(checkorder=default).symbols | 141 + ...tDepthCheckOrder(checkorder=default).types | 24 + ...hCheckOrder(checkorder=typesfirst).symbols | 145 + ...pthCheckOrder(checkorder=typesfirst).types | 24 + ...yIdentifier(checkorder=default).errors.txt | 69 + ...rbirtraryIdentifier(checkorder=default).js | 44 + ...raryIdentifier(checkorder=default).symbols | 34 + ...rtraryIdentifier(checkorder=default).types | 44 + ...entifier(checkorder=typesfirst).errors.txt | 72 + ...rtraryIdentifier(checkorder=typesfirst).js | 44 + ...yIdentifier(checkorder=typesfirst).symbols | 34 + ...aryIdentifier(checkorder=typesfirst).types | 44 + ...rsiveTypeInferredThroughClosure.errors.txt | 86 + ...ecursiveTypeInferredThroughClosure.symbols | 424 +++ ...dRecursiveTypeInferredThroughClosure.types | 186 + ...sExpression(checkorder=default).errors.txt | 27 + ...lassExpression(checkorder=default).symbols | 33 + ...tClassExpression(checkorder=default).types | 47 + ...pression(checkorder=typesfirst).errors.txt | 24 + ...sExpression(checkorder=typesfirst).symbols | 33 + ...assExpression(checkorder=typesfirst).types | 47 + ...waitedCycle(checkorder=default).errors.txt | 24 + ...erAwaitedCycle(checkorder=default).symbols | 34 + ...rderAwaitedCycle(checkorder=default).types | 31 + ...aitedCycle(checkorder=isolated).errors.txt | 27 + ...rAwaitedCycle(checkorder=isolated).symbols | 34 + ...derAwaitedCycle(checkorder=isolated).types | 31 + ...waitedCycle(checkorder=reverse).errors.txt | 24 + ...erAwaitedCycle(checkorder=reverse).symbols | 34 + ...rderAwaitedCycle(checkorder=reverse).types | 31 + ...tedCycle(checkorder=typesfirst).errors.txt | 24 + ...waitedCycle(checkorder=typesfirst).symbols | 34 + ...rAwaitedCycle(checkorder=typesfirst).types | 31 + ...rConstraint(checkorder=default).errors.txt | 38 + ...rCircularConstraint(checkorder=default).js | 30 + ...ularConstraint(checkorder=default).symbols | 36 + ...rcularConstraint(checkorder=default).types | 41 + ...Constraint(checkorder=isolated).errors.txt | 37 + ...CircularConstraint(checkorder=isolated).js | 30 + ...larConstraint(checkorder=isolated).symbols | 36 + ...cularConstraint(checkorder=isolated).types | 41 + ...rConstraint(checkorder=reverse).errors.txt | 38 + ...rCircularConstraint(checkorder=reverse).js | 30 + ...ularConstraint(checkorder=reverse).symbols | 36 + ...rcularConstraint(checkorder=reverse).types | 41 + ...nstraint(checkorder=typesfirst).errors.txt | 38 + ...rcularConstraint(checkorder=typesfirst).js | 30 + ...rConstraint(checkorder=typesfirst).symbols | 36 + ...larConstraint(checkorder=typesfirst).types | 41 + ...larDefaults(checkorder=default).errors.txt | 15 + ...derCircularDefaults(checkorder=default).js | 31 + ...rcularDefaults(checkorder=default).symbols | 32 + ...CircularDefaults(checkorder=default).types | 22 + ...erCircularDefaults(checkorder=isolated).js | 31 + ...cularDefaults(checkorder=isolated).symbols | 32 + ...ircularDefaults(checkorder=isolated).types | 22 + ...larDefaults(checkorder=reverse).errors.txt | 15 + ...derCircularDefaults(checkorder=reverse).js | 31 + ...rcularDefaults(checkorder=reverse).symbols | 32 + ...CircularDefaults(checkorder=reverse).types | 22 + ...Defaults(checkorder=typesfirst).errors.txt | 15 + ...CircularDefaults(checkorder=typesfirst).js | 31 + ...larDefaults(checkorder=typesfirst).symbols | 32 + ...cularDefaults(checkorder=typesfirst).types | 22 + ...BeforeCheck(checkorder=default).errors.txt | 25 + ...rderEmitBeforeCheck(checkorder=default).js | 37 + ...mitBeforeCheck(checkorder=default).symbols | 49 + ...rEmitBeforeCheck(checkorder=default).types | 31 + ...eforeCheck(checkorder=isolated).errors.txt | 25 + ...derEmitBeforeCheck(checkorder=isolated).js | 37 + ...itBeforeCheck(checkorder=isolated).symbols | 49 + ...EmitBeforeCheck(checkorder=isolated).types | 31 + ...rEnumComputedMember(checkorder=default).js | 30 + ...ComputedMember(checkorder=default).symbols | 29 + ...umComputedMember(checkorder=default).types | 30 + ...EnumComputedMember(checkorder=isolated).js | 30 + ...omputedMember(checkorder=isolated).symbols | 29 + ...mComputedMember(checkorder=isolated).types | 30 + ...rEnumComputedMember(checkorder=reverse).js | 30 + ...ComputedMember(checkorder=reverse).symbols | 29 + ...umComputedMember(checkorder=reverse).types | 30 + ...umComputedMember(checkorder=typesfirst).js | 30 + ...putedMember(checkorder=typesfirst).symbols | 29 + ...omputedMember(checkorder=typesfirst).types | 30 + ...oundMembers(checkorder=default).errors.txt | 22 + ...teBoundMembers(checkorder=default).symbols | 25 + ...LateBoundMembers(checkorder=default).types | 24 + ...undMembers(checkorder=isolated).errors.txt | 22 + ...eBoundMembers(checkorder=isolated).symbols | 25 + ...ateBoundMembers(checkorder=isolated).types | 24 + ...oundMembers(checkorder=reverse).errors.txt | 22 + ...teBoundMembers(checkorder=reverse).symbols | 25 + ...LateBoundMembers(checkorder=reverse).types | 24 + ...dMembers(checkorder=typesfirst).errors.txt | 22 + ...oundMembers(checkorder=typesfirst).symbols | 25 + ...eBoundMembers(checkorder=typesfirst).types | 24 + ...rModuleExportsAlias(checkorder=default).js | 16 + ...leExportsAlias(checkorder=default).symbols | 23 + ...duleExportsAlias(checkorder=default).types | 26 + ...ModuleExportsAlias(checkorder=isolated).js | 16 + ...eExportsAlias(checkorder=isolated).symbols | 23 + ...uleExportsAlias(checkorder=isolated).types | 26 + ...rModuleExportsAlias(checkorder=reverse).js | 16 + ...leExportsAlias(checkorder=reverse).symbols | 23 + ...duleExportsAlias(checkorder=reverse).types | 26 + ...duleExportsAlias(checkorder=typesfirst).js | 16 + ...xportsAlias(checkorder=typesfirst).symbols | 23 + ...eExportsAlias(checkorder=typesfirst).types | 26 + ...arameterInTypeQuery(checkorder=default).js | 35 + ...terInTypeQuery(checkorder=default).symbols | 37 + ...meterInTypeQuery(checkorder=default).types | 40 + ...rameterInTypeQuery(checkorder=isolated).js | 35 + ...erInTypeQuery(checkorder=isolated).symbols | 37 + ...eterInTypeQuery(checkorder=isolated).types | 40 + ...arameterInTypeQuery(checkorder=reverse).js | 35 + ...terInTypeQuery(checkorder=reverse).symbols | 37 + ...meterInTypeQuery(checkorder=reverse).types | 40 + ...meterInTypeQuery(checkorder=typesfirst).js | 35 + ...InTypeQuery(checkorder=typesfirst).symbols | 37 + ...erInTypeQuery(checkorder=typesfirst).types | 40 + ...dexedAccess(checkorder=default).errors.txt | 36 + ...eIndexedAccess(checkorder=default).symbols | 58 + ...iveIndexedAccess(checkorder=default).types | 42 + ...exedAccess(checkorder=isolated).errors.txt | 36 + ...IndexedAccess(checkorder=isolated).symbols | 58 + ...veIndexedAccess(checkorder=isolated).types | 42 + ...dexedAccess(checkorder=reverse).errors.txt | 36 + ...eIndexedAccess(checkorder=reverse).symbols | 58 + ...iveIndexedAccess(checkorder=reverse).types | 42 + ...edAccess(checkorder=typesfirst).errors.txt | 36 + ...dexedAccess(checkorder=typesfirst).symbols | 58 + ...IndexedAccess(checkorder=typesfirst).types | 42 + ...eckOrderSpreadCycle(checkorder=default).js | 87 + ...derSpreadCycle(checkorder=default).symbols | 54 + ...OrderSpreadCycle(checkorder=default).types | 68 + ...ckOrderSpreadCycle(checkorder=isolated).js | 80 + ...erSpreadCycle(checkorder=isolated).symbols | 54 + ...rderSpreadCycle(checkorder=isolated).types | 68 + ...eckOrderSpreadCycle(checkorder=reverse).js | 87 + ...derSpreadCycle(checkorder=reverse).symbols | 54 + ...OrderSpreadCycle(checkorder=reverse).types | 68 + ...OrderSpreadCycle(checkorder=typesfirst).js | 87 + ...SpreadCycle(checkorder=typesfirst).symbols | 54 + ...erSpreadCycle(checkorder=typesfirst).types | 68 + ...ationErrors(checkorder=default).errors.txt | 35 + ...InstantiationErrors(checkorder=default).js | 49 + ...ntiationErrors(checkorder=default).symbols | 89 + ...tantiationErrors(checkorder=default).types | 64 + ...ationErrors(checkorder=reverse).errors.txt | 35 + ...InstantiationErrors(checkorder=reverse).js | 49 + ...ntiationErrors(checkorder=reverse).symbols | 89 + ...tantiationErrors(checkorder=reverse).types | 64 + ...onErrors(checkorder=typesfirst).errors.txt | 34 + ...tantiationErrors(checkorder=typesfirst).js | 49 + ...ationErrors(checkorder=typesfirst).symbols | 89 + ...tiationErrors(checkorder=typesfirst).types | 64 + ...Annotations(checkorder=default).errors.txt | 41 + ...AccessorAnnotations(checkorder=default).js | 55 + ...sorAnnotations(checkorder=default).symbols | 67 + ...essorAnnotations(checkorder=default).types | 64 + ...otations(checkorder=typesfirst).errors.txt | 41 + ...essorAnnotations(checkorder=typesfirst).js | 55 + ...Annotations(checkorder=typesfirst).symbols | 67 + ...orAnnotations(checkorder=typesfirst).types | 64 + ...sCheckOrder(checkorder=default).errors.txt | 41 + ...ypesCheckOrder(checkorder=default).symbols | 50 + ...eTypesCheckOrder(checkorder=default).types | 43 + ...ckOrder(checkorder=editorfirst).errors.txt | 41 + ...CheckOrder(checkorder=editorfirst).symbols | 50 + ...esCheckOrder(checkorder=editorfirst).types | 43 + ...sCheckOrder(checkorder=reverse).errors.txt | 41 + ...ypesCheckOrder(checkorder=reverse).symbols | 50 + ...eTypesCheckOrder(checkorder=reverse).types | 43 + ...eckOrder(checkorder=typesfirst).errors.txt | 41 + ...sCheckOrder(checkorder=typesfirst).symbols | 50 + ...pesCheckOrder(checkorder=typesfirst).types | 43 + ...larIndexedPropertyInstantiation.errors.txt | 14 + .../circularIndexedPropertyInstantiation.js | 14 + ...rcularIndexedPropertyInstantiation.symbols | 25 + ...circularIndexedPropertyInstantiation.types | 15 + ...tializerInference(strict=false).errors.txt | 40 + ...cularInitializerInference(strict=false).js | 42 + ...InitializerInference(strict=false).symbols | 98 + ...arInitializerInference(strict=false).types | 106 + ...itializerInference(strict=true).errors.txt | 61 + ...rcularInitializerInference(strict=true).js | 42 + ...rInitializerInference(strict=true).symbols | 98 + ...larInitializerInference(strict=true).types | 106 + ...TypeNoCrash(checkorder=default).errors.txt | 20 + ...pleTypeNoCrash(checkorder=default).symbols | 47 + ...TupleTypeNoCrash(checkorder=default).types | 40 + ...eNoCrash(checkorder=typesfirst).errors.txt | 19 + ...TypeNoCrash(checkorder=typesfirst).symbols | 47 + ...leTypeNoCrash(checkorder=typesfirst).types | 40 + ...wingCheckOrder(checkorder=default).symbols | 46 + ...rowingCheckOrder(checkorder=default).types | 49 + ...ckOrder(checkorder=editorfirst).errors.txt | 27 + ...CheckOrder(checkorder=editorfirst).symbols | 46 + ...ngCheckOrder(checkorder=editorfirst).types | 49 + ...eckOrder(checkorder=typesfirst).errors.txt | 27 + ...gCheckOrder(checkorder=typesfirst).symbols | 46 + ...ingCheckOrder(checkorder=typesfirst).types | 49 + ...ReturnTypeSubtypeReductionOrder.errors.txt | 50 + ...larReturnTypeSubtypeReductionOrder.symbols | 90 + ...cularReturnTypeSubtypeReductionOrder.types | 88 + ...gumentRelation(checkorder=default).symbols | 106 + ...ArgumentRelation(checkorder=default).types | 102 + ...entRelation(checkorder=typesfirst).symbols | 106 + ...umentRelation(checkorder=typesfirst).types | 102 + ...oughCallbackArgument(strict=false).symbols | 77 + ...hroughCallbackArgument(strict=false).types | 86 + ...ghCallbackArgument(strict=true).errors.txt | 46 + ...roughCallbackArgument(strict=true).symbols | 77 + ...ThroughCallbackArgument(strict=true).types | 86 + ...llbackArgument(checkorder=default).symbols | 38 + ...CallbackArgument(checkorder=default).types | 44 + ...ackArgument(checkorder=typesfirst).symbols | 38 + ...lbackArgument(checkorder=typesfirst).types | 44 + ...kReverseMapped(checkorder=default).symbols | 121 + ...unkReverseMapped(checkorder=default).types | 107 + ...verseMapped(checkorder=typesfirst).symbols | 121 + ...ReverseMapped(checkorder=typesfirst).types | 107 + ...iagnostics(noimplicitany=false).errors.txt | 80 + ...ularityDiagnostics(noimplicitany=false).js | 91 + ...tyDiagnostics(noimplicitany=false).symbols | 134 + ...rityDiagnostics(noimplicitany=false).types | 156 + ...Diagnostics(noimplicitany=true).errors.txt | 80 + ...cularityDiagnostics(noimplicitany=true).js | 91 + ...ityDiagnostics(noimplicitany=true).symbols | 134 + ...arityDiagnostics(noimplicitany=true).types | 156 + ...eterUnionOrder(checkorder=default).symbols | 66 + ...ameterUnionOrder(checkorder=default).types | 50 + ...eterUnionOrder(checkorder=reverse).symbols | 66 + ...ameterUnionOrder(checkorder=reverse).types | 50 + ...rUnionOrder(checkorder=typesfirst).symbols | 66 + ...terUnionOrder(checkorder=typesfirst).types | 50 + ...ternQueryOrder(checkorder=default).symbols | 31 + ...atternQueryOrder(checkorder=default).types | 31 + ...nQueryOrder(checkorder=typesfirst).symbols | 31 + ...ernQueryOrder(checkorder=typesfirst).types | 31 + ...heckReentryFromOuterTypeParameters.symbols | 81 + ...lCheckReentryFromOuterTypeParameters.types | 58 + ...TypeParameters(checkorder=default).symbols | 106 + ...erTypeParameters(checkorder=default).types | 120 + ...eParameters(checkorder=typesfirst).symbols | 106 + ...ypeParameters(checkorder=typesfirst).types | 120 + ...ReferenceCheckOrder(checkorder=default).js | 16 + ...enceCheckOrder(checkorder=default).symbols | 15 + ...erenceCheckOrder(checkorder=default).types | 18 + ...erenceCheckOrder(checkorder=typesfirst).js | 16 + ...eCheckOrder(checkorder=typesfirst).symbols | 15 + ...nceCheckOrder(checkorder=typesfirst).types | 18 + ...bleInitializer(checkorder=default).symbols | 45 + ...iableInitializer(checkorder=default).types | 47 + ...Initializer(checkorder=typesfirst).symbols | 45 + ...leInitializer(checkorder=typesfirst).types | 47 + ...eOfGenericCall(checkorder=default).symbols | 45 + ...cleOfGenericCall(checkorder=default).types | 43 + ...GenericCall(checkorder=typesfirst).symbols | 45 + ...OfGenericCall(checkorder=typesfirst).types | 43 + ...rrayPatternCallback(checkorder=default).js | 32 + ...atternCallback(checkorder=default).symbols | 89 + ...yPatternCallback(checkorder=default).types | 60 + ...Callback(checkorder=typesfirst).errors.txt | 24 + ...yPatternCallback(checkorder=typesfirst).js | 32 + ...ernCallback(checkorder=typesfirst).symbols | 89 + ...tternCallback(checkorder=typesfirst).types | 60 + ...nCheckOrder(checkorder=default).errors.txt | 23 + ...tionCheckOrder(checkorder=default).symbols | 48 + ...ertionCheckOrder(checkorder=default).types | 53 + ...ckOrder(checkorder=editorfirst).errors.txt | 23 + ...CheckOrder(checkorder=editorfirst).symbols | 48 + ...onCheckOrder(checkorder=editorfirst).types | 53 + ...eckOrder(checkorder=typesfirst).errors.txt | 29 + ...nCheckOrder(checkorder=typesfirst).symbols | 48 + ...ionCheckOrder(checkorder=typesfirst).types | 53 + ...hVarianceCheckOrder(checkorder=default).js | 24 + ...anceCheckOrder(checkorder=default).symbols | 39 + ...rianceCheckOrder(checkorder=default).types | 34 + ...rianceCheckOrder(checkorder=typesfirst).js | 24 + ...eCheckOrder(checkorder=typesfirst).symbols | 39 + ...nceCheckOrder(checkorder=typesfirst).types | 34 + ...tCheckOrder(checkorder=default).errors.txt | 29 + ...aintCheckOrder(checkorder=default).symbols | 59 + ...traintCheckOrder(checkorder=default).types | 53 + ...CheckOrder(checkorder=isolated).errors.txt | 29 + ...intCheckOrder(checkorder=isolated).symbols | 63 + ...raintCheckOrder(checkorder=isolated).types | 53 + ...tCheckOrder(checkorder=reverse).errors.txt | 29 + ...aintCheckOrder(checkorder=reverse).symbols | 59 + ...traintCheckOrder(checkorder=reverse).types | 53 + ...eckOrder(checkorder=typesfirst).errors.txt | 32 + ...tCheckOrder(checkorder=typesfirst).symbols | 57 + ...intCheckOrder(checkorder=typesfirst).types | 53 + ...erredTypeReferenceCycleRollback.errors.txt | 24 + ...deferredTypeReferenceCycleRollback.symbols | 70 + .../deferredTypeReferenceCycleRollback.types | 34 + ...heckorder=default,strict=false).errors.txt | 47 + ...tional(checkorder=default,strict=false).js | 61 + ...l(checkorder=default,strict=false).symbols | 124 + ...nal(checkorder=default,strict=false).types | 136 + ...checkorder=default,strict=true).errors.txt | 53 + ...ptional(checkorder=default,strict=true).js | 61 + ...al(checkorder=default,strict=true).symbols | 124 + ...onal(checkorder=default,strict=true).types | 136 + ...korder=typesfirst,strict=false).errors.txt | 47 + ...nal(checkorder=typesfirst,strict=false).js | 61 + ...heckorder=typesfirst,strict=false).symbols | 124 + ...(checkorder=typesfirst,strict=false).types | 136 + ...ckorder=typesfirst,strict=true).errors.txt | 59 + ...onal(checkorder=typesfirst,strict=true).js | 61 + ...checkorder=typesfirst,strict=true).symbols | 124 + ...l(checkorder=typesfirst,strict=true).types | 136 + ...entInitializer(checkorder=default).symbols | 62 + ...ementInitializer(checkorder=default).types | 70 + ...Initializer(checkorder=typesfirst).symbols | 62 + ...ntInitializer(checkorder=typesfirst).types | 70 + ...utiveConstraintOfCircularCheckType.symbols | 45 + ...ibutiveConstraintOfCircularCheckType.types | 31 + .../enumMemberTypeCacheConsistency.js | 29 + .../enumMemberTypeCacheConsistency.symbols | 29 + .../enumMemberTypeCacheConsistency.types | 30 + ...volvingArrayReadInLoopCondition.errors.txt | 23 + .../evolvingArrayReadInLoopCondition.symbols | 36 + .../evolvingArrayReadInLoopCondition.types | 46 + ...upleSpread(checkorder=default).errors.txt} | 0 ...lyLargeTupleSpread(checkorder=default).js} | 0 ...geTupleSpread(checkorder=default).symbols} | 0 ...argeTupleSpread(checkorder=default).types} | 0 ...leSpread(checkorder=typesfirst).errors.txt | 45 + ...LargeTupleSpread(checkorder=typesfirst).js | 61 + ...TupleSpread(checkorder=typesfirst).symbols | 184 + ...geTupleSpread(checkorder=typesfirst).types | 190 + ...Circularity(checkorder=default).errors.txt | 43 + ...tchCheckCircularity(checkorder=default).js | 71 + ...eckCircularity(checkorder=default).symbols | 68 + ...CheckCircularity(checkorder=default).types | 85 + ...cularity(checkorder=typesfirst).errors.txt | 43 + ...CheckCircularity(checkorder=typesfirst).js | 71 + ...Circularity(checkorder=typesfirst).symbols | 68 + ...ckCircularity(checkorder=typesfirst).types | 85 + ...isibilityQueryOrder(checkorder=default).js | 35 + ...lityQueryOrder(checkorder=default).symbols | 33 + ...bilityQueryOrder(checkorder=default).types | 24 + ...ilityQueryOrder(checkorder=editorfirst).js | 63 + ...QueryOrder(checkorder=editorfirst).symbols | 33 + ...tyQueryOrder(checkorder=editorfirst).types | 24 + ...peInference(checkorder=default).errors.txt | 45 + ...ernForTypeInference(checkorder=default).js | 18 + ...rTypeInference(checkorder=default).symbols | 36 + ...ForTypeInference(checkorder=default).types | 49 + ...nference(checkorder=typesfirst).errors.txt | 51 + ...ForTypeInference(checkorder=typesfirst).js | 18 + ...peInference(checkorder=typesfirst).symbols | 36 + ...TypeInference(checkorder=typesfirst).types | 49 + ...Repeatedly2(checkorder=default).errors.txt | 29 + ...rametersRepeatedly2(checkorder=default).js | 25 + ...ersRepeatedly2(checkorder=default).symbols | 75 + ...etersRepeatedly2(checkorder=default).types | 59 + ...eatedly2(checkorder=typesfirst).errors.txt | 32 + ...etersRepeatedly2(checkorder=typesfirst).js | 25 + ...Repeatedly2(checkorder=typesfirst).symbols | 75 + ...rsRepeatedly2(checkorder=typesfirst).types | 59 + ...epthCheckOrder(checkorder=default).symbols | 3060 +++++++++++++++ ...pDepthCheckOrder(checkorder=default).types | 3069 +++++++++++++++ ...eckOrder(checkorder=typesfirst).errors.txt | 1031 +++++ ...hCheckOrder(checkorder=typesfirst).symbols | 3060 +++++++++++++++ ...pthCheckOrder(checkorder=typesfirst).types | 3069 +++++++++++++++ ...pCheckOrder(checkorder=default).errors.txt | 1126 ++++++ ...DeepCheckOrder(checkorder=default).symbols | 3352 ++++++++++++++++ ...ooDeepCheckOrder(checkorder=default).types | 3361 +++++++++++++++++ ...eckOrder(checkorder=typesfirst).errors.txt | 1126 ++++++ ...pCheckOrder(checkorder=typesfirst).symbols | 3352 ++++++++++++++++ ...eepCheckOrder(checkorder=typesfirst).types | 3361 +++++++++++++++++ ...eterDefault(checkorder=default).errors.txt | 31 + ...rameterDefault(checkorder=default).symbols | 51 + ...ParameterDefault(checkorder=default).types | 67 + ...rDefault(checkorder=typesfirst).errors.txt | 31 + ...eterDefault(checkorder=typesfirst).symbols | 51 + ...ameterDefault(checkorder=typesfirst).types | 67 + .../getterCircularityDiagnostics.errors.txt | 17 + .../compiler/getterCircularityDiagnostics.js | 22 + .../getterCircularityDiagnostics.symbols | 28 + .../getterCircularityDiagnostics.types | 25 + ...eQueryOrder(checkorder=default).errors.txt | 18 + ...eturnTypeQueryOrder(checkorder=default).js | 23 + ...TypeQueryOrder(checkorder=default).symbols | 29 + ...rnTypeQueryOrder(checkorder=default).types | 26 + ...ryOrder(checkorder=editorfirst).errors.txt | 18 + ...nTypeQueryOrder(checkorder=editorfirst).js | 23 + ...QueryOrder(checkorder=editorfirst).symbols | 29 + ...peQueryOrder(checkorder=editorfirst).types | 26 + ...eCheckOrder(checkorder=default).errors.txt | 19 + ...buteValueCheckOrder(checkorder=default).js | 15 + ...alueCheckOrder(checkorder=default).symbols | 10 + ...eValueCheckOrder(checkorder=default).types | 11 + ...eckOrder(checkorder=typesfirst).errors.txt | 22 + ...eValueCheckOrder(checkorder=typesfirst).js | 15 + ...eCheckOrder(checkorder=typesfirst).symbols | 10 + ...lueCheckOrder(checkorder=typesfirst).types | 11 + ...IndexedAccessOfDerivedInterface.errors.txt | 28 + ...ithIndexedAccessOfDerivedInterface.symbols | 45 + ...eWithIndexedAccessOfDerivedInterface.types | 36 + ...sUnionOrder(checkorder=default).errors.txt | 22 + ...lagsUnionOrder(checkorder=default).symbols | 50 + ...sFlagsUnionOrder(checkorder=default).types | 41 + ...sUnionOrder(checkorder=typesfirst).symbols | 50 + ...agsUnionOrder(checkorder=typesfirst).types | 41 + ...nCheckOrder(checkorder=default).errors.txt | 16 + ...ersectionCheckOrder(checkorder=default).js | 19 + ...tionCheckOrder(checkorder=default).symbols | 29 + ...ectionCheckOrder(checkorder=default).types | 18 + ...ectionCheckOrder(checkorder=typesfirst).js | 19 + ...nCheckOrder(checkorder=typesfirst).symbols | 29 + ...ionCheckOrder(checkorder=typesfirst).types | 18 + ...inferenceDeeplyNestedCheckOrder.errors.txt | 24 + .../inferenceDeeplyNestedCheckOrder.symbols | 52 + .../inferenceDeeplyNestedCheckOrder.types | 44 + ...onOfTypeParameterAndPromiseLike.errors.txt | 17 + ...UnionOfTypeParameterAndPromiseLike.symbols | 35 + ...omUnionOfTypeParameterAndPromiseLike.types | 19 + ...hroughGenericAliasCallSignature.errors.txt | 66 + ...ceThroughGenericAliasCallSignature.symbols | 218 ++ ...enceThroughGenericAliasCallSignature.types | 154 + ...eThroughNestedReferencesOfSameType.symbols | 66 + ...nceThroughNestedReferencesOfSameType.types | 50 + ...eThroughSortOfFlattenedIterable.errors.txt | 26 + ...enceThroughSortOfFlattenedIterable.symbols | 65 + ...erenceThroughSortOfFlattenedIterable.types | 61 + ...blesAfterCycle(checkorder=default).symbols | 69 + ...iablesAfterCycle(checkorder=default).types | 44 + ...sAfterCycle(checkorder=typesfirst).symbols | 69 + ...lesAfterCycle(checkorder=typesfirst).types | 44 + ...aredCheckOrder(checkorder=default).symbols | 41 + ...SharedCheckOrder(checkorder=default).types | 23 + ...eckOrder(checkorder=typesfirst).errors.txt | 16 + ...dCheckOrder(checkorder=typesfirst).symbols | 41 + ...redCheckOrder(checkorder=typesfirst).types | 23 + ...aredCheckOrder(checkorder=default).symbols | 32 + ...SharedCheckOrder(checkorder=default).types | 23 + ...eckOrder(checkorder=typesfirst).errors.txt | 16 + ...dCheckOrder(checkorder=typesfirst).symbols | 32 + ...redCheckOrder(checkorder=typesfirst).types | 23 + ...eCheckOrder(checkorder=default).errors.txt | 32 + ...aintCycleCheckOrder(checkorder=default).js | 46 + ...ycleCheckOrder(checkorder=default).symbols | 68 + ...tCycleCheckOrder(checkorder=default).types | 51 + ...eckOrder(checkorder=typesfirst).errors.txt | 38 + ...tCycleCheckOrder(checkorder=typesfirst).js | 46 + ...eCheckOrder(checkorder=typesfirst).symbols | 68 + ...cleCheckOrder(checkorder=typesfirst).types | 51 + ...nConstraintInStaticClassExpression.symbols | 37 + ...ionConstraintInStaticClassExpression.types | 29 + .../instantiationLimitsCheckOrder.errors.txt | 24 + .../instantiationLimitsCheckOrder.symbols | 54 + .../instantiationLimitsCheckOrder.types | 32 + ...tCheckOrder(checkorder=default).errors.txt | 24 + ...imitCheckOrder(checkorder=default).symbols | 35 + ...kLimitCheckOrder(checkorder=default).types | 31 + ...eckOrder(checkorder=typesfirst).errors.txt | 23 + ...tCheckOrder(checkorder=typesfirst).symbols | 35 + ...mitCheckOrder(checkorder=typesfirst).types | 31 + ...eCheckOrder(checkorder=default).errors.txt | 19 + ...ctorCycleCheckOrder(checkorder=default).js | 16 + ...ycleCheckOrder(checkorder=default).symbols | 17 + ...rCycleCheckOrder(checkorder=default).types | 16 + ...eckOrder(checkorder=typesfirst).errors.txt | 19 + ...rCycleCheckOrder(checkorder=typesfirst).js | 16 + ...eCheckOrder(checkorder=typesfirst).symbols | 17 + ...cleCheckOrder(checkorder=typesfirst).types | 16 + ...nCheckOrder(checkorder=default).errors.txt | 28 + ...hainCheckOrder(checkorder=default).symbols | 55 + ...tChainCheckOrder(checkorder=default).types | 85 + ...ckOrder(checkorder=editorfirst).errors.txt | 28 + ...CheckOrder(checkorder=editorfirst).symbols | 55 + ...inCheckOrder(checkorder=editorfirst).types | 85 + ...eckOrder(checkorder=typesfirst).errors.txt | 31 + ...nCheckOrder(checkorder=typesfirst).symbols | 55 + ...ainCheckOrder(checkorder=typesfirst).types | 85 + ...rtElisionQueryOrder(checkorder=default).js | 25 + ...sionQueryOrder(checkorder=default).symbols | 16 + ...lisionQueryOrder(checkorder=default).types | 16 + ...isionQueryOrder(checkorder=editorfirst).js | 106 + ...QueryOrder(checkorder=editorfirst).symbols | 16 + ...onQueryOrder(checkorder=editorfirst).types | 16 + ...TypeCheckOrder(checkorder=default).symbols | 31 + ...ToTypeCheckOrder(checkorder=default).types | 28 + ...ckOrder(checkorder=editorfirst).errors.txt | 23 + ...CheckOrder(checkorder=editorfirst).symbols | 31 + ...peCheckOrder(checkorder=editorfirst).types | 28 + ...eCheckOrder(checkorder=typesfirst).symbols | 31 + ...ypeCheckOrder(checkorder=typesfirst).types | 28 + ...eTagOnContextuallyTypedFunction.errors.txt | 33 + ...TypeTagOnContextuallyTypedFunction.symbols | 36 + ...ocTypeTagOnContextuallyTypedFunction.types | 45 + ...agmaComment(checkorder=default).errors.txt | 33 + ...rceNonPragmaComment(checkorder=default).js | 29 + ...nPragmaComment(checkorder=default).symbols | 22 + ...NonPragmaComment(checkorder=default).types | 29 + ...aComment(checkorder=typesfirst).errors.txt | 37 + ...NonPragmaComment(checkorder=typesfirst).js | 29 + ...agmaComment(checkorder=typesfirst).symbols | 22 + ...PragmaComment(checkorder=typesfirst).types | 29 + ...ementsExtendsRecord(checkorder=default).js | 13 + ...sExtendsRecord(checkorder=default).symbols | 14 + ...ntsExtendsRecord(checkorder=default).types | 11 + ...dsRecord(checkorder=typesfirst).errors.txt | 12 + ...ntsExtendsRecord(checkorder=typesfirst).js | 13 + ...tendsRecord(checkorder=typesfirst).symbols | 14 + ...ExtendsRecord(checkorder=typesfirst).types | 11 + ...eCheckOrder(checkorder=default).errors.txt | 14 + ...ycleCheckOrder(checkorder=default).symbols | 20 + ...eCycleCheckOrder(checkorder=default).types | 17 + ...eckOrder(checkorder=typesfirst).errors.txt | 14 + ...eCheckOrder(checkorder=typesfirst).symbols | 20 + ...cleCheckOrder(checkorder=typesfirst).types | 17 + ...eCheckOrder(checkorder=default).errors.txt | 65 + ...tureCheckOrder(checkorder=default).symbols | 152 + ...natureCheckOrder(checkorder=default).types | 116 + ...CheckOrder(checkorder=isolated).errors.txt | 65 + ...ureCheckOrder(checkorder=isolated).symbols | 156 + ...atureCheckOrder(checkorder=isolated).types | 116 + ...eCheckOrder(checkorder=reverse).errors.txt | 65 + ...tureCheckOrder(checkorder=reverse).symbols | 152 + ...natureCheckOrder(checkorder=reverse).types | 116 + ...eckOrder(checkorder=typesfirst).errors.txt | 50 + ...eCheckOrder(checkorder=typesfirst).symbols | 156 + ...ureCheckOrder(checkorder=typesfirst).types | 116 + ...tantiations(checkorder=default).errors.txt | 15 + ...tDeepInstantiations(checkorder=default).js | 15 + ...Instantiations(checkorder=default).symbols | 25 + ...epInstantiations(checkorder=default).types | 15 + ...tiations(checkorder=typesfirst).errors.txt | 14 + ...epInstantiations(checkorder=typesfirst).js | 15 + ...tantiations(checkorder=typesfirst).symbols | 25 + ...nstantiations(checkorder=typesfirst).types | 15 + ...sCheckOrder(checkorder=default).errors.txt | 20 + ...rorsCheckOrder(checkorder=default).symbols | 44 + ...ErrorsCheckOrder(checkorder=default).types | 23 + ...eckOrder(checkorder=typesfirst).errors.txt | 19 + ...sCheckOrder(checkorder=typesfirst).symbols | 44 + ...orsCheckOrder(checkorder=typesfirst).types | 23 + ...CallCheckOrder(checkorder=default).symbols | 37 + ...icCallCheckOrder(checkorder=default).types | 42 + ...CheckOrder(checkorder=editorfirst).symbols | 37 + ...llCheckOrder(checkorder=editorfirst).types | 42 + ...lCheckOrder(checkorder=typesfirst).symbols | 37 + ...allCheckOrder(checkorder=typesfirst).types | 42 + ...sCheckOrder(checkorder=default).errors.txt | 45 + ...lassCheckOrder(checkorder=default).symbols | 99 + ...dClassCheckOrder(checkorder=default).types | 90 + ...ckOrder(checkorder=editorfirst).errors.txt | 45 + ...CheckOrder(checkorder=editorfirst).symbols | 99 + ...ssCheckOrder(checkorder=editorfirst).types | 90 + ...eckOrder(checkorder=typesfirst).errors.txt | 38 + ...sCheckOrder(checkorder=typesfirst).symbols | 99 + ...assCheckOrder(checkorder=typesfirst).types | 90 + ...dNeverAfterLoopWithAndCondition.errors.txt | 29 + ...owedNeverAfterLoopWithAndCondition.symbols | 47 + ...rrowedNeverAfterLoopWithAndCondition.types | 56 + ...eCheckOrder(checkorder=default).errors.txt | 75 + ...TypeCheckOrder(checkorder=default).symbols | 103 + ...alTypeCheckOrder(checkorder=default).types | 134 + ...eckOrder(checkorder=typesfirst).errors.txt | 75 + ...eCheckOrder(checkorder=typesfirst).symbols | 103 + ...ypeCheckOrder(checkorder=typesfirst).types | 134 + ...eckOrderJsx(checkorder=default).errors.txt | 35 + ...eCheckOrderJsx(checkorder=default).symbols | 52 + ...ypeCheckOrderJsx(checkorder=default).types | 55 + ...OrderJsx(checkorder=typesfirst).errors.txt | 35 + ...eckOrderJsx(checkorder=typesfirst).symbols | 52 + ...CheckOrderJsx(checkorder=typesfirst).types | 55 + ...icArrayAssignabilityAfterErrors.errors.txt | 38 + ...nericArrayAssignabilityAfterErrors.symbols | 98 + ...GenericArrayAssignabilityAfterErrors.types | 97 + ...AndWidenedCopyOrder(checkorder=default).js | 20 + ...denedCopyOrder(checkorder=default).symbols | 34 + ...WidenedCopyOrder(checkorder=default).types | 46 + ...WidenedCopyOrder(checkorder=typesfirst).js | 20 + ...edCopyOrder(checkorder=typesfirst).symbols | 34 + ...enedCopyOrder(checkorder=typesfirst).types | 46 + ...antiationOrder(checkorder=default).symbols | 44 + ...stantiationOrder(checkorder=default).types | 50 + ...iationOrder(checkorder=typesfirst).symbols | 44 + ...ntiationOrder(checkorder=typesfirst).types | 50 + ...ingDeferred(checkorder=default).errors.txt | 80 + ...intCheckingDeferred(checkorder=default).js | 37 + ...eckingDeferred(checkorder=default).symbols | 80 + ...CheckingDeferred(checkorder=default).types | 78 + ...Deferred(checkorder=typesfirst).errors.txt | 76 + ...CheckingDeferred(checkorder=typesfirst).js | 37 + ...ingDeferred(checkorder=typesfirst).symbols | 80 + ...ckingDeferred(checkorder=typesfirst).types | 78 + ...ThroughCall(checkorder=default).errors.txt | 34 + ...ingThroughCall(checkorder=default).symbols | 53 + ...blingThroughCall(checkorder=default).types | 62 + ...oughCall(checkorder=typesfirst).errors.txt | 34 + ...ThroughCall(checkorder=typesfirst).symbols | 53 + ...ngThroughCall(checkorder=typesfirst).types | 62 + ...enceCheckOrder(checkorder=default).symbols | 341 ++ ...erenceCheckOrder(checkorder=default).types | 233 ++ ...ckOrder(checkorder=editorfirst).errors.txt | 124 + ...CheckOrder(checkorder=editorfirst).symbols | 341 ++ ...ceCheckOrder(checkorder=editorfirst).types | 233 ++ ...eCheckOrder(checkorder=typesfirst).symbols | 341 ++ ...nceCheckOrder(checkorder=typesfirst).types | 233 ++ ...rCheckOrder(checkorder=default).errors.txt | 16 + ...ycleErrorCheckOrder(checkorder=default).js | 16 + ...rrorCheckOrder(checkorder=default).symbols | 15 + ...eErrorCheckOrder(checkorder=default).types | 13 + ...eckOrder(checkorder=typesfirst).errors.txt | 16 + ...eErrorCheckOrder(checkorder=typesfirst).js | 16 + ...rCheckOrder(checkorder=typesfirst).symbols | 15 + ...rorCheckOrder(checkorder=typesfirst).types | 13 + ...veGenericInterfaceDeclarationOrder.symbols | 67 + ...siveGenericInterfaceDeclarationOrder.types | 35 + .../recursiveVarianceFixedPoint.errors.txt | 227 ++ .../recursiveVarianceFixedPoint.symbols | 455 +++ .../recursiveVarianceFixedPoint.types | 344 ++ ...lexityError(checkorder=default).errors.txt | 50 + ...omplexityError(checkorder=default).symbols | 91 + ...nComplexityError(checkorder=default).types | 77 + ...ityError(checkorder=typesfirst).errors.txt | 50 + ...lexityError(checkorder=typesfirst).symbols | 91 + ...mplexityError(checkorder=typesfirst).types | 77 + ...dCheckOrder(checkorder=default).errors.txt | 32 + ...aredCheckOrder(checkorder=default).symbols | 101 + ...SharedCheckOrder(checkorder=default).types | 77 + ...eckOrder(checkorder=typesfirst).errors.txt | 35 + ...dCheckOrder(checkorder=typesfirst).symbols | 101 + ...redCheckOrder(checkorder=typesfirst).types | 77 + ...eCheckOrder(checkorder=default).errors.txt | 104 + ...toneCheckOrder(checkorder=default).symbols | 361 ++ ...notoneCheckOrder(checkorder=default).types | 292 ++ ...ckOrder(checkorder=editorfirst).errors.txt | 107 + ...CheckOrder(checkorder=editorfirst).symbols | 361 ++ ...neCheckOrder(checkorder=editorfirst).types | 292 ++ ...eckOrder(checkorder=typesfirst).errors.txt | 107 + ...eCheckOrder(checkorder=typesfirst).symbols | 361 ++ ...oneCheckOrder(checkorder=typesfirst).types | 292 ++ .../relationDeeplyNestedCheckOrder.symbols | 54 + .../relationDeeplyNestedCheckOrder.types | 41 + ...aredCheckOrder(checkorder=default).symbols | 1217 ++++++ ...SharedCheckOrder(checkorder=default).types | 739 ++++ ...dCheckOrder(checkorder=typesfirst).symbols | 1217 ++++++ ...redCheckOrder(checkorder=typesfirst).types | 739 ++++ .../relationMaybeCheckOrder.errors.txt | 31 + .../compiler/relationMaybeCheckOrder.symbols | 69 + .../compiler/relationMaybeCheckOrder.types | 60 + ...aredCheckOrder(checkorder=default).symbols | 38 + ...SharedCheckOrder(checkorder=default).types | 29 + ...dCheckOrder(checkorder=typesfirst).symbols | 38 + ...redCheckOrder(checkorder=typesfirst).types | 29 + ...acheCheckOrder(checkorder=default).symbols | 48 + ...dCacheCheckOrder(checkorder=default).types | 37 + ...eckOrder(checkorder=typesfirst).errors.txt | 32 + ...eCheckOrder(checkorder=typesfirst).symbols | 48 + ...cheCheckOrder(checkorder=typesfirst).types | 37 + ...tantiationOfRestrictiveConditional.symbols | 682 ++++ ...nstantiationOfRestrictiveConditional.types | 338 ++ ...nferenceNotTooBroad(checkorder=default).js | 24 + ...nceNotTooBroad(checkorder=default).symbols | 69 + ...renceNotTooBroad(checkorder=default).types | 67 + ...renceNotTooBroad(checkorder=typesfirst).js | 24 + ...NotTooBroad(checkorder=typesfirst).symbols | 69 + ...ceNotTooBroad(checkorder=typesfirst).types | 67 + ...ObjectLiteralErrorSharedChecker.errors.txt | 22 + ...ingObjectLiteralErrorSharedChecker.symbols | 41 + ...ncingObjectLiteralErrorSharedChecker.types | 53 + ...sectionBase(checkorder=default).errors.txt | 24 + ...tersectionBase(checkorder=default).symbols | 51 + ...IntersectionBase(checkorder=default).types | 42 + ...tionBase(checkorder=typesfirst).errors.txt | 24 + ...sectionBase(checkorder=typesfirst).symbols | 51 + ...ersectionBase(checkorder=typesfirst).types | 42 + ...pCheckOrder(checkorder=default).errors.txt | 42 + ...LoopCheckOrder(checkorder=default).symbols | 71 + ...InLoopCheckOrder(checkorder=default).types | 74 + ...ckOrder(checkorder=editorfirst).errors.txt | 42 + ...CheckOrder(checkorder=editorfirst).symbols | 71 + ...opCheckOrder(checkorder=editorfirst).types | 74 + ...eckOrder(checkorder=typesfirst).errors.txt | 42 + ...pCheckOrder(checkorder=typesfirst).symbols | 71 + ...oopCheckOrder(checkorder=typesfirst).types | 74 + ...kCheckOrder(checkorder=default).errors.txt | 33 + ...backCheckOrder(checkorder=default).symbols | 84 + ...llbackCheckOrder(checkorder=default).types | 64 + ...ckOrder(checkorder=editorfirst).errors.txt | 42 + ...CheckOrder(checkorder=editorfirst).symbols | 84 + ...ckCheckOrder(checkorder=editorfirst).types | 64 + ...eckOrder(checkorder=typesfirst).errors.txt | 33 + ...kCheckOrder(checkorder=typesfirst).symbols | 84 + ...ackCheckOrder(checkorder=typesfirst).types | 64 + ...eQueryOrder(checkorder=default).errors.txt | 16 + ...InferenceQueryOrder(checkorder=default).js | 16 + ...enceQueryOrder(checkorder=default).symbols | 51 + ...erenceQueryOrder(checkorder=default).types | 40 + ...renceQueryOrder(checkorder=editorfirst).js | 16 + ...QueryOrder(checkorder=editorfirst).symbols | 51 + ...ceQueryOrder(checkorder=editorfirst).types | 40 + ...tCheckOrder(checkorder=default).errors.txt | 36 + ...mentCheckOrder(checkorder=default).symbols | 71 + ...gumentCheckOrder(checkorder=default).types | 58 + ...ckOrder(checkorder=editorfirst).errors.txt | 44 + ...CheckOrder(checkorder=editorfirst).symbols | 71 + ...ntCheckOrder(checkorder=editorfirst).types | 58 + ...eckOrder(checkorder=typesfirst).errors.txt | 36 + ...tCheckOrder(checkorder=typesfirst).symbols | 71 + ...entCheckOrder(checkorder=typesfirst).types | 58 + ...InDeferredConditionalOfConditional.symbols | 94 + ...onInDeferredConditionalOfConditional.types | 35 + .../tupleTooLargeReportedAtUses.errors.txt | 18 + .../tupleTooLargeReportedAtUses.symbols | 33 + .../tupleTooLargeReportedAtUses.types | 23 + ...aultInCallInsideGenericCallback.errors.txt | 28 + ...DefaultInCallInsideGenericCallback.symbols | 76 + ...erDefaultInCallInsideGenericCallback.types | 64 + ...sConstraint(checkorder=default).errors.txt | 15 + ...HasSelfAsConstraint(checkorder=default).js | 14 + ...lfAsConstraint(checkorder=default).symbols | 15 + ...SelfAsConstraint(checkorder=default).types | 12 + ...nstraint(checkorder=typesfirst).errors.txt | 16 + ...SelfAsConstraint(checkorder=typesfirst).js | 14 + ...sConstraint(checkorder=typesfirst).symbols | 15 + ...fAsConstraint(checkorder=typesfirst).types | 12 + ...yCheckOrder(checkorder=default).errors.txt | 35 + ...tityCheckOrder(checkorder=default).symbols | 54 + ...entityCheckOrder(checkorder=default).types | 30 + ...eckOrder(checkorder=typesfirst).errors.txt | 54 + ...yCheckOrder(checkorder=typesfirst).symbols | 54 + ...ityCheckOrder(checkorder=typesfirst).types | 30 + ...eclaration1(checkorder=default).errors.txt | 28 + ...unctionDeclaration1(checkorder=default).js | 20 + ...onDeclaration1(checkorder=default).symbols | 21 + ...tionDeclaration1(checkorder=default).types | 25 + ...aration1(checkorder=typesfirst).errors.txt | 25 + ...tionDeclaration1(checkorder=typesfirst).js | 20 + ...eclaration1(checkorder=typesfirst).symbols | 21 + ...nDeclaration1(checkorder=typesfirst).types | 25 + ...rQueryOrder(checkorder=default).errors.txt | 12 + ...ParameterQueryOrder(checkorder=default).js | 17 + ...eterQueryOrder(checkorder=default).symbols | 14 + ...ameterQueryOrder(checkorder=default).types | 14 + ...meterQueryOrder(checkorder=editorfirst).js | 17 + ...QueryOrder(checkorder=editorfirst).symbols | 14 + ...erQueryOrder(checkorder=editorfirst).types | 14 + .../varianceCircularConsistency.errors.txt | 48 + .../varianceCircularConsistency.symbols | 146 + .../varianceCircularConsistency.types | 66 + ...redByInference(checkorder=default).symbols | 129 + ...teredByInference(checkorder=default).types | 90 + ...nference(checkorder=typesfirst).errors.txt | 56 + ...ByInference(checkorder=typesfirst).symbols | 129 + ...edByInference(checkorder=typesfirst).types | 90 + ...idesInvariance(checkorder=default).symbols | 279 ++ ...yHidesInvariance(checkorder=default).types | 131 + ...sInvariance(checkorder=typesfirst).symbols | 279 ++ ...desInvariance(checkorder=typesfirst).types | 131 + .../varianceCycleCachedResults.errors.txt | 25 + .../compiler/varianceCycleCachedResults.js | 35 + .../varianceCycleCachedResults.symbols | 52 + .../compiler/varianceCycleCachedResults.types | 49 + ...rianceCycleDiscardedDiagnostics.errors.txt | 31 + .../varianceCycleDiscardedDiagnostics.symbols | 73 + .../varianceCycleDiscardedDiagnostics.types | 65 + ...CanonicalEntry(checkorder=default).symbols | 132 + ...erCanonicalEntry(checkorder=default).types | 77 + ...onicalEntry(checkorder=typesfirst).symbols | 132 + ...anonicalEntry(checkorder=typesfirst).types | 77 + .../varianceCycleEntryOrder.errors.txt | 78 + .../compiler/varianceCycleEntryOrder.symbols | 106 + .../compiler/varianceCycleEntryOrder.types | 82 + ...liasCheckOrder(checkorder=default).symbols | 96 + ...mAliasCheckOrder(checkorder=default).types | 55 + ...ckOrder(checkorder=editorfirst).errors.txt | 35 + ...CheckOrder(checkorder=editorfirst).symbols | 96 + ...asCheckOrder(checkorder=editorfirst).types | 55 + ...eckOrder(checkorder=typesfirst).errors.txt | 35 + ...sCheckOrder(checkorder=typesfirst).symbols | 96 + ...iasCheckOrder(checkorder=typesfirst).types | 55 + .../varianceCycleRedoKeepsDiscardLog.symbols | 999 +++++ .../varianceCycleRedoKeepsDiscardLog.types | 518 +++ ...varianceCycleStructuralFallback.errors.txt | 86 + .../varianceCycleStructuralFallback.symbols | 120 + .../varianceCycleStructuralFallback.types | 94 + .../compiler/varianceDeclarationOrder.symbols | 126 + .../compiler/varianceDeclarationOrder.types | 62 + ...rianceMeasuredWithinCircularity.errors.txt | 63 + .../varianceMeasuredWithinCircularity.symbols | 89 + .../varianceMeasuredWithinCircularity.types | 52 + ...herComparisons(checkorder=default).symbols | 51 + ...OtherComparisons(checkorder=default).types | 37 + ...Comparisons(checkorder=typesfirst).symbols | 51 + ...erComparisons(checkorder=typesfirst).types | 37 + ...eclaration1(checkorder=default).errors.txt | 149 + ...InDeclaration1(checkorder=default).symbols | 175 + ...ceInDeclaration1(checkorder=default).types | 205 + ...aration1(checkorder=typesfirst).errors.txt | 152 + ...eclaration1(checkorder=typesfirst).symbols | 175 + ...nDeclaration1(checkorder=typesfirst).types | 205 + ...LiteralInitializers(checkorder=default).js | 126 + ...alInitializers(checkorder=default).symbols | 196 + ...eralInitializers(checkorder=default).types | 312 ++ ...ializers(checkorder=typesfirst).errors.txt | 75 + ...eralInitializers(checkorder=typesfirst).js | 126 + ...nitializers(checkorder=typesfirst).symbols | 196 + ...lInitializers(checkorder=typesfirst).types | 312 ++ ...importTag13(checkorder=default).errors.txt | 16 + .../importTag13(checkorder=default).symbols | 6 + .../importTag13(checkorder=default).types | 6 + ...ortTag13(checkorder=typesfirst).errors.txt | 19 + ...importTag13(checkorder=typesfirst).symbols | 6 + .../importTag13(checkorder=typesfirst).types | 6 + ...ldShadowing(checkorder=default).errors.txt | 23 + ...ClassFieldShadowing(checkorder=default).js | 46 + ...FieldShadowing(checkorder=default).symbols | 43 + ...ssFieldShadowing(checkorder=default).types | 44 + ...hadowing(checkorder=typesfirst).errors.txt | 23 + ...ssFieldShadowing(checkorder=typesfirst).js | 46 + ...ldShadowing(checkorder=typesfirst).symbols | 43 + ...ieldShadowing(checkorder=typesfirst).types | 44 + .../compiler/baseConstraintDepthCheckOrder.ts | 13 + .../compiler/bigintArbirtraryIdentifier.ts | 1 + ...ndedRecursiveTypeInferredThroughClosure.ts | 83 + ...exConstraintOfJavascriptClassExpression.ts | 1 + .../cases/compiler/checkOrderAwaitedCycle.ts | 21 + .../compiler/checkOrderCircularConstraint.ts | 14 + .../compiler/checkOrderCircularDefaults.ts | 16 + .../compiler/checkOrderEmitBeforeCheck.ts | 19 + .../compiler/checkOrderEnumComputedMember.ts | 12 + .../compiler/checkOrderLateBoundMembers.ts | 13 + .../compiler/checkOrderModuleExportsAlias.ts | 8 + .../checkOrderParameterInTypeQuery.ts | 19 + .../checkOrderRecursiveIndexedAccess.ts | 21 + .../cases/compiler/checkOrderSpreadCycle.ts | 31 + .../checkOrderStableInstantiationErrors.ts | 30 + .../compiler/circularAccessorAnnotations.ts | 1 + .../compiler/circularBaseTypesCheckOrder.ts | 25 + .../circularIndexedPropertyInstantiation.ts | 6 + .../compiler/circularInitializerInference.ts | 31 + ...ularInlineMappedGenericTupleTypeNoCrash.ts | 1 + ...larReturnThroughThisNarrowingCheckOrder.ts | 21 + ...circularReturnTypeSubtypeReductionOrder.ts | 42 + ...arReturnTypeThroughCallArgumentRelation.ts | 44 + ...rcularReturnTypeThroughCallbackArgument.ts | 27 + ...TypeThroughUncontextualCallbackArgument.ts | 22 + .../circularScopeThunkReverseMapped.ts | 26 + .../compiler/classCircularityDiagnostics.ts | 48 + .../compiler/clonedTypeParameterUnionOrder.ts | 15 + .../constAssertionBindingPatternQueryOrder.ts | 11 + ...tualCheckReentryFromOuterTypeParameters.ts | 17 + .../compiler/contextualOuterTypeParameters.ts | 6 + ...tualParameterDefaultReferenceCheckOrder.ts | 7 + ...lParameterInCircularVariableInitializer.ts | 20 + ...ParameterInReturnTypeCycleOfGenericCall.ts | 17 + .../contextualReturnArrayPatternCallback.ts | 1 + .../contextualThisAssertionCheckOrder.ts | 21 + .../cycleYieldThroughVarianceCheckOrder.ts | 16 + ...pIndexedAccessChainConstraintCheckOrder.ts | 23 + .../deferredTypeReferenceCycleRollback.ts | 20 + .../deleteExpressionMustBeOptional.ts | 1 + ...tDestructuringBindingElementInitializer.ts | 1 + ...stributiveConstraintOfCircularCheckType.ts | 17 + .../enumMemberTypeCacheConsistency.ts | 11 + .../evolvingArrayReadInLoopCondition.ts | 16 + .../compiler/excessivelyLargeTupleSpread.ts | 1 + .../exhaustiveSwitchCheckCircularity.ts | 1 + ...ortAssignmentNestedVisibilityQueryOrder.ts | 17 + ...allbackToBindingPatternForTypeInference.ts | 1 + .../fixingTypeParametersRepeatedly2.ts | 1 + .../cases/compiler/flowLoopDepthCheckOrder.ts | 1028 +++++ .../compiler/flowLoopTooDeepCheckOrder.ts | 1123 ++++++ ...ricCallReturnedFunctionParameterDefault.ts | 28 + .../compiler/getterCircularityDiagnostics.ts | 14 + .../compiler/getterReturnTypeQueryOrder.ts | 15 + .../importAttributeValueCheckOrder.ts | 8 + ...tureWithIndexedAccessOfDerivedInterface.ts | 23 + .../indexedAccessAccessFlagsUnionOrder.ts | 13 + ...straintFromMappedIntersectionCheckOrder.ts | 10 + .../inferenceDeeplyNestedCheckOrder.ts | 23 + ...eFromUnionOfTypeParameterAndPromiseLike.ts | 10 + ...ferenceThroughGenericAliasCallSignature.ts | 58 + ...erenceThroughNestedReferencesOfSameType.ts | 20 + ...inferenceThroughSortOfFlattenedIterable.ts | 21 + ...tionCouldContainTypeVariablesAfterCycle.ts | 22 + .../instantiationCountSharedCheckOrder.ts | 14 + .../instantiationDepthSharedCheckOrder.ts | 14 + ...tionExpressionConstraintCycleCheckOrder.ts | 24 + ...essionConstraintInStaticClassExpression.ts | 15 + .../compiler/instantiationLimitsCheckOrder.ts | 19 + .../instantiationStackLimitCheckOrder.ts | 18 + ...ersectionBaseConstructorCycleCheckOrder.ts | 8 + ...sElementAccessAssignmentChainCheckOrder.ts | 23 + .../jsdocLinkImportElisionQueryOrder.ts | 13 + .../compiler/jsdocLinkToTypeCheckOrder.ts | 17 + ...jsdocTypeTagOnContextuallyTypedFunction.ts | 17 + .../jsxImportSourceNonPragmaComment.tsx | 1 + .../jsxIntrinsicElementsExtendsRecord.tsx | 1 + .../keyofIndexSignatureCycleCheckOrder.ts | 10 + ...SelfReferentialIndexSignatureCheckOrder.ts | 44 + .../cases/compiler/limitDeepInstantiations.ts | 1 + .../mappedTypeConstraintErrorsCheckOrder.ts | 17 + ...dOfObjectLiteralInGenericCallCheckOrder.ts | 16 + ...ethodsReferringToAppliedClassCheckOrder.ts | 36 + .../narrowedNeverAfterLoopWithAndCondition.ts | 22 + .../nestedCallContextualTypeCheckOrder.ts | 21 + .../nestedCallContextualTypeCheckOrderJsx.tsx | 17 + ...tedGenericArrayAssignabilityAfterErrors.ts | 32 + ...objectLiteralRegularAndWidenedCopyOrder.ts | 10 + .../objectRestUnionInstantiationOrder.ts | 11 + ...esolutionWithConstraintCheckingDeferred.ts | 1 + ...dingDefaultReferencesSiblingThroughCall.ts | 25 + .../pipeCallbackInferenceCheckOrder.ts | 109 + .../qualifiedNameCycleErrorCheckOrder.ts | 8 + ...cursiveGenericInterfaceDeclarationOrder.ts | 17 + .../compiler/recursiveVarianceFixedPoint.ts | 159 + .../cases/compiler/relationComplexityError.ts | 49 +- .../relationComplexitySharedCheckOrder.ts | 26 + .../relationCycleNonMonotoneCheckOrder.ts | 98 + .../relationDeeplyNestedCheckOrder.ts | 17 + .../compiler/relationDepthSharedCheckOrder.ts | 253 ++ .../cases/compiler/relationMaybeCheckOrder.ts | 24 + .../relationNestingSharedCheckOrder.ts | 15 + .../relationTruncatedCacheCheckOrder.ts | 18 + ...veInstantiationOfRestrictiveConditional.ts | 183 + .../returnTypeInferenceNotTooBroad.ts | 1 + ...erencingObjectLiteralErrorSharedChecker.ts | 28 + .../sharedMemberLayoutThisIntersectionBase.ts | 1 + .../signatureHelpForCallInLoopCheckOrder.ts | 29 + ...signatureHelpInNestedCallbackCheckOrder.ts | 23 + .../signatureHelpInferenceQueryOrder.ts | 11 + ...tureHelpReverseMappedArgumentCheckOrder.ts | 30 + ...utionInDeferredConditionalOfConditional.ts | 24 + .../compiler/tupleTooLargeReportedAtUses.ts | 15 + ...meterDefaultInCallInsideGenericCallback.ts | 25 + .../typeParameterHasSelfAsConstraint.ts | 1 + ...ypeReferenceRecursionIdentityCheckOrder.ts | 16 + ...onDeclarationWithinFunctionDeclaration1.ts | 1 + .../compiler/unusedTypeParameterQueryOrder.ts | 10 + .../compiler/varianceCircularConsistency.ts | 29 + .../varianceCircularityEnteredByInference.ts | 51 + .../varianceCircularityHidesInvariance.ts | 74 + .../compiler/varianceCycleCachedResults.ts | 25 + .../varianceCycleDiscardedDiagnostics.ts | 28 + ...varianceCycleEnteredAfterCanonicalEntry.ts | 32 + .../cases/compiler/varianceCycleEntryOrder.ts | 32 + ...arianceCycleMeasuredFromAliasCheckOrder.ts | 29 + .../varianceCycleRedoKeepsDiscardLog.ts | 312 ++ .../varianceCycleStructuralFallback.ts | 33 + .../compiler/varianceDeclarationOrder.ts | 30 + .../varianceMeasuredWithinCircularity.ts | 30 + ...ersededMeasurementKeepsOtherComparisons.ts | 21 + .../privateNameNestedClassFieldShadowing.ts | 1 + ...ucturedVariablesReferenceInDeclaration1.ts | 1 + .../destructuringWithLiteralInitializers.ts | 1 + .../cases/conformance/jsdoc/importTag13.ts | 1 + 958 files changed, 86652 insertions(+), 17 deletions(-) create mode 100644 tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.types create mode 100644 tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.js create mode 100644 tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.types create mode 100644 tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).js create mode 100644 tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).js create mode 100644 tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.types create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=false).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=false).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).js create mode 100644 tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).types create mode 100644 tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).js create mode 100644 tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).types create mode 100644 tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualCheckReentryFromOuterTypeParameters.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualCheckReentryFromOuterTypeParameters.types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.types create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).js create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).types create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).js create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).types create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).js create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).types create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).js create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).types create mode 100644 tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/distributiveConstraintOfCircularCheckType.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/distributiveConstraintOfCircularCheckType.types create mode 100644 tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.js create mode 100644 tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.types create mode 100644 tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.types rename tsc/testdata/baselines/reference/compiler/{excessivelyLargeTupleSpread.errors.txt => excessivelyLargeTupleSpread(checkorder=default).errors.txt} (100%) rename tsc/testdata/baselines/reference/compiler/{excessivelyLargeTupleSpread.js => excessivelyLargeTupleSpread(checkorder=default).js} (100%) rename tsc/testdata/baselines/reference/compiler/{excessivelyLargeTupleSpread.symbols => excessivelyLargeTupleSpread(checkorder=default).symbols} (100%) rename tsc/testdata/baselines/reference/compiler/{excessivelyLargeTupleSpread.types => excessivelyLargeTupleSpread(checkorder=default).types} (100%) create mode 100644 tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.js create mode 100644 tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.types create mode 100644 tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.types create mode 100644 tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.types create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.types create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.types create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceThroughNestedReferencesOfSameType.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceThroughNestedReferencesOfSameType.types create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintInStaticClassExpression.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintInStaticClassExpression.types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.types create mode 100644 tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).types create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).types create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.types create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.types create mode 100644 tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/recursiveGenericInterfaceDeclarationOrder.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/recursiveGenericInterfaceDeclarationOrder.types create mode 100644 tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.types create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationDeeplyNestedCheckOrder.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationDeeplyNestedCheckOrder.types create mode 100644 tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.types create mode 100644 tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/restrictiveInstantiationOfRestrictiveConditional.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/restrictiveInstantiationOfRestrictiveConditional.types create mode 100644 tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.types create mode 100644 tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/substitutionInDeferredConditionalOfConditional.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/substitutionInDeferredConditionalOfConditional.types create mode 100644 tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.types create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.types create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).js create mode 100644 tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.js create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleRedoKeepsDiscardLog.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleRedoKeepsDiscardLog.types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceDeclarationOrder.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceDeclarationOrder.types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.errors.txt create mode 100644 tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).types create mode 100644 tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).errors.txt create mode 100644 tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).js create mode 100644 tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).symbols create mode 100644 tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).types create mode 100644 tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).errors.txt create mode 100644 tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).js create mode 100644 tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).symbols create mode 100644 tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).types create mode 100644 tsc/testdata/tests/cases/compiler/baseConstraintDepthCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/boundedRecursiveTypeInferredThroughClosure.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderAwaitedCycle.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderCircularConstraint.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderCircularDefaults.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderEmitBeforeCheck.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderEnumComputedMember.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderLateBoundMembers.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderModuleExportsAlias.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderParameterInTypeQuery.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderSpreadCycle.ts create mode 100644 tsc/testdata/tests/cases/compiler/checkOrderStableInstantiationErrors.ts create mode 100644 tsc/testdata/tests/cases/compiler/circularBaseTypesCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/circularIndexedPropertyInstantiation.ts create mode 100644 tsc/testdata/tests/cases/compiler/circularInitializerInference.ts create mode 100644 tsc/testdata/tests/cases/compiler/circularReturnThroughThisNarrowingCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/circularReturnTypeSubtypeReductionOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/circularReturnTypeThroughCallArgumentRelation.ts create mode 100644 tsc/testdata/tests/cases/compiler/circularReturnTypeThroughCallbackArgument.ts create mode 100644 tsc/testdata/tests/cases/compiler/circularReturnTypeThroughUncontextualCallbackArgument.ts create mode 100644 tsc/testdata/tests/cases/compiler/circularScopeThunkReverseMapped.ts create mode 100644 tsc/testdata/tests/cases/compiler/classCircularityDiagnostics.ts create mode 100644 tsc/testdata/tests/cases/compiler/clonedTypeParameterUnionOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/constAssertionBindingPatternQueryOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/contextualCheckReentryFromOuterTypeParameters.ts create mode 100644 tsc/testdata/tests/cases/compiler/contextualParameterDefaultReferenceCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/contextualParameterInCircularVariableInitializer.ts create mode 100644 tsc/testdata/tests/cases/compiler/contextualParameterInReturnTypeCycleOfGenericCall.ts create mode 100644 tsc/testdata/tests/cases/compiler/contextualThisAssertionCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/cycleYieldThroughVarianceCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/deferredTypeReferenceCycleRollback.ts create mode 100644 tsc/testdata/tests/cases/compiler/distributiveConstraintOfCircularCheckType.ts create mode 100644 tsc/testdata/tests/cases/compiler/enumMemberTypeCacheConsistency.ts create mode 100644 tsc/testdata/tests/cases/compiler/evolvingArrayReadInLoopCondition.ts create mode 100644 tsc/testdata/tests/cases/compiler/exportAssignmentNestedVisibilityQueryOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/flowLoopDepthCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/flowLoopTooDeepCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/genericCallReturnedFunctionParameterDefault.ts create mode 100644 tsc/testdata/tests/cases/compiler/getterCircularityDiagnostics.ts create mode 100644 tsc/testdata/tests/cases/compiler/getterReturnTypeQueryOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/importAttributeValueCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.ts create mode 100644 tsc/testdata/tests/cases/compiler/indexedAccessAccessFlagsUnionOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/inferenceDeeplyNestedCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.ts create mode 100644 tsc/testdata/tests/cases/compiler/inferenceThroughGenericAliasCallSignature.ts create mode 100644 tsc/testdata/tests/cases/compiler/inferenceThroughNestedReferencesOfSameType.ts create mode 100644 tsc/testdata/tests/cases/compiler/inferenceThroughSortOfFlattenedIterable.ts create mode 100644 tsc/testdata/tests/cases/compiler/instantiationCouldContainTypeVariablesAfterCycle.ts create mode 100644 tsc/testdata/tests/cases/compiler/instantiationCountSharedCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/instantiationDepthSharedCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/instantiationExpressionConstraintCycleCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/instantiationExpressionConstraintInStaticClassExpression.ts create mode 100644 tsc/testdata/tests/cases/compiler/instantiationLimitsCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/instantiationStackLimitCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/intersectionBaseConstructorCycleCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/jsElementAccessAssignmentChainCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/jsdocLinkImportElisionQueryOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/jsdocLinkToTypeCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/jsdocTypeTagOnContextuallyTypedFunction.ts create mode 100644 tsc/testdata/tests/cases/compiler/keyofIndexSignatureCycleCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/mappedTypeConstraintErrorsCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/methodOfObjectLiteralInGenericCallCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/mixinMethodsReferringToAppliedClassCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/narrowedNeverAfterLoopWithAndCondition.ts create mode 100644 tsc/testdata/tests/cases/compiler/nestedCallContextualTypeCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/nestedCallContextualTypeCheckOrderJsx.tsx create mode 100644 tsc/testdata/tests/cases/compiler/nestedGenericArrayAssignabilityAfterErrors.ts create mode 100644 tsc/testdata/tests/cases/compiler/objectLiteralRegularAndWidenedCopyOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/objectRestUnionInstantiationOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/parameterBindingDefaultReferencesSiblingThroughCall.ts create mode 100644 tsc/testdata/tests/cases/compiler/pipeCallbackInferenceCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/qualifiedNameCycleErrorCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/recursiveGenericInterfaceDeclarationOrder.ts create mode 100755 tsc/testdata/tests/cases/compiler/recursiveVarianceFixedPoint.ts create mode 100644 tsc/testdata/tests/cases/compiler/relationComplexitySharedCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/relationCycleNonMonotoneCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/relationDeeplyNestedCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/relationDepthSharedCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/relationMaybeCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/relationNestingSharedCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/relationTruncatedCacheCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/restrictiveInstantiationOfRestrictiveConditional.ts create mode 100644 tsc/testdata/tests/cases/compiler/selfReferencingObjectLiteralErrorSharedChecker.ts create mode 100644 tsc/testdata/tests/cases/compiler/signatureHelpForCallInLoopCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/signatureHelpInNestedCallbackCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/signatureHelpInferenceQueryOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/signatureHelpReverseMappedArgumentCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/substitutionInDeferredConditionalOfConditional.ts create mode 100644 tsc/testdata/tests/cases/compiler/tupleTooLargeReportedAtUses.ts create mode 100644 tsc/testdata/tests/cases/compiler/typeParameterDefaultInCallInsideGenericCallback.ts create mode 100644 tsc/testdata/tests/cases/compiler/typeReferenceRecursionIdentityCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/unusedTypeParameterQueryOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceCircularConsistency.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceCircularityEnteredByInference.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceCircularityHidesInvariance.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceCycleCachedResults.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceCycleDiscardedDiagnostics.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceCycleEnteredAfterCanonicalEntry.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceCycleEntryOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceCycleMeasuredFromAliasCheckOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceCycleRedoKeepsDiscardLog.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceCycleStructuralFallback.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceDeclarationOrder.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceMeasuredWithinCircularity.ts create mode 100644 tsc/testdata/tests/cases/compiler/varianceSupersededMeasurementKeepsOtherComparisons.ts diff --git a/tsc/internal/testrunner/compiler_runner.go b/tsc/internal/testrunner/compiler_runner.go index c7081ce8b6b44..8dbdc2623cc36 100644 --- a/tsc/internal/testrunner/compiler_runner.go +++ b/tsc/internal/testrunner/compiler_runner.go @@ -167,8 +167,21 @@ func (r *CompilerBaselineRunner) runTest(t *testing.T, filename string) { } } +// When a program checks its files on several checkers, these tests can see different results depending on which +// checker answers a query first. +var concurrentSkippedTests = map[string]string{ + "checkOrderCircularDefaults.ts": "Circular default results depend on which checker resolves the cycle first.", + "checkOrderSpreadCycle.ts": "Spread cycle results depend on which checker resolves the cycle first.", + "checkOrderStableInstantiationErrors.ts": "Instantiation limit errors depend on which checker instantiates first.", +} + func (r *CompilerBaselineRunner) runSingleConfigTest(t *testing.T, testName string, test *compilerFileBasedTest, config *harnessutil.NamedTestConfiguration) { t.Parallel() + if !testutil.TestProgramIsSingleThreaded() { + if msg, ok := concurrentSkippedTests[tspath.GetBaseFileName(test.filename)]; ok { + t.Skipf("Skipping in concurrent mode: %s", msg) + } + } defer testutil.RecoverAndFail(t, "Panic on compiler test "+test.filename) payload := makeUnitsFromTest(test.content, test.filename) diff --git a/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..a247afb883ac5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,19 @@ +baseConstraintDepthCheckOrder.ts(7,7): error TS2339: Property 'length' does not exist on type 'T0'. +baseConstraintDepthCheckOrder.ts(8,7): error TS2339: Property 'length' does not exist on type 'T20'. + + +==== baseConstraintDepthCheckOrder.ts (2 errors) ==== + // The base constraint of 'T0' is 60 type parameters deep and gives up after + // 50, while that of 'T20' is found 40 deep. Neither may depend on which was + // computed first: computing 'T0' first must not leave 'T20' without its + // constraint, and computing 'T20' first must not let 'T0' reuse it. + + function f(x: T0, y: T20) { + x.length; + ~~~~~~ +!!! error TS2339: Property 'length' does not exist on type 'T0'. + y.length; + ~~~~~~ +!!! error TS2339: Property 'length' does not exist on type 'T20'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..5cbd14622b89f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).symbols @@ -0,0 +1,141 @@ +//// [tests/cases/compiler/baseConstraintDepthCheckOrder.ts] //// + +=== baseConstraintDepthCheckOrder.ts === +// The base constraint of 'T0' is 60 type parameters deep and gives up after +// 50, while that of 'T20' is found 40 deep. Neither may depend on which was +// computed first: computing 'T0' first must not leave 'T20' without its +// constraint, and computing 'T20' first must not let 'T0' reuse it. + +function f(x: T0, y: T20) { +>f : Symbol(f, Decl(baseConstraintDepthCheckOrder.ts, 0, 0)) +>T0 : Symbol(T0, Decl(baseConstraintDepthCheckOrder.ts, 5, 11)) +>T1 : Symbol(T1, Decl(baseConstraintDepthCheckOrder.ts, 5, 25)) +>T1 : Symbol(T1, Decl(baseConstraintDepthCheckOrder.ts, 5, 25)) +>T2 : Symbol(T2, Decl(baseConstraintDepthCheckOrder.ts, 5, 40)) +>T2 : Symbol(T2, Decl(baseConstraintDepthCheckOrder.ts, 5, 40)) +>T3 : Symbol(T3, Decl(baseConstraintDepthCheckOrder.ts, 5, 55)) +>T3 : Symbol(T3, Decl(baseConstraintDepthCheckOrder.ts, 5, 55)) +>T4 : Symbol(T4, Decl(baseConstraintDepthCheckOrder.ts, 5, 70)) +>T4 : Symbol(T4, Decl(baseConstraintDepthCheckOrder.ts, 5, 70)) +>T5 : Symbol(T5, Decl(baseConstraintDepthCheckOrder.ts, 5, 85)) +>T5 : Symbol(T5, Decl(baseConstraintDepthCheckOrder.ts, 5, 85)) +>T6 : Symbol(T6, Decl(baseConstraintDepthCheckOrder.ts, 5, 100)) +>T6 : Symbol(T6, Decl(baseConstraintDepthCheckOrder.ts, 5, 100)) +>T7 : Symbol(T7, Decl(baseConstraintDepthCheckOrder.ts, 5, 115)) +>T7 : Symbol(T7, Decl(baseConstraintDepthCheckOrder.ts, 5, 115)) +>T8 : Symbol(T8, Decl(baseConstraintDepthCheckOrder.ts, 5, 130)) +>T8 : Symbol(T8, Decl(baseConstraintDepthCheckOrder.ts, 5, 130)) +>T9 : Symbol(T9, Decl(baseConstraintDepthCheckOrder.ts, 5, 145)) +>T9 : Symbol(T9, Decl(baseConstraintDepthCheckOrder.ts, 5, 145)) +>T10 : Symbol(T10, Decl(baseConstraintDepthCheckOrder.ts, 5, 161)) +>T10 : Symbol(T10, Decl(baseConstraintDepthCheckOrder.ts, 5, 161)) +>T11 : Symbol(T11, Decl(baseConstraintDepthCheckOrder.ts, 5, 178)) +>T11 : Symbol(T11, Decl(baseConstraintDepthCheckOrder.ts, 5, 178)) +>T12 : Symbol(T12, Decl(baseConstraintDepthCheckOrder.ts, 5, 195)) +>T12 : Symbol(T12, Decl(baseConstraintDepthCheckOrder.ts, 5, 195)) +>T13 : Symbol(T13, Decl(baseConstraintDepthCheckOrder.ts, 5, 212)) +>T13 : Symbol(T13, Decl(baseConstraintDepthCheckOrder.ts, 5, 212)) +>T14 : Symbol(T14, Decl(baseConstraintDepthCheckOrder.ts, 5, 229)) +>T14 : Symbol(T14, Decl(baseConstraintDepthCheckOrder.ts, 5, 229)) +>T15 : Symbol(T15, Decl(baseConstraintDepthCheckOrder.ts, 5, 246)) +>T15 : Symbol(T15, Decl(baseConstraintDepthCheckOrder.ts, 5, 246)) +>T16 : Symbol(T16, Decl(baseConstraintDepthCheckOrder.ts, 5, 263)) +>T16 : Symbol(T16, Decl(baseConstraintDepthCheckOrder.ts, 5, 263)) +>T17 : Symbol(T17, Decl(baseConstraintDepthCheckOrder.ts, 5, 280)) +>T17 : Symbol(T17, Decl(baseConstraintDepthCheckOrder.ts, 5, 280)) +>T18 : Symbol(T18, Decl(baseConstraintDepthCheckOrder.ts, 5, 297)) +>T18 : Symbol(T18, Decl(baseConstraintDepthCheckOrder.ts, 5, 297)) +>T19 : Symbol(T19, Decl(baseConstraintDepthCheckOrder.ts, 5, 314)) +>T19 : Symbol(T19, Decl(baseConstraintDepthCheckOrder.ts, 5, 314)) +>T20 : Symbol(T20, Decl(baseConstraintDepthCheckOrder.ts, 5, 331)) +>T20 : Symbol(T20, Decl(baseConstraintDepthCheckOrder.ts, 5, 331)) +>T21 : Symbol(T21, Decl(baseConstraintDepthCheckOrder.ts, 5, 348)) +>T21 : Symbol(T21, Decl(baseConstraintDepthCheckOrder.ts, 5, 348)) +>T22 : Symbol(T22, Decl(baseConstraintDepthCheckOrder.ts, 5, 365)) +>T22 : Symbol(T22, Decl(baseConstraintDepthCheckOrder.ts, 5, 365)) +>T23 : Symbol(T23, Decl(baseConstraintDepthCheckOrder.ts, 5, 382)) +>T23 : Symbol(T23, Decl(baseConstraintDepthCheckOrder.ts, 5, 382)) +>T24 : Symbol(T24, Decl(baseConstraintDepthCheckOrder.ts, 5, 399)) +>T24 : Symbol(T24, Decl(baseConstraintDepthCheckOrder.ts, 5, 399)) +>T25 : Symbol(T25, Decl(baseConstraintDepthCheckOrder.ts, 5, 416)) +>T25 : Symbol(T25, Decl(baseConstraintDepthCheckOrder.ts, 5, 416)) +>T26 : Symbol(T26, Decl(baseConstraintDepthCheckOrder.ts, 5, 433)) +>T26 : Symbol(T26, Decl(baseConstraintDepthCheckOrder.ts, 5, 433)) +>T27 : Symbol(T27, Decl(baseConstraintDepthCheckOrder.ts, 5, 450)) +>T27 : Symbol(T27, Decl(baseConstraintDepthCheckOrder.ts, 5, 450)) +>T28 : Symbol(T28, Decl(baseConstraintDepthCheckOrder.ts, 5, 467)) +>T28 : Symbol(T28, Decl(baseConstraintDepthCheckOrder.ts, 5, 467)) +>T29 : Symbol(T29, Decl(baseConstraintDepthCheckOrder.ts, 5, 484)) +>T29 : Symbol(T29, Decl(baseConstraintDepthCheckOrder.ts, 5, 484)) +>T30 : Symbol(T30, Decl(baseConstraintDepthCheckOrder.ts, 5, 501)) +>T30 : Symbol(T30, Decl(baseConstraintDepthCheckOrder.ts, 5, 501)) +>T31 : Symbol(T31, Decl(baseConstraintDepthCheckOrder.ts, 5, 518)) +>T31 : Symbol(T31, Decl(baseConstraintDepthCheckOrder.ts, 5, 518)) +>T32 : Symbol(T32, Decl(baseConstraintDepthCheckOrder.ts, 5, 535)) +>T32 : Symbol(T32, Decl(baseConstraintDepthCheckOrder.ts, 5, 535)) +>T33 : Symbol(T33, Decl(baseConstraintDepthCheckOrder.ts, 5, 552)) +>T33 : Symbol(T33, Decl(baseConstraintDepthCheckOrder.ts, 5, 552)) +>T34 : Symbol(T34, Decl(baseConstraintDepthCheckOrder.ts, 5, 569)) +>T34 : Symbol(T34, Decl(baseConstraintDepthCheckOrder.ts, 5, 569)) +>T35 : Symbol(T35, Decl(baseConstraintDepthCheckOrder.ts, 5, 586)) +>T35 : Symbol(T35, Decl(baseConstraintDepthCheckOrder.ts, 5, 586)) +>T36 : Symbol(T36, Decl(baseConstraintDepthCheckOrder.ts, 5, 603)) +>T36 : Symbol(T36, Decl(baseConstraintDepthCheckOrder.ts, 5, 603)) +>T37 : Symbol(T37, Decl(baseConstraintDepthCheckOrder.ts, 5, 620)) +>T37 : Symbol(T37, Decl(baseConstraintDepthCheckOrder.ts, 5, 620)) +>T38 : Symbol(T38, Decl(baseConstraintDepthCheckOrder.ts, 5, 637)) +>T38 : Symbol(T38, Decl(baseConstraintDepthCheckOrder.ts, 5, 637)) +>T39 : Symbol(T39, Decl(baseConstraintDepthCheckOrder.ts, 5, 654)) +>T39 : Symbol(T39, Decl(baseConstraintDepthCheckOrder.ts, 5, 654)) +>T40 : Symbol(T40, Decl(baseConstraintDepthCheckOrder.ts, 5, 671)) +>T40 : Symbol(T40, Decl(baseConstraintDepthCheckOrder.ts, 5, 671)) +>T41 : Symbol(T41, Decl(baseConstraintDepthCheckOrder.ts, 5, 688)) +>T41 : Symbol(T41, Decl(baseConstraintDepthCheckOrder.ts, 5, 688)) +>T42 : Symbol(T42, Decl(baseConstraintDepthCheckOrder.ts, 5, 705)) +>T42 : Symbol(T42, Decl(baseConstraintDepthCheckOrder.ts, 5, 705)) +>T43 : Symbol(T43, Decl(baseConstraintDepthCheckOrder.ts, 5, 722)) +>T43 : Symbol(T43, Decl(baseConstraintDepthCheckOrder.ts, 5, 722)) +>T44 : Symbol(T44, Decl(baseConstraintDepthCheckOrder.ts, 5, 739)) +>T44 : Symbol(T44, Decl(baseConstraintDepthCheckOrder.ts, 5, 739)) +>T45 : Symbol(T45, Decl(baseConstraintDepthCheckOrder.ts, 5, 756)) +>T45 : Symbol(T45, Decl(baseConstraintDepthCheckOrder.ts, 5, 756)) +>T46 : Symbol(T46, Decl(baseConstraintDepthCheckOrder.ts, 5, 773)) +>T46 : Symbol(T46, Decl(baseConstraintDepthCheckOrder.ts, 5, 773)) +>T47 : Symbol(T47, Decl(baseConstraintDepthCheckOrder.ts, 5, 790)) +>T47 : Symbol(T47, Decl(baseConstraintDepthCheckOrder.ts, 5, 790)) +>T48 : Symbol(T48, Decl(baseConstraintDepthCheckOrder.ts, 5, 807)) +>T48 : Symbol(T48, Decl(baseConstraintDepthCheckOrder.ts, 5, 807)) +>T49 : Symbol(T49, Decl(baseConstraintDepthCheckOrder.ts, 5, 824)) +>T49 : Symbol(T49, Decl(baseConstraintDepthCheckOrder.ts, 5, 824)) +>T50 : Symbol(T50, Decl(baseConstraintDepthCheckOrder.ts, 5, 841)) +>T50 : Symbol(T50, Decl(baseConstraintDepthCheckOrder.ts, 5, 841)) +>T51 : Symbol(T51, Decl(baseConstraintDepthCheckOrder.ts, 5, 858)) +>T51 : Symbol(T51, Decl(baseConstraintDepthCheckOrder.ts, 5, 858)) +>T52 : Symbol(T52, Decl(baseConstraintDepthCheckOrder.ts, 5, 875)) +>T52 : Symbol(T52, Decl(baseConstraintDepthCheckOrder.ts, 5, 875)) +>T53 : Symbol(T53, Decl(baseConstraintDepthCheckOrder.ts, 5, 892)) +>T53 : Symbol(T53, Decl(baseConstraintDepthCheckOrder.ts, 5, 892)) +>T54 : Symbol(T54, Decl(baseConstraintDepthCheckOrder.ts, 5, 909)) +>T54 : Symbol(T54, Decl(baseConstraintDepthCheckOrder.ts, 5, 909)) +>T55 : Symbol(T55, Decl(baseConstraintDepthCheckOrder.ts, 5, 926)) +>T55 : Symbol(T55, Decl(baseConstraintDepthCheckOrder.ts, 5, 926)) +>T56 : Symbol(T56, Decl(baseConstraintDepthCheckOrder.ts, 5, 943)) +>T56 : Symbol(T56, Decl(baseConstraintDepthCheckOrder.ts, 5, 943)) +>T57 : Symbol(T57, Decl(baseConstraintDepthCheckOrder.ts, 5, 960)) +>T57 : Symbol(T57, Decl(baseConstraintDepthCheckOrder.ts, 5, 960)) +>T58 : Symbol(T58, Decl(baseConstraintDepthCheckOrder.ts, 5, 977)) +>T58 : Symbol(T58, Decl(baseConstraintDepthCheckOrder.ts, 5, 977)) +>T59 : Symbol(T59, Decl(baseConstraintDepthCheckOrder.ts, 5, 994)) +>T59 : Symbol(T59, Decl(baseConstraintDepthCheckOrder.ts, 5, 994)) +>x : Symbol(x, Decl(baseConstraintDepthCheckOrder.ts, 5, 1015)) +>T0 : Symbol(T0, Decl(baseConstraintDepthCheckOrder.ts, 5, 11)) +>y : Symbol(y, Decl(baseConstraintDepthCheckOrder.ts, 5, 1021)) +>T20 : Symbol(T20, Decl(baseConstraintDepthCheckOrder.ts, 5, 331)) + + x.length; +>x : Symbol(x, Decl(baseConstraintDepthCheckOrder.ts, 5, 1015)) + + y.length; +>y : Symbol(y, Decl(baseConstraintDepthCheckOrder.ts, 5, 1021)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..fbc7735f18c4c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=default).types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/baseConstraintDepthCheckOrder.ts] //// + +=== baseConstraintDepthCheckOrder.ts === +// The base constraint of 'T0' is 60 type parameters deep and gives up after +// 50, while that of 'T20' is found 40 deep. Neither may depend on which was +// computed first: computing 'T0' first must not leave 'T20' without its +// constraint, and computing 'T20' first must not let 'T0' reuse it. + +function f(x: T0, y: T20) { +>f : (x: T0, y: T20) => void +>x : T0 +>y : T20 + + x.length; +>x.length : any +>x : T0 +>length : any + + y.length; +>y.length : any +>y : T20 +>length : any +} + diff --git a/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..9b381179dc902 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,145 @@ +//// [tests/cases/compiler/baseConstraintDepthCheckOrder.ts] //// + +=== baseConstraintDepthCheckOrder.ts === +// The base constraint of 'T0' is 60 type parameters deep and gives up after +// 50, while that of 'T20' is found 40 deep. Neither may depend on which was +// computed first: computing 'T0' first must not leave 'T20' without its +// constraint, and computing 'T20' first must not let 'T0' reuse it. + +function f(x: T0, y: T20) { +>f : Symbol(f, Decl(baseConstraintDepthCheckOrder.ts, 0, 0)) +>T0 : Symbol(T0, Decl(baseConstraintDepthCheckOrder.ts, 5, 11)) +>T1 : Symbol(T1, Decl(baseConstraintDepthCheckOrder.ts, 5, 25)) +>T1 : Symbol(T1, Decl(baseConstraintDepthCheckOrder.ts, 5, 25)) +>T2 : Symbol(T2, Decl(baseConstraintDepthCheckOrder.ts, 5, 40)) +>T2 : Symbol(T2, Decl(baseConstraintDepthCheckOrder.ts, 5, 40)) +>T3 : Symbol(T3, Decl(baseConstraintDepthCheckOrder.ts, 5, 55)) +>T3 : Symbol(T3, Decl(baseConstraintDepthCheckOrder.ts, 5, 55)) +>T4 : Symbol(T4, Decl(baseConstraintDepthCheckOrder.ts, 5, 70)) +>T4 : Symbol(T4, Decl(baseConstraintDepthCheckOrder.ts, 5, 70)) +>T5 : Symbol(T5, Decl(baseConstraintDepthCheckOrder.ts, 5, 85)) +>T5 : Symbol(T5, Decl(baseConstraintDepthCheckOrder.ts, 5, 85)) +>T6 : Symbol(T6, Decl(baseConstraintDepthCheckOrder.ts, 5, 100)) +>T6 : Symbol(T6, Decl(baseConstraintDepthCheckOrder.ts, 5, 100)) +>T7 : Symbol(T7, Decl(baseConstraintDepthCheckOrder.ts, 5, 115)) +>T7 : Symbol(T7, Decl(baseConstraintDepthCheckOrder.ts, 5, 115)) +>T8 : Symbol(T8, Decl(baseConstraintDepthCheckOrder.ts, 5, 130)) +>T8 : Symbol(T8, Decl(baseConstraintDepthCheckOrder.ts, 5, 130)) +>T9 : Symbol(T9, Decl(baseConstraintDepthCheckOrder.ts, 5, 145)) +>T9 : Symbol(T9, Decl(baseConstraintDepthCheckOrder.ts, 5, 145)) +>T10 : Symbol(T10, Decl(baseConstraintDepthCheckOrder.ts, 5, 161)) +>T10 : Symbol(T10, Decl(baseConstraintDepthCheckOrder.ts, 5, 161)) +>T11 : Symbol(T11, Decl(baseConstraintDepthCheckOrder.ts, 5, 178)) +>T11 : Symbol(T11, Decl(baseConstraintDepthCheckOrder.ts, 5, 178)) +>T12 : Symbol(T12, Decl(baseConstraintDepthCheckOrder.ts, 5, 195)) +>T12 : Symbol(T12, Decl(baseConstraintDepthCheckOrder.ts, 5, 195)) +>T13 : Symbol(T13, Decl(baseConstraintDepthCheckOrder.ts, 5, 212)) +>T13 : Symbol(T13, Decl(baseConstraintDepthCheckOrder.ts, 5, 212)) +>T14 : Symbol(T14, Decl(baseConstraintDepthCheckOrder.ts, 5, 229)) +>T14 : Symbol(T14, Decl(baseConstraintDepthCheckOrder.ts, 5, 229)) +>T15 : Symbol(T15, Decl(baseConstraintDepthCheckOrder.ts, 5, 246)) +>T15 : Symbol(T15, Decl(baseConstraintDepthCheckOrder.ts, 5, 246)) +>T16 : Symbol(T16, Decl(baseConstraintDepthCheckOrder.ts, 5, 263)) +>T16 : Symbol(T16, Decl(baseConstraintDepthCheckOrder.ts, 5, 263)) +>T17 : Symbol(T17, Decl(baseConstraintDepthCheckOrder.ts, 5, 280)) +>T17 : Symbol(T17, Decl(baseConstraintDepthCheckOrder.ts, 5, 280)) +>T18 : Symbol(T18, Decl(baseConstraintDepthCheckOrder.ts, 5, 297)) +>T18 : Symbol(T18, Decl(baseConstraintDepthCheckOrder.ts, 5, 297)) +>T19 : Symbol(T19, Decl(baseConstraintDepthCheckOrder.ts, 5, 314)) +>T19 : Symbol(T19, Decl(baseConstraintDepthCheckOrder.ts, 5, 314)) +>T20 : Symbol(T20, Decl(baseConstraintDepthCheckOrder.ts, 5, 331)) +>T20 : Symbol(T20, Decl(baseConstraintDepthCheckOrder.ts, 5, 331)) +>T21 : Symbol(T21, Decl(baseConstraintDepthCheckOrder.ts, 5, 348)) +>T21 : Symbol(T21, Decl(baseConstraintDepthCheckOrder.ts, 5, 348)) +>T22 : Symbol(T22, Decl(baseConstraintDepthCheckOrder.ts, 5, 365)) +>T22 : Symbol(T22, Decl(baseConstraintDepthCheckOrder.ts, 5, 365)) +>T23 : Symbol(T23, Decl(baseConstraintDepthCheckOrder.ts, 5, 382)) +>T23 : Symbol(T23, Decl(baseConstraintDepthCheckOrder.ts, 5, 382)) +>T24 : Symbol(T24, Decl(baseConstraintDepthCheckOrder.ts, 5, 399)) +>T24 : Symbol(T24, Decl(baseConstraintDepthCheckOrder.ts, 5, 399)) +>T25 : Symbol(T25, Decl(baseConstraintDepthCheckOrder.ts, 5, 416)) +>T25 : Symbol(T25, Decl(baseConstraintDepthCheckOrder.ts, 5, 416)) +>T26 : Symbol(T26, Decl(baseConstraintDepthCheckOrder.ts, 5, 433)) +>T26 : Symbol(T26, Decl(baseConstraintDepthCheckOrder.ts, 5, 433)) +>T27 : Symbol(T27, Decl(baseConstraintDepthCheckOrder.ts, 5, 450)) +>T27 : Symbol(T27, Decl(baseConstraintDepthCheckOrder.ts, 5, 450)) +>T28 : Symbol(T28, Decl(baseConstraintDepthCheckOrder.ts, 5, 467)) +>T28 : Symbol(T28, Decl(baseConstraintDepthCheckOrder.ts, 5, 467)) +>T29 : Symbol(T29, Decl(baseConstraintDepthCheckOrder.ts, 5, 484)) +>T29 : Symbol(T29, Decl(baseConstraintDepthCheckOrder.ts, 5, 484)) +>T30 : Symbol(T30, Decl(baseConstraintDepthCheckOrder.ts, 5, 501)) +>T30 : Symbol(T30, Decl(baseConstraintDepthCheckOrder.ts, 5, 501)) +>T31 : Symbol(T31, Decl(baseConstraintDepthCheckOrder.ts, 5, 518)) +>T31 : Symbol(T31, Decl(baseConstraintDepthCheckOrder.ts, 5, 518)) +>T32 : Symbol(T32, Decl(baseConstraintDepthCheckOrder.ts, 5, 535)) +>T32 : Symbol(T32, Decl(baseConstraintDepthCheckOrder.ts, 5, 535)) +>T33 : Symbol(T33, Decl(baseConstraintDepthCheckOrder.ts, 5, 552)) +>T33 : Symbol(T33, Decl(baseConstraintDepthCheckOrder.ts, 5, 552)) +>T34 : Symbol(T34, Decl(baseConstraintDepthCheckOrder.ts, 5, 569)) +>T34 : Symbol(T34, Decl(baseConstraintDepthCheckOrder.ts, 5, 569)) +>T35 : Symbol(T35, Decl(baseConstraintDepthCheckOrder.ts, 5, 586)) +>T35 : Symbol(T35, Decl(baseConstraintDepthCheckOrder.ts, 5, 586)) +>T36 : Symbol(T36, Decl(baseConstraintDepthCheckOrder.ts, 5, 603)) +>T36 : Symbol(T36, Decl(baseConstraintDepthCheckOrder.ts, 5, 603)) +>T37 : Symbol(T37, Decl(baseConstraintDepthCheckOrder.ts, 5, 620)) +>T37 : Symbol(T37, Decl(baseConstraintDepthCheckOrder.ts, 5, 620)) +>T38 : Symbol(T38, Decl(baseConstraintDepthCheckOrder.ts, 5, 637)) +>T38 : Symbol(T38, Decl(baseConstraintDepthCheckOrder.ts, 5, 637)) +>T39 : Symbol(T39, Decl(baseConstraintDepthCheckOrder.ts, 5, 654)) +>T39 : Symbol(T39, Decl(baseConstraintDepthCheckOrder.ts, 5, 654)) +>T40 : Symbol(T40, Decl(baseConstraintDepthCheckOrder.ts, 5, 671)) +>T40 : Symbol(T40, Decl(baseConstraintDepthCheckOrder.ts, 5, 671)) +>T41 : Symbol(T41, Decl(baseConstraintDepthCheckOrder.ts, 5, 688)) +>T41 : Symbol(T41, Decl(baseConstraintDepthCheckOrder.ts, 5, 688)) +>T42 : Symbol(T42, Decl(baseConstraintDepthCheckOrder.ts, 5, 705)) +>T42 : Symbol(T42, Decl(baseConstraintDepthCheckOrder.ts, 5, 705)) +>T43 : Symbol(T43, Decl(baseConstraintDepthCheckOrder.ts, 5, 722)) +>T43 : Symbol(T43, Decl(baseConstraintDepthCheckOrder.ts, 5, 722)) +>T44 : Symbol(T44, Decl(baseConstraintDepthCheckOrder.ts, 5, 739)) +>T44 : Symbol(T44, Decl(baseConstraintDepthCheckOrder.ts, 5, 739)) +>T45 : Symbol(T45, Decl(baseConstraintDepthCheckOrder.ts, 5, 756)) +>T45 : Symbol(T45, Decl(baseConstraintDepthCheckOrder.ts, 5, 756)) +>T46 : Symbol(T46, Decl(baseConstraintDepthCheckOrder.ts, 5, 773)) +>T46 : Symbol(T46, Decl(baseConstraintDepthCheckOrder.ts, 5, 773)) +>T47 : Symbol(T47, Decl(baseConstraintDepthCheckOrder.ts, 5, 790)) +>T47 : Symbol(T47, Decl(baseConstraintDepthCheckOrder.ts, 5, 790)) +>T48 : Symbol(T48, Decl(baseConstraintDepthCheckOrder.ts, 5, 807)) +>T48 : Symbol(T48, Decl(baseConstraintDepthCheckOrder.ts, 5, 807)) +>T49 : Symbol(T49, Decl(baseConstraintDepthCheckOrder.ts, 5, 824)) +>T49 : Symbol(T49, Decl(baseConstraintDepthCheckOrder.ts, 5, 824)) +>T50 : Symbol(T50, Decl(baseConstraintDepthCheckOrder.ts, 5, 841)) +>T50 : Symbol(T50, Decl(baseConstraintDepthCheckOrder.ts, 5, 841)) +>T51 : Symbol(T51, Decl(baseConstraintDepthCheckOrder.ts, 5, 858)) +>T51 : Symbol(T51, Decl(baseConstraintDepthCheckOrder.ts, 5, 858)) +>T52 : Symbol(T52, Decl(baseConstraintDepthCheckOrder.ts, 5, 875)) +>T52 : Symbol(T52, Decl(baseConstraintDepthCheckOrder.ts, 5, 875)) +>T53 : Symbol(T53, Decl(baseConstraintDepthCheckOrder.ts, 5, 892)) +>T53 : Symbol(T53, Decl(baseConstraintDepthCheckOrder.ts, 5, 892)) +>T54 : Symbol(T54, Decl(baseConstraintDepthCheckOrder.ts, 5, 909)) +>T54 : Symbol(T54, Decl(baseConstraintDepthCheckOrder.ts, 5, 909)) +>T55 : Symbol(T55, Decl(baseConstraintDepthCheckOrder.ts, 5, 926)) +>T55 : Symbol(T55, Decl(baseConstraintDepthCheckOrder.ts, 5, 926)) +>T56 : Symbol(T56, Decl(baseConstraintDepthCheckOrder.ts, 5, 943)) +>T56 : Symbol(T56, Decl(baseConstraintDepthCheckOrder.ts, 5, 943)) +>T57 : Symbol(T57, Decl(baseConstraintDepthCheckOrder.ts, 5, 960)) +>T57 : Symbol(T57, Decl(baseConstraintDepthCheckOrder.ts, 5, 960)) +>T58 : Symbol(T58, Decl(baseConstraintDepthCheckOrder.ts, 5, 977)) +>T58 : Symbol(T58, Decl(baseConstraintDepthCheckOrder.ts, 5, 977)) +>T59 : Symbol(T59, Decl(baseConstraintDepthCheckOrder.ts, 5, 994)) +>T59 : Symbol(T59, Decl(baseConstraintDepthCheckOrder.ts, 5, 994)) +>x : Symbol(x, Decl(baseConstraintDepthCheckOrder.ts, 5, 1015)) +>T0 : Symbol(T0, Decl(baseConstraintDepthCheckOrder.ts, 5, 11)) +>y : Symbol(y, Decl(baseConstraintDepthCheckOrder.ts, 5, 1021)) +>T20 : Symbol(T20, Decl(baseConstraintDepthCheckOrder.ts, 5, 331)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(baseConstraintDepthCheckOrder.ts, 5, 1015)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + y.length; +>y.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>y : Symbol(y, Decl(baseConstraintDepthCheckOrder.ts, 5, 1021)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..0fb24141449cc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/baseConstraintDepthCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/baseConstraintDepthCheckOrder.ts] //// + +=== baseConstraintDepthCheckOrder.ts === +// The base constraint of 'T0' is 60 type parameters deep and gives up after +// 50, while that of 'T20' is found 40 deep. Neither may depend on which was +// computed first: computing 'T0' first must not leave 'T20' without its +// constraint, and computing 'T20' first must not let 'T0' reuse it. + +function f(x: T0, y: T20) { +>f : (x: T0, y: T20) => void +>x : T0 +>y : T20 + + x.length; +>x.length : number +>x : T0 +>length : number + + y.length; +>y.length : number +>y : T20 +>length : number +} + diff --git a/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).errors.txt new file mode 100644 index 0000000000000..5a959d4e04b62 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).errors.txt @@ -0,0 +1,69 @@ +badExport.ts(1,10): error TS2304: Cannot find name 'foo'. +badExport.ts(1,17): error TS1003: Identifier expected. +badExport.ts(1,20): error TS1128: Declaration or statement expected. +badExport2.ts(1,10): error TS1003: Identifier expected. +badExport2.ts(1,16): error TS2304: Cannot find name 'foo'. +badExport2.ts(1,20): error TS1128: Declaration or statement expected. +badImport.ts(1,10): error TS1003: Identifier expected. +badImport.ts(1,10): error TS1141: String literal expected. +badImport.ts(1,20): error TS1128: Declaration or statement expected. +badImport.ts(1,22): error TS1434: Unexpected keyword or identifier. +badImport.ts(1,22): error TS2304: Cannot find name 'from'. +badImport2.ts(1,17): error TS1003: Identifier expected. +badImport2.ts(1,17): error TS1141: String literal expected. +badImport2.ts(1,20): error TS1128: Declaration or statement expected. +badImport2.ts(1,22): error TS1434: Unexpected keyword or identifier. +badImport2.ts(1,22): error TS2304: Cannot find name 'from'. + + +==== foo.ts (0 errors) ==== + const foo = 0n; + export { foo as "0n" }; + +==== correctUse.ts (0 errors) ==== + import { "0n" as foo } from "./foo"; + export { foo as "0n" }; + +==== badImport.ts (5 errors) ==== + import { 0n as foo } from "./foo"; + ~~ +!!! error TS1003: Identifier expected. + ~~~~~~~~~ +!!! error TS1141: String literal expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~~~~ +!!! error TS1434: Unexpected keyword or identifier. + ~~~~ +!!! error TS2304: Cannot find name 'from'. + +==== badImport2.ts (5 errors) ==== + import { foo as 0n } from "./foo"; + ~~ +!!! error TS1003: Identifier expected. + ~~ +!!! error TS1141: String literal expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~~~~ +!!! error TS1434: Unexpected keyword or identifier. + ~~~~ +!!! error TS2304: Cannot find name 'from'. + +==== badExport.ts (3 errors) ==== + export { foo as 0n }; + ~~~ +!!! error TS2304: Cannot find name 'foo'. + ~~ +!!! error TS1003: Identifier expected. + ~ +!!! error TS1128: Declaration or statement expected. + +==== badExport2.ts (3 errors) ==== + export { 0n as foo }; + ~~ +!!! error TS1003: Identifier expected. + ~~~ +!!! error TS2304: Cannot find name 'foo'. + ~ +!!! error TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).js new file mode 100644 index 0000000000000..139c1991c8c3f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).js @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/bigintArbirtraryIdentifier.ts] //// + +//// [foo.ts] +const foo = 0n; +export { foo as "0n" }; + +//// [correctUse.ts] +import { "0n" as foo } from "./foo"; +export { foo as "0n" }; + +//// [badImport.ts] +import { 0n as foo } from "./foo"; + +//// [badImport2.ts] +import { foo as 0n } from "./foo"; + +//// [badExport.ts] +export { foo as 0n }; + +//// [badExport2.ts] +export { 0n as foo }; + +//// [foo.js] +const foo = 0n; +export { foo as "0n" }; +//// [correctUse.js] +import { "0n" as foo } from "./foo"; +export { foo as "0n" }; +//// [badImport.js] +from; +"./foo"; +export {}; +//// [badImport2.js] +from; +"./foo"; +export {}; +//// [badExport.js] +export { foo as }; +0n; +; +//// [badExport2.js] +0n; +; +export {}; diff --git a/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).symbols new file mode 100644 index 0000000000000..8ef83a9eaec97 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/bigintArbirtraryIdentifier.ts] //// + +=== foo.ts === +const foo = 0n; +>foo : Symbol(foo, Decl(foo.ts, 0, 5)) + +export { foo as "0n" }; +>foo : Symbol(foo, Decl(foo.ts, 0, 5)) +>"0n" : Symbol("0n", Decl(foo.ts, 1, 8)) + +=== correctUse.ts === +import { "0n" as foo } from "./foo"; +>foo : Symbol(foo, Decl(correctUse.ts, 0, 8)) + +export { foo as "0n" }; +>foo : Symbol(foo, Decl(correctUse.ts, 0, 8)) +>"0n" : Symbol("0n", Decl(correctUse.ts, 1, 8)) + +=== badImport.ts === +import { 0n as foo } from "./foo"; +>foo : Symbol(foo) + +=== badImport2.ts === +import { foo as 0n } from "./foo"; +> : Symbol((Missing), Decl(badImport2.ts, 0, 8)) + +=== badExport.ts === +export { foo as 0n }; +> : Symbol((Missing), Decl(badExport.ts, 0, 8)) + +=== badExport2.ts === +export { 0n as foo }; +>foo : Symbol(foo) + diff --git a/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).types new file mode 100644 index 0000000000000..c3f2d2ceb5859 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=default).types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/bigintArbirtraryIdentifier.ts] //// + +=== foo.ts === +const foo = 0n; +>foo : 0n +>0n : 0n + +export { foo as "0n" }; +>foo : 0n +>"0n" : 0n + +=== correctUse.ts === +import { "0n" as foo } from "./foo"; +>foo : 0n + +export { foo as "0n" }; +>foo : 0n +>"0n" : 0n + +=== badImport.ts === +import { 0n as foo } from "./foo"; +>0n as foo : foo +>0n : 0n +>from : any +>"./foo" : "./foo" + +=== badImport2.ts === +import { foo as 0n } from "./foo"; +>foo : any +> : any +>from : any +>"./foo" : "./foo" + +=== badExport.ts === +export { foo as 0n }; +>foo : any +> : any +>0n : 0n + +=== badExport2.ts === +export { 0n as foo }; +>0n as foo : foo +>0n : 0n + diff --git a/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..e70af53237c1f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).errors.txt @@ -0,0 +1,72 @@ +badExport.ts(1,10): error TS2304: Cannot find name 'foo'. +badExport.ts(1,17): error TS1003: Identifier expected. +badExport.ts(1,20): error TS1128: Declaration or statement expected. +badExport2.ts(1,10): error TS1003: Identifier expected. +badExport2.ts(1,16): error TS2304: Cannot find name 'foo'. +badExport2.ts(1,20): error TS1128: Declaration or statement expected. +badImport.ts(1,10): error TS1003: Identifier expected. +badImport.ts(1,10): error TS1141: String literal expected. +badImport.ts(1,16): error TS2304: Cannot find name 'foo'. +badImport.ts(1,20): error TS1128: Declaration or statement expected. +badImport.ts(1,22): error TS1434: Unexpected keyword or identifier. +badImport.ts(1,22): error TS2304: Cannot find name 'from'. +badImport2.ts(1,17): error TS1003: Identifier expected. +badImport2.ts(1,17): error TS1141: String literal expected. +badImport2.ts(1,20): error TS1128: Declaration or statement expected. +badImport2.ts(1,22): error TS1434: Unexpected keyword or identifier. +badImport2.ts(1,22): error TS2304: Cannot find name 'from'. + + +==== foo.ts (0 errors) ==== + const foo = 0n; + export { foo as "0n" }; + +==== correctUse.ts (0 errors) ==== + import { "0n" as foo } from "./foo"; + export { foo as "0n" }; + +==== badImport.ts (6 errors) ==== + import { 0n as foo } from "./foo"; + ~~ +!!! error TS1003: Identifier expected. + ~~~~~~~~~ +!!! error TS1141: String literal expected. + ~~~ +!!! error TS2304: Cannot find name 'foo'. + ~ +!!! error TS1128: Declaration or statement expected. + ~~~~ +!!! error TS1434: Unexpected keyword or identifier. + ~~~~ +!!! error TS2304: Cannot find name 'from'. + +==== badImport2.ts (5 errors) ==== + import { foo as 0n } from "./foo"; + ~~ +!!! error TS1003: Identifier expected. + ~~ +!!! error TS1141: String literal expected. + ~ +!!! error TS1128: Declaration or statement expected. + ~~~~ +!!! error TS1434: Unexpected keyword or identifier. + ~~~~ +!!! error TS2304: Cannot find name 'from'. + +==== badExport.ts (3 errors) ==== + export { foo as 0n }; + ~~~ +!!! error TS2304: Cannot find name 'foo'. + ~~ +!!! error TS1003: Identifier expected. + ~ +!!! error TS1128: Declaration or statement expected. + +==== badExport2.ts (3 errors) ==== + export { 0n as foo }; + ~~ +!!! error TS1003: Identifier expected. + ~~~ +!!! error TS2304: Cannot find name 'foo'. + ~ +!!! error TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).js new file mode 100644 index 0000000000000..139c1991c8c3f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).js @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/bigintArbirtraryIdentifier.ts] //// + +//// [foo.ts] +const foo = 0n; +export { foo as "0n" }; + +//// [correctUse.ts] +import { "0n" as foo } from "./foo"; +export { foo as "0n" }; + +//// [badImport.ts] +import { 0n as foo } from "./foo"; + +//// [badImport2.ts] +import { foo as 0n } from "./foo"; + +//// [badExport.ts] +export { foo as 0n }; + +//// [badExport2.ts] +export { 0n as foo }; + +//// [foo.js] +const foo = 0n; +export { foo as "0n" }; +//// [correctUse.js] +import { "0n" as foo } from "./foo"; +export { foo as "0n" }; +//// [badImport.js] +from; +"./foo"; +export {}; +//// [badImport2.js] +from; +"./foo"; +export {}; +//// [badExport.js] +export { foo as }; +0n; +; +//// [badExport2.js] +0n; +; +export {}; diff --git a/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..8ef83a9eaec97 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/bigintArbirtraryIdentifier.ts] //// + +=== foo.ts === +const foo = 0n; +>foo : Symbol(foo, Decl(foo.ts, 0, 5)) + +export { foo as "0n" }; +>foo : Symbol(foo, Decl(foo.ts, 0, 5)) +>"0n" : Symbol("0n", Decl(foo.ts, 1, 8)) + +=== correctUse.ts === +import { "0n" as foo } from "./foo"; +>foo : Symbol(foo, Decl(correctUse.ts, 0, 8)) + +export { foo as "0n" }; +>foo : Symbol(foo, Decl(correctUse.ts, 0, 8)) +>"0n" : Symbol("0n", Decl(correctUse.ts, 1, 8)) + +=== badImport.ts === +import { 0n as foo } from "./foo"; +>foo : Symbol(foo) + +=== badImport2.ts === +import { foo as 0n } from "./foo"; +> : Symbol((Missing), Decl(badImport2.ts, 0, 8)) + +=== badExport.ts === +export { foo as 0n }; +> : Symbol((Missing), Decl(badExport.ts, 0, 8)) + +=== badExport2.ts === +export { 0n as foo }; +>foo : Symbol(foo) + diff --git a/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).types new file mode 100644 index 0000000000000..c3f2d2ceb5859 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/bigintArbirtraryIdentifier(checkorder=typesfirst).types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/bigintArbirtraryIdentifier.ts] //// + +=== foo.ts === +const foo = 0n; +>foo : 0n +>0n : 0n + +export { foo as "0n" }; +>foo : 0n +>"0n" : 0n + +=== correctUse.ts === +import { "0n" as foo } from "./foo"; +>foo : 0n + +export { foo as "0n" }; +>foo : 0n +>"0n" : 0n + +=== badImport.ts === +import { 0n as foo } from "./foo"; +>0n as foo : foo +>0n : 0n +>from : any +>"./foo" : "./foo" + +=== badImport2.ts === +import { foo as 0n } from "./foo"; +>foo : any +> : any +>from : any +>"./foo" : "./foo" + +=== badExport.ts === +export { foo as 0n }; +>foo : any +> : any +>0n : 0n + +=== badExport2.ts === +export { 0n as foo }; +>0n as foo : foo +>0n : 0n + diff --git a/tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.errors.txt b/tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.errors.txt new file mode 100644 index 0000000000000..e537c857eb57a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.errors.txt @@ -0,0 +1,86 @@ +boundedRecursiveTypeInferredThroughClosure.ts(79,12): error TS5115: Instantiations of the following types appear infinitely circular: 'InferData', 'UnpackKeyValue'. + + +==== boundedRecursiveTypeInferredThroughClosure.ts (1 errors) ==== + // The recursion of InferData and UnpackKeyValue is bounded by Next, so + // inferring it through a closure must not report it as infinite. + + type Prettify = { [K in keyof T]: T[K] } & {}; + type ExtractUndefined = { [K in keyof T]: undefined extends T[K] ? K : never }[keyof T]; + type ExtractDefined = { [K in keyof T]: undefined extends T[K] ? never : K }[keyof T]; + type Next = [1, 2, 3, 4, 5, 6]; + type JSONPrimitives = string | number | bigint | boolean | null | undefined; + type JSONValues = JSONPrimitives | CanBeSerialized; + type CanBeSerialized = { + toJSON(): T; + }; + type JSONDataTypes = JSONValues | JSONDataTypes[] | { + [key: string]: JSONDataTypes; + }; + type SerializeJSONObject = { + [K in ExtractDefined]: SerializeJSONTypes; + } & { + [K in ExtractUndefined]?: SerializeJSONTypes; + }; + interface ExtendedJSONTypes { + } + type NonAllowedJSTypes = Map | Set; + type ForcefullyAllowedTypes = { + [K in keyof ExtendedJSONTypes]: ExtendedJSONTypes[K]; + }[keyof ExtendedJSONTypes]; + type SerializeJSONOwnTypes = T extends JSONPrimitives ? T : T extends ForcefullyAllowedTypes ? T : T extends NonAllowedJSTypes ? never : T extends Array ? Array> : T extends object ? Prettify> : never; + type SerializeJSONTypes = T extends ForcefullyAllowedTypes ? T : T extends CanBeSerialized ? SerializeJSONOwnTypes : SerializeJSONOwnTypes; + interface ItemContract, MaxDepth extends Next[number], Variant extends string> { + $type: 'item'; + transformer: { + new (...args: any[]): Transformer; + }; + maxDepth: MaxDepth; + variant: Variant; + } + type UnpackKeyValue = [Value[0]] extends [never] ? SerializeJSONTypes : Value[0] extends ItemContract ? InferData | SerializeJSONTypes : SerializeJSONTypes; + type LimitDepth = [ + Value + ] extends [never] ? Key : Value extends ItemContract ? MaxDepth extends Depth ? never : Key : Key; + type UnpackOptionalValues = { + [O in { + [K in keyof Data]: [undefined] extends [Data[K]] ? LimitDepth[0], MaxDepth, Depth> : never; + }[keyof Data]]?: UnpackKeyValue, MaxDepth, Depth>; + }; + type UnpackRequiredValues = { + [O in { + [K in keyof Data]: [undefined] extends [Data[K]] ? never : LimitDepth[0], MaxDepth, Depth>; + }[keyof Data]]: UnpackKeyValue, MaxDepth, Depth>; + }; + type SplitItm = [ + Extract>, + Exclude> + ]; + type UnpackAsTopLevelItem = T extends ItemContract ? InferData : never; + type UnpackValues = Prettify & UnpackOptionalValues>; + type InferData = Transformer extends { + [K in Variant]: (...args: any[]) => unknown; + } ? UnpackValues>, MaxDepth, Depth> : never; + declare class Item, MaxDepth extends Next[number], Variant extends string> { + transformer: { new (...args: any[]): Transformer }; + maxDepth: MaxDepth; + variant: Variant; + $type: 'item'; + resolve(): Promise>; + } + type Ctor = { new (resource: any, ...rest: any[]): any }; + declare abstract class BaseTransformer { + static transform(this: Self, data: ConstructorParameters[0]): Item, 1, 'toObject'>; + constructor(resource: T); + } + class Size { + } + class SizeTransformer extends BaseTransformer { + toObject() { + } + } + declare function once(value: T): T; + once(() => SizeTransformer.transform(new Size())); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5115: Instantiations of the following types appear infinitely circular: 'InferData', 'UnpackKeyValue'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.symbols b/tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.symbols new file mode 100644 index 0000000000000..12f0269e1ddb6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.symbols @@ -0,0 +1,424 @@ +//// [tests/cases/compiler/boundedRecursiveTypeInferredThroughClosure.ts] //// + +=== boundedRecursiveTypeInferredThroughClosure.ts === +// The recursion of InferData and UnpackKeyValue is bounded by Next, so +// inferring it through a closure must not report it as infinite. + +type Prettify = { [K in keyof T]: T[K] } & {}; +>Prettify : Symbol(Prettify, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 0, 0)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 3, 14)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 3, 22)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 3, 14)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 3, 14)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 3, 22)) + +type ExtractUndefined = { [K in keyof T]: undefined extends T[K] ? K : never }[keyof T]; +>ExtractUndefined : Symbol(ExtractUndefined, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 3, 49)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 4, 22)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 4, 30)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 4, 22)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 4, 22)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 4, 30)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 4, 30)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 4, 22)) + +type ExtractDefined = { [K in keyof T]: undefined extends T[K] ? never : K }[keyof T]; +>ExtractDefined : Symbol(ExtractDefined, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 4, 91)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 20)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 28)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 20)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 20)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 28)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 28)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 20)) + +type Next = [1, 2, 3, 4, 5, 6]; +>Next : Symbol(Next, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 89)) + +type JSONPrimitives = string | number | bigint | boolean | null | undefined; +>JSONPrimitives : Symbol(JSONPrimitives, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 6, 31)) + +type JSONValues = JSONPrimitives | CanBeSerialized; +>JSONValues : Symbol(JSONValues, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 7, 76)) +>JSONPrimitives : Symbol(JSONPrimitives, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 6, 31)) +>CanBeSerialized : Symbol(CanBeSerialized, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 8, 56)) + +type CanBeSerialized = { +>CanBeSerialized : Symbol(CanBeSerialized, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 8, 56)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 9, 21)) +>JSONDataTypes : Symbol(JSONDataTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 11, 2)) + + toJSON(): T; +>toJSON : Symbol(toJSON, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 9, 49)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 9, 21)) + +}; +type JSONDataTypes = JSONValues | JSONDataTypes[] | { +>JSONDataTypes : Symbol(JSONDataTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 11, 2)) +>JSONValues : Symbol(JSONValues, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 7, 76)) +>JSONDataTypes : Symbol(JSONDataTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 11, 2)) + + [key: string]: JSONDataTypes; +>key : Symbol(key, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 13, 5)) +>JSONDataTypes : Symbol(JSONDataTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 11, 2)) + +}; +type SerializeJSONObject = { +>SerializeJSONObject : Symbol(SerializeJSONObject, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 14, 2)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 15, 25)) + + [K in ExtractDefined]: SerializeJSONTypes; +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 16, 5)) +>ExtractDefined : Symbol(ExtractDefined, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 4, 91)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 15, 25)) +>SerializeJSONTypes : Symbol(SerializeJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 264)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 15, 25)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 16, 5)) + +} & { + [K in ExtractUndefined]?: SerializeJSONTypes; +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 18, 5)) +>ExtractUndefined : Symbol(ExtractUndefined, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 3, 49)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 15, 25)) +>SerializeJSONTypes : Symbol(SerializeJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 264)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 15, 25)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 18, 5)) + +}; +interface ExtendedJSONTypes { +>ExtendedJSONTypes : Symbol(ExtendedJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 19, 2)) +} +type NonAllowedJSTypes = Map | Set; +>NonAllowedJSTypes : Symbol(NonAllowedJSTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 21, 1)) +>Map : Symbol(Map, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2026.collection.d.ts, --, --)) +>Set : Symbol(Set, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2025.collection.d.ts, --, --)) + +type ForcefullyAllowedTypes = { +>ForcefullyAllowedTypes : Symbol(ForcefullyAllowedTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 22, 50)) + + [K in keyof ExtendedJSONTypes]: ExtendedJSONTypes[K]; +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 24, 5)) +>ExtendedJSONTypes : Symbol(ExtendedJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 19, 2)) +>ExtendedJSONTypes : Symbol(ExtendedJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 19, 2)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 24, 5)) + +}[keyof ExtendedJSONTypes]; +>ExtendedJSONTypes : Symbol(ExtendedJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 19, 2)) + +type SerializeJSONOwnTypes = T extends JSONPrimitives ? T : T extends ForcefullyAllowedTypes ? T : T extends NonAllowedJSTypes ? never : T extends Array ? Array> : T extends object ? Prettify> : never; +>SerializeJSONOwnTypes : Symbol(SerializeJSONOwnTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 25, 27)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 27)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 27)) +>JSONPrimitives : Symbol(JSONPrimitives, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 6, 31)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 27)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 27)) +>ForcefullyAllowedTypes : Symbol(ForcefullyAllowedTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 22, 50)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 27)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 27)) +>NonAllowedJSTypes : Symbol(NonAllowedJSTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 21, 1)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 27)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>item : Symbol(item, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 161)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>SerializeJSONTypes : Symbol(SerializeJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 264)) +>item : Symbol(item, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 161)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 27)) +>Prettify : Symbol(Prettify, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 0, 0)) +>SerializeJSONObject : Symbol(SerializeJSONObject, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 14, 2)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 27)) + +type SerializeJSONTypes = T extends ForcefullyAllowedTypes ? T : T extends CanBeSerialized ? SerializeJSONOwnTypes : SerializeJSONOwnTypes; +>SerializeJSONTypes : Symbol(SerializeJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 264)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 24)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 24)) +>ForcefullyAllowedTypes : Symbol(ForcefullyAllowedTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 22, 50)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 24)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 24)) +>CanBeSerialized : Symbol(CanBeSerialized, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 8, 56)) +>A : Symbol(A, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 99)) +>SerializeJSONOwnTypes : Symbol(SerializeJSONOwnTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 25, 27)) +>A : Symbol(A, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 99)) +>SerializeJSONOwnTypes : Symbol(SerializeJSONOwnTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 25, 27)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 24)) + +interface ItemContract, MaxDepth extends Next[number], Variant extends string> { +>ItemContract : Symbol(ItemContract, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 157)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 28, 23)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 28, 63)) +>Next : Symbol(Next, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 89)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 28, 94)) + + $type: 'item'; +>$type : Symbol(ItemContract.$type, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 28, 120)) + + transformer: { +>transformer : Symbol(ItemContract.transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 29, 18)) + + new (...args: any[]): Transformer; +>args : Symbol(args, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 31, 13)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 28, 23)) + + }; + maxDepth: MaxDepth; +>maxDepth : Symbol(ItemContract.maxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 32, 6)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 28, 63)) + + variant: Variant; +>variant : Symbol(ItemContract.variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 33, 23)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 28, 94)) +} +type UnpackKeyValue = [Value[0]] extends [never] ? SerializeJSONTypes : Value[0] extends ItemContract ? InferData | SerializeJSONTypes : SerializeJSONTypes; +>UnpackKeyValue : Symbol(UnpackKeyValue, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 35, 1)) +>Value : Symbol(Value, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 20)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 45)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 70)) +>Value : Symbol(Value, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 20)) +>SerializeJSONTypes : Symbol(SerializeJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 264)) +>Value : Symbol(Value, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 20)) +>Value : Symbol(Value, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 20)) +>ItemContract : Symbol(ItemContract, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 157)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 190)) +>LocalMaxDepth : Symbol(LocalMaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 209)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 230)) +>InferData : Symbol(InferData, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 173)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 190)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 230)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 45)) +>LocalMaxDepth : Symbol(LocalMaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 209)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 45)) +>Next : Symbol(Next, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 89)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 70)) +>SerializeJSONTypes : Symbol(SerializeJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 264)) +>Value : Symbol(Value, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 20)) +>SerializeJSONTypes : Symbol(SerializeJSONTypes, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 26, 264)) +>Value : Symbol(Value, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 20)) + +type LimitDepth = [ +>LimitDepth : Symbol(LimitDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 397)) +>Key : Symbol(Key, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 16)) +>Value : Symbol(Value, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 20)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 27)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 52)) + + Value +>Value : Symbol(Value, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 20)) + +] extends [never] ? Key : Value extends ItemContract ? MaxDepth extends Depth ? never : Key : Key; +>Key : Symbol(Key, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 16)) +>Value : Symbol(Value, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 20)) +>ItemContract : Symbol(ItemContract, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 157)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 27)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 52)) +>Key : Symbol(Key, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 16)) +>Key : Symbol(Key, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 37, 16)) + +type UnpackOptionalValues = { +>UnpackOptionalValues : Symbol(UnpackOptionalValues, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 39, 113)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 26)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 31)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 56)) + + [O in { +>O : Symbol(O, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 41, 5)) + + [K in keyof Data]: [undefined] extends [Data[K]] ? LimitDepth[0], MaxDepth, Depth> : never; +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 42, 9)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 26)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 26)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 42, 9)) +>LimitDepth : Symbol(LimitDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 397)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 42, 9)) +>SplitItm : Symbol(SplitItm, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 49, 2)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 26)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 42, 9)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 31)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 56)) + + }[keyof Data]]?: UnpackKeyValue, MaxDepth, Depth>; +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 26)) +>UnpackKeyValue : Symbol(UnpackKeyValue, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 35, 1)) +>SplitItm : Symbol(SplitItm, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 49, 2)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 26)) +>O : Symbol(O, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 41, 5)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 31)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 40, 56)) + +}; +type UnpackRequiredValues = { +>UnpackRequiredValues : Symbol(UnpackRequiredValues, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 44, 2)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 26)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 31)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 56)) + + [O in { +>O : Symbol(O, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 46, 5)) + + [K in keyof Data]: [undefined] extends [Data[K]] ? never : LimitDepth[0], MaxDepth, Depth>; +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 47, 9)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 26)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 26)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 47, 9)) +>LimitDepth : Symbol(LimitDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 36, 397)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 47, 9)) +>SplitItm : Symbol(SplitItm, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 49, 2)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 26)) +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 47, 9)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 31)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 56)) + + }[keyof Data]]: UnpackKeyValue, MaxDepth, Depth>; +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 26)) +>UnpackKeyValue : Symbol(UnpackKeyValue, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 35, 1)) +>SplitItm : Symbol(SplitItm, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 49, 2)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 26)) +>O : Symbol(O, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 46, 5)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 31)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 45, 56)) + +}; +type SplitItm = [ +>SplitItm : Symbol(SplitItm, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 49, 2)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 50, 14)) + + Extract>, +>Extract : Symbol(Extract, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 50, 14)) +>ItemContract : Symbol(ItemContract, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 157)) + + Exclude> +>Exclude : Symbol(Exclude, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 50, 14)) +>ItemContract : Symbol(ItemContract, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 157)) + +]; +type UnpackAsTopLevelItem = T extends ItemContract ? InferData : never; +>UnpackAsTopLevelItem : Symbol(UnpackAsTopLevelItem, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 53, 2)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 54, 26)) +>Wrapper : Symbol(Wrapper, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 54, 28)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 54, 26)) +>ItemContract : Symbol(ItemContract, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 27, 157)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 54, 95)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 54, 119)) +>InferData : Symbol(InferData, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 173)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 54, 95)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 54, 119)) + +type UnpackValues = Prettify & UnpackOptionalValues>; +>UnpackValues : Symbol(UnpackValues, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 54, 178)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 18)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 23)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 48)) +>Prettify : Symbol(Prettify, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 0, 0)) +>UnpackRequiredValues : Symbol(UnpackRequiredValues, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 44, 2)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 18)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 23)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 48)) +>UnpackOptionalValues : Symbol(UnpackOptionalValues, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 39, 113)) +>Data : Symbol(Data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 18)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 23)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 48)) + +type InferData = Transformer extends { +>InferData : Symbol(InferData, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 55, 173)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 56, 15)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 56, 27)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 56, 64)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 56, 94)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 56, 15)) + + [K in Variant]: (...args: any[]) => unknown; +>K : Symbol(K, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 57, 5)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 56, 27)) +>args : Symbol(args, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 57, 21)) + +} ? UnpackValues>, MaxDepth, Depth> : never; +>UnpackValues : Symbol(UnpackValues, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 54, 178)) +>Awaited : Symbol(Awaited, Decl(lib.es5.d.ts, --, --)) +>ReturnType : Symbol(ReturnType, Decl(lib.es5.d.ts, --, --)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 56, 15)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 56, 27)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 56, 64)) +>Depth : Symbol(Depth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 56, 94)) + +declare class Item, MaxDepth extends Next[number], Variant extends string> { +>Item : Symbol(Item, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 58, 85)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 59, 19)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 59, 59)) +>Next : Symbol(Next, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 5, 89)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 59, 90)) + + transformer: { new (...args: any[]): Transformer }; +>transformer : Symbol(Item.transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 59, 116)) +>args : Symbol(args, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 60, 21)) +>Transformer : Symbol(Transformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 59, 19)) + + maxDepth: MaxDepth; +>maxDepth : Symbol(Item.maxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 60, 52)) +>MaxDepth : Symbol(MaxDepth, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 59, 59)) + + variant: Variant; +>variant : Symbol(Item.variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 61, 20)) +>Variant : Symbol(Variant, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 59, 90)) + + $type: 'item'; +>$type : Symbol(Item.$type, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 62, 18)) + + resolve(): Promise>; +>resolve : Symbol(Item.resolve, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 63, 15)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>UnpackAsTopLevelItem : Symbol(UnpackAsTopLevelItem, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 53, 2)) +} +type Ctor = { new (resource: any, ...rest: any[]): any }; +>Ctor : Symbol(Ctor, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 65, 1)) +>resource : Symbol(resource, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 66, 19)) +>rest : Symbol(rest, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 66, 33)) + +declare abstract class BaseTransformer { +>BaseTransformer : Symbol(BaseTransformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 66, 57)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 67, 39)) + + static transform(this: Self, data: ConstructorParameters[0]): Item, 1, 'toObject'>; +>transform : Symbol(BaseTransformer.transform, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 67, 43)) +>Self : Symbol(Self, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 68, 18)) +>Ctor : Symbol(Ctor, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 65, 1)) +>this : Symbol(this, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 68, 37)) +>Self : Symbol(Self, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 68, 18)) +>data : Symbol(data, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 68, 48)) +>ConstructorParameters : Symbol(ConstructorParameters, Decl(lib.es5.d.ts, --, --)) +>Self : Symbol(Self, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 68, 18)) +>Item : Symbol(Item, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 58, 85)) +>InstanceType : Symbol(InstanceType, Decl(lib.es5.d.ts, --, --)) +>Self : Symbol(Self, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 68, 18)) + + constructor(resource: T); +>resource : Symbol(resource, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 69, 13)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 67, 39)) +} +class Size { +>Size : Symbol(Size, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 70, 1)) +} +class SizeTransformer extends BaseTransformer { +>SizeTransformer : Symbol(SizeTransformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 72, 1)) +>BaseTransformer : Symbol(BaseTransformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 66, 57)) +>Size : Symbol(Size, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 70, 1)) + + toObject() { +>toObject : Symbol(SizeTransformer.toObject, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 73, 53)) + } +} +declare function once(value: T): T; +>once : Symbol(once, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 76, 1)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 77, 22)) +>value : Symbol(value, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 77, 25)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 77, 22)) +>T : Symbol(T, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 77, 22)) + +once(() => SizeTransformer.transform(new Size())); +>once : Symbol(once, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 76, 1)) +>SizeTransformer.transform : Symbol(BaseTransformer.transform, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 67, 43)) +>SizeTransformer : Symbol(SizeTransformer, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 72, 1)) +>transform : Symbol(BaseTransformer.transform, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 67, 43)) +>Size : Symbol(Size, Decl(boundedRecursiveTypeInferredThroughClosure.ts, 70, 1)) + diff --git a/tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.types b/tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.types new file mode 100644 index 0000000000000..1f285bcdb698b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/boundedRecursiveTypeInferredThroughClosure.types @@ -0,0 +1,186 @@ +//// [tests/cases/compiler/boundedRecursiveTypeInferredThroughClosure.ts] //// + +=== boundedRecursiveTypeInferredThroughClosure.ts === +// The recursion of InferData and UnpackKeyValue is bounded by Next, so +// inferring it through a closure must not report it as infinite. + +type Prettify = { [K in keyof T]: T[K] } & {}; +>Prettify : { [K in keyof T]: T[K]; } + +type ExtractUndefined = { [K in keyof T]: undefined extends T[K] ? K : never }[keyof T]; +>ExtractUndefined : ExtractUndefined + +type ExtractDefined = { [K in keyof T]: undefined extends T[K] ? never : K }[keyof T]; +>ExtractDefined : ExtractDefined + +type Next = [1, 2, 3, 4, 5, 6]; +>Next : Next + +type JSONPrimitives = string | number | bigint | boolean | null | undefined; +>JSONPrimitives : JSONPrimitives + +type JSONValues = JSONPrimitives | CanBeSerialized; +>JSONValues : JSONValues + +type CanBeSerialized = { +>CanBeSerialized : CanBeSerialized + + toJSON(): T; +>toJSON : () => T + +}; +type JSONDataTypes = JSONValues | JSONDataTypes[] | { +>JSONDataTypes : JSONDataTypes + + [key: string]: JSONDataTypes; +>key : string + +}; +type SerializeJSONObject = { +>SerializeJSONObject : SerializeJSONObject + + [K in ExtractDefined]: SerializeJSONTypes; +} & { + [K in ExtractUndefined]?: SerializeJSONTypes; +}; +interface ExtendedJSONTypes { +} +type NonAllowedJSTypes = Map | Set; +>NonAllowedJSTypes : NonAllowedJSTypes + +type ForcefullyAllowedTypes = { +>ForcefullyAllowedTypes : never + + [K in keyof ExtendedJSONTypes]: ExtendedJSONTypes[K]; +}[keyof ExtendedJSONTypes]; +type SerializeJSONOwnTypes = T extends JSONPrimitives ? T : T extends ForcefullyAllowedTypes ? T : T extends NonAllowedJSTypes ? never : T extends Array ? Array> : T extends object ? Prettify> : never; +>SerializeJSONOwnTypes : SerializeJSONOwnTypes + +type SerializeJSONTypes = T extends ForcefullyAllowedTypes ? T : T extends CanBeSerialized ? SerializeJSONOwnTypes : SerializeJSONOwnTypes; +>SerializeJSONTypes : SerializeJSONTypes + +interface ItemContract, MaxDepth extends Next[number], Variant extends string> { + $type: 'item'; +>$type : "item" + + transformer: { +>transformer : new (...args: any[]) => Transformer + + new (...args: any[]): Transformer; +>args : any[] + + }; + maxDepth: MaxDepth; +>maxDepth : MaxDepth + + variant: Variant; +>variant : Variant +} +type UnpackKeyValue = [Value[0]] extends [never] ? SerializeJSONTypes : Value[0] extends ItemContract ? InferData | SerializeJSONTypes : SerializeJSONTypes; +>UnpackKeyValue : UnpackKeyValue +>-1 : -1 +>1 : 1 + +type LimitDepth = [ +>LimitDepth : LimitDepth + + Value +] extends [never] ? Key : Value extends ItemContract ? MaxDepth extends Depth ? never : Key : Key; +type UnpackOptionalValues = { +>UnpackOptionalValues : UnpackOptionalValues + + [O in { + [K in keyof Data]: [undefined] extends [Data[K]] ? LimitDepth[0], MaxDepth, Depth> : never; + }[keyof Data]]?: UnpackKeyValue, MaxDepth, Depth>; +}; +type UnpackRequiredValues = { +>UnpackRequiredValues : UnpackRequiredValues + + [O in { + [K in keyof Data]: [undefined] extends [Data[K]] ? never : LimitDepth[0], MaxDepth, Depth>; + }[keyof Data]]: UnpackKeyValue, MaxDepth, Depth>; +}; +type SplitItm = [ +>SplitItm : SplitItm + + Extract>, + Exclude> +]; +type UnpackAsTopLevelItem = T extends ItemContract ? InferData : never; +>UnpackAsTopLevelItem : UnpackAsTopLevelItem +>-1 : -1 +>1 : 1 + +type UnpackValues = Prettify & UnpackOptionalValues>; +>UnpackValues : UnpackRequiredValues & UnpackOptionalValues extends infer T ? { [K in keyof T]: T[K]; } : never + +type InferData = Transformer extends { +>InferData : InferData +>-1 : -1 +>1 : 1 + + [K in Variant]: (...args: any[]) => unknown; +>args : any[] + +} ? UnpackValues>, MaxDepth, Depth> : never; +declare class Item, MaxDepth extends Next[number], Variant extends string> { +>Item : Item + + transformer: { new (...args: any[]): Transformer }; +>transformer : new (...args: any[]) => Transformer +>args : any[] + + maxDepth: MaxDepth; +>maxDepth : MaxDepth + + variant: Variant; +>variant : Variant + + $type: 'item'; +>$type : "item" + + resolve(): Promise>; +>resolve : () => Promise> +} +type Ctor = { new (resource: any, ...rest: any[]): any }; +>Ctor : Ctor +>resource : any +>rest : any[] + +declare abstract class BaseTransformer { +>BaseTransformer : BaseTransformer + + static transform(this: Self, data: ConstructorParameters[0]): Item, 1, 'toObject'>; +>transform : (this: Self, data: ConstructorParameters[0]) => Item, 1, 'toObject'> +>this : Self +>data : ConstructorParameters[0] + + constructor(resource: T); +>resource : T +} +class Size { +>Size : Size +} +class SizeTransformer extends BaseTransformer { +>SizeTransformer : SizeTransformer +>BaseTransformer : BaseTransformer + + toObject() { +>toObject : () => void + } +} +declare function once(value: T): T; +>once : (value: T) => T +>value : T + +once(() => SizeTransformer.transform(new Size())); +>once(() => SizeTransformer.transform(new Size())) : () => Item +>once : (value: T) => T +>() => SizeTransformer.transform(new Size()) : () => Item +>SizeTransformer.transform(new Size()) : Item +>SizeTransformer.transform : (this: Self, data: ConstructorParameters[0]) => Item, 1, 'toObject'> +>SizeTransformer : typeof SizeTransformer +>transform : (this: Self, data: ConstructorParameters[0]) => Item, 1, 'toObject'> +>new Size() : Size +>Size : typeof Size + diff --git a/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).errors.txt new file mode 100644 index 0000000000000..fa22beceb33e2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).errors.txt @@ -0,0 +1,27 @@ +weird.js(1,1): error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'? +weird.js(1,23): error TS7006: Parameter 'BaseClass' implicitly has an 'any' type. +weird.js(9,17): error TS7006: Parameter 'error' implicitly has an 'any' type. + + +==== weird.js (3 errors) ==== + someFunction(function(BaseClass) { + ~~~~~~~~~~~~ +!!! error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'? +!!! related TS2728 lib.es5.d.ts:--:--: 'Function' is declared here. + ~~~~~~~~~ +!!! error TS7006: Parameter 'BaseClass' implicitly has an 'any' type. + 'use strict'; + const DEFAULT_MESSAGE = "nop!"; + class Hello extends BaseClass { + constructor() { + super(); + this.foo = "bar"; + } + _render(error) { + ~~~~~ +!!! error TS7006: Parameter 'error' implicitly has an 'any' type. + const message = error.message || DEFAULT_MESSAGE; + } + } + }); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).symbols new file mode 100644 index 0000000000000..99ddd57e9d8cd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts] //// + +=== weird.js === +someFunction(function(BaseClass) { +>BaseClass : Symbol(BaseClass, Decl(weird.js, 0, 22)) + + 'use strict'; + const DEFAULT_MESSAGE = "nop!"; +>DEFAULT_MESSAGE : Symbol(DEFAULT_MESSAGE, Decl(weird.js, 2, 9)) + + class Hello extends BaseClass { +>Hello : Symbol(Hello, Decl(weird.js, 2, 35)) +>BaseClass : Symbol(BaseClass, Decl(weird.js, 0, 22)) + + constructor() { + super(); + this.foo = "bar"; +>this.foo : Symbol(Hello.foo, Decl(weird.js, 5, 20)) +>this : Symbol(Hello, Decl(weird.js, 2, 35)) +>foo : Symbol(Hello.foo, Decl(weird.js, 5, 20)) + } + _render(error) { +>_render : Symbol(Hello._render, Decl(weird.js, 7, 9)) +>error : Symbol(error, Decl(weird.js, 8, 16)) + + const message = error.message || DEFAULT_MESSAGE; +>message : Symbol(message, Decl(weird.js, 9, 17)) +>error : Symbol(error, Decl(weird.js, 8, 16)) +>DEFAULT_MESSAGE : Symbol(DEFAULT_MESSAGE, Decl(weird.js, 2, 9)) + } + } +}); + diff --git a/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).types new file mode 100644 index 0000000000000..7f98768cc3b3e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=default).types @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts] //// + +=== weird.js === +someFunction(function(BaseClass) { +>someFunction(function(BaseClass) { 'use strict'; const DEFAULT_MESSAGE = "nop!"; class Hello extends BaseClass { constructor() { super(); this.foo = "bar"; } _render(error) { const message = error.message || DEFAULT_MESSAGE; } }}) : any +>someFunction : any +>function(BaseClass) { 'use strict'; const DEFAULT_MESSAGE = "nop!"; class Hello extends BaseClass { constructor() { super(); this.foo = "bar"; } _render(error) { const message = error.message || DEFAULT_MESSAGE; } }} : (BaseClass: any) => void +>BaseClass : any + + 'use strict'; +>'use strict' : "use strict" + + const DEFAULT_MESSAGE = "nop!"; +>DEFAULT_MESSAGE : "nop!" +>"nop!" : "nop!" + + class Hello extends BaseClass { +>Hello : Hello +>BaseClass : any + + constructor() { + super(); +>super() : void +>super : any + + this.foo = "bar"; +>this.foo = "bar" : "bar" +>this.foo : any +>this : this +>foo : any +>"bar" : "bar" + } + _render(error) { +>_render : (error: any) => void +>error : any + + const message = error.message || DEFAULT_MESSAGE; +>message : any +>error.message || DEFAULT_MESSAGE : any +>error.message : any +>error : any +>message : any +>DEFAULT_MESSAGE : "nop!" + } + } +}); + diff --git a/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..a15bd4d38db0d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).errors.txt @@ -0,0 +1,24 @@ +weird.js(1,1): error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'? +weird.js(9,17): error TS7006: Parameter 'error' implicitly has an 'any' type. + + +==== weird.js (2 errors) ==== + someFunction(function(BaseClass) { + ~~~~~~~~~~~~ +!!! error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'? +!!! related TS2728 lib.es5.d.ts:--:--: 'Function' is declared here. + 'use strict'; + const DEFAULT_MESSAGE = "nop!"; + class Hello extends BaseClass { + constructor() { + super(); + this.foo = "bar"; + } + _render(error) { + ~~~~~ +!!! error TS7006: Parameter 'error' implicitly has an 'any' type. + const message = error.message || DEFAULT_MESSAGE; + } + } + }); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..99ddd57e9d8cd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts] //// + +=== weird.js === +someFunction(function(BaseClass) { +>BaseClass : Symbol(BaseClass, Decl(weird.js, 0, 22)) + + 'use strict'; + const DEFAULT_MESSAGE = "nop!"; +>DEFAULT_MESSAGE : Symbol(DEFAULT_MESSAGE, Decl(weird.js, 2, 9)) + + class Hello extends BaseClass { +>Hello : Symbol(Hello, Decl(weird.js, 2, 35)) +>BaseClass : Symbol(BaseClass, Decl(weird.js, 0, 22)) + + constructor() { + super(); + this.foo = "bar"; +>this.foo : Symbol(Hello.foo, Decl(weird.js, 5, 20)) +>this : Symbol(Hello, Decl(weird.js, 2, 35)) +>foo : Symbol(Hello.foo, Decl(weird.js, 5, 20)) + } + _render(error) { +>_render : Symbol(Hello._render, Decl(weird.js, 7, 9)) +>error : Symbol(error, Decl(weird.js, 8, 16)) + + const message = error.message || DEFAULT_MESSAGE; +>message : Symbol(message, Decl(weird.js, 9, 17)) +>error : Symbol(error, Decl(weird.js, 8, 16)) +>DEFAULT_MESSAGE : Symbol(DEFAULT_MESSAGE, Decl(weird.js, 2, 9)) + } + } +}); + diff --git a/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).types new file mode 100644 index 0000000000000..7f98768cc3b3e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkIndexConstraintOfJavascriptClassExpression(checkorder=typesfirst).types @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts] //// + +=== weird.js === +someFunction(function(BaseClass) { +>someFunction(function(BaseClass) { 'use strict'; const DEFAULT_MESSAGE = "nop!"; class Hello extends BaseClass { constructor() { super(); this.foo = "bar"; } _render(error) { const message = error.message || DEFAULT_MESSAGE; } }}) : any +>someFunction : any +>function(BaseClass) { 'use strict'; const DEFAULT_MESSAGE = "nop!"; class Hello extends BaseClass { constructor() { super(); this.foo = "bar"; } _render(error) { const message = error.message || DEFAULT_MESSAGE; } }} : (BaseClass: any) => void +>BaseClass : any + + 'use strict'; +>'use strict' : "use strict" + + const DEFAULT_MESSAGE = "nop!"; +>DEFAULT_MESSAGE : "nop!" +>"nop!" : "nop!" + + class Hello extends BaseClass { +>Hello : Hello +>BaseClass : any + + constructor() { + super(); +>super() : void +>super : any + + this.foo = "bar"; +>this.foo = "bar" : "bar" +>this.foo : any +>this : this +>foo : any +>"bar" : "bar" + } + _render(error) { +>_render : (error: any) => void +>error : any + + const message = error.message || DEFAULT_MESSAGE; +>message : any +>error.message || DEFAULT_MESSAGE : any +>error.message : any +>error : any +>message : any +>DEFAULT_MESSAGE : "nop!" + } + } +}); + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).errors.txt new file mode 100644 index 0000000000000..fbdc7623ca157 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).errors.txt @@ -0,0 +1,24 @@ +a.ts(5,11): error TS2322: Type 'string' is not assignable to type 'number'. +a.ts(5,23): error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. +b.ts(2,11): error TS2322: Type 'string' is not assignable to type 'number'. + + +==== a.ts (2 errors) ==== + type S = string | Promise; + declare const s: S; + declare const p: Promise; + async function f1() { + const a: number = await p; + ~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. + ~~~~~~~ +!!! error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. + } + +==== b.ts (1 errors) ==== + async function f2() { + const b: number = await s; + ~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).symbols new file mode 100644 index 0000000000000..9bdecefb54f4f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/checkOrderAwaitedCycle.ts] //// + +=== a.ts === +type S = string | Promise; +>S : Symbol(S, Decl(a.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +declare const s: S; +>s : Symbol(s, Decl(a.ts, 1, 13)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +declare const p: Promise; +>p : Symbol(p, Decl(a.ts, 2, 13)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +async function f1() { +>f1 : Symbol(f1, Decl(a.ts, 2, 28)) + + const a: number = await p; +>a : Symbol(a, Decl(a.ts, 4, 9)) +>p : Symbol(p, Decl(a.ts, 2, 13)) +} + +=== b.ts === +async function f2() { +>f2 : Symbol(f2, Decl(b.ts, 0, 0)) + + const b: number = await s; +>b : Symbol(b, Decl(b.ts, 1, 9)) +>s : Symbol(s, Decl(a.ts, 1, 13)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).types new file mode 100644 index 0000000000000..6cbf09f81f2c8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=default).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/checkOrderAwaitedCycle.ts] //// + +=== a.ts === +type S = string | Promise; +>S : S + +declare const s: S; +>s : S + +declare const p: Promise; +>p : Promise + +async function f1() { +>f1 : () => Promise + + const a: number = await p; +>a : number +>await p : string +>p : Promise +} + +=== b.ts === +async function f2() { +>f2 : () => Promise + + const b: number = await s; +>b : number +>await s : string +>s : S +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).errors.txt new file mode 100644 index 0000000000000..126b9485926f5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).errors.txt @@ -0,0 +1,27 @@ +a.ts(5,11): error TS2322: Type 'string' is not assignable to type 'number'. +a.ts(5,23): error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. +b.ts(2,11): error TS2322: Type 'string' is not assignable to type 'number'. +b.ts(2,23): error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. + + +==== a.ts (2 errors) ==== + type S = string | Promise; + declare const s: S; + declare const p: Promise; + async function f1() { + const a: number = await p; + ~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. + ~~~~~~~ +!!! error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. + } + +==== b.ts (2 errors) ==== + async function f2() { + const b: number = await s; + ~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. + ~~~~~~~ +!!! error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).symbols new file mode 100644 index 0000000000000..9bdecefb54f4f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/checkOrderAwaitedCycle.ts] //// + +=== a.ts === +type S = string | Promise; +>S : Symbol(S, Decl(a.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +declare const s: S; +>s : Symbol(s, Decl(a.ts, 1, 13)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +declare const p: Promise; +>p : Symbol(p, Decl(a.ts, 2, 13)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +async function f1() { +>f1 : Symbol(f1, Decl(a.ts, 2, 28)) + + const a: number = await p; +>a : Symbol(a, Decl(a.ts, 4, 9)) +>p : Symbol(p, Decl(a.ts, 2, 13)) +} + +=== b.ts === +async function f2() { +>f2 : Symbol(f2, Decl(b.ts, 0, 0)) + + const b: number = await s; +>b : Symbol(b, Decl(b.ts, 1, 9)) +>s : Symbol(s, Decl(a.ts, 1, 13)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).types new file mode 100644 index 0000000000000..6cbf09f81f2c8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=isolated).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/checkOrderAwaitedCycle.ts] //// + +=== a.ts === +type S = string | Promise; +>S : S + +declare const s: S; +>s : S + +declare const p: Promise; +>p : Promise + +async function f1() { +>f1 : () => Promise + + const a: number = await p; +>a : number +>await p : string +>p : Promise +} + +=== b.ts === +async function f2() { +>f2 : () => Promise + + const b: number = await s; +>b : number +>await s : string +>s : S +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).errors.txt new file mode 100644 index 0000000000000..55a3e6d752ab1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).errors.txt @@ -0,0 +1,24 @@ +a.ts(5,11): error TS2322: Type 'string' is not assignable to type 'number'. +b.ts(2,11): error TS2322: Type 'string' is not assignable to type 'number'. +b.ts(2,23): error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. + + +==== a.ts (1 errors) ==== + type S = string | Promise; + declare const s: S; + declare const p: Promise; + async function f1() { + const a: number = await p; + ~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. + } + +==== b.ts (2 errors) ==== + async function f2() { + const b: number = await s; + ~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. + ~~~~~~~ +!!! error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).symbols new file mode 100644 index 0000000000000..9bdecefb54f4f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/checkOrderAwaitedCycle.ts] //// + +=== a.ts === +type S = string | Promise; +>S : Symbol(S, Decl(a.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +declare const s: S; +>s : Symbol(s, Decl(a.ts, 1, 13)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +declare const p: Promise; +>p : Symbol(p, Decl(a.ts, 2, 13)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +async function f1() { +>f1 : Symbol(f1, Decl(a.ts, 2, 28)) + + const a: number = await p; +>a : Symbol(a, Decl(a.ts, 4, 9)) +>p : Symbol(p, Decl(a.ts, 2, 13)) +} + +=== b.ts === +async function f2() { +>f2 : Symbol(f2, Decl(b.ts, 0, 0)) + + const b: number = await s; +>b : Symbol(b, Decl(b.ts, 1, 9)) +>s : Symbol(s, Decl(a.ts, 1, 13)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).types new file mode 100644 index 0000000000000..6cbf09f81f2c8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=reverse).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/checkOrderAwaitedCycle.ts] //// + +=== a.ts === +type S = string | Promise; +>S : S + +declare const s: S; +>s : S + +declare const p: Promise; +>p : Promise + +async function f1() { +>f1 : () => Promise + + const a: number = await p; +>a : number +>await p : string +>p : Promise +} + +=== b.ts === +async function f2() { +>f2 : () => Promise + + const b: number = await s; +>b : number +>await s : string +>s : S +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..55a3e6d752ab1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).errors.txt @@ -0,0 +1,24 @@ +a.ts(5,11): error TS2322: Type 'string' is not assignable to type 'number'. +b.ts(2,11): error TS2322: Type 'string' is not assignable to type 'number'. +b.ts(2,23): error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. + + +==== a.ts (1 errors) ==== + type S = string | Promise; + declare const s: S; + declare const p: Promise; + async function f1() { + const a: number = await p; + ~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. + } + +==== b.ts (2 errors) ==== + async function f2() { + const b: number = await s; + ~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. + ~~~~~~~ +!!! error TS1062: Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..9bdecefb54f4f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/checkOrderAwaitedCycle.ts] //// + +=== a.ts === +type S = string | Promise; +>S : Symbol(S, Decl(a.ts, 0, 0)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +declare const s: S; +>s : Symbol(s, Decl(a.ts, 1, 13)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +declare const p: Promise; +>p : Symbol(p, Decl(a.ts, 2, 13)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>S : Symbol(S, Decl(a.ts, 0, 0)) + +async function f1() { +>f1 : Symbol(f1, Decl(a.ts, 2, 28)) + + const a: number = await p; +>a : Symbol(a, Decl(a.ts, 4, 9)) +>p : Symbol(p, Decl(a.ts, 2, 13)) +} + +=== b.ts === +async function f2() { +>f2 : Symbol(f2, Decl(b.ts, 0, 0)) + + const b: number = await s; +>b : Symbol(b, Decl(b.ts, 1, 9)) +>s : Symbol(s, Decl(a.ts, 1, 13)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).types new file mode 100644 index 0000000000000..6cbf09f81f2c8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderAwaitedCycle(checkorder=typesfirst).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/checkOrderAwaitedCycle.ts] //// + +=== a.ts === +type S = string | Promise; +>S : S + +declare const s: S; +>s : S + +declare const p: Promise; +>p : Promise + +async function f1() { +>f1 : () => Promise + + const a: number = await p; +>a : number +>await p : string +>p : Promise +} + +=== b.ts === +async function f2() { +>f2 : () => Promise + + const b: number = await s; +>b : number +>await s : string +>s : S +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).errors.txt new file mode 100644 index 0000000000000..938f4b7bb63d2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).errors.txt @@ -0,0 +1,38 @@ +checkOrderCircularConstraint.ts(4,19): error TS2313: Type parameter 'T' has a circular constraint. +checkOrderCircularConstraint.ts(7,19): error TS2339: Property 'foo' does not exist on type 'T'. +checkOrderCircularConstraint.ts(8,21): error TS2351: This expression is not constructable. + Type 'unknown' has no construct signatures. +checkOrderCircularConstraint.ts(9,17): error TS7053: Element implicitly has an 'any' type because expression of type '1' can't be used to index type 'unknown'. + Property '1' does not exist on type 'unknown'. +checkOrderCircularConstraint.ts(10,17): error TS2349: This expression is not callable. + Type 'unknown' has no call signatures. + + +==== checkOrderCircularConstraint.ts (5 errors) ==== + // A circular constraint of a declared type parameter is reported at its + // declaration, regardless of which use resolves the constraint first. + + class A { + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. +!!! related TS2751 checkOrderCircularConstraint.ts:7:17: Circularity originates in type at this location. + foo() { + var x!: T; + var a = x.foo(); + ~~~ +!!! error TS2339: Property 'foo' does not exist on type 'T'. + var b = new x(123); + ~ +!!! error TS2351: This expression is not constructable. +!!! error TS2351: Type 'unknown' has no construct signatures. + var c = x[1]; + ~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type '1' can't be used to index type 'unknown'. +!!! error TS7053: Property '1' does not exist on type 'unknown'. + var d = x(); + ~ +!!! error TS2349: This expression is not callable. +!!! error TS2349: Type 'unknown' has no call signatures. + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).js new file mode 100644 index 0000000000000..3c72daa68bbd3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +//// [checkOrderCircularConstraint.ts] +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { + foo() { + var x!: T; + var a = x.foo(); + var b = new x(123); + var c = x[1]; + var d = x(); + } +} + + +//// [checkOrderCircularConstraint.js] +"use strict"; +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. +class A { + foo() { + var x; + var a = x.foo(); + var b = new x(123); + var c = x[1]; + var d = x(); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).symbols new file mode 100644 index 0000000000000..9b87b04754b9f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +=== checkOrderCircularConstraint.ts === +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { +>A : Symbol(A, Decl(checkOrderCircularConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) + + foo() { +>foo : Symbol(A.foo, Decl(checkOrderCircularConstraint.ts, 3, 22)) + + var x!: T; +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) + + var a = x.foo(); +>a : Symbol(a, Decl(checkOrderCircularConstraint.ts, 6, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var b = new x(123); +>b : Symbol(b, Decl(checkOrderCircularConstraint.ts, 7, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var c = x[1]; +>c : Symbol(c, Decl(checkOrderCircularConstraint.ts, 8, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var d = x(); +>d : Symbol(d, Decl(checkOrderCircularConstraint.ts, 9, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).types new file mode 100644 index 0000000000000..370c13c086d5a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=default).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +=== checkOrderCircularConstraint.ts === +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { +>A : A + + foo() { +>foo : () => void + + var x!: T; +>x : T + + var a = x.foo(); +>a : any +>x.foo() : any +>x.foo : any +>x : T +>foo : any + + var b = new x(123); +>b : any +>new x(123) : any +>x : T +>123 : 123 + + var c = x[1]; +>c : any +>x[1] : any +>x : T +>1 : 1 + + var d = x(); +>d : any +>x() : any +>x : T + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).errors.txt new file mode 100644 index 0000000000000..9309ae4c7eb15 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).errors.txt @@ -0,0 +1,37 @@ +checkOrderCircularConstraint.ts(4,19): error TS2313: Type parameter 'T' has a circular constraint. +checkOrderCircularConstraint.ts(7,19): error TS2339: Property 'foo' does not exist on type 'T'. +checkOrderCircularConstraint.ts(8,21): error TS2351: This expression is not constructable. + Type 'unknown' has no construct signatures. +checkOrderCircularConstraint.ts(9,17): error TS7053: Element implicitly has an 'any' type because expression of type '1' can't be used to index type 'unknown'. + Property '1' does not exist on type 'unknown'. +checkOrderCircularConstraint.ts(10,17): error TS2349: This expression is not callable. + Type 'unknown' has no call signatures. + + +==== checkOrderCircularConstraint.ts (5 errors) ==== + // A circular constraint of a declared type parameter is reported at its + // declaration, regardless of which use resolves the constraint first. + + class A { + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. + foo() { + var x!: T; + var a = x.foo(); + ~~~ +!!! error TS2339: Property 'foo' does not exist on type 'T'. + var b = new x(123); + ~ +!!! error TS2351: This expression is not constructable. +!!! error TS2351: Type 'unknown' has no construct signatures. + var c = x[1]; + ~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type '1' can't be used to index type 'unknown'. +!!! error TS7053: Property '1' does not exist on type 'unknown'. + var d = x(); + ~ +!!! error TS2349: This expression is not callable. +!!! error TS2349: Type 'unknown' has no call signatures. + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).js b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).js new file mode 100644 index 0000000000000..3c72daa68bbd3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +//// [checkOrderCircularConstraint.ts] +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { + foo() { + var x!: T; + var a = x.foo(); + var b = new x(123); + var c = x[1]; + var d = x(); + } +} + + +//// [checkOrderCircularConstraint.js] +"use strict"; +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. +class A { + foo() { + var x; + var a = x.foo(); + var b = new x(123); + var c = x[1]; + var d = x(); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).symbols new file mode 100644 index 0000000000000..9b87b04754b9f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +=== checkOrderCircularConstraint.ts === +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { +>A : Symbol(A, Decl(checkOrderCircularConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) + + foo() { +>foo : Symbol(A.foo, Decl(checkOrderCircularConstraint.ts, 3, 22)) + + var x!: T; +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) + + var a = x.foo(); +>a : Symbol(a, Decl(checkOrderCircularConstraint.ts, 6, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var b = new x(123); +>b : Symbol(b, Decl(checkOrderCircularConstraint.ts, 7, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var c = x[1]; +>c : Symbol(c, Decl(checkOrderCircularConstraint.ts, 8, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var d = x(); +>d : Symbol(d, Decl(checkOrderCircularConstraint.ts, 9, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).types new file mode 100644 index 0000000000000..370c13c086d5a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=isolated).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +=== checkOrderCircularConstraint.ts === +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { +>A : A + + foo() { +>foo : () => void + + var x!: T; +>x : T + + var a = x.foo(); +>a : any +>x.foo() : any +>x.foo : any +>x : T +>foo : any + + var b = new x(123); +>b : any +>new x(123) : any +>x : T +>123 : 123 + + var c = x[1]; +>c : any +>x[1] : any +>x : T +>1 : 1 + + var d = x(); +>d : any +>x() : any +>x : T + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).errors.txt new file mode 100644 index 0000000000000..938f4b7bb63d2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).errors.txt @@ -0,0 +1,38 @@ +checkOrderCircularConstraint.ts(4,19): error TS2313: Type parameter 'T' has a circular constraint. +checkOrderCircularConstraint.ts(7,19): error TS2339: Property 'foo' does not exist on type 'T'. +checkOrderCircularConstraint.ts(8,21): error TS2351: This expression is not constructable. + Type 'unknown' has no construct signatures. +checkOrderCircularConstraint.ts(9,17): error TS7053: Element implicitly has an 'any' type because expression of type '1' can't be used to index type 'unknown'. + Property '1' does not exist on type 'unknown'. +checkOrderCircularConstraint.ts(10,17): error TS2349: This expression is not callable. + Type 'unknown' has no call signatures. + + +==== checkOrderCircularConstraint.ts (5 errors) ==== + // A circular constraint of a declared type parameter is reported at its + // declaration, regardless of which use resolves the constraint first. + + class A { + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. +!!! related TS2751 checkOrderCircularConstraint.ts:7:17: Circularity originates in type at this location. + foo() { + var x!: T; + var a = x.foo(); + ~~~ +!!! error TS2339: Property 'foo' does not exist on type 'T'. + var b = new x(123); + ~ +!!! error TS2351: This expression is not constructable. +!!! error TS2351: Type 'unknown' has no construct signatures. + var c = x[1]; + ~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type '1' can't be used to index type 'unknown'. +!!! error TS7053: Property '1' does not exist on type 'unknown'. + var d = x(); + ~ +!!! error TS2349: This expression is not callable. +!!! error TS2349: Type 'unknown' has no call signatures. + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).js b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).js new file mode 100644 index 0000000000000..3c72daa68bbd3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +//// [checkOrderCircularConstraint.ts] +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { + foo() { + var x!: T; + var a = x.foo(); + var b = new x(123); + var c = x[1]; + var d = x(); + } +} + + +//// [checkOrderCircularConstraint.js] +"use strict"; +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. +class A { + foo() { + var x; + var a = x.foo(); + var b = new x(123); + var c = x[1]; + var d = x(); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).symbols new file mode 100644 index 0000000000000..9b87b04754b9f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +=== checkOrderCircularConstraint.ts === +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { +>A : Symbol(A, Decl(checkOrderCircularConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) + + foo() { +>foo : Symbol(A.foo, Decl(checkOrderCircularConstraint.ts, 3, 22)) + + var x!: T; +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) + + var a = x.foo(); +>a : Symbol(a, Decl(checkOrderCircularConstraint.ts, 6, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var b = new x(123); +>b : Symbol(b, Decl(checkOrderCircularConstraint.ts, 7, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var c = x[1]; +>c : Symbol(c, Decl(checkOrderCircularConstraint.ts, 8, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var d = x(); +>d : Symbol(d, Decl(checkOrderCircularConstraint.ts, 9, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).types new file mode 100644 index 0000000000000..370c13c086d5a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=reverse).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +=== checkOrderCircularConstraint.ts === +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { +>A : A + + foo() { +>foo : () => void + + var x!: T; +>x : T + + var a = x.foo(); +>a : any +>x.foo() : any +>x.foo : any +>x : T +>foo : any + + var b = new x(123); +>b : any +>new x(123) : any +>x : T +>123 : 123 + + var c = x[1]; +>c : any +>x[1] : any +>x : T +>1 : 1 + + var d = x(); +>d : any +>x() : any +>x : T + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..ef7991cfbe407 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).errors.txt @@ -0,0 +1,38 @@ +checkOrderCircularConstraint.ts(4,19): error TS2313: Type parameter 'T' has a circular constraint. +checkOrderCircularConstraint.ts(7,19): error TS2339: Property 'foo' does not exist on type 'T'. +checkOrderCircularConstraint.ts(8,21): error TS2351: This expression is not constructable. + Type 'unknown' has no construct signatures. +checkOrderCircularConstraint.ts(9,17): error TS7053: Element implicitly has an 'any' type because expression of type '1' can't be used to index type 'unknown'. + Property '1' does not exist on type 'unknown'. +checkOrderCircularConstraint.ts(10,17): error TS2349: This expression is not callable. + Type 'unknown' has no call signatures. + + +==== checkOrderCircularConstraint.ts (5 errors) ==== + // A circular constraint of a declared type parameter is reported at its + // declaration, regardless of which use resolves the constraint first. + + class A { + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. +!!! related TS2751 checkOrderCircularConstraint.ts:10:17: Circularity originates in type at this location. + foo() { + var x!: T; + var a = x.foo(); + ~~~ +!!! error TS2339: Property 'foo' does not exist on type 'T'. + var b = new x(123); + ~ +!!! error TS2351: This expression is not constructable. +!!! error TS2351: Type 'unknown' has no construct signatures. + var c = x[1]; + ~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type '1' can't be used to index type 'unknown'. +!!! error TS7053: Property '1' does not exist on type 'unknown'. + var d = x(); + ~ +!!! error TS2349: This expression is not callable. +!!! error TS2349: Type 'unknown' has no call signatures. + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).js new file mode 100644 index 0000000000000..3c72daa68bbd3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +//// [checkOrderCircularConstraint.ts] +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { + foo() { + var x!: T; + var a = x.foo(); + var b = new x(123); + var c = x[1]; + var d = x(); + } +} + + +//// [checkOrderCircularConstraint.js] +"use strict"; +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. +class A { + foo() { + var x; + var a = x.foo(); + var b = new x(123); + var c = x[1]; + var d = x(); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..9b87b04754b9f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +=== checkOrderCircularConstraint.ts === +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { +>A : Symbol(A, Decl(checkOrderCircularConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) + + foo() { +>foo : Symbol(A.foo, Decl(checkOrderCircularConstraint.ts, 3, 22)) + + var x!: T; +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) +>T : Symbol(T, Decl(checkOrderCircularConstraint.ts, 3, 8)) + + var a = x.foo(); +>a : Symbol(a, Decl(checkOrderCircularConstraint.ts, 6, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var b = new x(123); +>b : Symbol(b, Decl(checkOrderCircularConstraint.ts, 7, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var c = x[1]; +>c : Symbol(c, Decl(checkOrderCircularConstraint.ts, 8, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + + var d = x(); +>d : Symbol(d, Decl(checkOrderCircularConstraint.ts, 9, 11)) +>x : Symbol(x, Decl(checkOrderCircularConstraint.ts, 5, 11)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).types new file mode 100644 index 0000000000000..370c13c086d5a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularConstraint(checkorder=typesfirst).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/checkOrderCircularConstraint.ts] //// + +=== checkOrderCircularConstraint.ts === +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { +>A : A + + foo() { +>foo : () => void + + var x!: T; +>x : T + + var a = x.foo(); +>a : any +>x.foo() : any +>x.foo : any +>x : T +>foo : any + + var b = new x(123); +>b : any +>new x(123) : any +>x : T +>123 : 123 + + var c = x[1]; +>c : any +>x[1] : any +>x : T +>1 : 1 + + var d = x(); +>d : any +>x() : any +>x : T + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).errors.txt new file mode 100644 index 0000000000000..5c28d3ee0a214 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).errors.txt @@ -0,0 +1,15 @@ +a.ts(2,24): error TS2716: Type parameter 'T' has a circular default. + + +==== a.ts (1 errors) ==== + import type { B } from "./b"; + export interface A { a: T } + ~ +!!! error TS2716: Type parameter 'T' has a circular default. + export declare const a: A; + +==== b.ts (0 errors) ==== + import type { A } from "./a"; + export interface B { b: U } + export declare const b: B; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).js new file mode 100644 index 0000000000000..8f10482f060d7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +//// [a.ts] +import type { B } from "./b"; +export interface A { a: T } +export declare const a: A; + +//// [b.ts] +import type { A } from "./a"; +export interface B { b: U } +export declare const b: B; + + +//// [b.js] +export {}; +//// [a.js] +export {}; + + +//// [b.d.ts] +import type { A } from "./a"; +export interface B { + b: U; +} +export declare const b: B; +//// [a.d.ts] +import type { B } from "./b"; +export interface A { + a: T; +} +export declare const a: A; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).symbols new file mode 100644 index 0000000000000..72d2e540fd379 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +=== a.ts === +import type { B } from "./b"; +>B : Symbol(B, Decl(a.ts, 0, 13)) + +export interface A { a: T } +>A : Symbol(A, Decl(a.ts, 0, 29)) +>T : Symbol(T, Decl(a.ts, 1, 19)) +>B : Symbol(B, Decl(a.ts, 0, 13)) +>a : Symbol(A.a, Decl(a.ts, 1, 27)) +>T : Symbol(T, Decl(a.ts, 1, 19)) + +export declare const a: A; +>a : Symbol(a, Decl(a.ts, 2, 20)) +>A : Symbol(A, Decl(a.ts, 0, 29)) + +=== b.ts === +import type { A } from "./a"; +>A : Symbol(A, Decl(b.ts, 0, 13)) + +export interface B { b: U } +>B : Symbol(B, Decl(b.ts, 0, 29)) +>U : Symbol(U, Decl(b.ts, 1, 19)) +>A : Symbol(A, Decl(b.ts, 0, 13)) +>b : Symbol(B.b, Decl(b.ts, 1, 27)) +>U : Symbol(U, Decl(b.ts, 1, 19)) + +export declare const b: B; +>b : Symbol(b, Decl(b.ts, 2, 20)) +>B : Symbol(B, Decl(b.ts, 0, 29)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).types new file mode 100644 index 0000000000000..145f91d78caf3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=default).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +=== a.ts === +import type { B } from "./b"; +>B : B + +export interface A { a: T } +>a : T + +export declare const a: A; +>a : A + +=== b.ts === +import type { A } from "./a"; +>A : A + +export interface B { b: U } +>b : U + +export declare const b: B; +>b : B> + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).js b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).js new file mode 100644 index 0000000000000..8f10482f060d7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +//// [a.ts] +import type { B } from "./b"; +export interface A { a: T } +export declare const a: A; + +//// [b.ts] +import type { A } from "./a"; +export interface B { b: U } +export declare const b: B; + + +//// [b.js] +export {}; +//// [a.js] +export {}; + + +//// [b.d.ts] +import type { A } from "./a"; +export interface B { + b: U; +} +export declare const b: B; +//// [a.d.ts] +import type { B } from "./b"; +export interface A { + a: T; +} +export declare const a: A; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).symbols new file mode 100644 index 0000000000000..72d2e540fd379 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +=== a.ts === +import type { B } from "./b"; +>B : Symbol(B, Decl(a.ts, 0, 13)) + +export interface A { a: T } +>A : Symbol(A, Decl(a.ts, 0, 29)) +>T : Symbol(T, Decl(a.ts, 1, 19)) +>B : Symbol(B, Decl(a.ts, 0, 13)) +>a : Symbol(A.a, Decl(a.ts, 1, 27)) +>T : Symbol(T, Decl(a.ts, 1, 19)) + +export declare const a: A; +>a : Symbol(a, Decl(a.ts, 2, 20)) +>A : Symbol(A, Decl(a.ts, 0, 29)) + +=== b.ts === +import type { A } from "./a"; +>A : Symbol(A, Decl(b.ts, 0, 13)) + +export interface B { b: U } +>B : Symbol(B, Decl(b.ts, 0, 29)) +>U : Symbol(U, Decl(b.ts, 1, 19)) +>A : Symbol(A, Decl(b.ts, 0, 13)) +>b : Symbol(B.b, Decl(b.ts, 1, 27)) +>U : Symbol(U, Decl(b.ts, 1, 19)) + +export declare const b: B; +>b : Symbol(b, Decl(b.ts, 2, 20)) +>B : Symbol(B, Decl(b.ts, 0, 29)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).types new file mode 100644 index 0000000000000..145f91d78caf3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=isolated).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +=== a.ts === +import type { B } from "./b"; +>B : B + +export interface A { a: T } +>a : T + +export declare const a: A; +>a : A + +=== b.ts === +import type { A } from "./a"; +>A : A + +export interface B { b: U } +>b : U + +export declare const b: B; +>b : B> + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).errors.txt new file mode 100644 index 0000000000000..4dee4171e029f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).errors.txt @@ -0,0 +1,15 @@ +b.ts(2,24): error TS2716: Type parameter 'U' has a circular default. + + +==== a.ts (0 errors) ==== + import type { B } from "./b"; + export interface A { a: T } + export declare const a: A; + +==== b.ts (1 errors) ==== + import type { A } from "./a"; + export interface B { b: U } + ~ +!!! error TS2716: Type parameter 'U' has a circular default. + export declare const b: B; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).js b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).js new file mode 100644 index 0000000000000..8f10482f060d7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +//// [a.ts] +import type { B } from "./b"; +export interface A { a: T } +export declare const a: A; + +//// [b.ts] +import type { A } from "./a"; +export interface B { b: U } +export declare const b: B; + + +//// [b.js] +export {}; +//// [a.js] +export {}; + + +//// [b.d.ts] +import type { A } from "./a"; +export interface B { + b: U; +} +export declare const b: B; +//// [a.d.ts] +import type { B } from "./b"; +export interface A { + a: T; +} +export declare const a: A; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).symbols new file mode 100644 index 0000000000000..72d2e540fd379 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +=== a.ts === +import type { B } from "./b"; +>B : Symbol(B, Decl(a.ts, 0, 13)) + +export interface A { a: T } +>A : Symbol(A, Decl(a.ts, 0, 29)) +>T : Symbol(T, Decl(a.ts, 1, 19)) +>B : Symbol(B, Decl(a.ts, 0, 13)) +>a : Symbol(A.a, Decl(a.ts, 1, 27)) +>T : Symbol(T, Decl(a.ts, 1, 19)) + +export declare const a: A; +>a : Symbol(a, Decl(a.ts, 2, 20)) +>A : Symbol(A, Decl(a.ts, 0, 29)) + +=== b.ts === +import type { A } from "./a"; +>A : Symbol(A, Decl(b.ts, 0, 13)) + +export interface B { b: U } +>B : Symbol(B, Decl(b.ts, 0, 29)) +>U : Symbol(U, Decl(b.ts, 1, 19)) +>A : Symbol(A, Decl(b.ts, 0, 13)) +>b : Symbol(B.b, Decl(b.ts, 1, 27)) +>U : Symbol(U, Decl(b.ts, 1, 19)) + +export declare const b: B; +>b : Symbol(b, Decl(b.ts, 2, 20)) +>B : Symbol(B, Decl(b.ts, 0, 29)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).types new file mode 100644 index 0000000000000..a88d998c374ec --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=reverse).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +=== a.ts === +import type { B } from "./b"; +>B : B + +export interface A { a: T } +>a : T + +export declare const a: A; +>a : A> + +=== b.ts === +import type { A } from "./a"; +>A : A + +export interface B { b: U } +>b : U + +export declare const b: B; +>b : B + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..5c28d3ee0a214 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).errors.txt @@ -0,0 +1,15 @@ +a.ts(2,24): error TS2716: Type parameter 'T' has a circular default. + + +==== a.ts (1 errors) ==== + import type { B } from "./b"; + export interface A { a: T } + ~ +!!! error TS2716: Type parameter 'T' has a circular default. + export declare const a: A; + +==== b.ts (0 errors) ==== + import type { A } from "./a"; + export interface B { b: U } + export declare const b: B; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).js new file mode 100644 index 0000000000000..8f10482f060d7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).js @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +//// [a.ts] +import type { B } from "./b"; +export interface A { a: T } +export declare const a: A; + +//// [b.ts] +import type { A } from "./a"; +export interface B { b: U } +export declare const b: B; + + +//// [b.js] +export {}; +//// [a.js] +export {}; + + +//// [b.d.ts] +import type { A } from "./a"; +export interface B { + b: U; +} +export declare const b: B; +//// [a.d.ts] +import type { B } from "./b"; +export interface A { + a: T; +} +export declare const a: A; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..72d2e540fd379 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +=== a.ts === +import type { B } from "./b"; +>B : Symbol(B, Decl(a.ts, 0, 13)) + +export interface A { a: T } +>A : Symbol(A, Decl(a.ts, 0, 29)) +>T : Symbol(T, Decl(a.ts, 1, 19)) +>B : Symbol(B, Decl(a.ts, 0, 13)) +>a : Symbol(A.a, Decl(a.ts, 1, 27)) +>T : Symbol(T, Decl(a.ts, 1, 19)) + +export declare const a: A; +>a : Symbol(a, Decl(a.ts, 2, 20)) +>A : Symbol(A, Decl(a.ts, 0, 29)) + +=== b.ts === +import type { A } from "./a"; +>A : Symbol(A, Decl(b.ts, 0, 13)) + +export interface B { b: U } +>B : Symbol(B, Decl(b.ts, 0, 29)) +>U : Symbol(U, Decl(b.ts, 1, 19)) +>A : Symbol(A, Decl(b.ts, 0, 13)) +>b : Symbol(B.b, Decl(b.ts, 1, 27)) +>U : Symbol(U, Decl(b.ts, 1, 19)) + +export declare const b: B; +>b : Symbol(b, Decl(b.ts, 2, 20)) +>B : Symbol(B, Decl(b.ts, 0, 29)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).types new file mode 100644 index 0000000000000..145f91d78caf3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderCircularDefaults(checkorder=typesfirst).types @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/checkOrderCircularDefaults.ts] //// + +=== a.ts === +import type { B } from "./b"; +>B : B + +export interface A { a: T } +>a : T + +export declare const a: A; +>a : A + +=== b.ts === +import type { A } from "./a"; +>A : A + +export interface B { b: U } +>b : U + +export declare const b: B; +>b : B> + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).errors.txt new file mode 100644 index 0000000000000..0570bff3e21f0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).errors.txt @@ -0,0 +1,25 @@ +checkOrderEmitBeforeCheck.ts(9,5): error TS2502: '"each"' is referenced directly or indirectly in its own type annotation. +checkOrderEmitBeforeCheck.ts(15,1): error TS2615: Type of property '"each"' circularly references itself in mapped type '{ [P in keyof ListWidget]: undefined extends ListWidget[P] ? never : P; }'. + + +==== checkOrderEmitBeforeCheck.ts (2 errors) ==== + // The circularity in the mapped type is found by checking the annotation of + // "each". Emitting first must not instead report it at the use import + // elision visits, nor cache the result without the error. + type NonOptionalKeys = { [P in keyof T]: undefined extends T[P] ? never : P }[keyof T]; + type Child = { [P in NonOptionalKeys]: T[P] } + + export interface ListWidget { + "type": "list", + "each": Child; + ~~~~~~ +!!! error TS2502: '"each"' is referenced directly or indirectly in its own type annotation. + } + + type ListChild = Child + + declare let x: ListChild; + x.type; + ~ +!!! error TS2615: Type of property '"each"' circularly references itself in mapped type '{ [P in keyof ListWidget]: undefined extends ListWidget[P] ? never : P; }'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).js new file mode 100644 index 0000000000000..0ceb03c6477d2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).js @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/checkOrderEmitBeforeCheck.ts] //// + +//// [checkOrderEmitBeforeCheck.ts] +// The circularity in the mapped type is found by checking the annotation of +// "each". Emitting first must not instead report it at the use import +// elision visits, nor cache the result without the error. +type NonOptionalKeys = { [P in keyof T]: undefined extends T[P] ? never : P }[keyof T]; +type Child = { [P in NonOptionalKeys]: T[P] } + +export interface ListWidget { + "type": "list", + "each": Child; +} + +type ListChild = Child + +declare let x: ListChild; +x.type; + + +//// [checkOrderEmitBeforeCheck.js] +x.type; +export {}; + + +//// [checkOrderEmitBeforeCheck.d.ts] +type NonOptionalKeys = { + [P in keyof T]: undefined extends T[P] ? never : P; +}[keyof T]; +type Child = { + [P in NonOptionalKeys]: T[P]; +}; +export interface ListWidget { + "type": "list"; + "each": Child; +} +export {}; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).symbols new file mode 100644 index 0000000000000..9de1daaccd55e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).symbols @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/checkOrderEmitBeforeCheck.ts] //// + +=== checkOrderEmitBeforeCheck.ts === +// The circularity in the mapped type is found by checking the annotation of +// "each". Emitting first must not instead report it at the use import +// elision visits, nor cache the result without the error. +type NonOptionalKeys = { [P in keyof T]: undefined extends T[P] ? never : P }[keyof T]; +>NonOptionalKeys : Symbol(NonOptionalKeys, Decl(checkOrderEmitBeforeCheck.ts, 0, 0)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 3, 21)) +>P : Symbol(P, Decl(checkOrderEmitBeforeCheck.ts, 3, 29)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 3, 21)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 3, 21)) +>P : Symbol(P, Decl(checkOrderEmitBeforeCheck.ts, 3, 29)) +>P : Symbol(P, Decl(checkOrderEmitBeforeCheck.ts, 3, 29)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 3, 21)) + +type Child = { [P in NonOptionalKeys]: T[P] } +>Child : Symbol(Child, Decl(checkOrderEmitBeforeCheck.ts, 3, 90)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 4, 11)) +>P : Symbol(P, Decl(checkOrderEmitBeforeCheck.ts, 4, 19)) +>NonOptionalKeys : Symbol(NonOptionalKeys, Decl(checkOrderEmitBeforeCheck.ts, 0, 0)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 4, 11)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 4, 11)) +>P : Symbol(P, Decl(checkOrderEmitBeforeCheck.ts, 4, 19)) + +export interface ListWidget { +>ListWidget : Symbol(ListWidget, Decl(checkOrderEmitBeforeCheck.ts, 4, 51)) + + "type": "list", +>"type" : Symbol(ListWidget["type"], Decl(checkOrderEmitBeforeCheck.ts, 6, 29)) + + "each": Child; +>"each" : Symbol(ListWidget["each"], Decl(checkOrderEmitBeforeCheck.ts, 7, 19)) +>Child : Symbol(Child, Decl(checkOrderEmitBeforeCheck.ts, 3, 90)) +>ListWidget : Symbol(ListWidget, Decl(checkOrderEmitBeforeCheck.ts, 4, 51)) +} + +type ListChild = Child +>ListChild : Symbol(ListChild, Decl(checkOrderEmitBeforeCheck.ts, 9, 1)) +>Child : Symbol(Child, Decl(checkOrderEmitBeforeCheck.ts, 3, 90)) +>ListWidget : Symbol(ListWidget, Decl(checkOrderEmitBeforeCheck.ts, 4, 51)) + +declare let x: ListChild; +>x : Symbol(x, Decl(checkOrderEmitBeforeCheck.ts, 13, 11)) +>ListChild : Symbol(ListChild, Decl(checkOrderEmitBeforeCheck.ts, 9, 1)) + +x.type; +>x : Symbol(x, Decl(checkOrderEmitBeforeCheck.ts, 13, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).types new file mode 100644 index 0000000000000..dfa8cb7adbabd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=default).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/checkOrderEmitBeforeCheck.ts] //// + +=== checkOrderEmitBeforeCheck.ts === +// The circularity in the mapped type is found by checking the annotation of +// "each". Emitting first must not instead report it at the use import +// elision visits, nor cache the result without the error. +type NonOptionalKeys = { [P in keyof T]: undefined extends T[P] ? never : P }[keyof T]; +>NonOptionalKeys : NonOptionalKeys + +type Child = { [P in NonOptionalKeys]: T[P] } +>Child : Child + +export interface ListWidget { + "type": "list", +>"type" : "list" + + "each": Child; +>"each" : any +} + +type ListChild = Child +>ListChild : ListChild + +declare let x: ListChild; +>x : ListChild + +x.type; +>x.type : any +>x : ListChild +>type : any + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).errors.txt new file mode 100644 index 0000000000000..c220c7e1092af --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).errors.txt @@ -0,0 +1,25 @@ +checkOrderEmitBeforeCheck.ts(9,5): error TS2502: '"each"' is referenced directly or indirectly in its own type annotation. +checkOrderEmitBeforeCheck.ts(9,13): error TS2615: Type of property '"each"' circularly references itself in mapped type '{ [P in keyof ListWidget]: undefined extends ListWidget[P] ? never : P; }'. + + +==== checkOrderEmitBeforeCheck.ts (2 errors) ==== + // The circularity in the mapped type is found by checking the annotation of + // "each". Emitting first must not instead report it at the use import + // elision visits, nor cache the result without the error. + type NonOptionalKeys = { [P in keyof T]: undefined extends T[P] ? never : P }[keyof T]; + type Child = { [P in NonOptionalKeys]: T[P] } + + export interface ListWidget { + "type": "list", + "each": Child; + ~~~~~~ +!!! error TS2502: '"each"' is referenced directly or indirectly in its own type annotation. + ~~~~~~~~~~~~~~~~~ +!!! error TS2615: Type of property '"each"' circularly references itself in mapped type '{ [P in keyof ListWidget]: undefined extends ListWidget[P] ? never : P; }'. + } + + type ListChild = Child + + declare let x: ListChild; + x.type; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).js b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).js new file mode 100644 index 0000000000000..0ceb03c6477d2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).js @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/checkOrderEmitBeforeCheck.ts] //// + +//// [checkOrderEmitBeforeCheck.ts] +// The circularity in the mapped type is found by checking the annotation of +// "each". Emitting first must not instead report it at the use import +// elision visits, nor cache the result without the error. +type NonOptionalKeys = { [P in keyof T]: undefined extends T[P] ? never : P }[keyof T]; +type Child = { [P in NonOptionalKeys]: T[P] } + +export interface ListWidget { + "type": "list", + "each": Child; +} + +type ListChild = Child + +declare let x: ListChild; +x.type; + + +//// [checkOrderEmitBeforeCheck.js] +x.type; +export {}; + + +//// [checkOrderEmitBeforeCheck.d.ts] +type NonOptionalKeys = { + [P in keyof T]: undefined extends T[P] ? never : P; +}[keyof T]; +type Child = { + [P in NonOptionalKeys]: T[P]; +}; +export interface ListWidget { + "type": "list"; + "each": Child; +} +export {}; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).symbols new file mode 100644 index 0000000000000..9de1daaccd55e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).symbols @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/checkOrderEmitBeforeCheck.ts] //// + +=== checkOrderEmitBeforeCheck.ts === +// The circularity in the mapped type is found by checking the annotation of +// "each". Emitting first must not instead report it at the use import +// elision visits, nor cache the result without the error. +type NonOptionalKeys = { [P in keyof T]: undefined extends T[P] ? never : P }[keyof T]; +>NonOptionalKeys : Symbol(NonOptionalKeys, Decl(checkOrderEmitBeforeCheck.ts, 0, 0)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 3, 21)) +>P : Symbol(P, Decl(checkOrderEmitBeforeCheck.ts, 3, 29)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 3, 21)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 3, 21)) +>P : Symbol(P, Decl(checkOrderEmitBeforeCheck.ts, 3, 29)) +>P : Symbol(P, Decl(checkOrderEmitBeforeCheck.ts, 3, 29)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 3, 21)) + +type Child = { [P in NonOptionalKeys]: T[P] } +>Child : Symbol(Child, Decl(checkOrderEmitBeforeCheck.ts, 3, 90)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 4, 11)) +>P : Symbol(P, Decl(checkOrderEmitBeforeCheck.ts, 4, 19)) +>NonOptionalKeys : Symbol(NonOptionalKeys, Decl(checkOrderEmitBeforeCheck.ts, 0, 0)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 4, 11)) +>T : Symbol(T, Decl(checkOrderEmitBeforeCheck.ts, 4, 11)) +>P : Symbol(P, Decl(checkOrderEmitBeforeCheck.ts, 4, 19)) + +export interface ListWidget { +>ListWidget : Symbol(ListWidget, Decl(checkOrderEmitBeforeCheck.ts, 4, 51)) + + "type": "list", +>"type" : Symbol(ListWidget["type"], Decl(checkOrderEmitBeforeCheck.ts, 6, 29)) + + "each": Child; +>"each" : Symbol(ListWidget["each"], Decl(checkOrderEmitBeforeCheck.ts, 7, 19)) +>Child : Symbol(Child, Decl(checkOrderEmitBeforeCheck.ts, 3, 90)) +>ListWidget : Symbol(ListWidget, Decl(checkOrderEmitBeforeCheck.ts, 4, 51)) +} + +type ListChild = Child +>ListChild : Symbol(ListChild, Decl(checkOrderEmitBeforeCheck.ts, 9, 1)) +>Child : Symbol(Child, Decl(checkOrderEmitBeforeCheck.ts, 3, 90)) +>ListWidget : Symbol(ListWidget, Decl(checkOrderEmitBeforeCheck.ts, 4, 51)) + +declare let x: ListChild; +>x : Symbol(x, Decl(checkOrderEmitBeforeCheck.ts, 13, 11)) +>ListChild : Symbol(ListChild, Decl(checkOrderEmitBeforeCheck.ts, 9, 1)) + +x.type; +>x : Symbol(x, Decl(checkOrderEmitBeforeCheck.ts, 13, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).types new file mode 100644 index 0000000000000..dfa8cb7adbabd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEmitBeforeCheck(checkorder=isolated).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/checkOrderEmitBeforeCheck.ts] //// + +=== checkOrderEmitBeforeCheck.ts === +// The circularity in the mapped type is found by checking the annotation of +// "each". Emitting first must not instead report it at the use import +// elision visits, nor cache the result without the error. +type NonOptionalKeys = { [P in keyof T]: undefined extends T[P] ? never : P }[keyof T]; +>NonOptionalKeys : NonOptionalKeys + +type Child = { [P in NonOptionalKeys]: T[P] } +>Child : Child + +export interface ListWidget { + "type": "list", +>"type" : "list" + + "each": Child; +>"each" : any +} + +type ListChild = Child +>ListChild : ListChild + +declare let x: ListChild; +>x : ListChild + +x.type; +>x.type : any +>x : ListChild +>type : any + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).js new file mode 100644 index 0000000000000..fe0caa60a4dc6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +//// [checkOrderEnumComputedMember.ts] +enum E { + A = 0, + B = E.A.valueOf(), + C = 1, +} + +const member: Extract = E.C; + + +//// [checkOrderEnumComputedMember.js] +"use strict"; +var E; +(function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = E.A.valueOf()] = "B"; + E[E["C"] = 1] = "C"; +})(E || (E = {})); +const member = E.C; + + +//// [checkOrderEnumComputedMember.d.ts] +declare enum E { + A = 0, + B, + C = 1 +} +declare const member: Extract; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).symbols new file mode 100644 index 0000000000000..543ee2b641c26 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +=== checkOrderEnumComputedMember.ts === +enum E { +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) + + A = 0, +>A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) + + B = E.A.valueOf(), +>B : Symbol(E.B, Decl(checkOrderEnumComputedMember.ts, 1, 10)) +>E.A.valueOf : Symbol(Number.valueOf, Decl(lib.es5.d.ts, --, --)) +>E.A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) +>valueOf : Symbol(Number.valueOf, Decl(lib.es5.d.ts, --, --)) + + C = 1, +>C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) +} + +const member: Extract = E.C; +>member : Symbol(member, Decl(checkOrderEnumComputedMember.ts, 6, 5)) +>Extract : Symbol(Extract, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>E.C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).types new file mode 100644 index 0000000000000..39ddeced5f433 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=default).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +=== checkOrderEnumComputedMember.ts === +enum E { +>E : E + + A = 0, +>A : E.A +>0 : 0 + + B = E.A.valueOf(), +>B : E.B +>E.A.valueOf() : number +>E.A.valueOf : () => number +>E.A : E.A +>E : typeof E +>A : E.A +>valueOf : () => number + + C = 1, +>C : E.C +>1 : 1 +} + +const member: Extract = E.C; +>member : E.C +>E.C : E.C +>E : typeof E +>C : E.C + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).js b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).js new file mode 100644 index 0000000000000..fe0caa60a4dc6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +//// [checkOrderEnumComputedMember.ts] +enum E { + A = 0, + B = E.A.valueOf(), + C = 1, +} + +const member: Extract = E.C; + + +//// [checkOrderEnumComputedMember.js] +"use strict"; +var E; +(function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = E.A.valueOf()] = "B"; + E[E["C"] = 1] = "C"; +})(E || (E = {})); +const member = E.C; + + +//// [checkOrderEnumComputedMember.d.ts] +declare enum E { + A = 0, + B, + C = 1 +} +declare const member: Extract; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).symbols new file mode 100644 index 0000000000000..543ee2b641c26 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +=== checkOrderEnumComputedMember.ts === +enum E { +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) + + A = 0, +>A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) + + B = E.A.valueOf(), +>B : Symbol(E.B, Decl(checkOrderEnumComputedMember.ts, 1, 10)) +>E.A.valueOf : Symbol(Number.valueOf, Decl(lib.es5.d.ts, --, --)) +>E.A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) +>valueOf : Symbol(Number.valueOf, Decl(lib.es5.d.ts, --, --)) + + C = 1, +>C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) +} + +const member: Extract = E.C; +>member : Symbol(member, Decl(checkOrderEnumComputedMember.ts, 6, 5)) +>Extract : Symbol(Extract, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>E.C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).types new file mode 100644 index 0000000000000..7ec12ac791f04 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=isolated).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +=== checkOrderEnumComputedMember.ts === +enum E { +>E : E + + A = 0, +>A : E.A +>0 : 0 + + B = E.A.valueOf(), +>B : E.B +>E.A.valueOf() : number +>E.A.valueOf : () => number +>E.A : E.A +>E : typeof E +>A : E.A +>valueOf : () => number + + C = 1, +>C : E.C +>1 : 1 +} + +const member: Extract = E.C; +>member : never +>E.C : E.C +>E : typeof E +>C : E.C + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).js b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).js new file mode 100644 index 0000000000000..fe0caa60a4dc6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +//// [checkOrderEnumComputedMember.ts] +enum E { + A = 0, + B = E.A.valueOf(), + C = 1, +} + +const member: Extract = E.C; + + +//// [checkOrderEnumComputedMember.js] +"use strict"; +var E; +(function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = E.A.valueOf()] = "B"; + E[E["C"] = 1] = "C"; +})(E || (E = {})); +const member = E.C; + + +//// [checkOrderEnumComputedMember.d.ts] +declare enum E { + A = 0, + B, + C = 1 +} +declare const member: Extract; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).symbols new file mode 100644 index 0000000000000..543ee2b641c26 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +=== checkOrderEnumComputedMember.ts === +enum E { +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) + + A = 0, +>A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) + + B = E.A.valueOf(), +>B : Symbol(E.B, Decl(checkOrderEnumComputedMember.ts, 1, 10)) +>E.A.valueOf : Symbol(Number.valueOf, Decl(lib.es5.d.ts, --, --)) +>E.A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) +>valueOf : Symbol(Number.valueOf, Decl(lib.es5.d.ts, --, --)) + + C = 1, +>C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) +} + +const member: Extract = E.C; +>member : Symbol(member, Decl(checkOrderEnumComputedMember.ts, 6, 5)) +>Extract : Symbol(Extract, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>E.C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).types new file mode 100644 index 0000000000000..39ddeced5f433 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=reverse).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +=== checkOrderEnumComputedMember.ts === +enum E { +>E : E + + A = 0, +>A : E.A +>0 : 0 + + B = E.A.valueOf(), +>B : E.B +>E.A.valueOf() : number +>E.A.valueOf : () => number +>E.A : E.A +>E : typeof E +>A : E.A +>valueOf : () => number + + C = 1, +>C : E.C +>1 : 1 +} + +const member: Extract = E.C; +>member : E.C +>E.C : E.C +>E : typeof E +>C : E.C + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).js new file mode 100644 index 0000000000000..fe0caa60a4dc6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).js @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +//// [checkOrderEnumComputedMember.ts] +enum E { + A = 0, + B = E.A.valueOf(), + C = 1, +} + +const member: Extract = E.C; + + +//// [checkOrderEnumComputedMember.js] +"use strict"; +var E; +(function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = E.A.valueOf()] = "B"; + E[E["C"] = 1] = "C"; +})(E || (E = {})); +const member = E.C; + + +//// [checkOrderEnumComputedMember.d.ts] +declare enum E { + A = 0, + B, + C = 1 +} +declare const member: Extract; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..543ee2b641c26 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +=== checkOrderEnumComputedMember.ts === +enum E { +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) + + A = 0, +>A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) + + B = E.A.valueOf(), +>B : Symbol(E.B, Decl(checkOrderEnumComputedMember.ts, 1, 10)) +>E.A.valueOf : Symbol(Number.valueOf, Decl(lib.es5.d.ts, --, --)) +>E.A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>A : Symbol(E.A, Decl(checkOrderEnumComputedMember.ts, 0, 8)) +>valueOf : Symbol(Number.valueOf, Decl(lib.es5.d.ts, --, --)) + + C = 1, +>C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) +} + +const member: Extract = E.C; +>member : Symbol(member, Decl(checkOrderEnumComputedMember.ts, 6, 5)) +>Extract : Symbol(Extract, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>E.C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) +>E : Symbol(E, Decl(checkOrderEnumComputedMember.ts, 0, 0)) +>C : Symbol(E.C, Decl(checkOrderEnumComputedMember.ts, 2, 22)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).types new file mode 100644 index 0000000000000..39ddeced5f433 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderEnumComputedMember(checkorder=typesfirst).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/checkOrderEnumComputedMember.ts] //// + +=== checkOrderEnumComputedMember.ts === +enum E { +>E : E + + A = 0, +>A : E.A +>0 : 0 + + B = E.A.valueOf(), +>B : E.B +>E.A.valueOf() : number +>E.A.valueOf : () => number +>E.A : E.A +>E : typeof E +>A : E.A +>valueOf : () => number + + C = 1, +>C : E.C +>1 : 1 +} + +const member: Extract = E.C; +>member : E.C +>E.C : E.C +>E : typeof E +>C : E.C + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).errors.txt new file mode 100644 index 0000000000000..22ee511f52182 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).errors.txt @@ -0,0 +1,22 @@ +checkOrderLateBoundMembers.ts(6,9): error TS2300: Duplicate identifier 'foo'. +checkOrderLateBoundMembers.ts(7,5): error TS2300: Duplicate identifier 'foo'. +checkOrderLateBoundMembers.ts(8,9): error TS2300: Duplicate identifier 'foo'. + + +==== checkOrderLateBoundMembers.ts (3 errors) ==== + // Resolving the name in a computed property name looks it up in the members + // of the enclosing interface. That must not late-bind those same members, + // or the accessors would not merge with the property when asked first. + const foo = "foo" + interface I { + get [foo](): number; + ~~~~~ +!!! error TS2300: Duplicate identifier 'foo'. + foo: number; + ~~~ +!!! error TS2300: Duplicate identifier 'foo'. + set [foo](value: number); + ~~~~~ +!!! error TS2300: Duplicate identifier 'foo'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).symbols new file mode 100644 index 0000000000000..5d947b8a60834 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/checkOrderLateBoundMembers.ts] //// + +=== checkOrderLateBoundMembers.ts === +// Resolving the name in a computed property name looks it up in the members +// of the enclosing interface. That must not late-bind those same members, +// or the accessors would not merge with the property when asked first. +const foo = "foo" +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) + +interface I { +>I : Symbol(I, Decl(checkOrderLateBoundMembers.ts, 3, 17)) + + get [foo](): number; +>[foo] : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) + + foo: number; +>foo : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) + + set [foo](value: number); +>[foo] : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) +>value : Symbol(value, Decl(checkOrderLateBoundMembers.ts, 7, 14)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).types new file mode 100644 index 0000000000000..d6be33f1e73b4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=default).types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/checkOrderLateBoundMembers.ts] //// + +=== checkOrderLateBoundMembers.ts === +// Resolving the name in a computed property name looks it up in the members +// of the enclosing interface. That must not late-bind those same members, +// or the accessors would not merge with the property when asked first. +const foo = "foo" +>foo : "foo" +>"foo" : "foo" + +interface I { + get [foo](): number; +>[foo] : number +>foo : "foo" + + foo: number; +>foo : number + + set [foo](value: number); +>[foo] : number +>foo : "foo" +>value : number +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).errors.txt new file mode 100644 index 0000000000000..22ee511f52182 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).errors.txt @@ -0,0 +1,22 @@ +checkOrderLateBoundMembers.ts(6,9): error TS2300: Duplicate identifier 'foo'. +checkOrderLateBoundMembers.ts(7,5): error TS2300: Duplicate identifier 'foo'. +checkOrderLateBoundMembers.ts(8,9): error TS2300: Duplicate identifier 'foo'. + + +==== checkOrderLateBoundMembers.ts (3 errors) ==== + // Resolving the name in a computed property name looks it up in the members + // of the enclosing interface. That must not late-bind those same members, + // or the accessors would not merge with the property when asked first. + const foo = "foo" + interface I { + get [foo](): number; + ~~~~~ +!!! error TS2300: Duplicate identifier 'foo'. + foo: number; + ~~~ +!!! error TS2300: Duplicate identifier 'foo'. + set [foo](value: number); + ~~~~~ +!!! error TS2300: Duplicate identifier 'foo'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).symbols new file mode 100644 index 0000000000000..5d947b8a60834 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/checkOrderLateBoundMembers.ts] //// + +=== checkOrderLateBoundMembers.ts === +// Resolving the name in a computed property name looks it up in the members +// of the enclosing interface. That must not late-bind those same members, +// or the accessors would not merge with the property when asked first. +const foo = "foo" +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) + +interface I { +>I : Symbol(I, Decl(checkOrderLateBoundMembers.ts, 3, 17)) + + get [foo](): number; +>[foo] : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) + + foo: number; +>foo : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) + + set [foo](value: number); +>[foo] : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) +>value : Symbol(value, Decl(checkOrderLateBoundMembers.ts, 7, 14)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).types new file mode 100644 index 0000000000000..d6be33f1e73b4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=isolated).types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/checkOrderLateBoundMembers.ts] //// + +=== checkOrderLateBoundMembers.ts === +// Resolving the name in a computed property name looks it up in the members +// of the enclosing interface. That must not late-bind those same members, +// or the accessors would not merge with the property when asked first. +const foo = "foo" +>foo : "foo" +>"foo" : "foo" + +interface I { + get [foo](): number; +>[foo] : number +>foo : "foo" + + foo: number; +>foo : number + + set [foo](value: number); +>[foo] : number +>foo : "foo" +>value : number +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).errors.txt new file mode 100644 index 0000000000000..22ee511f52182 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).errors.txt @@ -0,0 +1,22 @@ +checkOrderLateBoundMembers.ts(6,9): error TS2300: Duplicate identifier 'foo'. +checkOrderLateBoundMembers.ts(7,5): error TS2300: Duplicate identifier 'foo'. +checkOrderLateBoundMembers.ts(8,9): error TS2300: Duplicate identifier 'foo'. + + +==== checkOrderLateBoundMembers.ts (3 errors) ==== + // Resolving the name in a computed property name looks it up in the members + // of the enclosing interface. That must not late-bind those same members, + // or the accessors would not merge with the property when asked first. + const foo = "foo" + interface I { + get [foo](): number; + ~~~~~ +!!! error TS2300: Duplicate identifier 'foo'. + foo: number; + ~~~ +!!! error TS2300: Duplicate identifier 'foo'. + set [foo](value: number); + ~~~~~ +!!! error TS2300: Duplicate identifier 'foo'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).symbols new file mode 100644 index 0000000000000..5d947b8a60834 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/checkOrderLateBoundMembers.ts] //// + +=== checkOrderLateBoundMembers.ts === +// Resolving the name in a computed property name looks it up in the members +// of the enclosing interface. That must not late-bind those same members, +// or the accessors would not merge with the property when asked first. +const foo = "foo" +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) + +interface I { +>I : Symbol(I, Decl(checkOrderLateBoundMembers.ts, 3, 17)) + + get [foo](): number; +>[foo] : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) + + foo: number; +>foo : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) + + set [foo](value: number); +>[foo] : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) +>value : Symbol(value, Decl(checkOrderLateBoundMembers.ts, 7, 14)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).types new file mode 100644 index 0000000000000..d6be33f1e73b4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=reverse).types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/checkOrderLateBoundMembers.ts] //// + +=== checkOrderLateBoundMembers.ts === +// Resolving the name in a computed property name looks it up in the members +// of the enclosing interface. That must not late-bind those same members, +// or the accessors would not merge with the property when asked first. +const foo = "foo" +>foo : "foo" +>"foo" : "foo" + +interface I { + get [foo](): number; +>[foo] : number +>foo : "foo" + + foo: number; +>foo : number + + set [foo](value: number); +>[foo] : number +>foo : "foo" +>value : number +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..22ee511f52182 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).errors.txt @@ -0,0 +1,22 @@ +checkOrderLateBoundMembers.ts(6,9): error TS2300: Duplicate identifier 'foo'. +checkOrderLateBoundMembers.ts(7,5): error TS2300: Duplicate identifier 'foo'. +checkOrderLateBoundMembers.ts(8,9): error TS2300: Duplicate identifier 'foo'. + + +==== checkOrderLateBoundMembers.ts (3 errors) ==== + // Resolving the name in a computed property name looks it up in the members + // of the enclosing interface. That must not late-bind those same members, + // or the accessors would not merge with the property when asked first. + const foo = "foo" + interface I { + get [foo](): number; + ~~~~~ +!!! error TS2300: Duplicate identifier 'foo'. + foo: number; + ~~~ +!!! error TS2300: Duplicate identifier 'foo'. + set [foo](value: number); + ~~~~~ +!!! error TS2300: Duplicate identifier 'foo'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..5d947b8a60834 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/checkOrderLateBoundMembers.ts] //// + +=== checkOrderLateBoundMembers.ts === +// Resolving the name in a computed property name looks it up in the members +// of the enclosing interface. That must not late-bind those same members, +// or the accessors would not merge with the property when asked first. +const foo = "foo" +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) + +interface I { +>I : Symbol(I, Decl(checkOrderLateBoundMembers.ts, 3, 17)) + + get [foo](): number; +>[foo] : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) + + foo: number; +>foo : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) + + set [foo](value: number); +>[foo] : Symbol(I.foo, Decl(checkOrderLateBoundMembers.ts, 5, 24), Decl(checkOrderLateBoundMembers.ts, 4, 13), Decl(checkOrderLateBoundMembers.ts, 6, 16)) +>foo : Symbol(foo, Decl(checkOrderLateBoundMembers.ts, 3, 5)) +>value : Symbol(value, Decl(checkOrderLateBoundMembers.ts, 7, 14)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).types new file mode 100644 index 0000000000000..d6be33f1e73b4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderLateBoundMembers(checkorder=typesfirst).types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/checkOrderLateBoundMembers.ts] //// + +=== checkOrderLateBoundMembers.ts === +// Resolving the name in a computed property name looks it up in the members +// of the enclosing interface. That must not late-bind those same members, +// or the accessors would not merge with the property when asked first. +const foo = "foo" +>foo : "foo" +>"foo" : "foo" + +interface I { + get [foo](): number; +>[foo] : number +>foo : "foo" + + foo: number; +>foo : number + + set [foo](value: number); +>[foo] : number +>foo : "foo" +>value : number +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).js new file mode 100644 index 0000000000000..1d37a15bf23bd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +//// [index.js] +module.exports.i = function i() {} +module.exports.ii = module.exports.i; + + +//// [index.js] +"use strict"; +module.exports.i = function i() { }; +module.exports.ii = module.exports.i; + + +//// [index.d.ts] +export declare var i: () => void; +export declare var ii: () => void; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).symbols new file mode 100644 index 0000000000000..f14879d6cea9a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +=== index.js === +module.exports.i = function i() {} +>module.exports.i : Symbol(i, Decl(index.js, 0, 0)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 18)) + +module.exports.ii = module.exports.i; +>module.exports.ii : Symbol(ii, Decl(index.js, 0, 34)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>ii : Symbol(ii, Decl(index.js, 0, 34)) +>module.exports.i : Symbol(i, Decl(index.js, 0, 0)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).types new file mode 100644 index 0000000000000..f940f148c6541 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=default).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +=== index.js === +module.exports.i = function i() {} +>module.exports.i = function i() {} : () => void +>module.exports.i : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>i : () => void +>function i() {} : () => void +>i : () => void + +module.exports.ii = module.exports.i; +>module.exports.ii = module.exports.i : () => void +>module.exports.ii : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>ii : () => void +>module.exports.i : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>i : () => void + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).js b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).js new file mode 100644 index 0000000000000..1d37a15bf23bd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +//// [index.js] +module.exports.i = function i() {} +module.exports.ii = module.exports.i; + + +//// [index.js] +"use strict"; +module.exports.i = function i() { }; +module.exports.ii = module.exports.i; + + +//// [index.d.ts] +export declare var i: () => void; +export declare var ii: () => void; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).symbols new file mode 100644 index 0000000000000..f14879d6cea9a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +=== index.js === +module.exports.i = function i() {} +>module.exports.i : Symbol(i, Decl(index.js, 0, 0)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 18)) + +module.exports.ii = module.exports.i; +>module.exports.ii : Symbol(ii, Decl(index.js, 0, 34)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>ii : Symbol(ii, Decl(index.js, 0, 34)) +>module.exports.i : Symbol(i, Decl(index.js, 0, 0)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).types new file mode 100644 index 0000000000000..f940f148c6541 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=isolated).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +=== index.js === +module.exports.i = function i() {} +>module.exports.i = function i() {} : () => void +>module.exports.i : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>i : () => void +>function i() {} : () => void +>i : () => void + +module.exports.ii = module.exports.i; +>module.exports.ii = module.exports.i : () => void +>module.exports.ii : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>ii : () => void +>module.exports.i : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>i : () => void + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).js b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).js new file mode 100644 index 0000000000000..1d37a15bf23bd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +//// [index.js] +module.exports.i = function i() {} +module.exports.ii = module.exports.i; + + +//// [index.js] +"use strict"; +module.exports.i = function i() { }; +module.exports.ii = module.exports.i; + + +//// [index.d.ts] +export declare var i: () => void; +export declare var ii: () => void; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).symbols new file mode 100644 index 0000000000000..f14879d6cea9a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +=== index.js === +module.exports.i = function i() {} +>module.exports.i : Symbol(i, Decl(index.js, 0, 0)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 18)) + +module.exports.ii = module.exports.i; +>module.exports.ii : Symbol(ii, Decl(index.js, 0, 34)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>ii : Symbol(ii, Decl(index.js, 0, 34)) +>module.exports.i : Symbol(i, Decl(index.js, 0, 0)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).types new file mode 100644 index 0000000000000..f940f148c6541 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=reverse).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +=== index.js === +module.exports.i = function i() {} +>module.exports.i = function i() {} : () => void +>module.exports.i : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>i : () => void +>function i() {} : () => void +>i : () => void + +module.exports.ii = module.exports.i; +>module.exports.ii = module.exports.i : () => void +>module.exports.ii : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>ii : () => void +>module.exports.i : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>i : () => void + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).js new file mode 100644 index 0000000000000..1d37a15bf23bd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +//// [index.js] +module.exports.i = function i() {} +module.exports.ii = module.exports.i; + + +//// [index.js] +"use strict"; +module.exports.i = function i() { }; +module.exports.ii = module.exports.i; + + +//// [index.d.ts] +export declare var i: () => void; +export declare var ii: () => void; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..f14879d6cea9a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).symbols @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +=== index.js === +module.exports.i = function i() {} +>module.exports.i : Symbol(i, Decl(index.js, 0, 0)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 18)) + +module.exports.ii = module.exports.i; +>module.exports.ii : Symbol(ii, Decl(index.js, 0, 34)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>ii : Symbol(ii, Decl(index.js, 0, 34)) +>module.exports.i : Symbol(i, Decl(index.js, 0, 0)) +>module.exports : Symbol(exports, Decl(index.js, 0, 0)) +>module : Symbol(module, Decl(index.js, 0, 0)) +>exports : Symbol(exports, Decl(index.js, 0, 0)) +>i : Symbol(i, Decl(index.js, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).types new file mode 100644 index 0000000000000..f940f148c6541 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderModuleExportsAlias(checkorder=typesfirst).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/checkOrderModuleExportsAlias.ts] //// + +=== index.js === +module.exports.i = function i() {} +>module.exports.i = function i() {} : () => void +>module.exports.i : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>i : () => void +>function i() {} : () => void +>i : () => void + +module.exports.ii = module.exports.i; +>module.exports.ii = module.exports.i : () => void +>module.exports.ii : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>ii : () => void +>module.exports.i : () => void +>module.exports : typeof import(".") +>module : { exports: typeof import("."); } +>exports : typeof import(".") +>i : () => void + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).js new file mode 100644 index 0000000000000..749ae4044d77f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +//// [checkOrderParameterInTypeQuery.ts] +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { + #a = 1; + test1() { + class C { + test1(a: C2): typeof a.#a { + return 1; + } + } + return new C().test1(this); + } +} + + +//// [checkOrderParameterInTypeQuery.js] +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. +export class C2 { + #a = 1; + test1() { + class C { + test1(a) { + return 1; + } + } + return new C().test1(this); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).symbols new file mode 100644 index 0000000000000..7f3da2b79534f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +=== checkOrderParameterInTypeQuery.ts === +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { +>C2 : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) + + #a = 1; +>#a : Symbol(C2.#a, Decl(checkOrderParameterInTypeQuery.ts, 4, 17)) + + test1() { +>test1 : Symbol(C2.test1, Decl(checkOrderParameterInTypeQuery.ts, 5, 11)) + + class C { +>C : Symbol(C, Decl(checkOrderParameterInTypeQuery.ts, 6, 13)) + + test1(a: C2): typeof a.#a { +>test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>a : Symbol(a, Decl(checkOrderParameterInTypeQuery.ts, 8, 18)) +>C2 : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) +>a.#a : Symbol(C2.#a, Decl(checkOrderParameterInTypeQuery.ts, 4, 17)) +>a : Symbol(a, Decl(checkOrderParameterInTypeQuery.ts, 8, 18)) + + return 1; + } + } + return new C().test1(this); +>new C().test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>C : Symbol(C, Decl(checkOrderParameterInTypeQuery.ts, 6, 13)) +>test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>this : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).types new file mode 100644 index 0000000000000..c7f091d02bcb0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=default).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +=== checkOrderParameterInTypeQuery.ts === +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { +>C2 : C2 + + #a = 1; +>#a : number +>1 : 1 + + test1() { +>test1 : () => number + + class C { +>C : C + + test1(a: C2): typeof a.#a { +>test1 : (a: C2) => typeof a.#a +>a : C2 +>a.#a : number +>a : C2 + + return 1; +>1 : 1 + } + } + return new C().test1(this); +>new C().test1(this) : number +>new C().test1 : (a: C2) => typeof a.#a +>new C() : C +>C : typeof C +>test1 : (a: C2) => typeof a.#a +>this : this + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).js b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).js new file mode 100644 index 0000000000000..749ae4044d77f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +//// [checkOrderParameterInTypeQuery.ts] +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { + #a = 1; + test1() { + class C { + test1(a: C2): typeof a.#a { + return 1; + } + } + return new C().test1(this); + } +} + + +//// [checkOrderParameterInTypeQuery.js] +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. +export class C2 { + #a = 1; + test1() { + class C { + test1(a) { + return 1; + } + } + return new C().test1(this); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).symbols new file mode 100644 index 0000000000000..7f3da2b79534f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +=== checkOrderParameterInTypeQuery.ts === +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { +>C2 : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) + + #a = 1; +>#a : Symbol(C2.#a, Decl(checkOrderParameterInTypeQuery.ts, 4, 17)) + + test1() { +>test1 : Symbol(C2.test1, Decl(checkOrderParameterInTypeQuery.ts, 5, 11)) + + class C { +>C : Symbol(C, Decl(checkOrderParameterInTypeQuery.ts, 6, 13)) + + test1(a: C2): typeof a.#a { +>test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>a : Symbol(a, Decl(checkOrderParameterInTypeQuery.ts, 8, 18)) +>C2 : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) +>a.#a : Symbol(C2.#a, Decl(checkOrderParameterInTypeQuery.ts, 4, 17)) +>a : Symbol(a, Decl(checkOrderParameterInTypeQuery.ts, 8, 18)) + + return 1; + } + } + return new C().test1(this); +>new C().test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>C : Symbol(C, Decl(checkOrderParameterInTypeQuery.ts, 6, 13)) +>test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>this : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).types new file mode 100644 index 0000000000000..0c9c1f6dcfb8d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=isolated).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +=== checkOrderParameterInTypeQuery.ts === +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { +>C2 : C2 + + #a = 1; +>#a : number +>1 : 1 + + test1() { +>test1 : () => number + + class C { +>C : C + + test1(a: C2): typeof a.#a { +>test1 : (a: C2) => typeof a.#a +>a : C2 +>a.#a : number +>a : C2 + + return 1; +>1 : 1 + } + } + return new C().test1(this); +>new C().test1(this) : number +>new C().test1 : (a: C2) => number +>new C() : C +>C : typeof C +>test1 : (a: C2) => number +>this : this + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).js b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).js new file mode 100644 index 0000000000000..749ae4044d77f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +//// [checkOrderParameterInTypeQuery.ts] +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { + #a = 1; + test1() { + class C { + test1(a: C2): typeof a.#a { + return 1; + } + } + return new C().test1(this); + } +} + + +//// [checkOrderParameterInTypeQuery.js] +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. +export class C2 { + #a = 1; + test1() { + class C { + test1(a) { + return 1; + } + } + return new C().test1(this); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).symbols new file mode 100644 index 0000000000000..7f3da2b79534f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +=== checkOrderParameterInTypeQuery.ts === +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { +>C2 : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) + + #a = 1; +>#a : Symbol(C2.#a, Decl(checkOrderParameterInTypeQuery.ts, 4, 17)) + + test1() { +>test1 : Symbol(C2.test1, Decl(checkOrderParameterInTypeQuery.ts, 5, 11)) + + class C { +>C : Symbol(C, Decl(checkOrderParameterInTypeQuery.ts, 6, 13)) + + test1(a: C2): typeof a.#a { +>test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>a : Symbol(a, Decl(checkOrderParameterInTypeQuery.ts, 8, 18)) +>C2 : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) +>a.#a : Symbol(C2.#a, Decl(checkOrderParameterInTypeQuery.ts, 4, 17)) +>a : Symbol(a, Decl(checkOrderParameterInTypeQuery.ts, 8, 18)) + + return 1; + } + } + return new C().test1(this); +>new C().test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>C : Symbol(C, Decl(checkOrderParameterInTypeQuery.ts, 6, 13)) +>test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>this : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).types new file mode 100644 index 0000000000000..c7f091d02bcb0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=reverse).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +=== checkOrderParameterInTypeQuery.ts === +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { +>C2 : C2 + + #a = 1; +>#a : number +>1 : 1 + + test1() { +>test1 : () => number + + class C { +>C : C + + test1(a: C2): typeof a.#a { +>test1 : (a: C2) => typeof a.#a +>a : C2 +>a.#a : number +>a : C2 + + return 1; +>1 : 1 + } + } + return new C().test1(this); +>new C().test1(this) : number +>new C().test1 : (a: C2) => typeof a.#a +>new C() : C +>C : typeof C +>test1 : (a: C2) => typeof a.#a +>this : this + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).js new file mode 100644 index 0000000000000..749ae4044d77f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +//// [checkOrderParameterInTypeQuery.ts] +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { + #a = 1; + test1() { + class C { + test1(a: C2): typeof a.#a { + return 1; + } + } + return new C().test1(this); + } +} + + +//// [checkOrderParameterInTypeQuery.js] +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. +export class C2 { + #a = 1; + test1() { + class C { + test1(a) { + return 1; + } + } + return new C().test1(this); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..7f3da2b79534f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +=== checkOrderParameterInTypeQuery.ts === +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { +>C2 : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) + + #a = 1; +>#a : Symbol(C2.#a, Decl(checkOrderParameterInTypeQuery.ts, 4, 17)) + + test1() { +>test1 : Symbol(C2.test1, Decl(checkOrderParameterInTypeQuery.ts, 5, 11)) + + class C { +>C : Symbol(C, Decl(checkOrderParameterInTypeQuery.ts, 6, 13)) + + test1(a: C2): typeof a.#a { +>test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>a : Symbol(a, Decl(checkOrderParameterInTypeQuery.ts, 8, 18)) +>C2 : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) +>a.#a : Symbol(C2.#a, Decl(checkOrderParameterInTypeQuery.ts, 4, 17)) +>a : Symbol(a, Decl(checkOrderParameterInTypeQuery.ts, 8, 18)) + + return 1; + } + } + return new C().test1(this); +>new C().test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>C : Symbol(C, Decl(checkOrderParameterInTypeQuery.ts, 6, 13)) +>test1 : Symbol(C.test1, Decl(checkOrderParameterInTypeQuery.ts, 7, 17)) +>this : Symbol(C2, Decl(checkOrderParameterInTypeQuery.ts, 0, 0)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).types new file mode 100644 index 0000000000000..0c9c1f6dcfb8d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderParameterInTypeQuery(checkorder=typesfirst).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/checkOrderParameterInTypeQuery.ts] //// + +=== checkOrderParameterInTypeQuery.ts === +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { +>C2 : C2 + + #a = 1; +>#a : number +>1 : 1 + + test1() { +>test1 : () => number + + class C { +>C : C + + test1(a: C2): typeof a.#a { +>test1 : (a: C2) => typeof a.#a +>a : C2 +>a.#a : number +>a : C2 + + return 1; +>1 : 1 + } + } + return new C().test1(this); +>new C().test1(this) : number +>new C().test1 : (a: C2) => number +>new C() : C +>C : typeof C +>test1 : (a: C2) => number +>this : this + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).errors.txt new file mode 100644 index 0000000000000..3fd3738f9b7f2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).errors.txt @@ -0,0 +1,36 @@ +join.ts(3,5): error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur'. + Type '[string, ...Recur[]]' is not assignable to type 'Recur[number][]'. + Type 'string | Recur' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type '(T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +recur.ts(3,9): error TS2536: Type 'number' cannot be used to index type 'Recur'. + + +==== recur.ts (1 errors) ==== + export type Recur = + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | + [...Recur[number][]]; + ~~~~~~~~~~~~~~~~ +!!! error TS2536: Type 'number' cannot be used to index type 'Recur'. + +==== join.ts (1 errors) ==== + import { Recur } from "./recur"; + export function join(l: Recur[]): Recur { + return ['marker', ...l]; + ~~~~~~ +!!! error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur'. +!!! error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur[number][]'. +!!! error TS2322: Type 'string | Recur' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type '(T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + } + +==== a.ts (0 errors) ==== + import { Recur } from "./recur"; + import { join } from "./join"; + function a(l: Recur[]): void { + const x: Recur | undefined = join(l); + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).symbols new file mode 100644 index 0000000000000..d9f42dc0817f8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts] //// + +=== recur.ts === +export type Recur = +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) + + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>K : Symbol(K, Decl(recur.ts, 1, 38)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>K : Symbol(K, Decl(recur.ts, 1, 38)) + + [...Recur[number][]]; +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) + +=== join.ts === +import { Recur } from "./recur"; +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) + +export function join(l: Recur[]): Recur { +>join : Symbol(join, Decl(join.ts, 0, 32)) +>T : Symbol(T, Decl(join.ts, 1, 21)) +>l : Symbol(l, Decl(join.ts, 1, 24)) +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) +>T : Symbol(T, Decl(join.ts, 1, 21)) +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) +>T : Symbol(T, Decl(join.ts, 1, 21)) + + return ['marker', ...l]; +>l : Symbol(l, Decl(join.ts, 1, 24)) +} + +=== a.ts === +import { Recur } from "./recur"; +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) + +import { join } from "./join"; +>join : Symbol(join, Decl(a.ts, 1, 8)) + +function a(l: Recur[]): void { +>a : Symbol(a, Decl(a.ts, 1, 30)) +>T : Symbol(T, Decl(a.ts, 2, 11)) +>l : Symbol(l, Decl(a.ts, 2, 14)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) +>T : Symbol(T, Decl(a.ts, 2, 11)) + + const x: Recur | undefined = join(l); +>x : Symbol(x, Decl(a.ts, 3, 9)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) +>T : Symbol(T, Decl(a.ts, 2, 11)) +>join : Symbol(join, Decl(a.ts, 1, 8)) +>l : Symbol(l, Decl(a.ts, 2, 14)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).types new file mode 100644 index 0000000000000..833609532a4c1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=default).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts] //// + +=== recur.ts === +export type Recur = +>Recur : Recur + + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | + [...Recur[number][]]; + +=== join.ts === +import { Recur } from "./recur"; +>Recur : any + +export function join(l: Recur[]): Recur { +>join : (l: Recur[]) => Recur +>l : Recur[] + + return ['marker', ...l]; +>['marker', ...l] : [string, ...Recur[]] +>'marker' : "marker" +>...l : Recur +>l : Recur[] +} + +=== a.ts === +import { Recur } from "./recur"; +>Recur : any + +import { join } from "./join"; +>join : (l: Recur[]) => Recur + +function a(l: Recur[]): void { +>a : (l: Recur[]) => void +>l : Recur[] + + const x: Recur | undefined = join(l); +>x : Recur | undefined +>join(l) : Recur +>join : (l: Recur[]) => Recur +>l : Recur[] +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).errors.txt new file mode 100644 index 0000000000000..3fd3738f9b7f2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).errors.txt @@ -0,0 +1,36 @@ +join.ts(3,5): error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur'. + Type '[string, ...Recur[]]' is not assignable to type 'Recur[number][]'. + Type 'string | Recur' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type '(T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +recur.ts(3,9): error TS2536: Type 'number' cannot be used to index type 'Recur'. + + +==== recur.ts (1 errors) ==== + export type Recur = + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | + [...Recur[number][]]; + ~~~~~~~~~~~~~~~~ +!!! error TS2536: Type 'number' cannot be used to index type 'Recur'. + +==== join.ts (1 errors) ==== + import { Recur } from "./recur"; + export function join(l: Recur[]): Recur { + return ['marker', ...l]; + ~~~~~~ +!!! error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur'. +!!! error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur[number][]'. +!!! error TS2322: Type 'string | Recur' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type '(T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + } + +==== a.ts (0 errors) ==== + import { Recur } from "./recur"; + import { join } from "./join"; + function a(l: Recur[]): void { + const x: Recur | undefined = join(l); + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).symbols new file mode 100644 index 0000000000000..d9f42dc0817f8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts] //// + +=== recur.ts === +export type Recur = +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) + + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>K : Symbol(K, Decl(recur.ts, 1, 38)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>K : Symbol(K, Decl(recur.ts, 1, 38)) + + [...Recur[number][]]; +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) + +=== join.ts === +import { Recur } from "./recur"; +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) + +export function join(l: Recur[]): Recur { +>join : Symbol(join, Decl(join.ts, 0, 32)) +>T : Symbol(T, Decl(join.ts, 1, 21)) +>l : Symbol(l, Decl(join.ts, 1, 24)) +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) +>T : Symbol(T, Decl(join.ts, 1, 21)) +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) +>T : Symbol(T, Decl(join.ts, 1, 21)) + + return ['marker', ...l]; +>l : Symbol(l, Decl(join.ts, 1, 24)) +} + +=== a.ts === +import { Recur } from "./recur"; +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) + +import { join } from "./join"; +>join : Symbol(join, Decl(a.ts, 1, 8)) + +function a(l: Recur[]): void { +>a : Symbol(a, Decl(a.ts, 1, 30)) +>T : Symbol(T, Decl(a.ts, 2, 11)) +>l : Symbol(l, Decl(a.ts, 2, 14)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) +>T : Symbol(T, Decl(a.ts, 2, 11)) + + const x: Recur | undefined = join(l); +>x : Symbol(x, Decl(a.ts, 3, 9)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) +>T : Symbol(T, Decl(a.ts, 2, 11)) +>join : Symbol(join, Decl(a.ts, 1, 8)) +>l : Symbol(l, Decl(a.ts, 2, 14)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).types new file mode 100644 index 0000000000000..833609532a4c1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=isolated).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts] //// + +=== recur.ts === +export type Recur = +>Recur : Recur + + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | + [...Recur[number][]]; + +=== join.ts === +import { Recur } from "./recur"; +>Recur : any + +export function join(l: Recur[]): Recur { +>join : (l: Recur[]) => Recur +>l : Recur[] + + return ['marker', ...l]; +>['marker', ...l] : [string, ...Recur[]] +>'marker' : "marker" +>...l : Recur +>l : Recur[] +} + +=== a.ts === +import { Recur } from "./recur"; +>Recur : any + +import { join } from "./join"; +>join : (l: Recur[]) => Recur + +function a(l: Recur[]): void { +>a : (l: Recur[]) => void +>l : Recur[] + + const x: Recur | undefined = join(l); +>x : Recur | undefined +>join(l) : Recur +>join : (l: Recur[]) => Recur +>l : Recur[] +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).errors.txt new file mode 100644 index 0000000000000..3fd3738f9b7f2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).errors.txt @@ -0,0 +1,36 @@ +join.ts(3,5): error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur'. + Type '[string, ...Recur[]]' is not assignable to type 'Recur[number][]'. + Type 'string | Recur' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type '(T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +recur.ts(3,9): error TS2536: Type 'number' cannot be used to index type 'Recur'. + + +==== recur.ts (1 errors) ==== + export type Recur = + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | + [...Recur[number][]]; + ~~~~~~~~~~~~~~~~ +!!! error TS2536: Type 'number' cannot be used to index type 'Recur'. + +==== join.ts (1 errors) ==== + import { Recur } from "./recur"; + export function join(l: Recur[]): Recur { + return ['marker', ...l]; + ~~~~~~ +!!! error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur'. +!!! error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur[number][]'. +!!! error TS2322: Type 'string | Recur' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type '(T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + } + +==== a.ts (0 errors) ==== + import { Recur } from "./recur"; + import { join } from "./join"; + function a(l: Recur[]): void { + const x: Recur | undefined = join(l); + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).symbols new file mode 100644 index 0000000000000..d9f42dc0817f8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts] //// + +=== recur.ts === +export type Recur = +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) + + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>K : Symbol(K, Decl(recur.ts, 1, 38)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>K : Symbol(K, Decl(recur.ts, 1, 38)) + + [...Recur[number][]]; +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) + +=== join.ts === +import { Recur } from "./recur"; +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) + +export function join(l: Recur[]): Recur { +>join : Symbol(join, Decl(join.ts, 0, 32)) +>T : Symbol(T, Decl(join.ts, 1, 21)) +>l : Symbol(l, Decl(join.ts, 1, 24)) +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) +>T : Symbol(T, Decl(join.ts, 1, 21)) +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) +>T : Symbol(T, Decl(join.ts, 1, 21)) + + return ['marker', ...l]; +>l : Symbol(l, Decl(join.ts, 1, 24)) +} + +=== a.ts === +import { Recur } from "./recur"; +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) + +import { join } from "./join"; +>join : Symbol(join, Decl(a.ts, 1, 8)) + +function a(l: Recur[]): void { +>a : Symbol(a, Decl(a.ts, 1, 30)) +>T : Symbol(T, Decl(a.ts, 2, 11)) +>l : Symbol(l, Decl(a.ts, 2, 14)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) +>T : Symbol(T, Decl(a.ts, 2, 11)) + + const x: Recur | undefined = join(l); +>x : Symbol(x, Decl(a.ts, 3, 9)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) +>T : Symbol(T, Decl(a.ts, 2, 11)) +>join : Symbol(join, Decl(a.ts, 1, 8)) +>l : Symbol(l, Decl(a.ts, 2, 14)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).types new file mode 100644 index 0000000000000..833609532a4c1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=reverse).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts] //// + +=== recur.ts === +export type Recur = +>Recur : Recur + + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | + [...Recur[number][]]; + +=== join.ts === +import { Recur } from "./recur"; +>Recur : any + +export function join(l: Recur[]): Recur { +>join : (l: Recur[]) => Recur +>l : Recur[] + + return ['marker', ...l]; +>['marker', ...l] : [string, ...Recur[]] +>'marker' : "marker" +>...l : Recur +>l : Recur[] +} + +=== a.ts === +import { Recur } from "./recur"; +>Recur : any + +import { join } from "./join"; +>join : (l: Recur[]) => Recur + +function a(l: Recur[]): void { +>a : (l: Recur[]) => void +>l : Recur[] + + const x: Recur | undefined = join(l); +>x : Recur | undefined +>join(l) : Recur +>join : (l: Recur[]) => Recur +>l : Recur[] +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..3fd3738f9b7f2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).errors.txt @@ -0,0 +1,36 @@ +join.ts(3,5): error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur'. + Type '[string, ...Recur[]]' is not assignable to type 'Recur[number][]'. + Type 'string | Recur' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + Type 'string' is not assignable to type '(T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +recur.ts(3,9): error TS2536: Type 'number' cannot be used to index type 'Recur'. + + +==== recur.ts (1 errors) ==== + export type Recur = + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | + [...Recur[number][]]; + ~~~~~~~~~~~~~~~~ +!!! error TS2536: Type 'number' cannot be used to index type 'Recur'. + +==== join.ts (1 errors) ==== + import { Recur } from "./recur"; + export function join(l: Recur[]): Recur { + return ['marker', ...l]; + ~~~~~~ +!!! error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur'. +!!! error TS2322: Type '[string, ...Recur[]]' is not assignable to type 'Recur[number][]'. +!!! error TS2322: Type 'string | Recur' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type 'Recur[number] & (T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. +!!! error TS2322: Type 'string' is not assignable to type '(T extends unknown[] ? {} : { [K in keyof T]?: Recur | undefined; })[number]'. + } + +==== a.ts (0 errors) ==== + import { Recur } from "./recur"; + import { join } from "./join"; + function a(l: Recur[]): void { + const x: Recur | undefined = join(l); + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..d9f42dc0817f8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).symbols @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts] //// + +=== recur.ts === +export type Recur = +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) + + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>K : Symbol(K, Decl(recur.ts, 1, 38)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) +>K : Symbol(K, Decl(recur.ts, 1, 38)) + + [...Recur[number][]]; +>Recur : Symbol(Recur, Decl(recur.ts, 0, 0)) +>T : Symbol(T, Decl(recur.ts, 0, 18)) + +=== join.ts === +import { Recur } from "./recur"; +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) + +export function join(l: Recur[]): Recur { +>join : Symbol(join, Decl(join.ts, 0, 32)) +>T : Symbol(T, Decl(join.ts, 1, 21)) +>l : Symbol(l, Decl(join.ts, 1, 24)) +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) +>T : Symbol(T, Decl(join.ts, 1, 21)) +>Recur : Symbol(Recur, Decl(join.ts, 0, 8)) +>T : Symbol(T, Decl(join.ts, 1, 21)) + + return ['marker', ...l]; +>l : Symbol(l, Decl(join.ts, 1, 24)) +} + +=== a.ts === +import { Recur } from "./recur"; +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) + +import { join } from "./join"; +>join : Symbol(join, Decl(a.ts, 1, 8)) + +function a(l: Recur[]): void { +>a : Symbol(a, Decl(a.ts, 1, 30)) +>T : Symbol(T, Decl(a.ts, 2, 11)) +>l : Symbol(l, Decl(a.ts, 2, 14)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) +>T : Symbol(T, Decl(a.ts, 2, 11)) + + const x: Recur | undefined = join(l); +>x : Symbol(x, Decl(a.ts, 3, 9)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) +>T : Symbol(T, Decl(a.ts, 2, 11)) +>join : Symbol(join, Decl(a.ts, 1, 8)) +>l : Symbol(l, Decl(a.ts, 2, 14)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).types new file mode 100644 index 0000000000000..833609532a4c1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderRecursiveIndexedAccess(checkorder=typesfirst).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts] //// + +=== recur.ts === +export type Recur = +>Recur : Recur + + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | + [...Recur[number][]]; + +=== join.ts === +import { Recur } from "./recur"; +>Recur : any + +export function join(l: Recur[]): Recur { +>join : (l: Recur[]) => Recur +>l : Recur[] + + return ['marker', ...l]; +>['marker', ...l] : [string, ...Recur[]] +>'marker' : "marker" +>...l : Recur +>l : Recur[] +} + +=== a.ts === +import { Recur } from "./recur"; +>Recur : any + +import { join } from "./join"; +>join : (l: Recur[]) => Recur + +function a(l: Recur[]): void { +>a : (l: Recur[]) => void +>l : Recur[] + + const x: Recur | undefined = join(l); +>x : Recur | undefined +>join(l) : Recur +>join : (l: Recur[]) => Recur +>l : Recur[] +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).js new file mode 100644 index 0000000000000..433d0bfbb69b5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).js @@ -0,0 +1,87 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +//// [ma.js] +export { v as pa } from "./xa"; +export const ma = 1; + +//// [mb.js] +export { v as pb } from "./xb"; +export const mb = 1; + +//// [xa.js] +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + +//// [xb.js] +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + +//// [ia.js] +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + + +//// [xb.js] +"use strict"; +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; +//// [mb.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.mb = exports.pb = void 0; +var xb_1 = require("./xb"); +Object.defineProperty(exports, "pb", { enumerable: true, get: function () { return xb_1.v; } }); +exports.mb = 1; +//// [xa.js] +"use strict"; +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; +//// [ma.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ma = exports.pa = void 0; +var xa_1 = require("./xa"); +Object.defineProperty(exports, "pa", { enumerable: true, get: function () { return xa_1.v; } }); +exports.ma = 1; +//// [ia.js] +"use strict"; +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + + +//// [xb.d.ts] +declare const _exports: { + v: {}; +}; +export = _exports; +//// [mb.d.ts] +export { v as pb } from "./xb"; +export declare const mb = 1; +//// [xa.d.ts] +declare const _exports: { + v: { + pb: {}; + mb: 1; + }; +}; +export = _exports; +//// [ma.d.ts] +export { v as pa } from "./xa"; +export declare const ma = 1; +//// [ia.d.ts] +declare const _exports: { + v: { + pa: { + pb: {}; + mb: 1; + }; + ma: 1; + }; +}; +export = _exports; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).symbols new file mode 100644 index 0000000000000..4359b0af3b06c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).symbols @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +=== /ia.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(ia.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(ia.js, 0, 0)) +>module : Symbol(module, Decl(ia.js, 0, 0)) +>exports : Symbol(exports, Decl(ia.js, 0, 0)) +>v : Symbol(v, Decl(ia.js, 2, 18)) +>M : Symbol(M, Decl(ia.js, 1, 5)) + +=== /ma.js === +export { v as pa } from "./xa"; +>v : Symbol(v, Decl(xa.js, 2, 18)) +>pa : Symbol(pa, Decl(ma.js, 0, 8)) + +export const ma = 1; +>ma : Symbol(ma, Decl(ma.js, 1, 12)) + +=== /mb.js === +export { v as pb } from "./xb"; +>v : Symbol(v, Decl(xb.js, 2, 18)) +>pb : Symbol(pb, Decl(mb.js, 0, 8)) + +export const mb = 1; +>mb : Symbol(mb, Decl(mb.js, 1, 12)) + +=== /xa.js === +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(xa.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(xa.js, 0, 0)) +>module : Symbol(module, Decl(xa.js, 0, 0)) +>exports : Symbol(exports, Decl(xa.js, 0, 0)) +>v : Symbol(v, Decl(xa.js, 2, 18)) +>M : Symbol(M, Decl(xa.js, 1, 5)) + +=== /xb.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(xb.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(xb.js, 0, 0)) +>module : Symbol(module, Decl(xb.js, 0, 0)) +>exports : Symbol(exports, Decl(xb.js, 0, 0)) +>v : Symbol(v, Decl(xb.js, 2, 18)) +>M : Symbol(M, Decl(xb.js, 1, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).types new file mode 100644 index 0000000000000..901461cf3d36b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=default).types @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +=== /ia.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./ma") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module.exports : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module : { exports: { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; }; } +>exports : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>{ v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>v : { pa: { pb: {}; mb: 1; }; ma: 1; } +>{ ...M } : { pa: { pb: {}; mb: 1; }; ma: 1; } +>M : typeof import("./ma") + +=== /ma.js === +export { v as pa } from "./xa"; +>v : { pb: {}; mb: 1; } +>pa : { pb: {}; mb: 1; } + +export const ma = 1; +>ma : 1 +>1 : 1 + +=== /mb.js === +export { v as pb } from "./xb"; +>v : {} +>pb : {} + +export const mb = 1; +>mb : 1 +>1 : 1 + +=== /xa.js === +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./mb") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pb: {}; mb: 1; }; } +>module.exports : { v: { pb: {}; mb: 1; }; } +>module : { exports: { v: { pb: {}; mb: 1; }; }; } +>exports : { v: { pb: {}; mb: 1; }; } +>{ v: { ...M } } : { v: { pb: {}; mb: 1; }; } +>v : { pb: {}; mb: 1; } +>{ ...M } : { pb: {}; mb: 1; } +>M : typeof import("./mb") + +=== /xb.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./ma") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module.exports : { v: {}; } +>module : { exports: { v: {}; }; } +>exports : { v: {}; } +>{ v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>v : { pa: { pb: {}; mb: 1; }; ma: 1; } +>{ ...M } : { pa: { pb: {}; mb: 1; }; ma: 1; } +>M : typeof import("./ma") + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).js b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).js new file mode 100644 index 0000000000000..8621be455c50d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).js @@ -0,0 +1,80 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +//// [ma.js] +export { v as pa } from "./xa"; +export const ma = 1; + +//// [mb.js] +export { v as pb } from "./xb"; +export const mb = 1; + +//// [xa.js] +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + +//// [xb.js] +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + +//// [ia.js] +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + + +//// [xb.js] +"use strict"; +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; +//// [mb.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.mb = exports.pb = void 0; +var xb_1 = require("./xb"); +Object.defineProperty(exports, "pb", { enumerable: true, get: function () { return xb_1.v; } }); +exports.mb = 1; +//// [xa.js] +"use strict"; +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; +//// [ma.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ma = exports.pa = void 0; +var xa_1 = require("./xa"); +Object.defineProperty(exports, "pa", { enumerable: true, get: function () { return xa_1.v; } }); +exports.ma = 1; +//// [ia.js] +"use strict"; +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + + +//// [xb.d.ts] +declare const _exports: any; +export = _exports; +//// [mb.d.ts] +export { v as pb } from "./xb"; +export declare const mb = 1; +//// [xa.d.ts] +declare const _exports: any; +export = _exports; +//// [ma.d.ts] +export { v as pa } from "./xa"; +export declare const ma = 1; +//// [ia.d.ts] +declare const _exports: { + v: { + pa: { + pb: {}; + mb: 1; + }; + ma: 1; + }; +}; +export = _exports; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).symbols new file mode 100644 index 0000000000000..4359b0af3b06c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).symbols @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +=== /ia.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(ia.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(ia.js, 0, 0)) +>module : Symbol(module, Decl(ia.js, 0, 0)) +>exports : Symbol(exports, Decl(ia.js, 0, 0)) +>v : Symbol(v, Decl(ia.js, 2, 18)) +>M : Symbol(M, Decl(ia.js, 1, 5)) + +=== /ma.js === +export { v as pa } from "./xa"; +>v : Symbol(v, Decl(xa.js, 2, 18)) +>pa : Symbol(pa, Decl(ma.js, 0, 8)) + +export const ma = 1; +>ma : Symbol(ma, Decl(ma.js, 1, 12)) + +=== /mb.js === +export { v as pb } from "./xb"; +>v : Symbol(v, Decl(xb.js, 2, 18)) +>pb : Symbol(pb, Decl(mb.js, 0, 8)) + +export const mb = 1; +>mb : Symbol(mb, Decl(mb.js, 1, 12)) + +=== /xa.js === +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(xa.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(xa.js, 0, 0)) +>module : Symbol(module, Decl(xa.js, 0, 0)) +>exports : Symbol(exports, Decl(xa.js, 0, 0)) +>v : Symbol(v, Decl(xa.js, 2, 18)) +>M : Symbol(M, Decl(xa.js, 1, 5)) + +=== /xb.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(xb.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(xb.js, 0, 0)) +>module : Symbol(module, Decl(xb.js, 0, 0)) +>exports : Symbol(exports, Decl(xb.js, 0, 0)) +>v : Symbol(v, Decl(xb.js, 2, 18)) +>M : Symbol(M, Decl(xb.js, 1, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).types new file mode 100644 index 0000000000000..901461cf3d36b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=isolated).types @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +=== /ia.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./ma") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module.exports : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module : { exports: { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; }; } +>exports : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>{ v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>v : { pa: { pb: {}; mb: 1; }; ma: 1; } +>{ ...M } : { pa: { pb: {}; mb: 1; }; ma: 1; } +>M : typeof import("./ma") + +=== /ma.js === +export { v as pa } from "./xa"; +>v : { pb: {}; mb: 1; } +>pa : { pb: {}; mb: 1; } + +export const ma = 1; +>ma : 1 +>1 : 1 + +=== /mb.js === +export { v as pb } from "./xb"; +>v : {} +>pb : {} + +export const mb = 1; +>mb : 1 +>1 : 1 + +=== /xa.js === +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./mb") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pb: {}; mb: 1; }; } +>module.exports : { v: { pb: {}; mb: 1; }; } +>module : { exports: { v: { pb: {}; mb: 1; }; }; } +>exports : { v: { pb: {}; mb: 1; }; } +>{ v: { ...M } } : { v: { pb: {}; mb: 1; }; } +>v : { pb: {}; mb: 1; } +>{ ...M } : { pb: {}; mb: 1; } +>M : typeof import("./mb") + +=== /xb.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./ma") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module.exports : { v: {}; } +>module : { exports: { v: {}; }; } +>exports : { v: {}; } +>{ v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>v : { pa: { pb: {}; mb: 1; }; ma: 1; } +>{ ...M } : { pa: { pb: {}; mb: 1; }; ma: 1; } +>M : typeof import("./ma") + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).js b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).js new file mode 100644 index 0000000000000..433d0bfbb69b5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).js @@ -0,0 +1,87 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +//// [ma.js] +export { v as pa } from "./xa"; +export const ma = 1; + +//// [mb.js] +export { v as pb } from "./xb"; +export const mb = 1; + +//// [xa.js] +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + +//// [xb.js] +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + +//// [ia.js] +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + + +//// [xb.js] +"use strict"; +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; +//// [mb.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.mb = exports.pb = void 0; +var xb_1 = require("./xb"); +Object.defineProperty(exports, "pb", { enumerable: true, get: function () { return xb_1.v; } }); +exports.mb = 1; +//// [xa.js] +"use strict"; +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; +//// [ma.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ma = exports.pa = void 0; +var xa_1 = require("./xa"); +Object.defineProperty(exports, "pa", { enumerable: true, get: function () { return xa_1.v; } }); +exports.ma = 1; +//// [ia.js] +"use strict"; +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + + +//// [xb.d.ts] +declare const _exports: { + v: {}; +}; +export = _exports; +//// [mb.d.ts] +export { v as pb } from "./xb"; +export declare const mb = 1; +//// [xa.d.ts] +declare const _exports: { + v: { + pb: {}; + mb: 1; + }; +}; +export = _exports; +//// [ma.d.ts] +export { v as pa } from "./xa"; +export declare const ma = 1; +//// [ia.d.ts] +declare const _exports: { + v: { + pa: { + pb: {}; + mb: 1; + }; + ma: 1; + }; +}; +export = _exports; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).symbols new file mode 100644 index 0000000000000..4359b0af3b06c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).symbols @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +=== /ia.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(ia.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(ia.js, 0, 0)) +>module : Symbol(module, Decl(ia.js, 0, 0)) +>exports : Symbol(exports, Decl(ia.js, 0, 0)) +>v : Symbol(v, Decl(ia.js, 2, 18)) +>M : Symbol(M, Decl(ia.js, 1, 5)) + +=== /ma.js === +export { v as pa } from "./xa"; +>v : Symbol(v, Decl(xa.js, 2, 18)) +>pa : Symbol(pa, Decl(ma.js, 0, 8)) + +export const ma = 1; +>ma : Symbol(ma, Decl(ma.js, 1, 12)) + +=== /mb.js === +export { v as pb } from "./xb"; +>v : Symbol(v, Decl(xb.js, 2, 18)) +>pb : Symbol(pb, Decl(mb.js, 0, 8)) + +export const mb = 1; +>mb : Symbol(mb, Decl(mb.js, 1, 12)) + +=== /xa.js === +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(xa.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(xa.js, 0, 0)) +>module : Symbol(module, Decl(xa.js, 0, 0)) +>exports : Symbol(exports, Decl(xa.js, 0, 0)) +>v : Symbol(v, Decl(xa.js, 2, 18)) +>M : Symbol(M, Decl(xa.js, 1, 5)) + +=== /xb.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(xb.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(xb.js, 0, 0)) +>module : Symbol(module, Decl(xb.js, 0, 0)) +>exports : Symbol(exports, Decl(xb.js, 0, 0)) +>v : Symbol(v, Decl(xb.js, 2, 18)) +>M : Symbol(M, Decl(xb.js, 1, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).types new file mode 100644 index 0000000000000..901461cf3d36b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=reverse).types @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +=== /ia.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./ma") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module.exports : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module : { exports: { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; }; } +>exports : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>{ v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>v : { pa: { pb: {}; mb: 1; }; ma: 1; } +>{ ...M } : { pa: { pb: {}; mb: 1; }; ma: 1; } +>M : typeof import("./ma") + +=== /ma.js === +export { v as pa } from "./xa"; +>v : { pb: {}; mb: 1; } +>pa : { pb: {}; mb: 1; } + +export const ma = 1; +>ma : 1 +>1 : 1 + +=== /mb.js === +export { v as pb } from "./xb"; +>v : {} +>pb : {} + +export const mb = 1; +>mb : 1 +>1 : 1 + +=== /xa.js === +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./mb") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pb: {}; mb: 1; }; } +>module.exports : { v: { pb: {}; mb: 1; }; } +>module : { exports: { v: { pb: {}; mb: 1; }; }; } +>exports : { v: { pb: {}; mb: 1; }; } +>{ v: { ...M } } : { v: { pb: {}; mb: 1; }; } +>v : { pb: {}; mb: 1; } +>{ ...M } : { pb: {}; mb: 1; } +>M : typeof import("./mb") + +=== /xb.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./ma") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module.exports : { v: {}; } +>module : { exports: { v: {}; }; } +>exports : { v: {}; } +>{ v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>v : { pa: { pb: {}; mb: 1; }; ma: 1; } +>{ ...M } : { pa: { pb: {}; mb: 1; }; ma: 1; } +>M : typeof import("./ma") + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).js new file mode 100644 index 0000000000000..433d0bfbb69b5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).js @@ -0,0 +1,87 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +//// [ma.js] +export { v as pa } from "./xa"; +export const ma = 1; + +//// [mb.js] +export { v as pb } from "./xb"; +export const mb = 1; + +//// [xa.js] +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + +//// [xb.js] +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + +//// [ia.js] +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + + +//// [xb.js] +"use strict"; +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; +//// [mb.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.mb = exports.pb = void 0; +var xb_1 = require("./xb"); +Object.defineProperty(exports, "pb", { enumerable: true, get: function () { return xb_1.v; } }); +exports.mb = 1; +//// [xa.js] +"use strict"; +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; +//// [ma.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ma = exports.pa = void 0; +var xa_1 = require("./xa"); +Object.defineProperty(exports, "pa", { enumerable: true, get: function () { return xa_1.v; } }); +exports.ma = 1; +//// [ia.js] +"use strict"; +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + + +//// [xb.d.ts] +declare const _exports: { + v: {}; +}; +export = _exports; +//// [mb.d.ts] +export { v as pb } from "./xb"; +export declare const mb = 1; +//// [xa.d.ts] +declare const _exports: { + v: { + pb: {}; + mb: 1; + }; +}; +export = _exports; +//// [ma.d.ts] +export { v as pa } from "./xa"; +export declare const ma = 1; +//// [ia.d.ts] +declare const _exports: { + v: { + pa: { + pb: {}; + mb: 1; + }; + ma: 1; + }; +}; +export = _exports; diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..4359b0af3b06c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).symbols @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +=== /ia.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(ia.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(ia.js, 0, 0)) +>module : Symbol(module, Decl(ia.js, 0, 0)) +>exports : Symbol(exports, Decl(ia.js, 0, 0)) +>v : Symbol(v, Decl(ia.js, 2, 18)) +>M : Symbol(M, Decl(ia.js, 1, 5)) + +=== /ma.js === +export { v as pa } from "./xa"; +>v : Symbol(v, Decl(xa.js, 2, 18)) +>pa : Symbol(pa, Decl(ma.js, 0, 8)) + +export const ma = 1; +>ma : Symbol(ma, Decl(ma.js, 1, 12)) + +=== /mb.js === +export { v as pb } from "./xb"; +>v : Symbol(v, Decl(xb.js, 2, 18)) +>pb : Symbol(pb, Decl(mb.js, 0, 8)) + +export const mb = 1; +>mb : Symbol(mb, Decl(mb.js, 1, 12)) + +=== /xa.js === +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(xa.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(xa.js, 0, 0)) +>module : Symbol(module, Decl(xa.js, 0, 0)) +>exports : Symbol(exports, Decl(xa.js, 0, 0)) +>v : Symbol(v, Decl(xa.js, 2, 18)) +>M : Symbol(M, Decl(xa.js, 1, 5)) + +=== /xb.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : Symbol(M, Decl(xb.js, 1, 5)) + +module.exports = { v: { ...M } }; +>module.exports : Symbol(exports, Decl(xb.js, 0, 0)) +>module : Symbol(module, Decl(xb.js, 0, 0)) +>exports : Symbol(exports, Decl(xb.js, 0, 0)) +>v : Symbol(v, Decl(xb.js, 2, 18)) +>M : Symbol(M, Decl(xb.js, 1, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).types new file mode 100644 index 0000000000000..901461cf3d36b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderSpreadCycle(checkorder=typesfirst).types @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/checkOrderSpreadCycle.ts] //// + +=== /ia.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./ma") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module.exports : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module : { exports: { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; }; } +>exports : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>{ v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>v : { pa: { pb: {}; mb: 1; }; ma: 1; } +>{ ...M } : { pa: { pb: {}; mb: 1; }; ma: 1; } +>M : typeof import("./ma") + +=== /ma.js === +export { v as pa } from "./xa"; +>v : { pb: {}; mb: 1; } +>pa : { pb: {}; mb: 1; } + +export const ma = 1; +>ma : 1 +>1 : 1 + +=== /mb.js === +export { v as pb } from "./xb"; +>v : {} +>pb : {} + +export const mb = 1; +>mb : 1 +>1 : 1 + +=== /xa.js === +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./mb") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pb: {}; mb: 1; }; } +>module.exports : { v: { pb: {}; mb: 1; }; } +>module : { exports: { v: { pb: {}; mb: 1; }; }; } +>exports : { v: { pb: {}; mb: 1; }; } +>{ v: { ...M } } : { v: { pb: {}; mb: 1; }; } +>v : { pb: {}; mb: 1; } +>{ ...M } : { pb: {}; mb: 1; } +>M : typeof import("./mb") + +=== /xb.js === +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +>M : typeof import("./ma") +>(null) : any + +module.exports = { v: { ...M } }; +>module.exports = { v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>module.exports : { v: {}; } +>module : { exports: { v: {}; }; } +>exports : { v: {}; } +>{ v: { ...M } } : { v: { pa: { pb: {}; mb: 1; }; ma: 1; }; } +>v : { pa: { pb: {}; mb: 1; }; ma: 1; } +>{ ...M } : { pa: { pb: {}; mb: 1; }; ma: 1; } +>M : typeof import("./ma") + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).errors.txt new file mode 100644 index 0000000000000..877d1080ed55a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).errors.txt @@ -0,0 +1,35 @@ +a.ts(2,15): error TS2589: Type instantiation is excessively deep and possibly infinite. + + +==== lib.ts (0 errors) ==== + export type Dec = + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; + export type Recur = + N extends 0 ? S : Recur, [S]>; + +==== a.ts (1 errors) ==== + import { Recur } from "./lib"; + export let a: Recur<5, "a">; + ~~~~~~~~~~~~~ +!!! error TS2589: Type instantiation is excessively deep and possibly infinite. + +==== b.ts (0 errors) ==== + import { Recur } from "./lib"; + export let b: Recur<5, "a">; + +==== c.ts (0 errors) ==== + class T { + declare a: A; + declare b: any; + } + class L extends T {} + export class X extends L { + declare a: 'a' | 'b'; + declare b: number; + m() { + this.a; + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).js new file mode 100644 index 0000000000000..7fbdadaad0683 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).js @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/checkOrderStableInstantiationErrors.ts] //// + +//// [lib.ts] +export type Dec = + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; +export type Recur = + N extends 0 ? S : Recur, [S]>; + +//// [a.ts] +import { Recur } from "./lib"; +export let a: Recur<5, "a">; + +//// [b.ts] +import { Recur } from "./lib"; +export let b: Recur<5, "a">; + +//// [c.ts] +class T { + declare a: A; + declare b: any; +} +class L extends T {} +export class X extends L { + declare a: 'a' | 'b'; + declare b: number; + m() { + this.a; + } +} + + +//// [lib.js] +export {}; +//// [a.js] +export let a; +//// [b.js] +export let b; +//// [c.js] +class T { +} +class L extends T { +} +export class X extends L { + m() { + this.a; + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).symbols new file mode 100644 index 0000000000000..635d4b4dc06b9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).symbols @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/checkOrderStableInstantiationErrors.ts] //// + +=== lib.ts === +export type Dec = +>Dec : Symbol(Dec, Decl(lib.ts, 0, 0)) +>N : Symbol(N, Decl(lib.ts, 0, 16)) + + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : +>N : Symbol(N, Decl(lib.ts, 0, 16)) +>N : Symbol(N, Decl(lib.ts, 0, 16)) +>N : Symbol(N, Decl(lib.ts, 0, 16)) + + N extends 2 ? any : +>N : Symbol(N, Decl(lib.ts, 0, 16)) + + N extends 1 ? 0 : 0; +>N : Symbol(N, Decl(lib.ts, 0, 16)) + +export type Recur = +>Recur : Symbol(Recur, Decl(lib.ts, 3, 24)) +>N : Symbol(N, Decl(lib.ts, 4, 18)) +>S : Symbol(S, Decl(lib.ts, 4, 35)) + + N extends 0 ? S : Recur, [S]>; +>N : Symbol(N, Decl(lib.ts, 4, 18)) +>S : Symbol(S, Decl(lib.ts, 4, 35)) +>Recur : Symbol(Recur, Decl(lib.ts, 3, 24)) +>Dec : Symbol(Dec, Decl(lib.ts, 0, 0)) +>N : Symbol(N, Decl(lib.ts, 4, 18)) +>S : Symbol(S, Decl(lib.ts, 4, 35)) + +=== a.ts === +import { Recur } from "./lib"; +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) + +export let a: Recur<5, "a">; +>a : Symbol(a, Decl(a.ts, 1, 10)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) + +=== b.ts === +import { Recur } from "./lib"; +>Recur : Symbol(Recur, Decl(b.ts, 0, 8)) + +export let b: Recur<5, "a">; +>b : Symbol(b, Decl(b.ts, 1, 10)) +>Recur : Symbol(Recur, Decl(b.ts, 0, 8)) + +=== c.ts === +class T { +>T : Symbol(T, Decl(c.ts, 0, 0)) +>A : Symbol(A, Decl(c.ts, 0, 8)) + + declare a: A; +>a : Symbol(T.a, Decl(c.ts, 0, 12)) +>A : Symbol(A, Decl(c.ts, 0, 8)) + + declare b: any; +>b : Symbol(T.b, Decl(c.ts, 1, 17)) +} +class L extends T {} +>L : Symbol(L, Decl(c.ts, 3, 1)) +>RT : Symbol(RT, Decl(c.ts, 4, 8)) +>a : Symbol(a, Decl(c.ts, 4, 20)) +>b : Symbol(b, Decl(c.ts, 4, 34)) +>T : Symbol(T, Decl(c.ts, 0, 0)) +>RT : Symbol(RT, Decl(c.ts, 4, 8)) +>RT : Symbol(RT, Decl(c.ts, 4, 8)) + +export class X extends L { +>X : Symbol(X, Decl(c.ts, 4, 70)) +>L : Symbol(L, Decl(c.ts, 3, 1)) +>X : Symbol(X, Decl(c.ts, 4, 70)) + + declare a: 'a' | 'b'; +>a : Symbol(X.a, Decl(c.ts, 5, 29)) + + declare b: number; +>b : Symbol(X.b, Decl(c.ts, 6, 25)) + + m() { +>m : Symbol(X.m, Decl(c.ts, 7, 22)) + + this.a; +>this.a : Symbol(X.a, Decl(c.ts, 5, 29)) +>this : Symbol(X, Decl(c.ts, 4, 70)) +>a : Symbol(X.a, Decl(c.ts, 5, 29)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).types new file mode 100644 index 0000000000000..cb9e6a4ee5033 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=default).types @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/checkOrderStableInstantiationErrors.ts] //// + +=== lib.ts === +export type Dec = +>Dec : Dec + + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; +export type Recur = +>Recur : Recur + + N extends 0 ? S : Recur, [S]>; + +=== a.ts === +import { Recur } from "./lib"; +>Recur : any + +export let a: Recur<5, "a">; +>a : any + +=== b.ts === +import { Recur } from "./lib"; +>Recur : any + +export let b: Recur<5, "a">; +>b : any + +=== c.ts === +class T { +>T : T + + declare a: A; +>a : A + + declare b: any; +>b : any +} +class L extends T {} +>L : L +>a : "a" | "b" +>b : any +>T : T + +export class X extends L { +>X : X +>L : L + + declare a: 'a' | 'b'; +>a : "a" | "b" + + declare b: number; +>b : number + + m() { +>m : () => void + + this.a; +>this.a : "a" | "b" +>this : this +>a : "a" | "b" + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).errors.txt new file mode 100644 index 0000000000000..4da6c6996fc6a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).errors.txt @@ -0,0 +1,35 @@ +b.ts(2,15): error TS2589: Type instantiation is excessively deep and possibly infinite. + + +==== lib.ts (0 errors) ==== + export type Dec = + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; + export type Recur = + N extends 0 ? S : Recur, [S]>; + +==== a.ts (0 errors) ==== + import { Recur } from "./lib"; + export let a: Recur<5, "a">; + +==== b.ts (1 errors) ==== + import { Recur } from "./lib"; + export let b: Recur<5, "a">; + ~~~~~~~~~~~~~ +!!! error TS2589: Type instantiation is excessively deep and possibly infinite. + +==== c.ts (0 errors) ==== + class T { + declare a: A; + declare b: any; + } + class L extends T {} + export class X extends L { + declare a: 'a' | 'b'; + declare b: number; + m() { + this.a; + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).js b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).js new file mode 100644 index 0000000000000..7fbdadaad0683 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).js @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/checkOrderStableInstantiationErrors.ts] //// + +//// [lib.ts] +export type Dec = + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; +export type Recur = + N extends 0 ? S : Recur, [S]>; + +//// [a.ts] +import { Recur } from "./lib"; +export let a: Recur<5, "a">; + +//// [b.ts] +import { Recur } from "./lib"; +export let b: Recur<5, "a">; + +//// [c.ts] +class T { + declare a: A; + declare b: any; +} +class L extends T {} +export class X extends L { + declare a: 'a' | 'b'; + declare b: number; + m() { + this.a; + } +} + + +//// [lib.js] +export {}; +//// [a.js] +export let a; +//// [b.js] +export let b; +//// [c.js] +class T { +} +class L extends T { +} +export class X extends L { + m() { + this.a; + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).symbols new file mode 100644 index 0000000000000..635d4b4dc06b9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).symbols @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/checkOrderStableInstantiationErrors.ts] //// + +=== lib.ts === +export type Dec = +>Dec : Symbol(Dec, Decl(lib.ts, 0, 0)) +>N : Symbol(N, Decl(lib.ts, 0, 16)) + + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : +>N : Symbol(N, Decl(lib.ts, 0, 16)) +>N : Symbol(N, Decl(lib.ts, 0, 16)) +>N : Symbol(N, Decl(lib.ts, 0, 16)) + + N extends 2 ? any : +>N : Symbol(N, Decl(lib.ts, 0, 16)) + + N extends 1 ? 0 : 0; +>N : Symbol(N, Decl(lib.ts, 0, 16)) + +export type Recur = +>Recur : Symbol(Recur, Decl(lib.ts, 3, 24)) +>N : Symbol(N, Decl(lib.ts, 4, 18)) +>S : Symbol(S, Decl(lib.ts, 4, 35)) + + N extends 0 ? S : Recur, [S]>; +>N : Symbol(N, Decl(lib.ts, 4, 18)) +>S : Symbol(S, Decl(lib.ts, 4, 35)) +>Recur : Symbol(Recur, Decl(lib.ts, 3, 24)) +>Dec : Symbol(Dec, Decl(lib.ts, 0, 0)) +>N : Symbol(N, Decl(lib.ts, 4, 18)) +>S : Symbol(S, Decl(lib.ts, 4, 35)) + +=== a.ts === +import { Recur } from "./lib"; +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) + +export let a: Recur<5, "a">; +>a : Symbol(a, Decl(a.ts, 1, 10)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) + +=== b.ts === +import { Recur } from "./lib"; +>Recur : Symbol(Recur, Decl(b.ts, 0, 8)) + +export let b: Recur<5, "a">; +>b : Symbol(b, Decl(b.ts, 1, 10)) +>Recur : Symbol(Recur, Decl(b.ts, 0, 8)) + +=== c.ts === +class T { +>T : Symbol(T, Decl(c.ts, 0, 0)) +>A : Symbol(A, Decl(c.ts, 0, 8)) + + declare a: A; +>a : Symbol(T.a, Decl(c.ts, 0, 12)) +>A : Symbol(A, Decl(c.ts, 0, 8)) + + declare b: any; +>b : Symbol(T.b, Decl(c.ts, 1, 17)) +} +class L extends T {} +>L : Symbol(L, Decl(c.ts, 3, 1)) +>RT : Symbol(RT, Decl(c.ts, 4, 8)) +>a : Symbol(a, Decl(c.ts, 4, 20)) +>b : Symbol(b, Decl(c.ts, 4, 34)) +>T : Symbol(T, Decl(c.ts, 0, 0)) +>RT : Symbol(RT, Decl(c.ts, 4, 8)) +>RT : Symbol(RT, Decl(c.ts, 4, 8)) + +export class X extends L { +>X : Symbol(X, Decl(c.ts, 4, 70)) +>L : Symbol(L, Decl(c.ts, 3, 1)) +>X : Symbol(X, Decl(c.ts, 4, 70)) + + declare a: 'a' | 'b'; +>a : Symbol(X.a, Decl(c.ts, 5, 29)) + + declare b: number; +>b : Symbol(X.b, Decl(c.ts, 6, 25)) + + m() { +>m : Symbol(X.m, Decl(c.ts, 7, 22)) + + this.a; +>this.a : Symbol(X.a, Decl(c.ts, 5, 29)) +>this : Symbol(X, Decl(c.ts, 4, 70)) +>a : Symbol(X.a, Decl(c.ts, 5, 29)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).types new file mode 100644 index 0000000000000..cb9e6a4ee5033 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=reverse).types @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/checkOrderStableInstantiationErrors.ts] //// + +=== lib.ts === +export type Dec = +>Dec : Dec + + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; +export type Recur = +>Recur : Recur + + N extends 0 ? S : Recur, [S]>; + +=== a.ts === +import { Recur } from "./lib"; +>Recur : any + +export let a: Recur<5, "a">; +>a : any + +=== b.ts === +import { Recur } from "./lib"; +>Recur : any + +export let b: Recur<5, "a">; +>b : any + +=== c.ts === +class T { +>T : T + + declare a: A; +>a : A + + declare b: any; +>b : any +} +class L extends T {} +>L : L +>a : "a" | "b" +>b : any +>T : T + +export class X extends L { +>X : X +>L : L + + declare a: 'a' | 'b'; +>a : "a" | "b" + + declare b: number; +>b : number + + m() { +>m : () => void + + this.a; +>this.a : "a" | "b" +>this : this +>a : "a" | "b" + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..bbb6992374482 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).errors.txt @@ -0,0 +1,34 @@ +error TS2589: Type instantiation is excessively deep and possibly infinite. + + +!!! error TS2589: Type instantiation is excessively deep and possibly infinite. +==== lib.ts (0 errors) ==== + export type Dec = + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; + export type Recur = + N extends 0 ? S : Recur, [S]>; + +==== a.ts (0 errors) ==== + import { Recur } from "./lib"; + export let a: Recur<5, "a">; + +==== b.ts (0 errors) ==== + import { Recur } from "./lib"; + export let b: Recur<5, "a">; + +==== c.ts (0 errors) ==== + class T { + declare a: A; + declare b: any; + } + class L extends T {} + export class X extends L { + declare a: 'a' | 'b'; + declare b: number; + m() { + this.a; + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).js new file mode 100644 index 0000000000000..7fbdadaad0683 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).js @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/checkOrderStableInstantiationErrors.ts] //// + +//// [lib.ts] +export type Dec = + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; +export type Recur = + N extends 0 ? S : Recur, [S]>; + +//// [a.ts] +import { Recur } from "./lib"; +export let a: Recur<5, "a">; + +//// [b.ts] +import { Recur } from "./lib"; +export let b: Recur<5, "a">; + +//// [c.ts] +class T { + declare a: A; + declare b: any; +} +class L extends T {} +export class X extends L { + declare a: 'a' | 'b'; + declare b: number; + m() { + this.a; + } +} + + +//// [lib.js] +export {}; +//// [a.js] +export let a; +//// [b.js] +export let b; +//// [c.js] +class T { +} +class L extends T { +} +export class X extends L { + m() { + this.a; + } +} diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..635d4b4dc06b9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).symbols @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/checkOrderStableInstantiationErrors.ts] //// + +=== lib.ts === +export type Dec = +>Dec : Symbol(Dec, Decl(lib.ts, 0, 0)) +>N : Symbol(N, Decl(lib.ts, 0, 16)) + + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : +>N : Symbol(N, Decl(lib.ts, 0, 16)) +>N : Symbol(N, Decl(lib.ts, 0, 16)) +>N : Symbol(N, Decl(lib.ts, 0, 16)) + + N extends 2 ? any : +>N : Symbol(N, Decl(lib.ts, 0, 16)) + + N extends 1 ? 0 : 0; +>N : Symbol(N, Decl(lib.ts, 0, 16)) + +export type Recur = +>Recur : Symbol(Recur, Decl(lib.ts, 3, 24)) +>N : Symbol(N, Decl(lib.ts, 4, 18)) +>S : Symbol(S, Decl(lib.ts, 4, 35)) + + N extends 0 ? S : Recur, [S]>; +>N : Symbol(N, Decl(lib.ts, 4, 18)) +>S : Symbol(S, Decl(lib.ts, 4, 35)) +>Recur : Symbol(Recur, Decl(lib.ts, 3, 24)) +>Dec : Symbol(Dec, Decl(lib.ts, 0, 0)) +>N : Symbol(N, Decl(lib.ts, 4, 18)) +>S : Symbol(S, Decl(lib.ts, 4, 35)) + +=== a.ts === +import { Recur } from "./lib"; +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) + +export let a: Recur<5, "a">; +>a : Symbol(a, Decl(a.ts, 1, 10)) +>Recur : Symbol(Recur, Decl(a.ts, 0, 8)) + +=== b.ts === +import { Recur } from "./lib"; +>Recur : Symbol(Recur, Decl(b.ts, 0, 8)) + +export let b: Recur<5, "a">; +>b : Symbol(b, Decl(b.ts, 1, 10)) +>Recur : Symbol(Recur, Decl(b.ts, 0, 8)) + +=== c.ts === +class T { +>T : Symbol(T, Decl(c.ts, 0, 0)) +>A : Symbol(A, Decl(c.ts, 0, 8)) + + declare a: A; +>a : Symbol(T.a, Decl(c.ts, 0, 12)) +>A : Symbol(A, Decl(c.ts, 0, 8)) + + declare b: any; +>b : Symbol(T.b, Decl(c.ts, 1, 17)) +} +class L extends T {} +>L : Symbol(L, Decl(c.ts, 3, 1)) +>RT : Symbol(RT, Decl(c.ts, 4, 8)) +>a : Symbol(a, Decl(c.ts, 4, 20)) +>b : Symbol(b, Decl(c.ts, 4, 34)) +>T : Symbol(T, Decl(c.ts, 0, 0)) +>RT : Symbol(RT, Decl(c.ts, 4, 8)) +>RT : Symbol(RT, Decl(c.ts, 4, 8)) + +export class X extends L { +>X : Symbol(X, Decl(c.ts, 4, 70)) +>L : Symbol(L, Decl(c.ts, 3, 1)) +>X : Symbol(X, Decl(c.ts, 4, 70)) + + declare a: 'a' | 'b'; +>a : Symbol(X.a, Decl(c.ts, 5, 29)) + + declare b: number; +>b : Symbol(X.b, Decl(c.ts, 6, 25)) + + m() { +>m : Symbol(X.m, Decl(c.ts, 7, 22)) + + this.a; +>this.a : Symbol(X.a, Decl(c.ts, 5, 29)) +>this : Symbol(X, Decl(c.ts, 4, 70)) +>a : Symbol(X.a, Decl(c.ts, 5, 29)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).types new file mode 100644 index 0000000000000..cb9e6a4ee5033 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/checkOrderStableInstantiationErrors(checkorder=typesfirst).types @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/checkOrderStableInstantiationErrors.ts] //// + +=== lib.ts === +export type Dec = +>Dec : Dec + + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; +export type Recur = +>Recur : Recur + + N extends 0 ? S : Recur, [S]>; + +=== a.ts === +import { Recur } from "./lib"; +>Recur : any + +export let a: Recur<5, "a">; +>a : any + +=== b.ts === +import { Recur } from "./lib"; +>Recur : any + +export let b: Recur<5, "a">; +>b : any + +=== c.ts === +class T { +>T : T + + declare a: A; +>a : A + + declare b: any; +>b : any +} +class L extends T {} +>L : L +>a : "a" | "b" +>b : any +>T : T + +export class X extends L { +>X : X +>L : L + + declare a: 'a' | 'b'; +>a : "a" | "b" + + declare b: number; +>b : number + + m() { +>m : () => void + + this.a; +>this.a : "a" | "b" +>this : this +>a : "a" | "b" + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).errors.txt new file mode 100644 index 0000000000000..9254be443a6c1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).errors.txt @@ -0,0 +1,41 @@ +circularAccessorAnnotations.ts(2,9): error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. +circularAccessorAnnotations.ts(6,9): error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. +circularAccessorAnnotations.ts(15,9): error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. +circularAccessorAnnotations.ts(19,9): error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. + + +==== circularAccessorAnnotations.ts (4 errors) ==== + declare const c1: { + get foo(): typeof c1.foo; + ~~~ +!!! error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. + } + + declare const c2: { + set foo(value: typeof c2.foo); + ~~~ +!!! error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. + } + + declare const c3: { + get foo(): string; + set foo(value: typeof c3.foo); + } + + type T1 = { + get foo(): T1["foo"]; + ~~~ +!!! error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. + } + + type T2 = { + set foo(value: T2["foo"]); + ~~~ +!!! error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. + } + + type T3 = { + get foo(): string; + set foo(value: T3["foo"]); + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).js new file mode 100644 index 0000000000000..5f976ec06b212 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).js @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/circularAccessorAnnotations.ts] //// + +//// [circularAccessorAnnotations.ts] +declare const c1: { + get foo(): typeof c1.foo; +} + +declare const c2: { + set foo(value: typeof c2.foo); +} + +declare const c3: { + get foo(): string; + set foo(value: typeof c3.foo); +} + +type T1 = { + get foo(): T1["foo"]; +} + +type T2 = { + set foo(value: T2["foo"]); +} + +type T3 = { + get foo(): string; + set foo(value: T3["foo"]); +} + + +//// [circularAccessorAnnotations.js] +"use strict"; + + +//// [circularAccessorAnnotations.d.ts] +declare const c1: { + get foo(): typeof c1.foo; +}; +declare const c2: { + set foo(value: typeof c2.foo); +}; +declare const c3: { + get foo(): string; + set foo(value: typeof c3.foo); +}; +type T1 = { + get foo(): T1["foo"]; +}; +type T2 = { + set foo(value: T2["foo"]); +}; +type T3 = { + get foo(): string; + set foo(value: T3["foo"]); +}; diff --git a/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).symbols new file mode 100644 index 0000000000000..d95b8cec0782f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).symbols @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/circularAccessorAnnotations.ts] //// + +=== circularAccessorAnnotations.ts === +declare const c1: { +>c1 : Symbol(c1, Decl(circularAccessorAnnotations.ts, 0, 13)) + + get foo(): typeof c1.foo; +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 0, 19)) +>c1.foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 0, 19)) +>c1 : Symbol(c1, Decl(circularAccessorAnnotations.ts, 0, 13)) +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 0, 19)) +} + +declare const c2: { +>c2 : Symbol(c2, Decl(circularAccessorAnnotations.ts, 4, 13)) + + set foo(value: typeof c2.foo); +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 4, 19)) +>value : Symbol(value, Decl(circularAccessorAnnotations.ts, 5, 12)) +>c2.foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 4, 19)) +>c2 : Symbol(c2, Decl(circularAccessorAnnotations.ts, 4, 13)) +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 4, 19)) +} + +declare const c3: { +>c3 : Symbol(c3, Decl(circularAccessorAnnotations.ts, 8, 13)) + + get foo(): string; +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 8, 19), Decl(circularAccessorAnnotations.ts, 9, 22)) + + set foo(value: typeof c3.foo); +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 8, 19), Decl(circularAccessorAnnotations.ts, 9, 22)) +>value : Symbol(value, Decl(circularAccessorAnnotations.ts, 10, 12)) +>c3.foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 8, 19), Decl(circularAccessorAnnotations.ts, 9, 22)) +>c3 : Symbol(c3, Decl(circularAccessorAnnotations.ts, 8, 13)) +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 8, 19), Decl(circularAccessorAnnotations.ts, 9, 22)) +} + +type T1 = { +>T1 : Symbol(T1, Decl(circularAccessorAnnotations.ts, 11, 1)) + + get foo(): T1["foo"]; +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 13, 11)) +>T1 : Symbol(T1, Decl(circularAccessorAnnotations.ts, 11, 1)) +} + +type T2 = { +>T2 : Symbol(T2, Decl(circularAccessorAnnotations.ts, 15, 1)) + + set foo(value: T2["foo"]); +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 17, 11)) +>value : Symbol(value, Decl(circularAccessorAnnotations.ts, 18, 12)) +>T2 : Symbol(T2, Decl(circularAccessorAnnotations.ts, 15, 1)) +} + +type T3 = { +>T3 : Symbol(T3, Decl(circularAccessorAnnotations.ts, 19, 1)) + + get foo(): string; +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 21, 11), Decl(circularAccessorAnnotations.ts, 22, 22)) + + set foo(value: T3["foo"]); +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 21, 11), Decl(circularAccessorAnnotations.ts, 22, 22)) +>value : Symbol(value, Decl(circularAccessorAnnotations.ts, 23, 12)) +>T3 : Symbol(T3, Decl(circularAccessorAnnotations.ts, 19, 1)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).types new file mode 100644 index 0000000000000..2b01358a33dca --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=default).types @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/circularAccessorAnnotations.ts] //// + +=== circularAccessorAnnotations.ts === +declare const c1: { +>c1 : { readonly foo: typeof c1.foo; } + + get foo(): typeof c1.foo; +>foo : any +>c1.foo : any +>c1 : { readonly foo: typeof c1.foo; } +>foo : any +} + +declare const c2: { +>c2 : { foo: typeof c2.foo; } + + set foo(value: typeof c2.foo); +>foo : any +>value : any +>c2.foo : any +>c2 : { foo: typeof c2.foo; } +>foo : any +} + +declare const c3: { +>c3 : { foo: string; } + + get foo(): string; +>foo : string + + set foo(value: typeof c3.foo); +>foo : string +>value : string +>c3.foo : string +>c3 : { foo: string; } +>foo : string +} + +type T1 = { +>T1 : T1 + + get foo(): T1["foo"]; +>foo : any +} + +type T2 = { +>T2 : T2 + + set foo(value: T2["foo"]); +>foo : any +>value : any +} + +type T3 = { +>T3 : T3 + + get foo(): string; +>foo : string + + set foo(value: T3["foo"]); +>foo : string +>value : string +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..9254be443a6c1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).errors.txt @@ -0,0 +1,41 @@ +circularAccessorAnnotations.ts(2,9): error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. +circularAccessorAnnotations.ts(6,9): error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. +circularAccessorAnnotations.ts(15,9): error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. +circularAccessorAnnotations.ts(19,9): error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. + + +==== circularAccessorAnnotations.ts (4 errors) ==== + declare const c1: { + get foo(): typeof c1.foo; + ~~~ +!!! error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. + } + + declare const c2: { + set foo(value: typeof c2.foo); + ~~~ +!!! error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. + } + + declare const c3: { + get foo(): string; + set foo(value: typeof c3.foo); + } + + type T1 = { + get foo(): T1["foo"]; + ~~~ +!!! error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. + } + + type T2 = { + set foo(value: T2["foo"]); + ~~~ +!!! error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. + } + + type T3 = { + get foo(): string; + set foo(value: T3["foo"]); + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).js new file mode 100644 index 0000000000000..5f976ec06b212 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).js @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/circularAccessorAnnotations.ts] //// + +//// [circularAccessorAnnotations.ts] +declare const c1: { + get foo(): typeof c1.foo; +} + +declare const c2: { + set foo(value: typeof c2.foo); +} + +declare const c3: { + get foo(): string; + set foo(value: typeof c3.foo); +} + +type T1 = { + get foo(): T1["foo"]; +} + +type T2 = { + set foo(value: T2["foo"]); +} + +type T3 = { + get foo(): string; + set foo(value: T3["foo"]); +} + + +//// [circularAccessorAnnotations.js] +"use strict"; + + +//// [circularAccessorAnnotations.d.ts] +declare const c1: { + get foo(): typeof c1.foo; +}; +declare const c2: { + set foo(value: typeof c2.foo); +}; +declare const c3: { + get foo(): string; + set foo(value: typeof c3.foo); +}; +type T1 = { + get foo(): T1["foo"]; +}; +type T2 = { + set foo(value: T2["foo"]); +}; +type T3 = { + get foo(): string; + set foo(value: T3["foo"]); +}; diff --git a/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..d95b8cec0782f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).symbols @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/circularAccessorAnnotations.ts] //// + +=== circularAccessorAnnotations.ts === +declare const c1: { +>c1 : Symbol(c1, Decl(circularAccessorAnnotations.ts, 0, 13)) + + get foo(): typeof c1.foo; +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 0, 19)) +>c1.foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 0, 19)) +>c1 : Symbol(c1, Decl(circularAccessorAnnotations.ts, 0, 13)) +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 0, 19)) +} + +declare const c2: { +>c2 : Symbol(c2, Decl(circularAccessorAnnotations.ts, 4, 13)) + + set foo(value: typeof c2.foo); +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 4, 19)) +>value : Symbol(value, Decl(circularAccessorAnnotations.ts, 5, 12)) +>c2.foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 4, 19)) +>c2 : Symbol(c2, Decl(circularAccessorAnnotations.ts, 4, 13)) +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 4, 19)) +} + +declare const c3: { +>c3 : Symbol(c3, Decl(circularAccessorAnnotations.ts, 8, 13)) + + get foo(): string; +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 8, 19), Decl(circularAccessorAnnotations.ts, 9, 22)) + + set foo(value: typeof c3.foo); +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 8, 19), Decl(circularAccessorAnnotations.ts, 9, 22)) +>value : Symbol(value, Decl(circularAccessorAnnotations.ts, 10, 12)) +>c3.foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 8, 19), Decl(circularAccessorAnnotations.ts, 9, 22)) +>c3 : Symbol(c3, Decl(circularAccessorAnnotations.ts, 8, 13)) +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 8, 19), Decl(circularAccessorAnnotations.ts, 9, 22)) +} + +type T1 = { +>T1 : Symbol(T1, Decl(circularAccessorAnnotations.ts, 11, 1)) + + get foo(): T1["foo"]; +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 13, 11)) +>T1 : Symbol(T1, Decl(circularAccessorAnnotations.ts, 11, 1)) +} + +type T2 = { +>T2 : Symbol(T2, Decl(circularAccessorAnnotations.ts, 15, 1)) + + set foo(value: T2["foo"]); +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 17, 11)) +>value : Symbol(value, Decl(circularAccessorAnnotations.ts, 18, 12)) +>T2 : Symbol(T2, Decl(circularAccessorAnnotations.ts, 15, 1)) +} + +type T3 = { +>T3 : Symbol(T3, Decl(circularAccessorAnnotations.ts, 19, 1)) + + get foo(): string; +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 21, 11), Decl(circularAccessorAnnotations.ts, 22, 22)) + + set foo(value: T3["foo"]); +>foo : Symbol(foo, Decl(circularAccessorAnnotations.ts, 21, 11), Decl(circularAccessorAnnotations.ts, 22, 22)) +>value : Symbol(value, Decl(circularAccessorAnnotations.ts, 23, 12)) +>T3 : Symbol(T3, Decl(circularAccessorAnnotations.ts, 19, 1)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).types new file mode 100644 index 0000000000000..e6b4d1fca90ca --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularAccessorAnnotations(checkorder=typesfirst).types @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/circularAccessorAnnotations.ts] //// + +=== circularAccessorAnnotations.ts === +declare const c1: { +>c1 : { readonly foo: any; } + + get foo(): typeof c1.foo; +>foo : any +>c1.foo : any +>c1 : { readonly foo: any; } +>foo : any +} + +declare const c2: { +>c2 : { foo: any; } + + set foo(value: typeof c2.foo); +>foo : any +>value : any +>c2.foo : any +>c2 : { foo: any; } +>foo : any +} + +declare const c3: { +>c3 : { foo: string; } + + get foo(): string; +>foo : string + + set foo(value: typeof c3.foo); +>foo : string +>value : string +>c3.foo : string +>c3 : { foo: string; } +>foo : string +} + +type T1 = { +>T1 : T1 + + get foo(): T1["foo"]; +>foo : any +} + +type T2 = { +>T2 : T2 + + set foo(value: T2["foo"]); +>foo : any +>value : any +} + +type T3 = { +>T3 : T3 + + get foo(): string; +>foo : string + + set foo(value: T3["foo"]); +>foo : string +>value : string +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..81d1df99f640b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,41 @@ +circularBaseTypesCheckOrder.ts(6,3): error TS2339: Property 'x' does not exist on type 'Derived2'. +circularBaseTypesCheckOrder.ts(7,3): error TS2339: Property 'y' does not exist on type 'Derived2'. +circularBaseTypesCheckOrder.ts(9,11): error TS2310: Type 'Base' recursively references itself as a base type. +circularBaseTypesCheckOrder.ts(13,11): error TS2310: Type 'Derived' recursively references itself as a base type. +circularBaseTypesCheckOrder.ts(17,11): error TS2310: Type 'Derived2' recursively references itself as a base type. + + +==== circularBaseTypesCheckOrder.ts (5 errors) ==== + // The base types of a cycle of interfaces are resolved as if the cycle + // were entered at the interface declared first, wherever it is entered: + // 'Base' has none, and the others keep theirs. + + declare let z: Derived2; + z.x; + ~ +!!! error TS2339: Property 'x' does not exist on type 'Derived2'. + z.y; + ~ +!!! error TS2339: Property 'y' does not exist on type 'Derived2'. + + interface Base extends Derived2 { + ~~~~ +!!! error TS2310: Type 'Base' recursively references itself as a base type. + x: string; + } + + interface Derived extends Base { + ~~~~~~~ +!!! error TS2310: Type 'Derived' recursively references itself as a base type. + y: string; + } + + interface Derived2 extends Derived { + ~~~~~~~~ +!!! error TS2310: Type 'Derived2' recursively references itself as a base type. + z: string; + } + + declare let d: Derived; + d.x; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..dbb2024cd10ba --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/circularBaseTypesCheckOrder.ts] //// + +=== circularBaseTypesCheckOrder.ts === +// The base types of a cycle of interfaces are resolved as if the cycle +// were entered at the interface declared first, wherever it is entered: +// 'Base' has none, and the others keep theirs. + +declare let z: Derived2; +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) + +z.x; +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) + +z.y; +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) + +interface Base extends Derived2 { +>Base : Symbol(Base, Decl(circularBaseTypesCheckOrder.ts, 6, 4)) +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) + + x: string; +>x : Symbol(Base.x, Decl(circularBaseTypesCheckOrder.ts, 8, 33)) +} + +interface Derived extends Base { +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) +>Base : Symbol(Base, Decl(circularBaseTypesCheckOrder.ts, 6, 4)) + + y: string; +>y : Symbol(Derived.y, Decl(circularBaseTypesCheckOrder.ts, 12, 32)) +} + +interface Derived2 extends Derived { +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) + + z: string; +>z : Symbol(Derived2.z, Decl(circularBaseTypesCheckOrder.ts, 16, 36)) +} + +declare let d: Derived; +>d : Symbol(d, Decl(circularBaseTypesCheckOrder.ts, 20, 11)) +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) + +d.x; +>d.x : Symbol(Base.x, Decl(circularBaseTypesCheckOrder.ts, 8, 33)) +>d : Symbol(d, Decl(circularBaseTypesCheckOrder.ts, 20, 11)) +>x : Symbol(Base.x, Decl(circularBaseTypesCheckOrder.ts, 8, 33)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..dd45c076fcd00 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=default).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/circularBaseTypesCheckOrder.ts] //// + +=== circularBaseTypesCheckOrder.ts === +// The base types of a cycle of interfaces are resolved as if the cycle +// were entered at the interface declared first, wherever it is entered: +// 'Base' has none, and the others keep theirs. + +declare let z: Derived2; +>z : Derived2 + +z.x; +>z.x : any +>z : Derived2 +>x : any + +z.y; +>z.y : any +>z : Derived2 +>y : any + +interface Base extends Derived2 { + x: string; +>x : string +} + +interface Derived extends Base { + y: string; +>y : string +} + +interface Derived2 extends Derived { + z: string; +>z : string +} + +declare let d: Derived; +>d : Derived + +d.x; +>d.x : string +>d : Derived +>x : string + diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..1970b46643378 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,41 @@ +circularBaseTypesCheckOrder.ts(6,3): error TS2339: Property 'x' does not exist on type 'Derived2'. +circularBaseTypesCheckOrder.ts(9,11): error TS2310: Type 'Base' recursively references itself as a base type. +circularBaseTypesCheckOrder.ts(13,11): error TS2310: Type 'Derived' recursively references itself as a base type. +circularBaseTypesCheckOrder.ts(17,11): error TS2310: Type 'Derived2' recursively references itself as a base type. +circularBaseTypesCheckOrder.ts(22,3): error TS2339: Property 'x' does not exist on type 'Derived'. + + +==== circularBaseTypesCheckOrder.ts (5 errors) ==== + // The base types of a cycle of interfaces are resolved as if the cycle + // were entered at the interface declared first, wherever it is entered: + // 'Base' has none, and the others keep theirs. + + declare let z: Derived2; + z.x; + ~ +!!! error TS2339: Property 'x' does not exist on type 'Derived2'. + z.y; + + interface Base extends Derived2 { + ~~~~ +!!! error TS2310: Type 'Base' recursively references itself as a base type. + x: string; + } + + interface Derived extends Base { + ~~~~~~~ +!!! error TS2310: Type 'Derived' recursively references itself as a base type. + y: string; + } + + interface Derived2 extends Derived { + ~~~~~~~~ +!!! error TS2310: Type 'Derived2' recursively references itself as a base type. + z: string; + } + + declare let d: Derived; + d.x; + ~ +!!! error TS2339: Property 'x' does not exist on type 'Derived'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..19b959886ce7e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/circularBaseTypesCheckOrder.ts] //// + +=== circularBaseTypesCheckOrder.ts === +// The base types of a cycle of interfaces are resolved as if the cycle +// were entered at the interface declared first, wherever it is entered: +// 'Base' has none, and the others keep theirs. + +declare let z: Derived2; +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) + +z.x; +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) + +z.y; +>z.y : Symbol(Derived.y, Decl(circularBaseTypesCheckOrder.ts, 12, 32)) +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) +>y : Symbol(Derived.y, Decl(circularBaseTypesCheckOrder.ts, 12, 32)) + +interface Base extends Derived2 { +>Base : Symbol(Base, Decl(circularBaseTypesCheckOrder.ts, 6, 4)) +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) + + x: string; +>x : Symbol(Base.x, Decl(circularBaseTypesCheckOrder.ts, 8, 33)) +} + +interface Derived extends Base { +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) +>Base : Symbol(Base, Decl(circularBaseTypesCheckOrder.ts, 6, 4)) + + y: string; +>y : Symbol(Derived.y, Decl(circularBaseTypesCheckOrder.ts, 12, 32)) +} + +interface Derived2 extends Derived { +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) + + z: string; +>z : Symbol(Derived2.z, Decl(circularBaseTypesCheckOrder.ts, 16, 36)) +} + +declare let d: Derived; +>d : Symbol(d, Decl(circularBaseTypesCheckOrder.ts, 20, 11)) +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) + +d.x; +>d : Symbol(d, Decl(circularBaseTypesCheckOrder.ts, 20, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..3681744e0dce8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/circularBaseTypesCheckOrder.ts] //// + +=== circularBaseTypesCheckOrder.ts === +// The base types of a cycle of interfaces are resolved as if the cycle +// were entered at the interface declared first, wherever it is entered: +// 'Base' has none, and the others keep theirs. + +declare let z: Derived2; +>z : Derived2 + +z.x; +>z.x : any +>z : Derived2 +>x : any + +z.y; +>z.y : string +>z : Derived2 +>y : string + +interface Base extends Derived2 { + x: string; +>x : string +} + +interface Derived extends Base { + y: string; +>y : string +} + +interface Derived2 extends Derived { + z: string; +>z : string +} + +declare let d: Derived; +>d : Derived + +d.x; +>d.x : any +>d : Derived +>x : any + diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).errors.txt b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).errors.txt new file mode 100644 index 0000000000000..81d1df99f640b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).errors.txt @@ -0,0 +1,41 @@ +circularBaseTypesCheckOrder.ts(6,3): error TS2339: Property 'x' does not exist on type 'Derived2'. +circularBaseTypesCheckOrder.ts(7,3): error TS2339: Property 'y' does not exist on type 'Derived2'. +circularBaseTypesCheckOrder.ts(9,11): error TS2310: Type 'Base' recursively references itself as a base type. +circularBaseTypesCheckOrder.ts(13,11): error TS2310: Type 'Derived' recursively references itself as a base type. +circularBaseTypesCheckOrder.ts(17,11): error TS2310: Type 'Derived2' recursively references itself as a base type. + + +==== circularBaseTypesCheckOrder.ts (5 errors) ==== + // The base types of a cycle of interfaces are resolved as if the cycle + // were entered at the interface declared first, wherever it is entered: + // 'Base' has none, and the others keep theirs. + + declare let z: Derived2; + z.x; + ~ +!!! error TS2339: Property 'x' does not exist on type 'Derived2'. + z.y; + ~ +!!! error TS2339: Property 'y' does not exist on type 'Derived2'. + + interface Base extends Derived2 { + ~~~~ +!!! error TS2310: Type 'Base' recursively references itself as a base type. + x: string; + } + + interface Derived extends Base { + ~~~~~~~ +!!! error TS2310: Type 'Derived' recursively references itself as a base type. + y: string; + } + + interface Derived2 extends Derived { + ~~~~~~~~ +!!! error TS2310: Type 'Derived2' recursively references itself as a base type. + z: string; + } + + declare let d: Derived; + d.x; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).symbols new file mode 100644 index 0000000000000..dbb2024cd10ba --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/circularBaseTypesCheckOrder.ts] //// + +=== circularBaseTypesCheckOrder.ts === +// The base types of a cycle of interfaces are resolved as if the cycle +// were entered at the interface declared first, wherever it is entered: +// 'Base' has none, and the others keep theirs. + +declare let z: Derived2; +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) + +z.x; +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) + +z.y; +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) + +interface Base extends Derived2 { +>Base : Symbol(Base, Decl(circularBaseTypesCheckOrder.ts, 6, 4)) +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) + + x: string; +>x : Symbol(Base.x, Decl(circularBaseTypesCheckOrder.ts, 8, 33)) +} + +interface Derived extends Base { +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) +>Base : Symbol(Base, Decl(circularBaseTypesCheckOrder.ts, 6, 4)) + + y: string; +>y : Symbol(Derived.y, Decl(circularBaseTypesCheckOrder.ts, 12, 32)) +} + +interface Derived2 extends Derived { +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) + + z: string; +>z : Symbol(Derived2.z, Decl(circularBaseTypesCheckOrder.ts, 16, 36)) +} + +declare let d: Derived; +>d : Symbol(d, Decl(circularBaseTypesCheckOrder.ts, 20, 11)) +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) + +d.x; +>d.x : Symbol(Base.x, Decl(circularBaseTypesCheckOrder.ts, 8, 33)) +>d : Symbol(d, Decl(circularBaseTypesCheckOrder.ts, 20, 11)) +>x : Symbol(Base.x, Decl(circularBaseTypesCheckOrder.ts, 8, 33)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).types new file mode 100644 index 0000000000000..dd45c076fcd00 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=reverse).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/circularBaseTypesCheckOrder.ts] //// + +=== circularBaseTypesCheckOrder.ts === +// The base types of a cycle of interfaces are resolved as if the cycle +// were entered at the interface declared first, wherever it is entered: +// 'Base' has none, and the others keep theirs. + +declare let z: Derived2; +>z : Derived2 + +z.x; +>z.x : any +>z : Derived2 +>x : any + +z.y; +>z.y : any +>z : Derived2 +>y : any + +interface Base extends Derived2 { + x: string; +>x : string +} + +interface Derived extends Base { + y: string; +>y : string +} + +interface Derived2 extends Derived { + z: string; +>z : string +} + +declare let d: Derived; +>d : Derived + +d.x; +>d.x : string +>d : Derived +>x : string + diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..1970b46643378 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,41 @@ +circularBaseTypesCheckOrder.ts(6,3): error TS2339: Property 'x' does not exist on type 'Derived2'. +circularBaseTypesCheckOrder.ts(9,11): error TS2310: Type 'Base' recursively references itself as a base type. +circularBaseTypesCheckOrder.ts(13,11): error TS2310: Type 'Derived' recursively references itself as a base type. +circularBaseTypesCheckOrder.ts(17,11): error TS2310: Type 'Derived2' recursively references itself as a base type. +circularBaseTypesCheckOrder.ts(22,3): error TS2339: Property 'x' does not exist on type 'Derived'. + + +==== circularBaseTypesCheckOrder.ts (5 errors) ==== + // The base types of a cycle of interfaces are resolved as if the cycle + // were entered at the interface declared first, wherever it is entered: + // 'Base' has none, and the others keep theirs. + + declare let z: Derived2; + z.x; + ~ +!!! error TS2339: Property 'x' does not exist on type 'Derived2'. + z.y; + + interface Base extends Derived2 { + ~~~~ +!!! error TS2310: Type 'Base' recursively references itself as a base type. + x: string; + } + + interface Derived extends Base { + ~~~~~~~ +!!! error TS2310: Type 'Derived' recursively references itself as a base type. + y: string; + } + + interface Derived2 extends Derived { + ~~~~~~~~ +!!! error TS2310: Type 'Derived2' recursively references itself as a base type. + z: string; + } + + declare let d: Derived; + d.x; + ~ +!!! error TS2339: Property 'x' does not exist on type 'Derived'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..19b959886ce7e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/circularBaseTypesCheckOrder.ts] //// + +=== circularBaseTypesCheckOrder.ts === +// The base types of a cycle of interfaces are resolved as if the cycle +// were entered at the interface declared first, wherever it is entered: +// 'Base' has none, and the others keep theirs. + +declare let z: Derived2; +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) + +z.x; +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) + +z.y; +>z.y : Symbol(Derived.y, Decl(circularBaseTypesCheckOrder.ts, 12, 32)) +>z : Symbol(z, Decl(circularBaseTypesCheckOrder.ts, 4, 11)) +>y : Symbol(Derived.y, Decl(circularBaseTypesCheckOrder.ts, 12, 32)) + +interface Base extends Derived2 { +>Base : Symbol(Base, Decl(circularBaseTypesCheckOrder.ts, 6, 4)) +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) + + x: string; +>x : Symbol(Base.x, Decl(circularBaseTypesCheckOrder.ts, 8, 33)) +} + +interface Derived extends Base { +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) +>Base : Symbol(Base, Decl(circularBaseTypesCheckOrder.ts, 6, 4)) + + y: string; +>y : Symbol(Derived.y, Decl(circularBaseTypesCheckOrder.ts, 12, 32)) +} + +interface Derived2 extends Derived { +>Derived2 : Symbol(Derived2, Decl(circularBaseTypesCheckOrder.ts, 14, 1)) +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) + + z: string; +>z : Symbol(Derived2.z, Decl(circularBaseTypesCheckOrder.ts, 16, 36)) +} + +declare let d: Derived; +>d : Symbol(d, Decl(circularBaseTypesCheckOrder.ts, 20, 11)) +>Derived : Symbol(Derived, Decl(circularBaseTypesCheckOrder.ts, 10, 1)) + +d.x; +>d : Symbol(d, Decl(circularBaseTypesCheckOrder.ts, 20, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..3681744e0dce8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularBaseTypesCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/circularBaseTypesCheckOrder.ts] //// + +=== circularBaseTypesCheckOrder.ts === +// The base types of a cycle of interfaces are resolved as if the cycle +// were entered at the interface declared first, wherever it is entered: +// 'Base' has none, and the others keep theirs. + +declare let z: Derived2; +>z : Derived2 + +z.x; +>z.x : any +>z : Derived2 +>x : any + +z.y; +>z.y : string +>z : Derived2 +>y : string + +interface Base extends Derived2 { + x: string; +>x : string +} + +interface Derived extends Base { + y: string; +>y : string +} + +interface Derived2 extends Derived { + z: string; +>z : string +} + +declare let d: Derived; +>d : Derived + +d.x; +>d.x : any +>d : Derived +>x : any + diff --git a/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.errors.txt b/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.errors.txt new file mode 100644 index 0000000000000..3322a7ea25b66 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.errors.txt @@ -0,0 +1,14 @@ +circularIndexedPropertyInstantiation.ts(4,9): error TS5114: Instantiations of type 'Foo' appear infinitely circular. +circularIndexedPropertyInstantiation.ts(5,13): error TS2344: Type '"false"' does not satisfy the constraint '"true"'. + + +==== circularIndexedPropertyInstantiation.ts (2 errors) ==== + // Repro from #14837 + + type Foo = { "true": Foo> }[T]; + let f1: Foo<"true", {}>; + ~~~~~~~~~~~~~~~ +!!! error TS5114: Instantiations of type 'Foo' appear infinitely circular. + let f2: Foo<"false", {}>; + ~~~~~~~ +!!! error TS2344: Type '"false"' does not satisfy the constraint '"true"'. \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.js b/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.js new file mode 100644 index 0000000000000..ac6aa726ab7a4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.js @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/circularIndexedPropertyInstantiation.ts] //// + +//// [circularIndexedPropertyInstantiation.ts] +// Repro from #14837 + +type Foo = { "true": Foo> }[T]; +let f1: Foo<"true", {}>; +let f2: Foo<"false", {}>; + +//// [circularIndexedPropertyInstantiation.js] +"use strict"; +// Repro from #14837 +let f1; +let f2; diff --git a/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.symbols b/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.symbols new file mode 100644 index 0000000000000..5473bd4665786 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/circularIndexedPropertyInstantiation.ts] //// + +=== circularIndexedPropertyInstantiation.ts === +// Repro from #14837 + +type Foo = { "true": Foo> }[T]; +>Foo : Symbol(Foo, Decl(circularIndexedPropertyInstantiation.ts, 0, 0)) +>T : Symbol(T, Decl(circularIndexedPropertyInstantiation.ts, 2, 9)) +>B : Symbol(B, Decl(circularIndexedPropertyInstantiation.ts, 2, 26)) +>"true" : Symbol("true", Decl(circularIndexedPropertyInstantiation.ts, 2, 33)) +>Foo : Symbol(Foo, Decl(circularIndexedPropertyInstantiation.ts, 0, 0)) +>T : Symbol(T, Decl(circularIndexedPropertyInstantiation.ts, 2, 9)) +>Foo : Symbol(Foo, Decl(circularIndexedPropertyInstantiation.ts, 0, 0)) +>T : Symbol(T, Decl(circularIndexedPropertyInstantiation.ts, 2, 9)) +>B : Symbol(B, Decl(circularIndexedPropertyInstantiation.ts, 2, 26)) +>T : Symbol(T, Decl(circularIndexedPropertyInstantiation.ts, 2, 9)) + +let f1: Foo<"true", {}>; +>f1 : Symbol(f1, Decl(circularIndexedPropertyInstantiation.ts, 3, 3)) +>Foo : Symbol(Foo, Decl(circularIndexedPropertyInstantiation.ts, 0, 0)) + +let f2: Foo<"false", {}>; +>f2 : Symbol(f2, Decl(circularIndexedPropertyInstantiation.ts, 4, 3)) +>Foo : Symbol(Foo, Decl(circularIndexedPropertyInstantiation.ts, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.types b/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.types new file mode 100644 index 0000000000000..789407f9e698b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularIndexedPropertyInstantiation.types @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/circularIndexedPropertyInstantiation.ts] //// + +=== circularIndexedPropertyInstantiation.ts === +// Repro from #14837 + +type Foo = { "true": Foo> }[T]; +>Foo : Foo +>"true" : Foo> + +let f1: Foo<"true", {}>; +>f1 : any + +let f2: Foo<"false", {}>; +>f2 : unknown + diff --git a/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).errors.txt b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).errors.txt new file mode 100644 index 0000000000000..0accf5ec5ec5d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).errors.txt @@ -0,0 +1,40 @@ +circularInitializerInference.ts(6,14): error TS2695: Left side of comma operator is unused and has no side effects. +circularInitializerInference.ts(9,20): error TS2695: Left side of comma operator is unused and has no side effects. +circularInitializerInference.ts(9,20): error TS2695: Left side of comma operator is unused and has no side effects. + + +==== circularInitializerInference.ts (3 errors) ==== + export {}; + + type IsAny = 0 extends (1 & Type) ? true : false; + type Assert = Condition; + + var comma = (comma, 3); + ~~~~~ +!!! error TS2695: Left side of comma operator is unused and has no side effects. + type CommaInference = Assert>; + + var nestedComma = (comma, nestedComma, comma); + ~~~~~ +!!! error TS2695: Left side of comma operator is unused and has no side effects. + ~~~~~~~~~~~~~~~~~~ +!!! error TS2695: Left side of comma operator is unused and has no side effects. + type NestedCommaInference = Assert>; + + var assignment = (assignment = 2); + type AssignmentInference = Assert>; + + var nestedAssignment = (nestedAssignment = nestedAssignment = 2); + type NestedAssignmentInference = Assert>; + + var conditional = conditional ? 0 : 1; + type ConditionalInference = Assert>; + + var logicalAnd = logicalAnd && ""; + type LogicalAndInference = Assert>; + + var propertyAccess = { member: propertyAccess.member }; + type PropertyAccessInference = Assert>; + + const nonCircular: number = 3; + type NonCircularInference = Assert extends false ? true : false>; \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).js b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).js new file mode 100644 index 0000000000000..6b1e6c702f422 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).js @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/circularInitializerInference.ts] //// + +//// [circularInitializerInference.ts] +export {}; + +type IsAny = 0 extends (1 & Type) ? true : false; +type Assert = Condition; + +var comma = (comma, 3); +type CommaInference = Assert>; + +var nestedComma = (comma, nestedComma, comma); +type NestedCommaInference = Assert>; + +var assignment = (assignment = 2); +type AssignmentInference = Assert>; + +var nestedAssignment = (nestedAssignment = nestedAssignment = 2); +type NestedAssignmentInference = Assert>; + +var conditional = conditional ? 0 : 1; +type ConditionalInference = Assert>; + +var logicalAnd = logicalAnd && ""; +type LogicalAndInference = Assert>; + +var propertyAccess = { member: propertyAccess.member }; +type PropertyAccessInference = Assert>; + +const nonCircular: number = 3; +type NonCircularInference = Assert extends false ? true : false>; + +//// [circularInitializerInference.js] +var comma = (comma, 3); +var nestedComma = (comma, nestedComma, comma); +var assignment = (assignment = 2); +var nestedAssignment = (nestedAssignment = nestedAssignment = 2); +var conditional = conditional ? 0 : 1; +var logicalAnd = logicalAnd && ""; +var propertyAccess = { member: propertyAccess.member }; +const nonCircular = 3; +export {}; diff --git a/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).symbols b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).symbols new file mode 100644 index 0000000000000..7146dd252c8ef --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).symbols @@ -0,0 +1,98 @@ +//// [tests/cases/compiler/circularInitializerInference.ts] //// + +=== circularInitializerInference.ts === +export {}; + +type IsAny = 0 extends (1 & Type) ? true : false; +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>Type : Symbol(Type, Decl(circularInitializerInference.ts, 2, 11)) +>Type : Symbol(Type, Decl(circularInitializerInference.ts, 2, 11)) + +type Assert = Condition; +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>Condition : Symbol(Condition, Decl(circularInitializerInference.ts, 3, 12)) +>Condition : Symbol(Condition, Decl(circularInitializerInference.ts, 3, 12)) + +var comma = (comma, 3); +>comma : Symbol(comma, Decl(circularInitializerInference.ts, 5, 3)) +>comma : Symbol(comma, Decl(circularInitializerInference.ts, 5, 3)) + +type CommaInference = Assert>; +>CommaInference : Symbol(CommaInference, Decl(circularInitializerInference.ts, 5, 23)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>comma : Symbol(comma, Decl(circularInitializerInference.ts, 5, 3)) + +var nestedComma = (comma, nestedComma, comma); +>nestedComma : Symbol(nestedComma, Decl(circularInitializerInference.ts, 8, 3)) +>comma : Symbol(comma, Decl(circularInitializerInference.ts, 5, 3)) +>nestedComma : Symbol(nestedComma, Decl(circularInitializerInference.ts, 8, 3)) +>comma : Symbol(comma, Decl(circularInitializerInference.ts, 5, 3)) + +type NestedCommaInference = Assert>; +>NestedCommaInference : Symbol(NestedCommaInference, Decl(circularInitializerInference.ts, 8, 46)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>nestedComma : Symbol(nestedComma, Decl(circularInitializerInference.ts, 8, 3)) + +var assignment = (assignment = 2); +>assignment : Symbol(assignment, Decl(circularInitializerInference.ts, 11, 3)) +>assignment : Symbol(assignment, Decl(circularInitializerInference.ts, 11, 3)) + +type AssignmentInference = Assert>; +>AssignmentInference : Symbol(AssignmentInference, Decl(circularInitializerInference.ts, 11, 34)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>assignment : Symbol(assignment, Decl(circularInitializerInference.ts, 11, 3)) + +var nestedAssignment = (nestedAssignment = nestedAssignment = 2); +>nestedAssignment : Symbol(nestedAssignment, Decl(circularInitializerInference.ts, 14, 3)) +>nestedAssignment : Symbol(nestedAssignment, Decl(circularInitializerInference.ts, 14, 3)) +>nestedAssignment : Symbol(nestedAssignment, Decl(circularInitializerInference.ts, 14, 3)) + +type NestedAssignmentInference = Assert>; +>NestedAssignmentInference : Symbol(NestedAssignmentInference, Decl(circularInitializerInference.ts, 14, 65)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>nestedAssignment : Symbol(nestedAssignment, Decl(circularInitializerInference.ts, 14, 3)) + +var conditional = conditional ? 0 : 1; +>conditional : Symbol(conditional, Decl(circularInitializerInference.ts, 17, 3)) +>conditional : Symbol(conditional, Decl(circularInitializerInference.ts, 17, 3)) + +type ConditionalInference = Assert>; +>ConditionalInference : Symbol(ConditionalInference, Decl(circularInitializerInference.ts, 17, 38)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>conditional : Symbol(conditional, Decl(circularInitializerInference.ts, 17, 3)) + +var logicalAnd = logicalAnd && ""; +>logicalAnd : Symbol(logicalAnd, Decl(circularInitializerInference.ts, 20, 3)) +>logicalAnd : Symbol(logicalAnd, Decl(circularInitializerInference.ts, 20, 3)) + +type LogicalAndInference = Assert>; +>LogicalAndInference : Symbol(LogicalAndInference, Decl(circularInitializerInference.ts, 20, 34)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>logicalAnd : Symbol(logicalAnd, Decl(circularInitializerInference.ts, 20, 3)) + +var propertyAccess = { member: propertyAccess.member }; +>propertyAccess : Symbol(propertyAccess, Decl(circularInitializerInference.ts, 23, 3)) +>member : Symbol(member, Decl(circularInitializerInference.ts, 23, 22)) +>propertyAccess : Symbol(propertyAccess, Decl(circularInitializerInference.ts, 23, 3)) + +type PropertyAccessInference = Assert>; +>PropertyAccessInference : Symbol(PropertyAccessInference, Decl(circularInitializerInference.ts, 23, 55)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>propertyAccess : Symbol(propertyAccess, Decl(circularInitializerInference.ts, 23, 3)) + +const nonCircular: number = 3; +>nonCircular : Symbol(nonCircular, Decl(circularInitializerInference.ts, 26, 5)) + +type NonCircularInference = Assert extends false ? true : false>; +>NonCircularInference : Symbol(NonCircularInference, Decl(circularInitializerInference.ts, 26, 30)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>nonCircular : Symbol(nonCircular, Decl(circularInitializerInference.ts, 26, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).types b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).types new file mode 100644 index 0000000000000..c9d5c077f18ad --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=false).types @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/circularInitializerInference.ts] //// + +=== circularInitializerInference.ts === +export {}; + +type IsAny = 0 extends (1 & Type) ? true : false; +>IsAny : IsAny +>true : true +>false : false + +type Assert = Condition; +>Assert : Condition +>true : true + +var comma = (comma, 3); +>comma : any +>(comma, 3) : 3 +>comma, 3 : 3 +>comma : any +>3 : 3 + +type CommaInference = Assert>; +>CommaInference : true +>comma : any + +var nestedComma = (comma, nestedComma, comma); +>nestedComma : any +>(comma, nestedComma, comma) : any +>comma, nestedComma, comma : any +>comma, nestedComma : any +>comma : any +>nestedComma : any +>comma : any + +type NestedCommaInference = Assert>; +>NestedCommaInference : true +>nestedComma : any + +var assignment = (assignment = 2); +>assignment : any +>(assignment = 2) : 2 +>assignment = 2 : 2 +>assignment : any +>2 : 2 + +type AssignmentInference = Assert>; +>AssignmentInference : true +>assignment : any + +var nestedAssignment = (nestedAssignment = nestedAssignment = 2); +>nestedAssignment : any +>(nestedAssignment = nestedAssignment = 2) : 2 +>nestedAssignment = nestedAssignment = 2 : 2 +>nestedAssignment : any +>nestedAssignment = 2 : 2 +>nestedAssignment : any +>2 : 2 + +type NestedAssignmentInference = Assert>; +>NestedAssignmentInference : true +>nestedAssignment : any + +var conditional = conditional ? 0 : 1; +>conditional : any +>conditional ? 0 : 1 : 0 | 1 +>conditional : any +>0 : 0 +>1 : 1 + +type ConditionalInference = Assert>; +>ConditionalInference : true +>conditional : any + +var logicalAnd = logicalAnd && ""; +>logicalAnd : any +>logicalAnd && "" : "" +>logicalAnd : any +>"" : "" + +type LogicalAndInference = Assert>; +>LogicalAndInference : true +>logicalAnd : any + +var propertyAccess = { member: propertyAccess.member }; +>propertyAccess : any +>{ member: propertyAccess.member } : { member: any; } +>member : any +>propertyAccess.member : any +>propertyAccess : any +>member : any + +type PropertyAccessInference = Assert>; +>PropertyAccessInference : true +>propertyAccess : any + +const nonCircular: number = 3; +>nonCircular : number +>3 : 3 + +type NonCircularInference = Assert extends false ? true : false>; +>NonCircularInference : true +>nonCircular : number +>false : false +>true : true +>false : false + diff --git a/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).errors.txt b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).errors.txt new file mode 100644 index 0000000000000..f7f94d4a4b3bc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).errors.txt @@ -0,0 +1,61 @@ +circularInitializerInference.ts(6,5): error TS7022: 'comma' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +circularInitializerInference.ts(6,14): error TS2695: Left side of comma operator is unused and has no side effects. +circularInitializerInference.ts(9,5): error TS7022: 'nestedComma' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +circularInitializerInference.ts(9,20): error TS2695: Left side of comma operator is unused and has no side effects. +circularInitializerInference.ts(9,20): error TS2695: Left side of comma operator is unused and has no side effects. +circularInitializerInference.ts(12,5): error TS7022: 'assignment' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +circularInitializerInference.ts(15,5): error TS7022: 'nestedAssignment' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +circularInitializerInference.ts(18,5): error TS7022: 'conditional' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +circularInitializerInference.ts(21,5): error TS7022: 'logicalAnd' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +circularInitializerInference.ts(24,5): error TS7022: 'propertyAccess' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + + +==== circularInitializerInference.ts (10 errors) ==== + export {}; + + type IsAny = 0 extends (1 & Type) ? true : false; + type Assert = Condition; + + var comma = (comma, 3); + ~~~~~ +!!! error TS7022: 'comma' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~~~~~ +!!! error TS2695: Left side of comma operator is unused and has no side effects. + type CommaInference = Assert>; + + var nestedComma = (comma, nestedComma, comma); + ~~~~~~~~~~~ +!!! error TS7022: 'nestedComma' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~~~~~ +!!! error TS2695: Left side of comma operator is unused and has no side effects. + ~~~~~~~~~~~~~~~~~~ +!!! error TS2695: Left side of comma operator is unused and has no side effects. + type NestedCommaInference = Assert>; + + var assignment = (assignment = 2); + ~~~~~~~~~~ +!!! error TS7022: 'assignment' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + type AssignmentInference = Assert>; + + var nestedAssignment = (nestedAssignment = nestedAssignment = 2); + ~~~~~~~~~~~~~~~~ +!!! error TS7022: 'nestedAssignment' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + type NestedAssignmentInference = Assert>; + + var conditional = conditional ? 0 : 1; + ~~~~~~~~~~~ +!!! error TS7022: 'conditional' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + type ConditionalInference = Assert>; + + var logicalAnd = logicalAnd && ""; + ~~~~~~~~~~ +!!! error TS7022: 'logicalAnd' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + type LogicalAndInference = Assert>; + + var propertyAccess = { member: propertyAccess.member }; + ~~~~~~~~~~~~~~ +!!! error TS7022: 'propertyAccess' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + type PropertyAccessInference = Assert>; + + const nonCircular: number = 3; + type NonCircularInference = Assert extends false ? true : false>; \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).js b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).js new file mode 100644 index 0000000000000..6b1e6c702f422 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).js @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/circularInitializerInference.ts] //// + +//// [circularInitializerInference.ts] +export {}; + +type IsAny = 0 extends (1 & Type) ? true : false; +type Assert = Condition; + +var comma = (comma, 3); +type CommaInference = Assert>; + +var nestedComma = (comma, nestedComma, comma); +type NestedCommaInference = Assert>; + +var assignment = (assignment = 2); +type AssignmentInference = Assert>; + +var nestedAssignment = (nestedAssignment = nestedAssignment = 2); +type NestedAssignmentInference = Assert>; + +var conditional = conditional ? 0 : 1; +type ConditionalInference = Assert>; + +var logicalAnd = logicalAnd && ""; +type LogicalAndInference = Assert>; + +var propertyAccess = { member: propertyAccess.member }; +type PropertyAccessInference = Assert>; + +const nonCircular: number = 3; +type NonCircularInference = Assert extends false ? true : false>; + +//// [circularInitializerInference.js] +var comma = (comma, 3); +var nestedComma = (comma, nestedComma, comma); +var assignment = (assignment = 2); +var nestedAssignment = (nestedAssignment = nestedAssignment = 2); +var conditional = conditional ? 0 : 1; +var logicalAnd = logicalAnd && ""; +var propertyAccess = { member: propertyAccess.member }; +const nonCircular = 3; +export {}; diff --git a/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).symbols b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).symbols new file mode 100644 index 0000000000000..7146dd252c8ef --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).symbols @@ -0,0 +1,98 @@ +//// [tests/cases/compiler/circularInitializerInference.ts] //// + +=== circularInitializerInference.ts === +export {}; + +type IsAny = 0 extends (1 & Type) ? true : false; +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>Type : Symbol(Type, Decl(circularInitializerInference.ts, 2, 11)) +>Type : Symbol(Type, Decl(circularInitializerInference.ts, 2, 11)) + +type Assert = Condition; +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>Condition : Symbol(Condition, Decl(circularInitializerInference.ts, 3, 12)) +>Condition : Symbol(Condition, Decl(circularInitializerInference.ts, 3, 12)) + +var comma = (comma, 3); +>comma : Symbol(comma, Decl(circularInitializerInference.ts, 5, 3)) +>comma : Symbol(comma, Decl(circularInitializerInference.ts, 5, 3)) + +type CommaInference = Assert>; +>CommaInference : Symbol(CommaInference, Decl(circularInitializerInference.ts, 5, 23)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>comma : Symbol(comma, Decl(circularInitializerInference.ts, 5, 3)) + +var nestedComma = (comma, nestedComma, comma); +>nestedComma : Symbol(nestedComma, Decl(circularInitializerInference.ts, 8, 3)) +>comma : Symbol(comma, Decl(circularInitializerInference.ts, 5, 3)) +>nestedComma : Symbol(nestedComma, Decl(circularInitializerInference.ts, 8, 3)) +>comma : Symbol(comma, Decl(circularInitializerInference.ts, 5, 3)) + +type NestedCommaInference = Assert>; +>NestedCommaInference : Symbol(NestedCommaInference, Decl(circularInitializerInference.ts, 8, 46)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>nestedComma : Symbol(nestedComma, Decl(circularInitializerInference.ts, 8, 3)) + +var assignment = (assignment = 2); +>assignment : Symbol(assignment, Decl(circularInitializerInference.ts, 11, 3)) +>assignment : Symbol(assignment, Decl(circularInitializerInference.ts, 11, 3)) + +type AssignmentInference = Assert>; +>AssignmentInference : Symbol(AssignmentInference, Decl(circularInitializerInference.ts, 11, 34)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>assignment : Symbol(assignment, Decl(circularInitializerInference.ts, 11, 3)) + +var nestedAssignment = (nestedAssignment = nestedAssignment = 2); +>nestedAssignment : Symbol(nestedAssignment, Decl(circularInitializerInference.ts, 14, 3)) +>nestedAssignment : Symbol(nestedAssignment, Decl(circularInitializerInference.ts, 14, 3)) +>nestedAssignment : Symbol(nestedAssignment, Decl(circularInitializerInference.ts, 14, 3)) + +type NestedAssignmentInference = Assert>; +>NestedAssignmentInference : Symbol(NestedAssignmentInference, Decl(circularInitializerInference.ts, 14, 65)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>nestedAssignment : Symbol(nestedAssignment, Decl(circularInitializerInference.ts, 14, 3)) + +var conditional = conditional ? 0 : 1; +>conditional : Symbol(conditional, Decl(circularInitializerInference.ts, 17, 3)) +>conditional : Symbol(conditional, Decl(circularInitializerInference.ts, 17, 3)) + +type ConditionalInference = Assert>; +>ConditionalInference : Symbol(ConditionalInference, Decl(circularInitializerInference.ts, 17, 38)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>conditional : Symbol(conditional, Decl(circularInitializerInference.ts, 17, 3)) + +var logicalAnd = logicalAnd && ""; +>logicalAnd : Symbol(logicalAnd, Decl(circularInitializerInference.ts, 20, 3)) +>logicalAnd : Symbol(logicalAnd, Decl(circularInitializerInference.ts, 20, 3)) + +type LogicalAndInference = Assert>; +>LogicalAndInference : Symbol(LogicalAndInference, Decl(circularInitializerInference.ts, 20, 34)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>logicalAnd : Symbol(logicalAnd, Decl(circularInitializerInference.ts, 20, 3)) + +var propertyAccess = { member: propertyAccess.member }; +>propertyAccess : Symbol(propertyAccess, Decl(circularInitializerInference.ts, 23, 3)) +>member : Symbol(member, Decl(circularInitializerInference.ts, 23, 22)) +>propertyAccess : Symbol(propertyAccess, Decl(circularInitializerInference.ts, 23, 3)) + +type PropertyAccessInference = Assert>; +>PropertyAccessInference : Symbol(PropertyAccessInference, Decl(circularInitializerInference.ts, 23, 55)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>propertyAccess : Symbol(propertyAccess, Decl(circularInitializerInference.ts, 23, 3)) + +const nonCircular: number = 3; +>nonCircular : Symbol(nonCircular, Decl(circularInitializerInference.ts, 26, 5)) + +type NonCircularInference = Assert extends false ? true : false>; +>NonCircularInference : Symbol(NonCircularInference, Decl(circularInitializerInference.ts, 26, 30)) +>Assert : Symbol(Assert, Decl(circularInitializerInference.ts, 2, 55)) +>IsAny : Symbol(IsAny, Decl(circularInitializerInference.ts, 0, 10)) +>nonCircular : Symbol(nonCircular, Decl(circularInitializerInference.ts, 26, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).types b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).types new file mode 100644 index 0000000000000..93d72c091cab5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInitializerInference(strict=true).types @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/circularInitializerInference.ts] //// + +=== circularInitializerInference.ts === +export {}; + +type IsAny = 0 extends (1 & Type) ? true : false; +>IsAny : IsAny +>true : true +>false : false + +type Assert = Condition; +>Assert : Condition +>true : true + +var comma = (comma, 3); +>comma : any +>(comma, 3) : 3 +>comma, 3 : 3 +>comma : any +>3 : 3 + +type CommaInference = Assert>; +>CommaInference : true +>comma : any + +var nestedComma = (comma, nestedComma, comma); +>nestedComma : any +>(comma, nestedComma, comma) : any +>comma, nestedComma, comma : any +>comma, nestedComma : any +>comma : any +>nestedComma : any +>comma : any + +type NestedCommaInference = Assert>; +>NestedCommaInference : true +>nestedComma : any + +var assignment = (assignment = 2); +>assignment : any +>(assignment = 2) : 2 +>assignment = 2 : 2 +>assignment : any +>2 : 2 + +type AssignmentInference = Assert>; +>AssignmentInference : true +>assignment : any + +var nestedAssignment = (nestedAssignment = nestedAssignment = 2); +>nestedAssignment : any +>(nestedAssignment = nestedAssignment = 2) : 2 +>nestedAssignment = nestedAssignment = 2 : 2 +>nestedAssignment : any +>nestedAssignment = 2 : 2 +>nestedAssignment : any +>2 : 2 + +type NestedAssignmentInference = Assert>; +>NestedAssignmentInference : true +>nestedAssignment : any + +var conditional = conditional ? 0 : 1; +>conditional : any +>conditional ? 0 : 1 : 0 | 1 +>conditional : any +>0 : 0 +>1 : 1 + +type ConditionalInference = Assert>; +>ConditionalInference : true +>conditional : any + +var logicalAnd = logicalAnd && ""; +>logicalAnd : any +>logicalAnd && "" : any +>logicalAnd : any +>"" : "" + +type LogicalAndInference = Assert>; +>LogicalAndInference : true +>logicalAnd : any + +var propertyAccess = { member: propertyAccess.member }; +>propertyAccess : any +>{ member: propertyAccess.member } : { member: any; } +>member : any +>propertyAccess.member : any +>propertyAccess : any +>member : any + +type PropertyAccessInference = Assert>; +>PropertyAccessInference : true +>propertyAccess : any + +const nonCircular: number = 3; +>nonCircular : number +>3 : 3 + +type NonCircularInference = Assert extends false ? true : false>; +>NonCircularInference : true +>nonCircular : number +>false : false +>true : true +>false : false + diff --git a/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).errors.txt new file mode 100644 index 0000000000000..8d568d19a5373 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).errors.txt @@ -0,0 +1,20 @@ +circularInlineMappedGenericTupleTypeNoCrash.ts(11,12): error TS2589: Type instantiation is excessively deep and possibly infinite. + + +==== circularInlineMappedGenericTupleTypeNoCrash.ts (1 errors) ==== + class Foo { + public readonly elements: { [P in keyof Elements]: { bar: Elements[P] } }; + + public constructor( + ...elements: { [P in keyof Elements]: { bar: Elements[P] } } + ) { + this.elements = elements; + } + + public add(): Foo<[...Elements, "abc"]> { + return new Foo<[...Elements, "abc"]>(...this.elements, { bar: "abc" }); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2589: Type instantiation is excessively deep and possibly infinite. + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).symbols new file mode 100644 index 0000000000000..c5a706f25c93c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/circularInlineMappedGenericTupleTypeNoCrash.ts] //// + +=== circularInlineMappedGenericTupleTypeNoCrash.ts === +class Foo { +>Foo : Symbol(Foo, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 0)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) + + public readonly elements: { [P in keyof Elements]: { bar: Elements[P] } }; +>elements : Symbol(Foo.elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 48)) +>P : Symbol(P, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 1, 31)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) +>bar : Symbol(bar, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 1, 54)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) +>P : Symbol(P, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 1, 31)) + + public constructor( + ...elements: { [P in keyof Elements]: { bar: Elements[P] } } +>elements : Symbol(elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 3, 21)) +>P : Symbol(P, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 4, 20)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) +>bar : Symbol(bar, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 4, 43)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) +>P : Symbol(P, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 4, 20)) + + ) { + this.elements = elements; +>this.elements : Symbol(Foo.elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 48)) +>this : Symbol(Foo, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 0)) +>elements : Symbol(Foo.elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 48)) +>elements : Symbol(elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 3, 21)) + } + + public add(): Foo<[...Elements, "abc"]> { +>add : Symbol(Foo.add, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 7, 3)) +>Foo : Symbol(Foo, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 0)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) + + return new Foo<[...Elements, "abc"]>(...this.elements, { bar: "abc" }); +>Foo : Symbol(Foo, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 0)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) +>this.elements : Symbol(Foo.elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 48)) +>this : Symbol(Foo, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 0)) +>elements : Symbol(Foo.elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 48)) +>bar : Symbol(bar, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 10, 60)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).types new file mode 100644 index 0000000000000..660b3ff1bac7e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=default).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/circularInlineMappedGenericTupleTypeNoCrash.ts] //// + +=== circularInlineMappedGenericTupleTypeNoCrash.ts === +class Foo { +>Foo : Foo + + public readonly elements: { [P in keyof Elements]: { bar: Elements[P] } }; +>elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>bar : Elements[P] + + public constructor( + ...elements: { [P in keyof Elements]: { bar: Elements[P] } } +>elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>bar : Elements[P] + + ) { + this.elements = elements; +>this.elements = elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>this.elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>this : this +>elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>elements : { [P in keyof Elements]: { bar: Elements[P]; }; } + } + + public add(): Foo<[...Elements, "abc"]> { +>add : () => Foo<[...Elements, "abc"]> + + return new Foo<[...Elements, "abc"]>(...this.elements, { bar: "abc" }); +>new Foo<[...Elements, "abc"]>(...this.elements, { bar: "abc" }) : Foo<[...Elements, "abc"]> +>Foo : typeof Foo +>...this.elements : { bar: unknown; } +>this.elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>this : this +>elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>{ bar: "abc" } : { bar: string; } +>bar : string +>"abc" : "abc" + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..e78f397fc931f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).errors.txt @@ -0,0 +1,19 @@ +error TS2589: Type instantiation is excessively deep and possibly infinite. + + +!!! error TS2589: Type instantiation is excessively deep and possibly infinite. +==== circularInlineMappedGenericTupleTypeNoCrash.ts (0 errors) ==== + class Foo { + public readonly elements: { [P in keyof Elements]: { bar: Elements[P] } }; + + public constructor( + ...elements: { [P in keyof Elements]: { bar: Elements[P] } } + ) { + this.elements = elements; + } + + public add(): Foo<[...Elements, "abc"]> { + return new Foo<[...Elements, "abc"]>(...this.elements, { bar: "abc" }); + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..c5a706f25c93c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/circularInlineMappedGenericTupleTypeNoCrash.ts] //// + +=== circularInlineMappedGenericTupleTypeNoCrash.ts === +class Foo { +>Foo : Symbol(Foo, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 0)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) + + public readonly elements: { [P in keyof Elements]: { bar: Elements[P] } }; +>elements : Symbol(Foo.elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 48)) +>P : Symbol(P, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 1, 31)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) +>bar : Symbol(bar, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 1, 54)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) +>P : Symbol(P, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 1, 31)) + + public constructor( + ...elements: { [P in keyof Elements]: { bar: Elements[P] } } +>elements : Symbol(elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 3, 21)) +>P : Symbol(P, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 4, 20)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) +>bar : Symbol(bar, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 4, 43)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) +>P : Symbol(P, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 4, 20)) + + ) { + this.elements = elements; +>this.elements : Symbol(Foo.elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 48)) +>this : Symbol(Foo, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 0)) +>elements : Symbol(Foo.elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 48)) +>elements : Symbol(elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 3, 21)) + } + + public add(): Foo<[...Elements, "abc"]> { +>add : Symbol(Foo.add, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 7, 3)) +>Foo : Symbol(Foo, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 0)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) + + return new Foo<[...Elements, "abc"]>(...this.elements, { bar: "abc" }); +>Foo : Symbol(Foo, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 0)) +>Elements : Symbol(Elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 10)) +>this.elements : Symbol(Foo.elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 48)) +>this : Symbol(Foo, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 0)) +>elements : Symbol(Foo.elements, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 0, 48)) +>bar : Symbol(bar, Decl(circularInlineMappedGenericTupleTypeNoCrash.ts, 10, 60)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).types new file mode 100644 index 0000000000000..660b3ff1bac7e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularInlineMappedGenericTupleTypeNoCrash(checkorder=typesfirst).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/circularInlineMappedGenericTupleTypeNoCrash.ts] //// + +=== circularInlineMappedGenericTupleTypeNoCrash.ts === +class Foo { +>Foo : Foo + + public readonly elements: { [P in keyof Elements]: { bar: Elements[P] } }; +>elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>bar : Elements[P] + + public constructor( + ...elements: { [P in keyof Elements]: { bar: Elements[P] } } +>elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>bar : Elements[P] + + ) { + this.elements = elements; +>this.elements = elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>this.elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>this : this +>elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>elements : { [P in keyof Elements]: { bar: Elements[P]; }; } + } + + public add(): Foo<[...Elements, "abc"]> { +>add : () => Foo<[...Elements, "abc"]> + + return new Foo<[...Elements, "abc"]>(...this.elements, { bar: "abc" }); +>new Foo<[...Elements, "abc"]>(...this.elements, { bar: "abc" }) : Foo<[...Elements, "abc"]> +>Foo : typeof Foo +>...this.elements : { bar: unknown; } +>this.elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>this : this +>elements : { [P in keyof Elements]: { bar: Elements[P]; }; } +>{ bar: "abc" } : { bar: string; } +>bar : string +>"abc" : "abc" + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..01cdb4dce9afb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=default).symbols @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/circularReturnThroughThisNarrowingCheckOrder.ts] //// + +=== circularReturnThroughThisNarrowingCheckOrder.ts === +// Narrowing this by a type guard in a method relates the class to a +// derived class, whose members include the method being inferred. The +// circularity is reported whether the class or its methods are typed first +// (55069). + +declare function isDerived(p: Base): p is Derived; +>isDerived : Symbol(isDerived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 0, 0)) +>p : Symbol(p, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 27)) +>Base : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) +>p : Symbol(p, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 27)) +>Derived : Symbol(Derived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 15, 1)) + +class Base { +>Base : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) + + private add() { +>add : Symbol(Base.add, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 6, 12)) + + if (isDerived(this)) { +>isDerived : Symbol(isDerived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 0, 0)) +>this : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) + + if (this.name) return 1; +>this.name : Symbol(Derived.name, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 16, 28)) +>name : Symbol(Derived.name, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 16, 28)) + } + const w = this.add2(); +>w : Symbol(w, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 11, 13)) +>this.add2 : Symbol(Base.add2, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 13, 5)) +>this : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) +>add2 : Symbol(Base.add2, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 13, 5)) + + return w; +>w : Symbol(w, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 11, 13)) + } + private add2() { return 2; } +>add2 : Symbol(Base.add2, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 13, 5)) +} +class Derived extends Base { name = ""; } +>Derived : Symbol(Derived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 15, 1)) +>Base : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) +>name : Symbol(Derived.name, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 16, 28)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..134974a069c9d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=default).types @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/circularReturnThroughThisNarrowingCheckOrder.ts] //// + +=== circularReturnThroughThisNarrowingCheckOrder.ts === +// Narrowing this by a type guard in a method relates the class to a +// derived class, whose members include the method being inferred. The +// circularity is reported whether the class or its methods are typed first +// (55069). + +declare function isDerived(p: Base): p is Derived; +>isDerived : (p: Base) => p is Derived +>p : Base + +class Base { +>Base : Base + + private add() { +>add : () => number + + if (isDerived(this)) { +>isDerived(this) : boolean +>isDerived : (p: Base) => p is Derived +>this : this + + if (this.name) return 1; +>this.name : string +>this : this & Derived +>name : string +>1 : 1 + } + const w = this.add2(); +>w : number +>this.add2() : number +>this.add2 : () => number +>this : this +>add2 : () => number + + return w; +>w : number + } + private add2() { return 2; } +>add2 : () => number +>2 : 2 +} +class Derived extends Base { name = ""; } +>Derived : Derived +>Base : Base +>name : string +>"" : "" + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..06563eaf3876c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,27 @@ +circularReturnThroughThisNarrowingCheckOrder.ts(8,13): error TS7023: 'add' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +circularReturnThroughThisNarrowingCheckOrder.ts(12,15): error TS7022: 'w' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + + +==== circularReturnThroughThisNarrowingCheckOrder.ts (2 errors) ==== + // Narrowing this by a type guard in a method relates the class to a + // derived class, whose members include the method being inferred. The + // circularity is reported whether the class or its methods are typed first + // (55069). + + declare function isDerived(p: Base): p is Derived; + class Base { + private add() { + ~~~ +!!! error TS7023: 'add' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + if (isDerived(this)) { + if (this.name) return 1; + } + const w = this.add2(); + ~ +!!! error TS7022: 'w' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + return w; + } + private add2() { return 2; } + } + class Derived extends Base { name = ""; } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..01cdb4dce9afb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/circularReturnThroughThisNarrowingCheckOrder.ts] //// + +=== circularReturnThroughThisNarrowingCheckOrder.ts === +// Narrowing this by a type guard in a method relates the class to a +// derived class, whose members include the method being inferred. The +// circularity is reported whether the class or its methods are typed first +// (55069). + +declare function isDerived(p: Base): p is Derived; +>isDerived : Symbol(isDerived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 0, 0)) +>p : Symbol(p, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 27)) +>Base : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) +>p : Symbol(p, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 27)) +>Derived : Symbol(Derived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 15, 1)) + +class Base { +>Base : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) + + private add() { +>add : Symbol(Base.add, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 6, 12)) + + if (isDerived(this)) { +>isDerived : Symbol(isDerived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 0, 0)) +>this : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) + + if (this.name) return 1; +>this.name : Symbol(Derived.name, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 16, 28)) +>name : Symbol(Derived.name, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 16, 28)) + } + const w = this.add2(); +>w : Symbol(w, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 11, 13)) +>this.add2 : Symbol(Base.add2, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 13, 5)) +>this : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) +>add2 : Symbol(Base.add2, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 13, 5)) + + return w; +>w : Symbol(w, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 11, 13)) + } + private add2() { return 2; } +>add2 : Symbol(Base.add2, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 13, 5)) +} +class Derived extends Base { name = ""; } +>Derived : Symbol(Derived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 15, 1)) +>Base : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) +>name : Symbol(Derived.name, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 16, 28)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..e1f0cb901ccf3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/circularReturnThroughThisNarrowingCheckOrder.ts] //// + +=== circularReturnThroughThisNarrowingCheckOrder.ts === +// Narrowing this by a type guard in a method relates the class to a +// derived class, whose members include the method being inferred. The +// circularity is reported whether the class or its methods are typed first +// (55069). + +declare function isDerived(p: Base): p is Derived; +>isDerived : (p: Base) => p is Derived +>p : Base + +class Base { +>Base : Base + + private add() { +>add : () => any + + if (isDerived(this)) { +>isDerived(this) : boolean +>isDerived : (p: Base) => p is Derived +>this : this + + if (this.name) return 1; +>this.name : string +>this : this & Derived +>name : string +>1 : 1 + } + const w = this.add2(); +>w : any +>this.add2() : number +>this.add2 : () => number +>this : this +>add2 : () => number + + return w; +>w : any + } + private add2() { return 2; } +>add2 : () => number +>2 : 2 +} +class Derived extends Base { name = ""; } +>Derived : Derived +>Base : Base +>name : string +>"" : "" + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..06563eaf3876c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,27 @@ +circularReturnThroughThisNarrowingCheckOrder.ts(8,13): error TS7023: 'add' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +circularReturnThroughThisNarrowingCheckOrder.ts(12,15): error TS7022: 'w' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + + +==== circularReturnThroughThisNarrowingCheckOrder.ts (2 errors) ==== + // Narrowing this by a type guard in a method relates the class to a + // derived class, whose members include the method being inferred. The + // circularity is reported whether the class or its methods are typed first + // (55069). + + declare function isDerived(p: Base): p is Derived; + class Base { + private add() { + ~~~ +!!! error TS7023: 'add' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + if (isDerived(this)) { + if (this.name) return 1; + } + const w = this.add2(); + ~ +!!! error TS7022: 'w' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + return w; + } + private add2() { return 2; } + } + class Derived extends Base { name = ""; } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..01cdb4dce9afb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/circularReturnThroughThisNarrowingCheckOrder.ts] //// + +=== circularReturnThroughThisNarrowingCheckOrder.ts === +// Narrowing this by a type guard in a method relates the class to a +// derived class, whose members include the method being inferred. The +// circularity is reported whether the class or its methods are typed first +// (55069). + +declare function isDerived(p: Base): p is Derived; +>isDerived : Symbol(isDerived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 0, 0)) +>p : Symbol(p, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 27)) +>Base : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) +>p : Symbol(p, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 27)) +>Derived : Symbol(Derived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 15, 1)) + +class Base { +>Base : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) + + private add() { +>add : Symbol(Base.add, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 6, 12)) + + if (isDerived(this)) { +>isDerived : Symbol(isDerived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 0, 0)) +>this : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) + + if (this.name) return 1; +>this.name : Symbol(Derived.name, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 16, 28)) +>name : Symbol(Derived.name, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 16, 28)) + } + const w = this.add2(); +>w : Symbol(w, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 11, 13)) +>this.add2 : Symbol(Base.add2, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 13, 5)) +>this : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) +>add2 : Symbol(Base.add2, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 13, 5)) + + return w; +>w : Symbol(w, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 11, 13)) + } + private add2() { return 2; } +>add2 : Symbol(Base.add2, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 13, 5)) +} +class Derived extends Base { name = ""; } +>Derived : Symbol(Derived, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 15, 1)) +>Base : Symbol(Base, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 5, 50)) +>name : Symbol(Derived.name, Decl(circularReturnThroughThisNarrowingCheckOrder.ts, 16, 28)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..e1f0cb901ccf3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnThroughThisNarrowingCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/circularReturnThroughThisNarrowingCheckOrder.ts] //// + +=== circularReturnThroughThisNarrowingCheckOrder.ts === +// Narrowing this by a type guard in a method relates the class to a +// derived class, whose members include the method being inferred. The +// circularity is reported whether the class or its methods are typed first +// (55069). + +declare function isDerived(p: Base): p is Derived; +>isDerived : (p: Base) => p is Derived +>p : Base + +class Base { +>Base : Base + + private add() { +>add : () => any + + if (isDerived(this)) { +>isDerived(this) : boolean +>isDerived : (p: Base) => p is Derived +>this : this + + if (this.name) return 1; +>this.name : string +>this : this & Derived +>name : string +>1 : 1 + } + const w = this.add2(); +>w : any +>this.add2() : number +>this.add2 : () => number +>this : this +>add2 : () => number + + return w; +>w : any + } + private add2() { return 2; } +>add2 : () => number +>2 : 2 +} +class Derived extends Base { name = ""; } +>Derived : Derived +>Base : Base +>name : string +>"" : "" + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.errors.txt b/tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.errors.txt new file mode 100644 index 0000000000000..f0b2f978c0228 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.errors.txt @@ -0,0 +1,50 @@ +expression.ts(10,7): error TS2322: Type 'typeof A' is not assignable to type 'new () => A'. + Type 'A' is not assignable to type 'A'. Two different types with this name exist, but they are unrelated. + Types of property 'c' are incompatible. + Type '() => () => A | A' is not assignable to type 'A'. + + +==== expression.ts (1 errors) ==== + // Subtype reduction of rebuild's return type relates the class to A, + // which needs b's return type, which needs rebuild's: a cycle. Both + // members report it, whichever return type is requested first, as if + // rebuild's, declared first, were requested first. + interface A { + b(): A; + c: A; + } + declare const flag: boolean; + const A: new () => A = class { + ~ +!!! error TS2322: Type 'typeof A' is not assignable to type 'new () => A'. +!!! error TS2322: Type 'A' is not assignable to type 'A'. Two different types with this name exist, but they are unrelated. +!!! error TS2322: Types of property 'c' are incompatible. +!!! error TS2322: Type '() => () => A | A' is not assignable to type 'A'. + rebuild() { + return flag ? this : new A(); + } + b() { + return this.rebuild(); + } + c() { + return this.rebuild; + } + }; + export {}; + +==== declaration.ts (0 errors) ==== + interface B { + b(): B; + } + declare const flag: boolean; + class K { + rebuild() { + return flag ? this : new B(); + } + b() { + return this.rebuild(); + } + } + const B: new () => B = K; + export {}; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.symbols b/tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.symbols new file mode 100644 index 0000000000000..5706cdcb8e401 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.symbols @@ -0,0 +1,90 @@ +//// [tests/cases/compiler/circularReturnTypeSubtypeReductionOrder.ts] //// + +=== expression.ts === +// Subtype reduction of rebuild's return type relates the class to A, +// which needs b's return type, which needs rebuild's: a cycle. Both +// members report it, whichever return type is requested first, as if +// rebuild's, declared first, were requested first. +interface A { +>A : Symbol(A, Decl(expression.ts, 0, 0), Decl(expression.ts, 9, 5)) + + b(): A; +>b : Symbol(A.b, Decl(expression.ts, 4, 13)) +>A : Symbol(A, Decl(expression.ts, 0, 0), Decl(expression.ts, 9, 5)) + + c: A; +>c : Symbol(A.c, Decl(expression.ts, 5, 11)) +>A : Symbol(A, Decl(expression.ts, 0, 0), Decl(expression.ts, 9, 5)) +} +declare const flag: boolean; +>flag : Symbol(flag, Decl(expression.ts, 8, 13)) + +const A: new () => A = class { +>A : Symbol(A, Decl(expression.ts, 0, 0), Decl(expression.ts, 9, 5)) +>A : Symbol(A, Decl(expression.ts, 0, 0), Decl(expression.ts, 9, 5)) + + rebuild() { +>rebuild : Symbol(A.rebuild, Decl(expression.ts, 9, 30)) + + return flag ? this : new A(); +>flag : Symbol(flag, Decl(expression.ts, 8, 13)) +>this : Symbol(A, Decl(expression.ts, 9, 22)) +>A : Symbol(A, Decl(expression.ts, 0, 0), Decl(expression.ts, 9, 5)) + } + b() { +>b : Symbol(A.b, Decl(expression.ts, 12, 5)) + + return this.rebuild(); +>this.rebuild : Symbol(A.rebuild, Decl(expression.ts, 9, 30)) +>this : Symbol(A, Decl(expression.ts, 9, 22)) +>rebuild : Symbol(A.rebuild, Decl(expression.ts, 9, 30)) + } + c() { +>c : Symbol(A.c, Decl(expression.ts, 15, 5)) + + return this.rebuild; +>this.rebuild : Symbol(A.rebuild, Decl(expression.ts, 9, 30)) +>this : Symbol(A, Decl(expression.ts, 9, 22)) +>rebuild : Symbol(A.rebuild, Decl(expression.ts, 9, 30)) + } +}; +export {}; + +=== declaration.ts === +interface B { +>B : Symbol(B, Decl(declaration.ts, 0, 0), Decl(declaration.ts, 12, 5)) + + b(): B; +>b : Symbol(B.b, Decl(declaration.ts, 0, 13)) +>B : Symbol(B, Decl(declaration.ts, 0, 0), Decl(declaration.ts, 12, 5)) +} +declare const flag: boolean; +>flag : Symbol(flag, Decl(declaration.ts, 3, 13)) + +class K { +>K : Symbol(K, Decl(declaration.ts, 3, 28)) + + rebuild() { +>rebuild : Symbol(K.rebuild, Decl(declaration.ts, 4, 9)) + + return flag ? this : new B(); +>flag : Symbol(flag, Decl(declaration.ts, 3, 13)) +>this : Symbol(K, Decl(declaration.ts, 3, 28)) +>B : Symbol(B, Decl(declaration.ts, 0, 0), Decl(declaration.ts, 12, 5)) + } + b() { +>b : Symbol(K.b, Decl(declaration.ts, 7, 5)) + + return this.rebuild(); +>this.rebuild : Symbol(K.rebuild, Decl(declaration.ts, 4, 9)) +>this : Symbol(K, Decl(declaration.ts, 3, 28)) +>rebuild : Symbol(K.rebuild, Decl(declaration.ts, 4, 9)) + } +} +const B: new () => B = K; +>B : Symbol(B, Decl(declaration.ts, 0, 0), Decl(declaration.ts, 12, 5)) +>B : Symbol(B, Decl(declaration.ts, 0, 0), Decl(declaration.ts, 12, 5)) +>K : Symbol(K, Decl(declaration.ts, 3, 28)) + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.types b/tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.types new file mode 100644 index 0000000000000..9088517456379 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeSubtypeReductionOrder.types @@ -0,0 +1,88 @@ +//// [tests/cases/compiler/circularReturnTypeSubtypeReductionOrder.ts] //// + +=== expression.ts === +// Subtype reduction of rebuild's return type relates the class to A, +// which needs b's return type, which needs rebuild's: a cycle. Both +// members report it, whichever return type is requested first, as if +// rebuild's, declared first, were requested first. +interface A { + b(): A; +>b : () => A + + c: A; +>c : A +} +declare const flag: boolean; +>flag : boolean + +const A: new () => A = class { +>A : new () => A +>class { rebuild() { return flag ? this : new A(); } b() { return this.rebuild(); } c() { return this.rebuild; }} : typeof A + + rebuild() { +>rebuild : () => this | A + + return flag ? this : new A(); +>flag ? this : new A() : this | A +>flag : boolean +>this : this +>new A() : A +>A : new () => A + } + b() { +>b : () => this | A + + return this.rebuild(); +>this.rebuild() : this | A +>this.rebuild : () => this | A +>this : this +>rebuild : () => this | A + } + c() { +>c : () => () => this | A + + return this.rebuild; +>this.rebuild : () => this | A +>this : this +>rebuild : () => this | A + } +}; +export {}; + +=== declaration.ts === +interface B { + b(): B; +>b : () => B +} +declare const flag: boolean; +>flag : boolean + +class K { +>K : K + + rebuild() { +>rebuild : () => this | B + + return flag ? this : new B(); +>flag ? this : new B() : this | B +>flag : boolean +>this : this +>new B() : B +>B : new () => B + } + b() { +>b : () => this | B + + return this.rebuild(); +>this.rebuild() : this | B +>this.rebuild : () => this | B +>this : this +>rebuild : () => this | B + } +} +const B: new () => B = K; +>B : new () => B +>K : typeof K + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=default).symbols new file mode 100644 index 0000000000000..c320ee58e23b7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=default).symbols @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/circularReturnTypeThroughCallArgumentRelation.ts] //// + +=== circularReturnTypeThroughCallArgumentRelation.ts === +// Inferring a method's return type resolves a call whose argument check +// relates the method's own class to an interface containing that method, so +// the relation compares the method while its return type is in progress. +// TypeScript reads the in-progress return type as `any` there without failing +// it, and call resolution hides the resolutions below it, so no TS7023 is +// reported in any check order and the method gets the call's return type. +// (Reduced from meta/lexical HeadingNode.$config and effect SchemaAST getParser.) + +// Through a callback returning an instance (lexical). +interface Base { m(): unknown } +>Base : Symbol(Base, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 0, 0)) +>m : Symbol(Base.m, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 9, 16)) + +declare function config(config: { f?: () => Base }): void; +>config : Symbol(config, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 9, 31)) +>config : Symbol(config, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 10, 24)) +>f : Symbol(f, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 10, 33)) +>Base : Symbol(Base, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 0, 0)) + +declare const h: Heading; +>h : Symbol(h, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 12, 13)) +>Heading : Symbol(Heading, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 13, 18)) + +const b: Base = h; +>b : Symbol(b, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 13, 5)) +>Base : Symbol(Base, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 0, 0)) +>h : Symbol(h, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 12, 13)) + +class Heading { +>Heading : Symbol(Heading, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 13, 18)) + + m() { +>m : Symbol(Heading.m, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 15, 15)) + + return config({ f: () => create() }); +>config : Symbol(config, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 9, 31)) +>f : Symbol(f, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 17, 23)) +>create : Symbol(create, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 19, 1)) + } +} + +declare function create(): Heading; +>create : Symbol(create, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 19, 1)) +>Heading : Symbol(Heading, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 13, 18)) + +const r: void = new Heading().m(); +>r : Symbol(r, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 5)) +>new Heading().m : Symbol(Heading.m, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 15, 15)) +>Heading : Symbol(Heading, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 13, 18)) +>m : Symbol(Heading.m, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 15, 15)) + +// Passing `this` directly (effect). +type Parser = (input: unknown) => unknown; +>Parser : Symbol(Parser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 34)) +>input : Symbol(input, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 15)) + +interface NullNode { readonly _tag: "Null"; getParser(): Parser } +>NullNode : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 42), Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 5)) +>_tag : Symbol(NullNode._tag, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 20)) +>getParser : Symbol(NullNode.getParser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 43)) +>Parser : Symbol(Parser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 34)) + +interface UndefinedNode { readonly _tag: "Undefined"; getParser(): Parser } +>UndefinedNode : Symbol(UndefinedNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 65)) +>_tag : Symbol(UndefinedNode._tag, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 28, 25)) +>getParser : Symbol(UndefinedNode.getParser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 28, 53)) +>Parser : Symbol(Parser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 34)) + +type AST = NullNode | UndefinedNode; +>AST : Symbol(AST, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 28, 75)) +>NullNode : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 42), Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 5)) +>UndefinedNode : Symbol(UndefinedNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 65)) + +declare function fromConst(ast: AST, value: unknown): Parser; +>fromConst : Symbol(fromConst, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 29, 36)) +>ast : Symbol(ast, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 30, 27)) +>AST : Symbol(AST, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 28, 75)) +>value : Symbol(value, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 30, 36)) +>Parser : Symbol(Parser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 34)) + +const NullNode: new () => NullNode = class { +>NullNode : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 42), Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 5)) +>NullNode : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 42), Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 5)) + + readonly _tag = "Null"; +>_tag : Symbol(NullNode._tag, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 44)) + + getParser() { +>getParser : Symbol(NullNode.getParser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 33, 27)) + + return fromConst(this, null); +>fromConst : Symbol(fromConst, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 29, 36)) +>this : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 36)) + } +}; + +const p: Parser = new NullNode().getParser(); +>p : Symbol(p, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 39, 5)) +>Parser : Symbol(Parser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 34)) +>new NullNode().getParser : Symbol(NullNode.getParser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 43)) +>NullNode : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 42), Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 5)) +>getParser : Symbol(NullNode.getParser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 43)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=default).types new file mode 100644 index 0000000000000..21a3ba0434560 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=default).types @@ -0,0 +1,102 @@ +//// [tests/cases/compiler/circularReturnTypeThroughCallArgumentRelation.ts] //// + +=== circularReturnTypeThroughCallArgumentRelation.ts === +// Inferring a method's return type resolves a call whose argument check +// relates the method's own class to an interface containing that method, so +// the relation compares the method while its return type is in progress. +// TypeScript reads the in-progress return type as `any` there without failing +// it, and call resolution hides the resolutions below it, so no TS7023 is +// reported in any check order and the method gets the call's return type. +// (Reduced from meta/lexical HeadingNode.$config and effect SchemaAST getParser.) + +// Through a callback returning an instance (lexical). +interface Base { m(): unknown } +>m : () => unknown + +declare function config(config: { f?: () => Base }): void; +>config : (config: { f?: () => Base; }) => void +>config : { f?: () => Base; } +>f : (() => Base) | undefined + +declare const h: Heading; +>h : Heading + +const b: Base = h; +>b : Base +>h : Heading + +class Heading { +>Heading : Heading + + m() { +>m : () => void + + return config({ f: () => create() }); +>config({ f: () => create() }) : void +>config : (config: { f?: () => Base; }) => void +>{ f: () => create() } : { f: () => Heading; } +>f : () => Heading +>() => create() : () => Heading +>create() : Heading +>create : () => Heading + } +} + +declare function create(): Heading; +>create : () => Heading + +const r: void = new Heading().m(); +>r : void +>new Heading().m() : void +>new Heading().m : () => void +>new Heading() : Heading +>Heading : typeof Heading +>m : () => void + +// Passing `this` directly (effect). +type Parser = (input: unknown) => unknown; +>Parser : Parser +>input : unknown + +interface NullNode { readonly _tag: "Null"; getParser(): Parser } +>_tag : "Null" +>getParser : () => Parser + +interface UndefinedNode { readonly _tag: "Undefined"; getParser(): Parser } +>_tag : "Undefined" +>getParser : () => Parser + +type AST = NullNode | UndefinedNode; +>AST : AST + +declare function fromConst(ast: AST, value: unknown): Parser; +>fromConst : (ast: AST, value: unknown) => Parser +>ast : AST +>value : unknown + +const NullNode: new () => NullNode = class { +>NullNode : new () => NullNode +>class { readonly _tag = "Null"; getParser() { return fromConst(this, null); }} : typeof NullNode + + readonly _tag = "Null"; +>_tag : "Null" +>"Null" : "Null" + + getParser() { +>getParser : () => Parser + + return fromConst(this, null); +>fromConst(this, null) : Parser +>fromConst : (ast: AST, value: unknown) => Parser +>this : this + } +}; + +const p: Parser = new NullNode().getParser(); +>p : Parser +>new NullNode().getParser() : Parser +>new NullNode().getParser : () => Parser +>new NullNode() : NullNode +>NullNode : new () => NullNode +>getParser : () => Parser + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..c320ee58e23b7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=typesfirst).symbols @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/circularReturnTypeThroughCallArgumentRelation.ts] //// + +=== circularReturnTypeThroughCallArgumentRelation.ts === +// Inferring a method's return type resolves a call whose argument check +// relates the method's own class to an interface containing that method, so +// the relation compares the method while its return type is in progress. +// TypeScript reads the in-progress return type as `any` there without failing +// it, and call resolution hides the resolutions below it, so no TS7023 is +// reported in any check order and the method gets the call's return type. +// (Reduced from meta/lexical HeadingNode.$config and effect SchemaAST getParser.) + +// Through a callback returning an instance (lexical). +interface Base { m(): unknown } +>Base : Symbol(Base, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 0, 0)) +>m : Symbol(Base.m, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 9, 16)) + +declare function config(config: { f?: () => Base }): void; +>config : Symbol(config, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 9, 31)) +>config : Symbol(config, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 10, 24)) +>f : Symbol(f, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 10, 33)) +>Base : Symbol(Base, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 0, 0)) + +declare const h: Heading; +>h : Symbol(h, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 12, 13)) +>Heading : Symbol(Heading, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 13, 18)) + +const b: Base = h; +>b : Symbol(b, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 13, 5)) +>Base : Symbol(Base, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 0, 0)) +>h : Symbol(h, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 12, 13)) + +class Heading { +>Heading : Symbol(Heading, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 13, 18)) + + m() { +>m : Symbol(Heading.m, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 15, 15)) + + return config({ f: () => create() }); +>config : Symbol(config, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 9, 31)) +>f : Symbol(f, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 17, 23)) +>create : Symbol(create, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 19, 1)) + } +} + +declare function create(): Heading; +>create : Symbol(create, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 19, 1)) +>Heading : Symbol(Heading, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 13, 18)) + +const r: void = new Heading().m(); +>r : Symbol(r, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 5)) +>new Heading().m : Symbol(Heading.m, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 15, 15)) +>Heading : Symbol(Heading, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 13, 18)) +>m : Symbol(Heading.m, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 15, 15)) + +// Passing `this` directly (effect). +type Parser = (input: unknown) => unknown; +>Parser : Symbol(Parser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 34)) +>input : Symbol(input, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 15)) + +interface NullNode { readonly _tag: "Null"; getParser(): Parser } +>NullNode : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 42), Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 5)) +>_tag : Symbol(NullNode._tag, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 20)) +>getParser : Symbol(NullNode.getParser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 43)) +>Parser : Symbol(Parser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 34)) + +interface UndefinedNode { readonly _tag: "Undefined"; getParser(): Parser } +>UndefinedNode : Symbol(UndefinedNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 65)) +>_tag : Symbol(UndefinedNode._tag, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 28, 25)) +>getParser : Symbol(UndefinedNode.getParser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 28, 53)) +>Parser : Symbol(Parser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 34)) + +type AST = NullNode | UndefinedNode; +>AST : Symbol(AST, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 28, 75)) +>NullNode : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 42), Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 5)) +>UndefinedNode : Symbol(UndefinedNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 65)) + +declare function fromConst(ast: AST, value: unknown): Parser; +>fromConst : Symbol(fromConst, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 29, 36)) +>ast : Symbol(ast, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 30, 27)) +>AST : Symbol(AST, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 28, 75)) +>value : Symbol(value, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 30, 36)) +>Parser : Symbol(Parser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 34)) + +const NullNode: new () => NullNode = class { +>NullNode : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 42), Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 5)) +>NullNode : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 42), Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 5)) + + readonly _tag = "Null"; +>_tag : Symbol(NullNode._tag, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 44)) + + getParser() { +>getParser : Symbol(NullNode.getParser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 33, 27)) + + return fromConst(this, null); +>fromConst : Symbol(fromConst, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 29, 36)) +>this : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 36)) + } +}; + +const p: Parser = new NullNode().getParser(); +>p : Symbol(p, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 39, 5)) +>Parser : Symbol(Parser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 23, 34)) +>new NullNode().getParser : Symbol(NullNode.getParser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 43)) +>NullNode : Symbol(NullNode, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 26, 42), Decl(circularReturnTypeThroughCallArgumentRelation.ts, 32, 5)) +>getParser : Symbol(NullNode.getParser, Decl(circularReturnTypeThroughCallArgumentRelation.ts, 27, 43)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=typesfirst).types new file mode 100644 index 0000000000000..21a3ba0434560 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallArgumentRelation(checkorder=typesfirst).types @@ -0,0 +1,102 @@ +//// [tests/cases/compiler/circularReturnTypeThroughCallArgumentRelation.ts] //// + +=== circularReturnTypeThroughCallArgumentRelation.ts === +// Inferring a method's return type resolves a call whose argument check +// relates the method's own class to an interface containing that method, so +// the relation compares the method while its return type is in progress. +// TypeScript reads the in-progress return type as `any` there without failing +// it, and call resolution hides the resolutions below it, so no TS7023 is +// reported in any check order and the method gets the call's return type. +// (Reduced from meta/lexical HeadingNode.$config and effect SchemaAST getParser.) + +// Through a callback returning an instance (lexical). +interface Base { m(): unknown } +>m : () => unknown + +declare function config(config: { f?: () => Base }): void; +>config : (config: { f?: () => Base; }) => void +>config : { f?: () => Base; } +>f : (() => Base) | undefined + +declare const h: Heading; +>h : Heading + +const b: Base = h; +>b : Base +>h : Heading + +class Heading { +>Heading : Heading + + m() { +>m : () => void + + return config({ f: () => create() }); +>config({ f: () => create() }) : void +>config : (config: { f?: () => Base; }) => void +>{ f: () => create() } : { f: () => Heading; } +>f : () => Heading +>() => create() : () => Heading +>create() : Heading +>create : () => Heading + } +} + +declare function create(): Heading; +>create : () => Heading + +const r: void = new Heading().m(); +>r : void +>new Heading().m() : void +>new Heading().m : () => void +>new Heading() : Heading +>Heading : typeof Heading +>m : () => void + +// Passing `this` directly (effect). +type Parser = (input: unknown) => unknown; +>Parser : Parser +>input : unknown + +interface NullNode { readonly _tag: "Null"; getParser(): Parser } +>_tag : "Null" +>getParser : () => Parser + +interface UndefinedNode { readonly _tag: "Undefined"; getParser(): Parser } +>_tag : "Undefined" +>getParser : () => Parser + +type AST = NullNode | UndefinedNode; +>AST : AST + +declare function fromConst(ast: AST, value: unknown): Parser; +>fromConst : (ast: AST, value: unknown) => Parser +>ast : AST +>value : unknown + +const NullNode: new () => NullNode = class { +>NullNode : new () => NullNode +>class { readonly _tag = "Null"; getParser() { return fromConst(this, null); }} : typeof NullNode + + readonly _tag = "Null"; +>_tag : "Null" +>"Null" : "Null" + + getParser() { +>getParser : () => Parser + + return fromConst(this, null); +>fromConst(this, null) : Parser +>fromConst : (ast: AST, value: unknown) => Parser +>this : this + } +}; + +const p: Parser = new NullNode().getParser(); +>p : Parser +>new NullNode().getParser() : Parser +>new NullNode().getParser : () => Parser +>new NullNode() : NullNode +>NullNode : new () => NullNode +>getParser : () => Parser + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=false).symbols b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=false).symbols new file mode 100644 index 0000000000000..6db3b443be191 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=false).symbols @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/circularReturnTypeThroughCallbackArgument.ts] //// + +=== circularReturnTypeThroughCallbackArgument.ts === +declare function fan(g: () => number): number; +>fan : Symbol(fan, Decl(circularReturnTypeThroughCallbackArgument.ts, 0, 0)) +>g : Symbol(g, Decl(circularReturnTypeThroughCallbackArgument.ts, 0, 21)) + +export function a(n: number) { +>a : Symbol(a, Decl(circularReturnTypeThroughCallbackArgument.ts, 0, 46)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 2, 18)) + + return fan(() => a(n)); +>fan : Symbol(fan, Decl(circularReturnTypeThroughCallbackArgument.ts, 0, 0)) +>a : Symbol(a, Decl(circularReturnTypeThroughCallbackArgument.ts, 0, 46)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 2, 18)) +} + +declare function fanAll(g: () => Promise<{ ok: boolean }>): Promise<{ ok: boolean }>; +>fanAll : Symbol(fanAll, Decl(circularReturnTypeThroughCallbackArgument.ts, 4, 1)) +>g : Symbol(g, Decl(circularReturnTypeThroughCallbackArgument.ts, 6, 24)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>ok : Symbol(ok, Decl(circularReturnTypeThroughCallbackArgument.ts, 6, 42)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>ok : Symbol(ok, Decl(circularReturnTypeThroughCallbackArgument.ts, 6, 69)) + +export async function b(n: number) { +>b : Symbol(b, Decl(circularReturnTypeThroughCallbackArgument.ts, 6, 85)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 8, 24)) + + if (n > 0) { +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 8, 24)) + + return fanAll(() => b(n - 1)); +>fanAll : Symbol(fanAll, Decl(circularReturnTypeThroughCallbackArgument.ts, 4, 1)) +>b : Symbol(b, Decl(circularReturnTypeThroughCallbackArgument.ts, 6, 85)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 8, 24)) + } + return { ok: true }; +>ok : Symbol(ok, Decl(circularReturnTypeThroughCallbackArgument.ts, 12, 12)) +} + +type Result = { success: boolean; [key: string]: unknown }; +>Result : Symbol(Result, Decl(circularReturnTypeThroughCallbackArgument.ts, 13, 1)) +>success : Symbol(success, Decl(circularReturnTypeThroughCallbackArgument.ts, 15, 15)) +>key : Symbol(key, Decl(circularReturnTypeThroughCallbackArgument.ts, 15, 35)) + +interface Other { success: boolean; url: string } +>Other : Symbol(Other, Decl(circularReturnTypeThroughCallbackArgument.ts, 15, 59)) +>success : Symbol(Other.success, Decl(circularReturnTypeThroughCallbackArgument.ts, 16, 17)) +>url : Symbol(Other.url, Decl(circularReturnTypeThroughCallbackArgument.ts, 16, 35)) + +declare function fanOut(generateOne: () => Promise): Promise; +>fanOut : Symbol(fanOut, Decl(circularReturnTypeThroughCallbackArgument.ts, 16, 49)) +>generateOne : Symbol(generateOne, Decl(circularReturnTypeThroughCallbackArgument.ts, 17, 24)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Result : Symbol(Result, Decl(circularReturnTypeThroughCallbackArgument.ts, 13, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Result : Symbol(Result, Decl(circularReturnTypeThroughCallbackArgument.ts, 13, 1)) + +declare const other: Other; +>other : Symbol(other, Decl(circularReturnTypeThroughCallbackArgument.ts, 18, 13)) +>Other : Symbol(Other, Decl(circularReturnTypeThroughCallbackArgument.ts, 15, 59)) + +export async function c(n: number) { +>c : Symbol(c, Decl(circularReturnTypeThroughCallbackArgument.ts, 18, 27)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 20, 24)) + + if (n) return other; +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 20, 24)) +>other : Symbol(other, Decl(circularReturnTypeThroughCallbackArgument.ts, 18, 13)) + + return fanOut(() => c(n - 1)); +>fanOut : Symbol(fanOut, Decl(circularReturnTypeThroughCallbackArgument.ts, 16, 49)) +>c : Symbol(c, Decl(circularReturnTypeThroughCallbackArgument.ts, 18, 27)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 20, 24)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=false).types b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=false).types new file mode 100644 index 0000000000000..fb9e85bf2b1d7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=false).types @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/circularReturnTypeThroughCallbackArgument.ts] //// + +=== circularReturnTypeThroughCallbackArgument.ts === +declare function fan(g: () => number): number; +>fan : (g: () => number) => number +>g : () => number + +export function a(n: number) { +>a : (n: number) => any +>n : number + + return fan(() => a(n)); +>fan(() => a(n)) : number +>fan : (g: () => number) => number +>() => a(n) : () => any +>a(n) : any +>a : (n: number) => any +>n : number +} + +declare function fanAll(g: () => Promise<{ ok: boolean }>): Promise<{ ok: boolean }>; +>fanAll : (g: () => Promise<{ ok: boolean; }>) => Promise<{ ok: boolean; }> +>g : () => Promise<{ ok: boolean; }> +>ok : boolean +>ok : boolean + +export async function b(n: number) { +>b : (n: number) => any +>n : number + + if (n > 0) { +>n > 0 : boolean +>n : number +>0 : 0 + + return fanAll(() => b(n - 1)); +>fanAll(() => b(n - 1)) : Promise<{ ok: boolean; }> +>fanAll : (g: () => Promise<{ ok: boolean; }>) => Promise<{ ok: boolean; }> +>() => b(n - 1) : () => any +>b(n - 1) : any +>b : (n: number) => any +>n - 1 : number +>n : number +>1 : 1 + } + return { ok: true }; +>{ ok: true } : { ok: boolean; } +>ok : boolean +>true : true +} + +type Result = { success: boolean; [key: string]: unknown }; +>Result : Result +>success : boolean +>key : string + +interface Other { success: boolean; url: string } +>success : boolean +>url : string + +declare function fanOut(generateOne: () => Promise): Promise; +>fanOut : (generateOne: () => Promise) => Promise +>generateOne : () => Promise + +declare const other: Other; +>other : Other + +export async function c(n: number) { +>c : (n: number) => any +>n : number + + if (n) return other; +>n : number +>other : Other + + return fanOut(() => c(n - 1)); +>fanOut(() => c(n - 1)) : Promise +>fanOut : (generateOne: () => Promise) => Promise +>() => c(n - 1) : () => any +>c(n - 1) : any +>c : (n: number) => any +>n - 1 : number +>n : number +>1 : 1 +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).errors.txt b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).errors.txt new file mode 100644 index 0000000000000..a10fc6bcbe59c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).errors.txt @@ -0,0 +1,46 @@ +circularReturnTypeThroughCallbackArgument.ts(3,17): error TS7023: 'a' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +circularReturnTypeThroughCallbackArgument.ts(4,16): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +circularReturnTypeThroughCallbackArgument.ts(9,23): error TS7023: 'b' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +circularReturnTypeThroughCallbackArgument.ts(11,23): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +circularReturnTypeThroughCallbackArgument.ts(21,23): error TS7023: 'c' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +circularReturnTypeThroughCallbackArgument.ts(23,19): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + + +==== circularReturnTypeThroughCallbackArgument.ts (6 errors) ==== + declare function fan(g: () => number): number; + + export function a(n: number) { + ~ +!!! error TS7023: 'a' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + return fan(() => a(n)); + ~~~~~~~~~~ +!!! error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + } + + declare function fanAll(g: () => Promise<{ ok: boolean }>): Promise<{ ok: boolean }>; + + export async function b(n: number) { + ~ +!!! error TS7023: 'b' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + if (n > 0) { + return fanAll(() => b(n - 1)); + ~~~~~~~~~~~~~~ +!!! error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + } + return { ok: true }; + } + + type Result = { success: boolean; [key: string]: unknown }; + interface Other { success: boolean; url: string } + declare function fanOut(generateOne: () => Promise): Promise; + declare const other: Other; + + export async function c(n: number) { + ~ +!!! error TS7023: 'c' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + if (n) return other; + return fanOut(() => c(n - 1)); + ~~~~~~~~~~~~~~ +!!! error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).symbols b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).symbols new file mode 100644 index 0000000000000..6db3b443be191 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).symbols @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/circularReturnTypeThroughCallbackArgument.ts] //// + +=== circularReturnTypeThroughCallbackArgument.ts === +declare function fan(g: () => number): number; +>fan : Symbol(fan, Decl(circularReturnTypeThroughCallbackArgument.ts, 0, 0)) +>g : Symbol(g, Decl(circularReturnTypeThroughCallbackArgument.ts, 0, 21)) + +export function a(n: number) { +>a : Symbol(a, Decl(circularReturnTypeThroughCallbackArgument.ts, 0, 46)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 2, 18)) + + return fan(() => a(n)); +>fan : Symbol(fan, Decl(circularReturnTypeThroughCallbackArgument.ts, 0, 0)) +>a : Symbol(a, Decl(circularReturnTypeThroughCallbackArgument.ts, 0, 46)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 2, 18)) +} + +declare function fanAll(g: () => Promise<{ ok: boolean }>): Promise<{ ok: boolean }>; +>fanAll : Symbol(fanAll, Decl(circularReturnTypeThroughCallbackArgument.ts, 4, 1)) +>g : Symbol(g, Decl(circularReturnTypeThroughCallbackArgument.ts, 6, 24)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>ok : Symbol(ok, Decl(circularReturnTypeThroughCallbackArgument.ts, 6, 42)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>ok : Symbol(ok, Decl(circularReturnTypeThroughCallbackArgument.ts, 6, 69)) + +export async function b(n: number) { +>b : Symbol(b, Decl(circularReturnTypeThroughCallbackArgument.ts, 6, 85)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 8, 24)) + + if (n > 0) { +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 8, 24)) + + return fanAll(() => b(n - 1)); +>fanAll : Symbol(fanAll, Decl(circularReturnTypeThroughCallbackArgument.ts, 4, 1)) +>b : Symbol(b, Decl(circularReturnTypeThroughCallbackArgument.ts, 6, 85)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 8, 24)) + } + return { ok: true }; +>ok : Symbol(ok, Decl(circularReturnTypeThroughCallbackArgument.ts, 12, 12)) +} + +type Result = { success: boolean; [key: string]: unknown }; +>Result : Symbol(Result, Decl(circularReturnTypeThroughCallbackArgument.ts, 13, 1)) +>success : Symbol(success, Decl(circularReturnTypeThroughCallbackArgument.ts, 15, 15)) +>key : Symbol(key, Decl(circularReturnTypeThroughCallbackArgument.ts, 15, 35)) + +interface Other { success: boolean; url: string } +>Other : Symbol(Other, Decl(circularReturnTypeThroughCallbackArgument.ts, 15, 59)) +>success : Symbol(Other.success, Decl(circularReturnTypeThroughCallbackArgument.ts, 16, 17)) +>url : Symbol(Other.url, Decl(circularReturnTypeThroughCallbackArgument.ts, 16, 35)) + +declare function fanOut(generateOne: () => Promise): Promise; +>fanOut : Symbol(fanOut, Decl(circularReturnTypeThroughCallbackArgument.ts, 16, 49)) +>generateOne : Symbol(generateOne, Decl(circularReturnTypeThroughCallbackArgument.ts, 17, 24)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Result : Symbol(Result, Decl(circularReturnTypeThroughCallbackArgument.ts, 13, 1)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Result : Symbol(Result, Decl(circularReturnTypeThroughCallbackArgument.ts, 13, 1)) + +declare const other: Other; +>other : Symbol(other, Decl(circularReturnTypeThroughCallbackArgument.ts, 18, 13)) +>Other : Symbol(Other, Decl(circularReturnTypeThroughCallbackArgument.ts, 15, 59)) + +export async function c(n: number) { +>c : Symbol(c, Decl(circularReturnTypeThroughCallbackArgument.ts, 18, 27)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 20, 24)) + + if (n) return other; +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 20, 24)) +>other : Symbol(other, Decl(circularReturnTypeThroughCallbackArgument.ts, 18, 13)) + + return fanOut(() => c(n - 1)); +>fanOut : Symbol(fanOut, Decl(circularReturnTypeThroughCallbackArgument.ts, 16, 49)) +>c : Symbol(c, Decl(circularReturnTypeThroughCallbackArgument.ts, 18, 27)) +>n : Symbol(n, Decl(circularReturnTypeThroughCallbackArgument.ts, 20, 24)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).types b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).types new file mode 100644 index 0000000000000..fb9e85bf2b1d7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughCallbackArgument(strict=true).types @@ -0,0 +1,86 @@ +//// [tests/cases/compiler/circularReturnTypeThroughCallbackArgument.ts] //// + +=== circularReturnTypeThroughCallbackArgument.ts === +declare function fan(g: () => number): number; +>fan : (g: () => number) => number +>g : () => number + +export function a(n: number) { +>a : (n: number) => any +>n : number + + return fan(() => a(n)); +>fan(() => a(n)) : number +>fan : (g: () => number) => number +>() => a(n) : () => any +>a(n) : any +>a : (n: number) => any +>n : number +} + +declare function fanAll(g: () => Promise<{ ok: boolean }>): Promise<{ ok: boolean }>; +>fanAll : (g: () => Promise<{ ok: boolean; }>) => Promise<{ ok: boolean; }> +>g : () => Promise<{ ok: boolean; }> +>ok : boolean +>ok : boolean + +export async function b(n: number) { +>b : (n: number) => any +>n : number + + if (n > 0) { +>n > 0 : boolean +>n : number +>0 : 0 + + return fanAll(() => b(n - 1)); +>fanAll(() => b(n - 1)) : Promise<{ ok: boolean; }> +>fanAll : (g: () => Promise<{ ok: boolean; }>) => Promise<{ ok: boolean; }> +>() => b(n - 1) : () => any +>b(n - 1) : any +>b : (n: number) => any +>n - 1 : number +>n : number +>1 : 1 + } + return { ok: true }; +>{ ok: true } : { ok: boolean; } +>ok : boolean +>true : true +} + +type Result = { success: boolean; [key: string]: unknown }; +>Result : Result +>success : boolean +>key : string + +interface Other { success: boolean; url: string } +>success : boolean +>url : string + +declare function fanOut(generateOne: () => Promise): Promise; +>fanOut : (generateOne: () => Promise) => Promise +>generateOne : () => Promise + +declare const other: Other; +>other : Other + +export async function c(n: number) { +>c : (n: number) => any +>n : number + + if (n) return other; +>n : number +>other : Other + + return fanOut(() => c(n - 1)); +>fanOut(() => c(n - 1)) : Promise +>fanOut : (generateOne: () => Promise) => Promise +>() => c(n - 1) : () => any +>c(n - 1) : any +>c : (n: number) => any +>n - 1 : number +>n : number +>1 : 1 +} + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=default).symbols new file mode 100644 index 0000000000000..f53077d24860e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=default).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/circularReturnTypeThroughUncontextualCallbackArgument.ts] //// + +=== circularReturnTypeThroughUncontextualCallbackArgument.ts === +// `getCreds`'s return type depends on resolving `materialize({ next })`, whose +// argument check needs the return type of the (non-contextually typed) arrow +// `next`, which calls `getCreds` again. TypeScript never reports this cycle in +// any order: call resolution hides the resolutions below it, and the relation +// reads an in-progress return type as `any` without failing it. So no TS7023, +// and `getCreds` returns `number`. (Reduced from OmniRoute auth.ts +// getProviderCredentials/selectNextLeaseCandidate.) + +const x = getCreds(); +>x : Symbol(x, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 8, 5)) +>getCreds : Symbol(getCreds, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 80)) + +declare function materialize(extra: { next?: (id: string) => unknown }): number; +>materialize : Symbol(materialize, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 8, 21)) +>extra : Symbol(extra, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 29)) +>next : Symbol(next, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 37)) +>id : Symbol(id, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 46)) + +function getCreds() { +>getCreds : Symbol(getCreds, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 80)) + + const next = (id: string) => getCreds(); +>next : Symbol(next, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 13, 9)) +>id : Symbol(id, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 13, 18)) +>getCreds : Symbol(getCreds, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 80)) + + return materialize({ next }); +>materialize : Symbol(materialize, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 8, 21)) +>next : Symbol(next, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 14, 24)) +} + +const n: number = getCreds(); +>n : Symbol(n, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 17, 5)) +>getCreds : Symbol(getCreds, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 80)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=default).types new file mode 100644 index 0000000000000..5cf5a07fe7c0a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=default).types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/circularReturnTypeThroughUncontextualCallbackArgument.ts] //// + +=== circularReturnTypeThroughUncontextualCallbackArgument.ts === +// `getCreds`'s return type depends on resolving `materialize({ next })`, whose +// argument check needs the return type of the (non-contextually typed) arrow +// `next`, which calls `getCreds` again. TypeScript never reports this cycle in +// any order: call resolution hides the resolutions below it, and the relation +// reads an in-progress return type as `any` without failing it. So no TS7023, +// and `getCreds` returns `number`. (Reduced from OmniRoute auth.ts +// getProviderCredentials/selectNextLeaseCandidate.) + +const x = getCreds(); +>x : number +>getCreds() : number +>getCreds : () => number + +declare function materialize(extra: { next?: (id: string) => unknown }): number; +>materialize : (extra: { next?: (id: string) => unknown; }) => number +>extra : { next?: (id: string) => unknown; } +>next : ((id: string) => unknown) | undefined +>id : string + +function getCreds() { +>getCreds : () => number + + const next = (id: string) => getCreds(); +>next : (id: string) => number +>(id: string) => getCreds() : (id: string) => number +>id : string +>getCreds() : number +>getCreds : () => number + + return materialize({ next }); +>materialize({ next }) : number +>materialize : (extra: { next?: (id: string) => unknown; }) => number +>{ next } : { next: (id: string) => number; } +>next : (id: string) => number +} + +const n: number = getCreds(); +>n : number +>getCreds() : number +>getCreds : () => number + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..f53077d24860e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=typesfirst).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/circularReturnTypeThroughUncontextualCallbackArgument.ts] //// + +=== circularReturnTypeThroughUncontextualCallbackArgument.ts === +// `getCreds`'s return type depends on resolving `materialize({ next })`, whose +// argument check needs the return type of the (non-contextually typed) arrow +// `next`, which calls `getCreds` again. TypeScript never reports this cycle in +// any order: call resolution hides the resolutions below it, and the relation +// reads an in-progress return type as `any` without failing it. So no TS7023, +// and `getCreds` returns `number`. (Reduced from OmniRoute auth.ts +// getProviderCredentials/selectNextLeaseCandidate.) + +const x = getCreds(); +>x : Symbol(x, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 8, 5)) +>getCreds : Symbol(getCreds, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 80)) + +declare function materialize(extra: { next?: (id: string) => unknown }): number; +>materialize : Symbol(materialize, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 8, 21)) +>extra : Symbol(extra, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 29)) +>next : Symbol(next, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 37)) +>id : Symbol(id, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 46)) + +function getCreds() { +>getCreds : Symbol(getCreds, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 80)) + + const next = (id: string) => getCreds(); +>next : Symbol(next, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 13, 9)) +>id : Symbol(id, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 13, 18)) +>getCreds : Symbol(getCreds, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 80)) + + return materialize({ next }); +>materialize : Symbol(materialize, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 8, 21)) +>next : Symbol(next, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 14, 24)) +} + +const n: number = getCreds(); +>n : Symbol(n, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 17, 5)) +>getCreds : Symbol(getCreds, Decl(circularReturnTypeThroughUncontextualCallbackArgument.ts, 10, 80)) + diff --git a/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=typesfirst).types new file mode 100644 index 0000000000000..5cf5a07fe7c0a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularReturnTypeThroughUncontextualCallbackArgument(checkorder=typesfirst).types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/circularReturnTypeThroughUncontextualCallbackArgument.ts] //// + +=== circularReturnTypeThroughUncontextualCallbackArgument.ts === +// `getCreds`'s return type depends on resolving `materialize({ next })`, whose +// argument check needs the return type of the (non-contextually typed) arrow +// `next`, which calls `getCreds` again. TypeScript never reports this cycle in +// any order: call resolution hides the resolutions below it, and the relation +// reads an in-progress return type as `any` without failing it. So no TS7023, +// and `getCreds` returns `number`. (Reduced from OmniRoute auth.ts +// getProviderCredentials/selectNextLeaseCandidate.) + +const x = getCreds(); +>x : number +>getCreds() : number +>getCreds : () => number + +declare function materialize(extra: { next?: (id: string) => unknown }): number; +>materialize : (extra: { next?: (id: string) => unknown; }) => number +>extra : { next?: (id: string) => unknown; } +>next : ((id: string) => unknown) | undefined +>id : string + +function getCreds() { +>getCreds : () => number + + const next = (id: string) => getCreds(); +>next : (id: string) => number +>(id: string) => getCreds() : (id: string) => number +>id : string +>getCreds() : number +>getCreds : () => number + + return materialize({ next }); +>materialize({ next }) : number +>materialize : (extra: { next?: (id: string) => unknown; }) => number +>{ next } : { next: (id: string) => number; } +>next : (id: string) => number +} + +const n: number = getCreds(); +>n : number +>getCreds() : number +>getCreds : () => number + diff --git a/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=default).symbols new file mode 100644 index 0000000000000..cefed83354abf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=default).symbols @@ -0,0 +1,121 @@ +//// [tests/cases/compiler/circularScopeThunkReverseMapped.ts] //// + +=== circularScopeThunkReverseMapped.ts === +type Resolve = T extends () => infer R ? R : T; +>Resolve : Symbol(Resolve, Decl(circularScopeThunkReverseMapped.ts, 0, 0)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 0, 13)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 0, 13)) +>R : Symbol(R, Decl(circularScopeThunkReverseMapped.ts, 0, 39)) +>R : Symbol(R, Decl(circularScopeThunkReverseMapped.ts, 0, 39)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 0, 13)) + +type Validate = { [K in keyof def]: def[K] extends () => infer R ? () => R : def[K] }; +>Validate : Symbol(Validate, Decl(circularScopeThunkReverseMapped.ts, 0, 50)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 1, 14)) +>K : Symbol(K, Decl(circularScopeThunkReverseMapped.ts, 1, 24)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 1, 14)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 1, 14)) +>K : Symbol(K, Decl(circularScopeThunkReverseMapped.ts, 1, 24)) +>R : Symbol(R, Decl(circularScopeThunkReverseMapped.ts, 1, 67)) +>R : Symbol(R, Decl(circularScopeThunkReverseMapped.ts, 1, 67)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 1, 14)) +>K : Symbol(K, Decl(circularScopeThunkReverseMapped.ts, 1, 24)) + +interface Scope { +>Scope : Symbol(Scope, Decl(circularScopeThunkReverseMapped.ts, 1, 91)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 2, 16)) + + type(k: k): Resolve; +>type : Symbol(Scope.type, Decl(circularScopeThunkReverseMapped.ts, 2, 22)) +>k : Symbol(k, Decl(circularScopeThunkReverseMapped.ts, 3, 9), Decl(circularScopeThunkReverseMapped.ts, 3, 30)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 2, 16)) +>k : Symbol(k, Decl(circularScopeThunkReverseMapped.ts, 3, 9), Decl(circularScopeThunkReverseMapped.ts, 3, 30)) +>k : Symbol(k, Decl(circularScopeThunkReverseMapped.ts, 3, 9), Decl(circularScopeThunkReverseMapped.ts, 3, 30)) +>Resolve : Symbol(Resolve, Decl(circularScopeThunkReverseMapped.ts, 0, 0)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 2, 16)) +>k : Symbol(k, Decl(circularScopeThunkReverseMapped.ts, 3, 9), Decl(circularScopeThunkReverseMapped.ts, 3, 30)) +} +interface Type { +>Type : Symbol(Type, Decl(circularScopeThunkReverseMapped.ts, 4, 1)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 5, 15)) + + pipe(f: (x: T) => U): Type; +>pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>U : Symbol(U, Decl(circularScopeThunkReverseMapped.ts, 6, 9)) +>f : Symbol(f, Decl(circularScopeThunkReverseMapped.ts, 6, 12)) +>x : Symbol(x, Decl(circularScopeThunkReverseMapped.ts, 6, 16)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 5, 15)) +>U : Symbol(U, Decl(circularScopeThunkReverseMapped.ts, 6, 9)) +>Type : Symbol(Type, Decl(circularScopeThunkReverseMapped.ts, 4, 1)) +>U : Symbol(U, Decl(circularScopeThunkReverseMapped.ts, 6, 9)) +} +declare function scope(def: Validate): Scope; +>scope : Symbol(scope, Decl(circularScopeThunkReverseMapped.ts, 7, 1)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 8, 23), Decl(circularScopeThunkReverseMapped.ts, 8, 34)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 8, 23), Decl(circularScopeThunkReverseMapped.ts, 8, 34)) +>Validate : Symbol(Validate, Decl(circularScopeThunkReverseMapped.ts, 0, 50)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 8, 23), Decl(circularScopeThunkReverseMapped.ts, 8, 34)) +>Scope : Symbol(Scope, Decl(circularScopeThunkReverseMapped.ts, 1, 91)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 8, 23), Decl(circularScopeThunkReverseMapped.ts, 8, 34)) + +declare function type(x: T): Type; +>type : Symbol(type, Decl(circularScopeThunkReverseMapped.ts, 8, 66)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 9, 22)) +>x : Symbol(x, Decl(circularScopeThunkReverseMapped.ts, 9, 25)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 9, 22)) +>Type : Symbol(Type, Decl(circularScopeThunkReverseMapped.ts, 4, 1)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 9, 22)) + +export const $ = scope({ +>$ : Symbol($, Decl(circularScopeThunkReverseMapped.ts, 11, 12)) +>scope : Symbol(scope, Decl(circularScopeThunkReverseMapped.ts, 7, 1)) + + a: type("string").pipe(function (s) { return s.length; }), +>a : Symbol(a, Decl(circularScopeThunkReverseMapped.ts, 11, 24)) +>type("string").pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>type : Symbol(type, Decl(circularScopeThunkReverseMapped.ts, 8, 66)) +>pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>s : Symbol(s, Decl(circularScopeThunkReverseMapped.ts, 12, 37)) +>s.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(circularScopeThunkReverseMapped.ts, 12, 37)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + b: () => $.type("a").pipe(function (n) { return n === 0; }), +>b : Symbol(b, Decl(circularScopeThunkReverseMapped.ts, 12, 62)) +>$.type("a").pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>$.type : Symbol(Scope.type, Decl(circularScopeThunkReverseMapped.ts, 2, 22)) +>$ : Symbol($, Decl(circularScopeThunkReverseMapped.ts, 11, 12)) +>type : Symbol(Scope.type, Decl(circularScopeThunkReverseMapped.ts, 2, 22)) +>pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>n : Symbol(n, Decl(circularScopeThunkReverseMapped.ts, 13, 40)) +>n : Symbol(n, Decl(circularScopeThunkReverseMapped.ts, 13, 40)) + +}); + +// Entered from the function in the first property when queried in reverse +export const $2 = scope({ +>$2 : Symbol($2, Decl(circularScopeThunkReverseMapped.ts, 17, 12)) +>scope : Symbol(scope, Decl(circularScopeThunkReverseMapped.ts, 7, 1)) + + a: type("string").pipe(function (s) { return s.length; }), +>a : Symbol(a, Decl(circularScopeThunkReverseMapped.ts, 17, 25)) +>type("string").pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>type : Symbol(type, Decl(circularScopeThunkReverseMapped.ts, 8, 66)) +>pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>s : Symbol(s, Decl(circularScopeThunkReverseMapped.ts, 18, 37)) +>s.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(circularScopeThunkReverseMapped.ts, 18, 37)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + b: () => $2.type("a").pipe((n: number) => n === 0), +>b : Symbol(b, Decl(circularScopeThunkReverseMapped.ts, 18, 62)) +>$2.type("a").pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>$2.type : Symbol(Scope.type, Decl(circularScopeThunkReverseMapped.ts, 2, 22)) +>$2 : Symbol($2, Decl(circularScopeThunkReverseMapped.ts, 17, 12)) +>type : Symbol(Scope.type, Decl(circularScopeThunkReverseMapped.ts, 2, 22)) +>pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>n : Symbol(n, Decl(circularScopeThunkReverseMapped.ts, 19, 32)) +>n : Symbol(n, Decl(circularScopeThunkReverseMapped.ts, 19, 32)) + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=default).types new file mode 100644 index 0000000000000..41f30b7dbe3f2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=default).types @@ -0,0 +1,107 @@ +//// [tests/cases/compiler/circularScopeThunkReverseMapped.ts] //// + +=== circularScopeThunkReverseMapped.ts === +type Resolve = T extends () => infer R ? R : T; +>Resolve : Resolve + +type Validate = { [K in keyof def]: def[K] extends () => infer R ? () => R : def[K] }; +>Validate : Validate + +interface Scope { + type(k: k): Resolve; +>type : (k: k) => Resolve +>k : k +} +interface Type { + pipe(f: (x: T) => U): Type; +>pipe : (f: (x: T) => U) => Type +>f : (x: T) => U +>x : T +} +declare function scope(def: Validate): Scope; +>scope : (def: Validate) => Scope +>def : Validate + +declare function type(x: T): Type; +>type : (x: T) => Type +>x : T + +export const $ = scope({ +>$ : Scope<{ a: Type; b: unknown; }> +>scope({ a: type("string").pipe(function (s) { return s.length; }), b: () => $.type("a").pipe(function (n) { return n === 0; }),}) : Scope<{ a: Type; b: unknown; }> +>scope : (def: Validate) => Scope +>{ a: type("string").pipe(function (s) { return s.length; }), b: () => $.type("a").pipe(function (n) { return n === 0; }),} : { a: Type; b: () => Type; } + + a: type("string").pipe(function (s) { return s.length; }), +>a : Type +>type("string").pipe(function (s) { return s.length; }) : Type +>type("string").pipe : (f: (x: string) => U) => Type +>type("string") : Type +>type : (x: T) => Type +>"string" : "string" +>pipe : (f: (x: string) => U) => Type +>function (s) { return s.length; } : (s: string) => number +>s : string +>s.length : number +>s : string +>length : number + + b: () => $.type("a").pipe(function (n) { return n === 0; }), +>b : () => Type +>() => $.type("a").pipe(function (n) { return n === 0; }) : () => Type +>$.type("a").pipe(function (n) { return n === 0; }) : Type +>$.type("a").pipe : (f: (x: number) => U) => Type +>$.type("a") : Type +>$.type : (k: k_1) => Resolve<{ a: Type; b: unknown; }[k_1]> +>$ : Scope<{ a: Type; b: unknown; }> +>type : (k: k_1) => Resolve<{ a: Type; b: unknown; }[k_1]> +>"a" : "a" +>pipe : (f: (x: number) => U) => Type +>function (n) { return n === 0; } : (n: number) => n is 0 +>n : number +>n === 0 : boolean +>n : number +>0 : 0 + +}); + +// Entered from the function in the first property when queried in reverse +export const $2 = scope({ +>$2 : Scope<{ a: Type; b: unknown; }> +>scope({ a: type("string").pipe(function (s) { return s.length; }), b: () => $2.type("a").pipe((n: number) => n === 0),}) : Scope<{ a: Type; b: unknown; }> +>scope : (def: Validate) => Scope +>{ a: type("string").pipe(function (s) { return s.length; }), b: () => $2.type("a").pipe((n: number) => n === 0),} : { a: Type; b: () => Type; } + + a: type("string").pipe(function (s) { return s.length; }), +>a : Type +>type("string").pipe(function (s) { return s.length; }) : Type +>type("string").pipe : (f: (x: string) => U) => Type +>type("string") : Type +>type : (x: T) => Type +>"string" : "string" +>pipe : (f: (x: string) => U) => Type +>function (s) { return s.length; } : (s: string) => number +>s : string +>s.length : number +>s : string +>length : number + + b: () => $2.type("a").pipe((n: number) => n === 0), +>b : () => Type +>() => $2.type("a").pipe((n: number) => n === 0) : () => Type +>$2.type("a").pipe((n: number) => n === 0) : Type +>$2.type("a").pipe : (f: (x: number) => U) => Type +>$2.type("a") : Type +>$2.type : (k: k_1) => Resolve<{ a: Type; b: unknown; }[k_1]> +>$2 : Scope<{ a: Type; b: unknown; }> +>type : (k: k_1) => Resolve<{ a: Type; b: unknown; }[k_1]> +>"a" : "a" +>pipe : (f: (x: number) => U) => Type +>(n: number) => n === 0 : (n: number) => n is 0 +>n : number +>n === 0 : boolean +>n : number +>0 : 0 + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..cefed83354abf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=typesfirst).symbols @@ -0,0 +1,121 @@ +//// [tests/cases/compiler/circularScopeThunkReverseMapped.ts] //// + +=== circularScopeThunkReverseMapped.ts === +type Resolve = T extends () => infer R ? R : T; +>Resolve : Symbol(Resolve, Decl(circularScopeThunkReverseMapped.ts, 0, 0)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 0, 13)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 0, 13)) +>R : Symbol(R, Decl(circularScopeThunkReverseMapped.ts, 0, 39)) +>R : Symbol(R, Decl(circularScopeThunkReverseMapped.ts, 0, 39)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 0, 13)) + +type Validate = { [K in keyof def]: def[K] extends () => infer R ? () => R : def[K] }; +>Validate : Symbol(Validate, Decl(circularScopeThunkReverseMapped.ts, 0, 50)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 1, 14)) +>K : Symbol(K, Decl(circularScopeThunkReverseMapped.ts, 1, 24)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 1, 14)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 1, 14)) +>K : Symbol(K, Decl(circularScopeThunkReverseMapped.ts, 1, 24)) +>R : Symbol(R, Decl(circularScopeThunkReverseMapped.ts, 1, 67)) +>R : Symbol(R, Decl(circularScopeThunkReverseMapped.ts, 1, 67)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 1, 14)) +>K : Symbol(K, Decl(circularScopeThunkReverseMapped.ts, 1, 24)) + +interface Scope { +>Scope : Symbol(Scope, Decl(circularScopeThunkReverseMapped.ts, 1, 91)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 2, 16)) + + type(k: k): Resolve; +>type : Symbol(Scope.type, Decl(circularScopeThunkReverseMapped.ts, 2, 22)) +>k : Symbol(k, Decl(circularScopeThunkReverseMapped.ts, 3, 9), Decl(circularScopeThunkReverseMapped.ts, 3, 30)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 2, 16)) +>k : Symbol(k, Decl(circularScopeThunkReverseMapped.ts, 3, 9), Decl(circularScopeThunkReverseMapped.ts, 3, 30)) +>k : Symbol(k, Decl(circularScopeThunkReverseMapped.ts, 3, 9), Decl(circularScopeThunkReverseMapped.ts, 3, 30)) +>Resolve : Symbol(Resolve, Decl(circularScopeThunkReverseMapped.ts, 0, 0)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 2, 16)) +>k : Symbol(k, Decl(circularScopeThunkReverseMapped.ts, 3, 9), Decl(circularScopeThunkReverseMapped.ts, 3, 30)) +} +interface Type { +>Type : Symbol(Type, Decl(circularScopeThunkReverseMapped.ts, 4, 1)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 5, 15)) + + pipe(f: (x: T) => U): Type; +>pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>U : Symbol(U, Decl(circularScopeThunkReverseMapped.ts, 6, 9)) +>f : Symbol(f, Decl(circularScopeThunkReverseMapped.ts, 6, 12)) +>x : Symbol(x, Decl(circularScopeThunkReverseMapped.ts, 6, 16)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 5, 15)) +>U : Symbol(U, Decl(circularScopeThunkReverseMapped.ts, 6, 9)) +>Type : Symbol(Type, Decl(circularScopeThunkReverseMapped.ts, 4, 1)) +>U : Symbol(U, Decl(circularScopeThunkReverseMapped.ts, 6, 9)) +} +declare function scope(def: Validate): Scope; +>scope : Symbol(scope, Decl(circularScopeThunkReverseMapped.ts, 7, 1)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 8, 23), Decl(circularScopeThunkReverseMapped.ts, 8, 34)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 8, 23), Decl(circularScopeThunkReverseMapped.ts, 8, 34)) +>Validate : Symbol(Validate, Decl(circularScopeThunkReverseMapped.ts, 0, 50)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 8, 23), Decl(circularScopeThunkReverseMapped.ts, 8, 34)) +>Scope : Symbol(Scope, Decl(circularScopeThunkReverseMapped.ts, 1, 91)) +>def : Symbol(def, Decl(circularScopeThunkReverseMapped.ts, 8, 23), Decl(circularScopeThunkReverseMapped.ts, 8, 34)) + +declare function type(x: T): Type; +>type : Symbol(type, Decl(circularScopeThunkReverseMapped.ts, 8, 66)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 9, 22)) +>x : Symbol(x, Decl(circularScopeThunkReverseMapped.ts, 9, 25)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 9, 22)) +>Type : Symbol(Type, Decl(circularScopeThunkReverseMapped.ts, 4, 1)) +>T : Symbol(T, Decl(circularScopeThunkReverseMapped.ts, 9, 22)) + +export const $ = scope({ +>$ : Symbol($, Decl(circularScopeThunkReverseMapped.ts, 11, 12)) +>scope : Symbol(scope, Decl(circularScopeThunkReverseMapped.ts, 7, 1)) + + a: type("string").pipe(function (s) { return s.length; }), +>a : Symbol(a, Decl(circularScopeThunkReverseMapped.ts, 11, 24)) +>type("string").pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>type : Symbol(type, Decl(circularScopeThunkReverseMapped.ts, 8, 66)) +>pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>s : Symbol(s, Decl(circularScopeThunkReverseMapped.ts, 12, 37)) +>s.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(circularScopeThunkReverseMapped.ts, 12, 37)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + b: () => $.type("a").pipe(function (n) { return n === 0; }), +>b : Symbol(b, Decl(circularScopeThunkReverseMapped.ts, 12, 62)) +>$.type("a").pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>$.type : Symbol(Scope.type, Decl(circularScopeThunkReverseMapped.ts, 2, 22)) +>$ : Symbol($, Decl(circularScopeThunkReverseMapped.ts, 11, 12)) +>type : Symbol(Scope.type, Decl(circularScopeThunkReverseMapped.ts, 2, 22)) +>pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>n : Symbol(n, Decl(circularScopeThunkReverseMapped.ts, 13, 40)) +>n : Symbol(n, Decl(circularScopeThunkReverseMapped.ts, 13, 40)) + +}); + +// Entered from the function in the first property when queried in reverse +export const $2 = scope({ +>$2 : Symbol($2, Decl(circularScopeThunkReverseMapped.ts, 17, 12)) +>scope : Symbol(scope, Decl(circularScopeThunkReverseMapped.ts, 7, 1)) + + a: type("string").pipe(function (s) { return s.length; }), +>a : Symbol(a, Decl(circularScopeThunkReverseMapped.ts, 17, 25)) +>type("string").pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>type : Symbol(type, Decl(circularScopeThunkReverseMapped.ts, 8, 66)) +>pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>s : Symbol(s, Decl(circularScopeThunkReverseMapped.ts, 18, 37)) +>s.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(circularScopeThunkReverseMapped.ts, 18, 37)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + b: () => $2.type("a").pipe((n: number) => n === 0), +>b : Symbol(b, Decl(circularScopeThunkReverseMapped.ts, 18, 62)) +>$2.type("a").pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>$2.type : Symbol(Scope.type, Decl(circularScopeThunkReverseMapped.ts, 2, 22)) +>$2 : Symbol($2, Decl(circularScopeThunkReverseMapped.ts, 17, 12)) +>type : Symbol(Scope.type, Decl(circularScopeThunkReverseMapped.ts, 2, 22)) +>pipe : Symbol(Type.pipe, Decl(circularScopeThunkReverseMapped.ts, 5, 19)) +>n : Symbol(n, Decl(circularScopeThunkReverseMapped.ts, 19, 32)) +>n : Symbol(n, Decl(circularScopeThunkReverseMapped.ts, 19, 32)) + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=typesfirst).types new file mode 100644 index 0000000000000..41f30b7dbe3f2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=typesfirst).types @@ -0,0 +1,107 @@ +//// [tests/cases/compiler/circularScopeThunkReverseMapped.ts] //// + +=== circularScopeThunkReverseMapped.ts === +type Resolve = T extends () => infer R ? R : T; +>Resolve : Resolve + +type Validate = { [K in keyof def]: def[K] extends () => infer R ? () => R : def[K] }; +>Validate : Validate + +interface Scope { + type(k: k): Resolve; +>type : (k: k) => Resolve +>k : k +} +interface Type { + pipe(f: (x: T) => U): Type; +>pipe : (f: (x: T) => U) => Type +>f : (x: T) => U +>x : T +} +declare function scope(def: Validate): Scope; +>scope : (def: Validate) => Scope +>def : Validate + +declare function type(x: T): Type; +>type : (x: T) => Type +>x : T + +export const $ = scope({ +>$ : Scope<{ a: Type; b: unknown; }> +>scope({ a: type("string").pipe(function (s) { return s.length; }), b: () => $.type("a").pipe(function (n) { return n === 0; }),}) : Scope<{ a: Type; b: unknown; }> +>scope : (def: Validate) => Scope +>{ a: type("string").pipe(function (s) { return s.length; }), b: () => $.type("a").pipe(function (n) { return n === 0; }),} : { a: Type; b: () => Type; } + + a: type("string").pipe(function (s) { return s.length; }), +>a : Type +>type("string").pipe(function (s) { return s.length; }) : Type +>type("string").pipe : (f: (x: string) => U) => Type +>type("string") : Type +>type : (x: T) => Type +>"string" : "string" +>pipe : (f: (x: string) => U) => Type +>function (s) { return s.length; } : (s: string) => number +>s : string +>s.length : number +>s : string +>length : number + + b: () => $.type("a").pipe(function (n) { return n === 0; }), +>b : () => Type +>() => $.type("a").pipe(function (n) { return n === 0; }) : () => Type +>$.type("a").pipe(function (n) { return n === 0; }) : Type +>$.type("a").pipe : (f: (x: number) => U) => Type +>$.type("a") : Type +>$.type : (k: k_1) => Resolve<{ a: Type; b: unknown; }[k_1]> +>$ : Scope<{ a: Type; b: unknown; }> +>type : (k: k_1) => Resolve<{ a: Type; b: unknown; }[k_1]> +>"a" : "a" +>pipe : (f: (x: number) => U) => Type +>function (n) { return n === 0; } : (n: number) => n is 0 +>n : number +>n === 0 : boolean +>n : number +>0 : 0 + +}); + +// Entered from the function in the first property when queried in reverse +export const $2 = scope({ +>$2 : Scope<{ a: Type; b: unknown; }> +>scope({ a: type("string").pipe(function (s) { return s.length; }), b: () => $2.type("a").pipe((n: number) => n === 0),}) : Scope<{ a: Type; b: unknown; }> +>scope : (def: Validate) => Scope +>{ a: type("string").pipe(function (s) { return s.length; }), b: () => $2.type("a").pipe((n: number) => n === 0),} : { a: Type; b: () => Type; } + + a: type("string").pipe(function (s) { return s.length; }), +>a : Type +>type("string").pipe(function (s) { return s.length; }) : Type +>type("string").pipe : (f: (x: string) => U) => Type +>type("string") : Type +>type : (x: T) => Type +>"string" : "string" +>pipe : (f: (x: string) => U) => Type +>function (s) { return s.length; } : (s: string) => number +>s : string +>s.length : number +>s : string +>length : number + + b: () => $2.type("a").pipe((n: number) => n === 0), +>b : () => Type +>() => $2.type("a").pipe((n: number) => n === 0) : () => Type +>$2.type("a").pipe((n: number) => n === 0) : Type +>$2.type("a").pipe : (f: (x: number) => U) => Type +>$2.type("a") : Type +>$2.type : (k: k_1) => Resolve<{ a: Type; b: unknown; }[k_1]> +>$2 : Scope<{ a: Type; b: unknown; }> +>type : (k: k_1) => Resolve<{ a: Type; b: unknown; }[k_1]> +>"a" : "a" +>pipe : (f: (x: number) => U) => Type +>(n: number) => n === 0 : (n: number) => n is 0 +>n : number +>n === 0 : boolean +>n : number +>0 : 0 + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).errors.txt b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).errors.txt new file mode 100644 index 0000000000000..e6a85a2793754 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).errors.txt @@ -0,0 +1,80 @@ +classCircularityDiagnostics.ts(1,7): error TS2506: 'Direct' is referenced directly or indirectly in its own base expression. +classCircularityDiagnostics.ts(9,7): error TS2506: 'First' is referenced directly or indirectly in its own base expression. +classCircularityDiagnostics.ts(9,21): error TS2449: Class 'Second' used before its declaration. +classCircularityDiagnostics.ts(10,7): error TS2506: 'Second' is referenced directly or indirectly in its own base expression. +classCircularityDiagnostics.ts(12,26): error TS2506: 'Named' is referenced directly or indirectly in its own base expression. +classCircularityDiagnostics.ts(23,16): error TS2448: Block-scoped variable 'SelfReferencingBase' used before its declaration. +classCircularityDiagnostics.ts(41,44): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. +classCircularityDiagnostics.ts(42,58): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. +classCircularityDiagnostics.ts(45,34): error TS2507: Type 'number' is not a constructor function type. +classCircularityDiagnostics.ts(45,50): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. + + +==== classCircularityDiagnostics.ts (10 errors) ==== + class Direct extends Direct { + ~~~~~~ +!!! error TS2506: 'Direct' is referenced directly or indirectly in its own base expression. + static value = 1; + value = 2; + } + + const staticValue = Direct.value; + const instanceValue = new Direct().value; + + class First extends Second {} + ~~~~~ +!!! error TS2506: 'First' is referenced directly or indirectly in its own base expression. + ~~~~~~ +!!! error TS2449: Class 'Second' used before its declaration. +!!! related TS2728 classCircularityDiagnostics.ts:10:7: 'Second' is declared here. + class Second extends First {} + ~~~~~~ +!!! error TS2506: 'Second' is referenced directly or indirectly in its own base expression. + + const Expression = class Named extends Named {}; + ~~~~~ +!!! error TS2506: 'Named' is referenced directly or indirectly in its own base expression. + + class NestedBase extends (class { + static value = 1; + value = 2; + }) {} + + const nestedStaticValue: number = NestedBase.value; + const nestedInstanceValue: number = new NestedBase().value; + + const SelfReferencingBase = class extends (class { + static self = SelfReferencingBase; + ~~~~~~~~~~~~~~~~~~~ +!!! error TS2448: Block-scoped variable 'SelfReferencingBase' used before its declaration. +!!! related TS2728 classCircularityDiagnostics.ts:22:7: 'SelfReferencingBase' is declared here. + }) {}; + + const selfConstructor = SelfReferencingBase.self; + + function mixin {}>(base: Base) { + return class extends base { + static value = 1; + value = 2; + }; + } + + class Mixed extends mixin(NestedBase) {} + + const mixedStaticValue: number = Mixed.value; + const mixedInstanceValue: number = new Mixed().value; + + declare function makeBase(value: number): typeof NestedBase; + class InvalidBaseArgument extends makeBase("invalid") {} + ~~~~~~~~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. + const InvalidExpressionArgument = class extends makeBase("invalid") {}; + ~~~~~~~~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. + + declare function makeInvalidBase(value: number): number; + class InvalidConstructor extends makeInvalidBase("invalid") {} + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2507: Type 'number' is not a constructor function type. + ~~~~~~~~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).js b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).js new file mode 100644 index 0000000000000..2ff93ac2eb65b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).js @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/classCircularityDiagnostics.ts] //// + +//// [classCircularityDiagnostics.ts] +class Direct extends Direct { + static value = 1; + value = 2; +} + +const staticValue = Direct.value; +const instanceValue = new Direct().value; + +class First extends Second {} +class Second extends First {} + +const Expression = class Named extends Named {}; + +class NestedBase extends (class { + static value = 1; + value = 2; +}) {} + +const nestedStaticValue: number = NestedBase.value; +const nestedInstanceValue: number = new NestedBase().value; + +const SelfReferencingBase = class extends (class { + static self = SelfReferencingBase; +}) {}; + +const selfConstructor = SelfReferencingBase.self; + +function mixin {}>(base: Base) { + return class extends base { + static value = 1; + value = 2; + }; +} + +class Mixed extends mixin(NestedBase) {} + +const mixedStaticValue: number = Mixed.value; +const mixedInstanceValue: number = new Mixed().value; + +declare function makeBase(value: number): typeof NestedBase; +class InvalidBaseArgument extends makeBase("invalid") {} +const InvalidExpressionArgument = class extends makeBase("invalid") {}; + +declare function makeInvalidBase(value: number): number; +class InvalidConstructor extends makeInvalidBase("invalid") {} + +//// [classCircularityDiagnostics.js] +"use strict"; +class Direct extends Direct { + static value = 1; + value = 2; +} +const staticValue = Direct.value; +const instanceValue = new Direct().value; +class First extends Second { +} +class Second extends First { +} +const Expression = class Named extends Named { +}; +class NestedBase extends (class { + static value = 1; + value = 2; +}) { +} +const nestedStaticValue = NestedBase.value; +const nestedInstanceValue = new NestedBase().value; +const SelfReferencingBase = class extends (class { + static self = SelfReferencingBase; +}) { +}; +const selfConstructor = SelfReferencingBase.self; +function mixin(base) { + return class extends base { + static value = 1; + value = 2; + }; +} +class Mixed extends mixin(NestedBase) { +} +const mixedStaticValue = Mixed.value; +const mixedInstanceValue = new Mixed().value; +class InvalidBaseArgument extends makeBase("invalid") { +} +const InvalidExpressionArgument = class extends makeBase("invalid") { +}; +class InvalidConstructor extends makeInvalidBase("invalid") { +} diff --git a/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).symbols b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).symbols new file mode 100644 index 0000000000000..9e892a1edd0ab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).symbols @@ -0,0 +1,134 @@ +//// [tests/cases/compiler/classCircularityDiagnostics.ts] //// + +=== classCircularityDiagnostics.ts === +class Direct extends Direct { +>Direct : Symbol(Direct, Decl(classCircularityDiagnostics.ts, 0, 0)) +>Direct : Symbol(Direct, Decl(classCircularityDiagnostics.ts, 0, 0)) + + static value = 1; +>value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 0, 29)) + + value = 2; +>value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 1, 18)) +} + +const staticValue = Direct.value; +>staticValue : Symbol(staticValue, Decl(classCircularityDiagnostics.ts, 5, 5)) +>Direct.value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 0, 29)) +>Direct : Symbol(Direct, Decl(classCircularityDiagnostics.ts, 0, 0)) +>value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 0, 29)) + +const instanceValue = new Direct().value; +>instanceValue : Symbol(instanceValue, Decl(classCircularityDiagnostics.ts, 6, 5)) +>new Direct().value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 1, 18)) +>Direct : Symbol(Direct, Decl(classCircularityDiagnostics.ts, 0, 0)) +>value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 1, 18)) + +class First extends Second {} +>First : Symbol(First, Decl(classCircularityDiagnostics.ts, 6, 41)) +>Second : Symbol(Second, Decl(classCircularityDiagnostics.ts, 8, 29)) + +class Second extends First {} +>Second : Symbol(Second, Decl(classCircularityDiagnostics.ts, 8, 29)) +>First : Symbol(First, Decl(classCircularityDiagnostics.ts, 6, 41)) + +const Expression = class Named extends Named {}; +>Expression : Symbol(Expression, Decl(classCircularityDiagnostics.ts, 11, 5)) +>Named : Symbol(Named, Decl(classCircularityDiagnostics.ts, 11, 18)) +>Named : Symbol(Named, Decl(classCircularityDiagnostics.ts, 11, 18)) + +class NestedBase extends (class { +>NestedBase : Symbol(NestedBase, Decl(classCircularityDiagnostics.ts, 11, 48)) + + static value = 1; +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 13, 33)) + + value = 2; +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 14, 18)) + +}) {} + +const nestedStaticValue: number = NestedBase.value; +>nestedStaticValue : Symbol(nestedStaticValue, Decl(classCircularityDiagnostics.ts, 18, 5)) +>NestedBase.value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 13, 33)) +>NestedBase : Symbol(NestedBase, Decl(classCircularityDiagnostics.ts, 11, 48)) +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 13, 33)) + +const nestedInstanceValue: number = new NestedBase().value; +>nestedInstanceValue : Symbol(nestedInstanceValue, Decl(classCircularityDiagnostics.ts, 19, 5)) +>new NestedBase().value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 14, 18)) +>NestedBase : Symbol(NestedBase, Decl(classCircularityDiagnostics.ts, 11, 48)) +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 14, 18)) + +const SelfReferencingBase = class extends (class { +>SelfReferencingBase : Symbol(SelfReferencingBase, Decl(classCircularityDiagnostics.ts, 21, 5)) + + static self = SelfReferencingBase; +>self : Symbol((Anonymous class).self, Decl(classCircularityDiagnostics.ts, 21, 50)) +>SelfReferencingBase : Symbol(SelfReferencingBase, Decl(classCircularityDiagnostics.ts, 21, 5)) + +}) {}; + +const selfConstructor = SelfReferencingBase.self; +>selfConstructor : Symbol(selfConstructor, Decl(classCircularityDiagnostics.ts, 25, 5)) +>SelfReferencingBase.self : Symbol((Anonymous class).self, Decl(classCircularityDiagnostics.ts, 21, 50)) +>SelfReferencingBase : Symbol(SelfReferencingBase, Decl(classCircularityDiagnostics.ts, 21, 5)) +>self : Symbol((Anonymous class).self, Decl(classCircularityDiagnostics.ts, 21, 50)) + +function mixin {}>(base: Base) { +>mixin : Symbol(mixin, Decl(classCircularityDiagnostics.ts, 25, 49)) +>Base : Symbol(Base, Decl(classCircularityDiagnostics.ts, 27, 15)) +>args : Symbol(args, Decl(classCircularityDiagnostics.ts, 27, 33)) +>base : Symbol(base, Decl(classCircularityDiagnostics.ts, 27, 56)) +>Base : Symbol(Base, Decl(classCircularityDiagnostics.ts, 27, 15)) + + return class extends base { +>base : Symbol(base, Decl(classCircularityDiagnostics.ts, 27, 56)) + + static value = 1; +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 28, 28)) + + value = 2; +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 29, 19)) + + }; +} + +class Mixed extends mixin(NestedBase) {} +>Mixed : Symbol(Mixed, Decl(classCircularityDiagnostics.ts, 32, 1)) +>mixin : Symbol(mixin, Decl(classCircularityDiagnostics.ts, 25, 49)) +>NestedBase : Symbol(NestedBase, Decl(classCircularityDiagnostics.ts, 11, 48)) + +const mixedStaticValue: number = Mixed.value; +>mixedStaticValue : Symbol(mixedStaticValue, Decl(classCircularityDiagnostics.ts, 36, 5)) +>Mixed.value : Symbol(value, Decl(classCircularityDiagnostics.ts, 28, 28), Decl(classCircularityDiagnostics.ts, 13, 33)) +>Mixed : Symbol(Mixed, Decl(classCircularityDiagnostics.ts, 32, 1)) +>value : Symbol(value, Decl(classCircularityDiagnostics.ts, 28, 28), Decl(classCircularityDiagnostics.ts, 13, 33)) + +const mixedInstanceValue: number = new Mixed().value; +>mixedInstanceValue : Symbol(mixedInstanceValue, Decl(classCircularityDiagnostics.ts, 37, 5)) +>new Mixed().value : Symbol(value, Decl(classCircularityDiagnostics.ts, 29, 19), Decl(classCircularityDiagnostics.ts, 14, 18)) +>Mixed : Symbol(Mixed, Decl(classCircularityDiagnostics.ts, 32, 1)) +>value : Symbol(value, Decl(classCircularityDiagnostics.ts, 29, 19), Decl(classCircularityDiagnostics.ts, 14, 18)) + +declare function makeBase(value: number): typeof NestedBase; +>makeBase : Symbol(makeBase, Decl(classCircularityDiagnostics.ts, 37, 53)) +>value : Symbol(value, Decl(classCircularityDiagnostics.ts, 39, 26)) +>NestedBase : Symbol(NestedBase, Decl(classCircularityDiagnostics.ts, 11, 48)) + +class InvalidBaseArgument extends makeBase("invalid") {} +>InvalidBaseArgument : Symbol(InvalidBaseArgument, Decl(classCircularityDiagnostics.ts, 39, 60)) +>makeBase : Symbol(makeBase, Decl(classCircularityDiagnostics.ts, 37, 53)) + +const InvalidExpressionArgument = class extends makeBase("invalid") {}; +>InvalidExpressionArgument : Symbol(InvalidExpressionArgument, Decl(classCircularityDiagnostics.ts, 41, 5)) +>makeBase : Symbol(makeBase, Decl(classCircularityDiagnostics.ts, 37, 53)) + +declare function makeInvalidBase(value: number): number; +>makeInvalidBase : Symbol(makeInvalidBase, Decl(classCircularityDiagnostics.ts, 41, 71)) +>value : Symbol(value, Decl(classCircularityDiagnostics.ts, 43, 33)) + +class InvalidConstructor extends makeInvalidBase("invalid") {} +>InvalidConstructor : Symbol(InvalidConstructor, Decl(classCircularityDiagnostics.ts, 43, 56)) +>makeInvalidBase : Symbol(makeInvalidBase, Decl(classCircularityDiagnostics.ts, 41, 71)) + diff --git a/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).types b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).types new file mode 100644 index 0000000000000..0b46eec400402 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=false).types @@ -0,0 +1,156 @@ +//// [tests/cases/compiler/classCircularityDiagnostics.ts] //// + +=== classCircularityDiagnostics.ts === +class Direct extends Direct { +>Direct : Direct +>Direct : typeof Direct + + static value = 1; +>value : number +>1 : 1 + + value = 2; +>value : number +>2 : 2 +} + +const staticValue = Direct.value; +>staticValue : number +>Direct.value : number +>Direct : typeof Direct +>value : number + +const instanceValue = new Direct().value; +>instanceValue : number +>new Direct().value : number +>new Direct() : Direct +>Direct : typeof Direct +>value : number + +class First extends Second {} +>First : First +>Second : typeof Second + +class Second extends First {} +>Second : Second +>First : typeof First + +const Expression = class Named extends Named {}; +>Expression : typeof Named +>class Named extends Named {} : typeof Named +>Named : typeof Named +>Named : typeof Named + +class NestedBase extends (class { +>NestedBase : NestedBase +>(class { static value = 1; value = 2;}) : (Anonymous class) +>class { static value = 1; value = 2;} : typeof (Anonymous class) + + static value = 1; +>value : number +>1 : 1 + + value = 2; +>value : number +>2 : 2 + +}) {} + +const nestedStaticValue: number = NestedBase.value; +>nestedStaticValue : number +>NestedBase.value : number +>NestedBase : typeof NestedBase +>value : number + +const nestedInstanceValue: number = new NestedBase().value; +>nestedInstanceValue : number +>new NestedBase().value : number +>new NestedBase() : NestedBase +>NestedBase : typeof NestedBase +>value : number + +const SelfReferencingBase = class extends (class { +>SelfReferencingBase : typeof SelfReferencingBase +>class extends (class { static self = SelfReferencingBase;}) {} : typeof SelfReferencingBase +>(class { static self = SelfReferencingBase;}) : (Anonymous class) +>class { static self = SelfReferencingBase;} : typeof (Anonymous class) + + static self = SelfReferencingBase; +>self : typeof SelfReferencingBase +>SelfReferencingBase : typeof SelfReferencingBase + +}) {}; + +const selfConstructor = SelfReferencingBase.self; +>selfConstructor : typeof SelfReferencingBase +>SelfReferencingBase.self : typeof SelfReferencingBase +>SelfReferencingBase : typeof SelfReferencingBase +>self : typeof SelfReferencingBase + +function mixin {}>(base: Base) { +>mixin : {}>(base: Base) => { new (...args: any[]): (Anonymous class); value: number; prototype: mixin.(Anonymous class); } & Base +>args : any[] +>base : Base + + return class extends base { +>class extends base { static value = 1; value = 2; } : { new (...args: any[]): (Anonymous class); value: number; prototype: mixin.(Anonymous class); } & Base +>base : {} + + static value = 1; +>value : number +>1 : 1 + + value = 2; +>value : number +>2 : 2 + + }; +} + +class Mixed extends mixin(NestedBase) {} +>Mixed : Mixed +>mixin(NestedBase) : mixin.(Anonymous class) & NestedBase +>mixin : {}>(base: Base) => { new (...args: any[]): (Anonymous class); value: number; prototype: mixin.(Anonymous class); } & Base +>NestedBase : typeof NestedBase + +const mixedStaticValue: number = Mixed.value; +>mixedStaticValue : number +>Mixed.value : number +>Mixed : typeof Mixed +>value : number + +const mixedInstanceValue: number = new Mixed().value; +>mixedInstanceValue : number +>new Mixed().value : number +>new Mixed() : Mixed +>Mixed : typeof Mixed +>value : number + +declare function makeBase(value: number): typeof NestedBase; +>makeBase : (value: number) => typeof NestedBase +>value : number +>NestedBase : typeof NestedBase + +class InvalidBaseArgument extends makeBase("invalid") {} +>InvalidBaseArgument : InvalidBaseArgument +>makeBase("invalid") : NestedBase +>makeBase : (value: number) => typeof NestedBase +>"invalid" : "invalid" + +const InvalidExpressionArgument = class extends makeBase("invalid") {}; +>InvalidExpressionArgument : typeof InvalidExpressionArgument +>class extends makeBase("invalid") {} : typeof InvalidExpressionArgument +>makeBase("invalid") : NestedBase +>makeBase : (value: number) => typeof NestedBase +>"invalid" : "invalid" + +declare function makeInvalidBase(value: number): number; +>makeInvalidBase : (value: number) => number +>value : number + +class InvalidConstructor extends makeInvalidBase("invalid") {} +>InvalidConstructor : InvalidConstructor +>makeInvalidBase("invalid") : number +>makeInvalidBase : (value: number) => number +>"invalid" : "invalid" + diff --git a/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).errors.txt b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).errors.txt new file mode 100644 index 0000000000000..e6a85a2793754 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).errors.txt @@ -0,0 +1,80 @@ +classCircularityDiagnostics.ts(1,7): error TS2506: 'Direct' is referenced directly or indirectly in its own base expression. +classCircularityDiagnostics.ts(9,7): error TS2506: 'First' is referenced directly or indirectly in its own base expression. +classCircularityDiagnostics.ts(9,21): error TS2449: Class 'Second' used before its declaration. +classCircularityDiagnostics.ts(10,7): error TS2506: 'Second' is referenced directly or indirectly in its own base expression. +classCircularityDiagnostics.ts(12,26): error TS2506: 'Named' is referenced directly or indirectly in its own base expression. +classCircularityDiagnostics.ts(23,16): error TS2448: Block-scoped variable 'SelfReferencingBase' used before its declaration. +classCircularityDiagnostics.ts(41,44): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. +classCircularityDiagnostics.ts(42,58): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. +classCircularityDiagnostics.ts(45,34): error TS2507: Type 'number' is not a constructor function type. +classCircularityDiagnostics.ts(45,50): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. + + +==== classCircularityDiagnostics.ts (10 errors) ==== + class Direct extends Direct { + ~~~~~~ +!!! error TS2506: 'Direct' is referenced directly or indirectly in its own base expression. + static value = 1; + value = 2; + } + + const staticValue = Direct.value; + const instanceValue = new Direct().value; + + class First extends Second {} + ~~~~~ +!!! error TS2506: 'First' is referenced directly or indirectly in its own base expression. + ~~~~~~ +!!! error TS2449: Class 'Second' used before its declaration. +!!! related TS2728 classCircularityDiagnostics.ts:10:7: 'Second' is declared here. + class Second extends First {} + ~~~~~~ +!!! error TS2506: 'Second' is referenced directly or indirectly in its own base expression. + + const Expression = class Named extends Named {}; + ~~~~~ +!!! error TS2506: 'Named' is referenced directly or indirectly in its own base expression. + + class NestedBase extends (class { + static value = 1; + value = 2; + }) {} + + const nestedStaticValue: number = NestedBase.value; + const nestedInstanceValue: number = new NestedBase().value; + + const SelfReferencingBase = class extends (class { + static self = SelfReferencingBase; + ~~~~~~~~~~~~~~~~~~~ +!!! error TS2448: Block-scoped variable 'SelfReferencingBase' used before its declaration. +!!! related TS2728 classCircularityDiagnostics.ts:22:7: 'SelfReferencingBase' is declared here. + }) {}; + + const selfConstructor = SelfReferencingBase.self; + + function mixin {}>(base: Base) { + return class extends base { + static value = 1; + value = 2; + }; + } + + class Mixed extends mixin(NestedBase) {} + + const mixedStaticValue: number = Mixed.value; + const mixedInstanceValue: number = new Mixed().value; + + declare function makeBase(value: number): typeof NestedBase; + class InvalidBaseArgument extends makeBase("invalid") {} + ~~~~~~~~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. + const InvalidExpressionArgument = class extends makeBase("invalid") {}; + ~~~~~~~~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. + + declare function makeInvalidBase(value: number): number; + class InvalidConstructor extends makeInvalidBase("invalid") {} + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2507: Type 'number' is not a constructor function type. + ~~~~~~~~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).js b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).js new file mode 100644 index 0000000000000..2ff93ac2eb65b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).js @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/classCircularityDiagnostics.ts] //// + +//// [classCircularityDiagnostics.ts] +class Direct extends Direct { + static value = 1; + value = 2; +} + +const staticValue = Direct.value; +const instanceValue = new Direct().value; + +class First extends Second {} +class Second extends First {} + +const Expression = class Named extends Named {}; + +class NestedBase extends (class { + static value = 1; + value = 2; +}) {} + +const nestedStaticValue: number = NestedBase.value; +const nestedInstanceValue: number = new NestedBase().value; + +const SelfReferencingBase = class extends (class { + static self = SelfReferencingBase; +}) {}; + +const selfConstructor = SelfReferencingBase.self; + +function mixin {}>(base: Base) { + return class extends base { + static value = 1; + value = 2; + }; +} + +class Mixed extends mixin(NestedBase) {} + +const mixedStaticValue: number = Mixed.value; +const mixedInstanceValue: number = new Mixed().value; + +declare function makeBase(value: number): typeof NestedBase; +class InvalidBaseArgument extends makeBase("invalid") {} +const InvalidExpressionArgument = class extends makeBase("invalid") {}; + +declare function makeInvalidBase(value: number): number; +class InvalidConstructor extends makeInvalidBase("invalid") {} + +//// [classCircularityDiagnostics.js] +"use strict"; +class Direct extends Direct { + static value = 1; + value = 2; +} +const staticValue = Direct.value; +const instanceValue = new Direct().value; +class First extends Second { +} +class Second extends First { +} +const Expression = class Named extends Named { +}; +class NestedBase extends (class { + static value = 1; + value = 2; +}) { +} +const nestedStaticValue = NestedBase.value; +const nestedInstanceValue = new NestedBase().value; +const SelfReferencingBase = class extends (class { + static self = SelfReferencingBase; +}) { +}; +const selfConstructor = SelfReferencingBase.self; +function mixin(base) { + return class extends base { + static value = 1; + value = 2; + }; +} +class Mixed extends mixin(NestedBase) { +} +const mixedStaticValue = Mixed.value; +const mixedInstanceValue = new Mixed().value; +class InvalidBaseArgument extends makeBase("invalid") { +} +const InvalidExpressionArgument = class extends makeBase("invalid") { +}; +class InvalidConstructor extends makeInvalidBase("invalid") { +} diff --git a/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).symbols b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).symbols new file mode 100644 index 0000000000000..9e892a1edd0ab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).symbols @@ -0,0 +1,134 @@ +//// [tests/cases/compiler/classCircularityDiagnostics.ts] //// + +=== classCircularityDiagnostics.ts === +class Direct extends Direct { +>Direct : Symbol(Direct, Decl(classCircularityDiagnostics.ts, 0, 0)) +>Direct : Symbol(Direct, Decl(classCircularityDiagnostics.ts, 0, 0)) + + static value = 1; +>value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 0, 29)) + + value = 2; +>value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 1, 18)) +} + +const staticValue = Direct.value; +>staticValue : Symbol(staticValue, Decl(classCircularityDiagnostics.ts, 5, 5)) +>Direct.value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 0, 29)) +>Direct : Symbol(Direct, Decl(classCircularityDiagnostics.ts, 0, 0)) +>value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 0, 29)) + +const instanceValue = new Direct().value; +>instanceValue : Symbol(instanceValue, Decl(classCircularityDiagnostics.ts, 6, 5)) +>new Direct().value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 1, 18)) +>Direct : Symbol(Direct, Decl(classCircularityDiagnostics.ts, 0, 0)) +>value : Symbol(Direct.value, Decl(classCircularityDiagnostics.ts, 1, 18)) + +class First extends Second {} +>First : Symbol(First, Decl(classCircularityDiagnostics.ts, 6, 41)) +>Second : Symbol(Second, Decl(classCircularityDiagnostics.ts, 8, 29)) + +class Second extends First {} +>Second : Symbol(Second, Decl(classCircularityDiagnostics.ts, 8, 29)) +>First : Symbol(First, Decl(classCircularityDiagnostics.ts, 6, 41)) + +const Expression = class Named extends Named {}; +>Expression : Symbol(Expression, Decl(classCircularityDiagnostics.ts, 11, 5)) +>Named : Symbol(Named, Decl(classCircularityDiagnostics.ts, 11, 18)) +>Named : Symbol(Named, Decl(classCircularityDiagnostics.ts, 11, 18)) + +class NestedBase extends (class { +>NestedBase : Symbol(NestedBase, Decl(classCircularityDiagnostics.ts, 11, 48)) + + static value = 1; +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 13, 33)) + + value = 2; +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 14, 18)) + +}) {} + +const nestedStaticValue: number = NestedBase.value; +>nestedStaticValue : Symbol(nestedStaticValue, Decl(classCircularityDiagnostics.ts, 18, 5)) +>NestedBase.value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 13, 33)) +>NestedBase : Symbol(NestedBase, Decl(classCircularityDiagnostics.ts, 11, 48)) +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 13, 33)) + +const nestedInstanceValue: number = new NestedBase().value; +>nestedInstanceValue : Symbol(nestedInstanceValue, Decl(classCircularityDiagnostics.ts, 19, 5)) +>new NestedBase().value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 14, 18)) +>NestedBase : Symbol(NestedBase, Decl(classCircularityDiagnostics.ts, 11, 48)) +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 14, 18)) + +const SelfReferencingBase = class extends (class { +>SelfReferencingBase : Symbol(SelfReferencingBase, Decl(classCircularityDiagnostics.ts, 21, 5)) + + static self = SelfReferencingBase; +>self : Symbol((Anonymous class).self, Decl(classCircularityDiagnostics.ts, 21, 50)) +>SelfReferencingBase : Symbol(SelfReferencingBase, Decl(classCircularityDiagnostics.ts, 21, 5)) + +}) {}; + +const selfConstructor = SelfReferencingBase.self; +>selfConstructor : Symbol(selfConstructor, Decl(classCircularityDiagnostics.ts, 25, 5)) +>SelfReferencingBase.self : Symbol((Anonymous class).self, Decl(classCircularityDiagnostics.ts, 21, 50)) +>SelfReferencingBase : Symbol(SelfReferencingBase, Decl(classCircularityDiagnostics.ts, 21, 5)) +>self : Symbol((Anonymous class).self, Decl(classCircularityDiagnostics.ts, 21, 50)) + +function mixin {}>(base: Base) { +>mixin : Symbol(mixin, Decl(classCircularityDiagnostics.ts, 25, 49)) +>Base : Symbol(Base, Decl(classCircularityDiagnostics.ts, 27, 15)) +>args : Symbol(args, Decl(classCircularityDiagnostics.ts, 27, 33)) +>base : Symbol(base, Decl(classCircularityDiagnostics.ts, 27, 56)) +>Base : Symbol(Base, Decl(classCircularityDiagnostics.ts, 27, 15)) + + return class extends base { +>base : Symbol(base, Decl(classCircularityDiagnostics.ts, 27, 56)) + + static value = 1; +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 28, 28)) + + value = 2; +>value : Symbol((Anonymous class).value, Decl(classCircularityDiagnostics.ts, 29, 19)) + + }; +} + +class Mixed extends mixin(NestedBase) {} +>Mixed : Symbol(Mixed, Decl(classCircularityDiagnostics.ts, 32, 1)) +>mixin : Symbol(mixin, Decl(classCircularityDiagnostics.ts, 25, 49)) +>NestedBase : Symbol(NestedBase, Decl(classCircularityDiagnostics.ts, 11, 48)) + +const mixedStaticValue: number = Mixed.value; +>mixedStaticValue : Symbol(mixedStaticValue, Decl(classCircularityDiagnostics.ts, 36, 5)) +>Mixed.value : Symbol(value, Decl(classCircularityDiagnostics.ts, 28, 28), Decl(classCircularityDiagnostics.ts, 13, 33)) +>Mixed : Symbol(Mixed, Decl(classCircularityDiagnostics.ts, 32, 1)) +>value : Symbol(value, Decl(classCircularityDiagnostics.ts, 28, 28), Decl(classCircularityDiagnostics.ts, 13, 33)) + +const mixedInstanceValue: number = new Mixed().value; +>mixedInstanceValue : Symbol(mixedInstanceValue, Decl(classCircularityDiagnostics.ts, 37, 5)) +>new Mixed().value : Symbol(value, Decl(classCircularityDiagnostics.ts, 29, 19), Decl(classCircularityDiagnostics.ts, 14, 18)) +>Mixed : Symbol(Mixed, Decl(classCircularityDiagnostics.ts, 32, 1)) +>value : Symbol(value, Decl(classCircularityDiagnostics.ts, 29, 19), Decl(classCircularityDiagnostics.ts, 14, 18)) + +declare function makeBase(value: number): typeof NestedBase; +>makeBase : Symbol(makeBase, Decl(classCircularityDiagnostics.ts, 37, 53)) +>value : Symbol(value, Decl(classCircularityDiagnostics.ts, 39, 26)) +>NestedBase : Symbol(NestedBase, Decl(classCircularityDiagnostics.ts, 11, 48)) + +class InvalidBaseArgument extends makeBase("invalid") {} +>InvalidBaseArgument : Symbol(InvalidBaseArgument, Decl(classCircularityDiagnostics.ts, 39, 60)) +>makeBase : Symbol(makeBase, Decl(classCircularityDiagnostics.ts, 37, 53)) + +const InvalidExpressionArgument = class extends makeBase("invalid") {}; +>InvalidExpressionArgument : Symbol(InvalidExpressionArgument, Decl(classCircularityDiagnostics.ts, 41, 5)) +>makeBase : Symbol(makeBase, Decl(classCircularityDiagnostics.ts, 37, 53)) + +declare function makeInvalidBase(value: number): number; +>makeInvalidBase : Symbol(makeInvalidBase, Decl(classCircularityDiagnostics.ts, 41, 71)) +>value : Symbol(value, Decl(classCircularityDiagnostics.ts, 43, 33)) + +class InvalidConstructor extends makeInvalidBase("invalid") {} +>InvalidConstructor : Symbol(InvalidConstructor, Decl(classCircularityDiagnostics.ts, 43, 56)) +>makeInvalidBase : Symbol(makeInvalidBase, Decl(classCircularityDiagnostics.ts, 41, 71)) + diff --git a/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).types b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).types new file mode 100644 index 0000000000000..0b46eec400402 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/classCircularityDiagnostics(noimplicitany=true).types @@ -0,0 +1,156 @@ +//// [tests/cases/compiler/classCircularityDiagnostics.ts] //// + +=== classCircularityDiagnostics.ts === +class Direct extends Direct { +>Direct : Direct +>Direct : typeof Direct + + static value = 1; +>value : number +>1 : 1 + + value = 2; +>value : number +>2 : 2 +} + +const staticValue = Direct.value; +>staticValue : number +>Direct.value : number +>Direct : typeof Direct +>value : number + +const instanceValue = new Direct().value; +>instanceValue : number +>new Direct().value : number +>new Direct() : Direct +>Direct : typeof Direct +>value : number + +class First extends Second {} +>First : First +>Second : typeof Second + +class Second extends First {} +>Second : Second +>First : typeof First + +const Expression = class Named extends Named {}; +>Expression : typeof Named +>class Named extends Named {} : typeof Named +>Named : typeof Named +>Named : typeof Named + +class NestedBase extends (class { +>NestedBase : NestedBase +>(class { static value = 1; value = 2;}) : (Anonymous class) +>class { static value = 1; value = 2;} : typeof (Anonymous class) + + static value = 1; +>value : number +>1 : 1 + + value = 2; +>value : number +>2 : 2 + +}) {} + +const nestedStaticValue: number = NestedBase.value; +>nestedStaticValue : number +>NestedBase.value : number +>NestedBase : typeof NestedBase +>value : number + +const nestedInstanceValue: number = new NestedBase().value; +>nestedInstanceValue : number +>new NestedBase().value : number +>new NestedBase() : NestedBase +>NestedBase : typeof NestedBase +>value : number + +const SelfReferencingBase = class extends (class { +>SelfReferencingBase : typeof SelfReferencingBase +>class extends (class { static self = SelfReferencingBase;}) {} : typeof SelfReferencingBase +>(class { static self = SelfReferencingBase;}) : (Anonymous class) +>class { static self = SelfReferencingBase;} : typeof (Anonymous class) + + static self = SelfReferencingBase; +>self : typeof SelfReferencingBase +>SelfReferencingBase : typeof SelfReferencingBase + +}) {}; + +const selfConstructor = SelfReferencingBase.self; +>selfConstructor : typeof SelfReferencingBase +>SelfReferencingBase.self : typeof SelfReferencingBase +>SelfReferencingBase : typeof SelfReferencingBase +>self : typeof SelfReferencingBase + +function mixin {}>(base: Base) { +>mixin : {}>(base: Base) => { new (...args: any[]): (Anonymous class); value: number; prototype: mixin.(Anonymous class); } & Base +>args : any[] +>base : Base + + return class extends base { +>class extends base { static value = 1; value = 2; } : { new (...args: any[]): (Anonymous class); value: number; prototype: mixin.(Anonymous class); } & Base +>base : {} + + static value = 1; +>value : number +>1 : 1 + + value = 2; +>value : number +>2 : 2 + + }; +} + +class Mixed extends mixin(NestedBase) {} +>Mixed : Mixed +>mixin(NestedBase) : mixin.(Anonymous class) & NestedBase +>mixin : {}>(base: Base) => { new (...args: any[]): (Anonymous class); value: number; prototype: mixin.(Anonymous class); } & Base +>NestedBase : typeof NestedBase + +const mixedStaticValue: number = Mixed.value; +>mixedStaticValue : number +>Mixed.value : number +>Mixed : typeof Mixed +>value : number + +const mixedInstanceValue: number = new Mixed().value; +>mixedInstanceValue : number +>new Mixed().value : number +>new Mixed() : Mixed +>Mixed : typeof Mixed +>value : number + +declare function makeBase(value: number): typeof NestedBase; +>makeBase : (value: number) => typeof NestedBase +>value : number +>NestedBase : typeof NestedBase + +class InvalidBaseArgument extends makeBase("invalid") {} +>InvalidBaseArgument : InvalidBaseArgument +>makeBase("invalid") : NestedBase +>makeBase : (value: number) => typeof NestedBase +>"invalid" : "invalid" + +const InvalidExpressionArgument = class extends makeBase("invalid") {}; +>InvalidExpressionArgument : typeof InvalidExpressionArgument +>class extends makeBase("invalid") {} : typeof InvalidExpressionArgument +>makeBase("invalid") : NestedBase +>makeBase : (value: number) => typeof NestedBase +>"invalid" : "invalid" + +declare function makeInvalidBase(value: number): number; +>makeInvalidBase : (value: number) => number +>value : number + +class InvalidConstructor extends makeInvalidBase("invalid") {} +>InvalidConstructor : InvalidConstructor +>makeInvalidBase("invalid") : number +>makeInvalidBase : (value: number) => number +>"invalid" : "invalid" + diff --git a/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..a61c1f0f60680 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=default).symbols @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/clonedTypeParameterUnionOrder.ts] //// + +=== a.ts === +interface Pair { a: A; b: B } +>Pair : Symbol(Pair, Decl(a.ts, 0, 0)) +>A : Symbol(A, Decl(a.ts, 0, 15)) +>B : Symbol(B, Decl(a.ts, 0, 17)) +>a : Symbol(Pair.a, Decl(a.ts, 0, 22)) +>A : Symbol(A, Decl(a.ts, 0, 15)) +>b : Symbol(Pair.b, Decl(a.ts, 0, 28)) +>B : Symbol(B, Decl(a.ts, 0, 17)) + +interface Box { m(x: T): Pair } +>Box : Symbol(Box, Decl(a.ts, 0, 35)) +>U : Symbol(U, Decl(a.ts, 1, 14)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>T : Symbol(T, Decl(a.ts, 1, 21)) +>x : Symbol(x, Decl(a.ts, 1, 24)) +>T : Symbol(T, Decl(a.ts, 1, 21)) +>Pair : Symbol(Pair, Decl(a.ts, 0, 0)) +>T : Symbol(T, Decl(a.ts, 1, 21)) +>U : Symbol(U, Decl(a.ts, 1, 14)) + +declare function call(f: (x: A) => R): (x: A) => R; +>call : Symbol(call, Decl(a.ts, 1, 43)) +>A : Symbol(A, Decl(a.ts, 2, 22)) +>R : Symbol(R, Decl(a.ts, 2, 24)) +>f : Symbol(f, Decl(a.ts, 2, 28)) +>x : Symbol(x, Decl(a.ts, 2, 32)) +>A : Symbol(A, Decl(a.ts, 2, 22)) +>R : Symbol(R, Decl(a.ts, 2, 24)) +>x : Symbol(x, Decl(a.ts, 2, 46)) +>A : Symbol(A, Decl(a.ts, 2, 22)) +>R : Symbol(R, Decl(a.ts, 2, 24)) + +declare const bs: Box; +>bs : Symbol(bs, Decl(a.ts, 3, 13)) +>Box : Symbol(Box, Decl(a.ts, 0, 35)) + +declare const bn: Box; +>bn : Symbol(bn, Decl(a.ts, 4, 13)) +>Box : Symbol(Box, Decl(a.ts, 0, 35)) + +const n = call(bn.m); +>n : Symbol(n, Decl(a.ts, 5, 5)) +>call : Symbol(call, Decl(a.ts, 1, 43)) +>bn.m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>bn : Symbol(bn, Decl(a.ts, 4, 13)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) + +=== b.ts === +declare const c: boolean; +>c : Symbol(c, Decl(b.ts, 0, 13)) + +const r = c ? call(bs.m) : call(bn.m); +>r : Symbol(r, Decl(b.ts, 1, 5)) +>c : Symbol(c, Decl(b.ts, 0, 13)) +>call : Symbol(call, Decl(a.ts, 1, 43)) +>bs.m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>bs : Symbol(bs, Decl(a.ts, 3, 13)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>call : Symbol(call, Decl(a.ts, 1, 43)) +>bn.m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>bn : Symbol(bn, Decl(a.ts, 4, 13)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) + diff --git a/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=default).types new file mode 100644 index 0000000000000..487cdba50bc87 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=default).types @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/clonedTypeParameterUnionOrder.ts] //// + +=== a.ts === +interface Pair { a: A; b: B } +>a : A +>b : B + +interface Box { m(x: T): Pair } +>m : (x: T) => Pair +>x : T + +declare function call(f: (x: A) => R): (x: A) => R; +>call : (f: (x: A) => R) => (x: A) => R +>f : (x: A) => R +>x : A +>x : A + +declare const bs: Box; +>bs : Box + +declare const bn: Box; +>bn : Box + +const n = call(bn.m); +>n : (x: T) => Pair +>call(bn.m) : (x: T) => Pair +>call : (f: (x: A) => R) => (x: A) => R +>bn.m : (x: T) => Pair +>bn : Box +>m : (x: T) => Pair + +=== b.ts === +declare const c: boolean; +>c : boolean + +const r = c ? call(bs.m) : call(bn.m); +>r : ((x: T) => Pair) | ((x: T) => Pair) +>c ? call(bs.m) : call(bn.m) : ((x: T) => Pair) | ((x: T) => Pair) +>c : boolean +>call(bs.m) : (x: T) => Pair +>call : (f: (x: A) => R) => (x: A) => R +>bs.m : (x: T) => Pair +>bs : Box +>m : (x: T) => Pair +>call(bn.m) : (x: T) => Pair +>call : (f: (x: A) => R) => (x: A) => R +>bn.m : (x: T) => Pair +>bn : Box +>m : (x: T) => Pair + diff --git a/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=reverse).symbols new file mode 100644 index 0000000000000..a61c1f0f60680 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=reverse).symbols @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/clonedTypeParameterUnionOrder.ts] //// + +=== a.ts === +interface Pair { a: A; b: B } +>Pair : Symbol(Pair, Decl(a.ts, 0, 0)) +>A : Symbol(A, Decl(a.ts, 0, 15)) +>B : Symbol(B, Decl(a.ts, 0, 17)) +>a : Symbol(Pair.a, Decl(a.ts, 0, 22)) +>A : Symbol(A, Decl(a.ts, 0, 15)) +>b : Symbol(Pair.b, Decl(a.ts, 0, 28)) +>B : Symbol(B, Decl(a.ts, 0, 17)) + +interface Box { m(x: T): Pair } +>Box : Symbol(Box, Decl(a.ts, 0, 35)) +>U : Symbol(U, Decl(a.ts, 1, 14)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>T : Symbol(T, Decl(a.ts, 1, 21)) +>x : Symbol(x, Decl(a.ts, 1, 24)) +>T : Symbol(T, Decl(a.ts, 1, 21)) +>Pair : Symbol(Pair, Decl(a.ts, 0, 0)) +>T : Symbol(T, Decl(a.ts, 1, 21)) +>U : Symbol(U, Decl(a.ts, 1, 14)) + +declare function call(f: (x: A) => R): (x: A) => R; +>call : Symbol(call, Decl(a.ts, 1, 43)) +>A : Symbol(A, Decl(a.ts, 2, 22)) +>R : Symbol(R, Decl(a.ts, 2, 24)) +>f : Symbol(f, Decl(a.ts, 2, 28)) +>x : Symbol(x, Decl(a.ts, 2, 32)) +>A : Symbol(A, Decl(a.ts, 2, 22)) +>R : Symbol(R, Decl(a.ts, 2, 24)) +>x : Symbol(x, Decl(a.ts, 2, 46)) +>A : Symbol(A, Decl(a.ts, 2, 22)) +>R : Symbol(R, Decl(a.ts, 2, 24)) + +declare const bs: Box; +>bs : Symbol(bs, Decl(a.ts, 3, 13)) +>Box : Symbol(Box, Decl(a.ts, 0, 35)) + +declare const bn: Box; +>bn : Symbol(bn, Decl(a.ts, 4, 13)) +>Box : Symbol(Box, Decl(a.ts, 0, 35)) + +const n = call(bn.m); +>n : Symbol(n, Decl(a.ts, 5, 5)) +>call : Symbol(call, Decl(a.ts, 1, 43)) +>bn.m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>bn : Symbol(bn, Decl(a.ts, 4, 13)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) + +=== b.ts === +declare const c: boolean; +>c : Symbol(c, Decl(b.ts, 0, 13)) + +const r = c ? call(bs.m) : call(bn.m); +>r : Symbol(r, Decl(b.ts, 1, 5)) +>c : Symbol(c, Decl(b.ts, 0, 13)) +>call : Symbol(call, Decl(a.ts, 1, 43)) +>bs.m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>bs : Symbol(bs, Decl(a.ts, 3, 13)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>call : Symbol(call, Decl(a.ts, 1, 43)) +>bn.m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>bn : Symbol(bn, Decl(a.ts, 4, 13)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) + diff --git a/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=reverse).types new file mode 100644 index 0000000000000..8b93c5f3f8987 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=reverse).types @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/clonedTypeParameterUnionOrder.ts] //// + +=== a.ts === +interface Pair { a: A; b: B } +>a : A +>b : B + +interface Box { m(x: T): Pair } +>m : (x: T) => Pair +>x : T + +declare function call(f: (x: A) => R): (x: A) => R; +>call : (f: (x: A) => R) => (x: A) => R +>f : (x: A) => R +>x : A +>x : A + +declare const bs: Box; +>bs : Box + +declare const bn: Box; +>bn : Box + +const n = call(bn.m); +>n : (x: T) => Pair +>call(bn.m) : (x: T) => Pair +>call : (f: (x: A) => R) => (x: A) => R +>bn.m : (x: T) => Pair +>bn : Box +>m : (x: T) => Pair + +=== b.ts === +declare const c: boolean; +>c : boolean + +const r = c ? call(bs.m) : call(bn.m); +>r : ((x: T) => Pair) | ((x: T) => Pair) +>c ? call(bs.m) : call(bn.m) : ((x: T) => Pair) | ((x: T) => Pair) +>c : boolean +>call(bs.m) : (x: T) => Pair +>call : (f: (x: A) => R) => (x: A) => R +>bs.m : (x: T) => Pair +>bs : Box +>m : (x: T) => Pair +>call(bn.m) : (x: T) => Pair +>call : (f: (x: A) => R) => (x: A) => R +>bn.m : (x: T) => Pair +>bn : Box +>m : (x: T) => Pair + diff --git a/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..a61c1f0f60680 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=typesfirst).symbols @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/clonedTypeParameterUnionOrder.ts] //// + +=== a.ts === +interface Pair { a: A; b: B } +>Pair : Symbol(Pair, Decl(a.ts, 0, 0)) +>A : Symbol(A, Decl(a.ts, 0, 15)) +>B : Symbol(B, Decl(a.ts, 0, 17)) +>a : Symbol(Pair.a, Decl(a.ts, 0, 22)) +>A : Symbol(A, Decl(a.ts, 0, 15)) +>b : Symbol(Pair.b, Decl(a.ts, 0, 28)) +>B : Symbol(B, Decl(a.ts, 0, 17)) + +interface Box { m(x: T): Pair } +>Box : Symbol(Box, Decl(a.ts, 0, 35)) +>U : Symbol(U, Decl(a.ts, 1, 14)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>T : Symbol(T, Decl(a.ts, 1, 21)) +>x : Symbol(x, Decl(a.ts, 1, 24)) +>T : Symbol(T, Decl(a.ts, 1, 21)) +>Pair : Symbol(Pair, Decl(a.ts, 0, 0)) +>T : Symbol(T, Decl(a.ts, 1, 21)) +>U : Symbol(U, Decl(a.ts, 1, 14)) + +declare function call(f: (x: A) => R): (x: A) => R; +>call : Symbol(call, Decl(a.ts, 1, 43)) +>A : Symbol(A, Decl(a.ts, 2, 22)) +>R : Symbol(R, Decl(a.ts, 2, 24)) +>f : Symbol(f, Decl(a.ts, 2, 28)) +>x : Symbol(x, Decl(a.ts, 2, 32)) +>A : Symbol(A, Decl(a.ts, 2, 22)) +>R : Symbol(R, Decl(a.ts, 2, 24)) +>x : Symbol(x, Decl(a.ts, 2, 46)) +>A : Symbol(A, Decl(a.ts, 2, 22)) +>R : Symbol(R, Decl(a.ts, 2, 24)) + +declare const bs: Box; +>bs : Symbol(bs, Decl(a.ts, 3, 13)) +>Box : Symbol(Box, Decl(a.ts, 0, 35)) + +declare const bn: Box; +>bn : Symbol(bn, Decl(a.ts, 4, 13)) +>Box : Symbol(Box, Decl(a.ts, 0, 35)) + +const n = call(bn.m); +>n : Symbol(n, Decl(a.ts, 5, 5)) +>call : Symbol(call, Decl(a.ts, 1, 43)) +>bn.m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>bn : Symbol(bn, Decl(a.ts, 4, 13)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) + +=== b.ts === +declare const c: boolean; +>c : Symbol(c, Decl(b.ts, 0, 13)) + +const r = c ? call(bs.m) : call(bn.m); +>r : Symbol(r, Decl(b.ts, 1, 5)) +>c : Symbol(c, Decl(b.ts, 0, 13)) +>call : Symbol(call, Decl(a.ts, 1, 43)) +>bs.m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>bs : Symbol(bs, Decl(a.ts, 3, 13)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>call : Symbol(call, Decl(a.ts, 1, 43)) +>bn.m : Symbol(Box.m, Decl(a.ts, 1, 18)) +>bn : Symbol(bn, Decl(a.ts, 4, 13)) +>m : Symbol(Box.m, Decl(a.ts, 1, 18)) + diff --git a/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..487cdba50bc87 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/clonedTypeParameterUnionOrder(checkorder=typesfirst).types @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/clonedTypeParameterUnionOrder.ts] //// + +=== a.ts === +interface Pair { a: A; b: B } +>a : A +>b : B + +interface Box { m(x: T): Pair } +>m : (x: T) => Pair +>x : T + +declare function call(f: (x: A) => R): (x: A) => R; +>call : (f: (x: A) => R) => (x: A) => R +>f : (x: A) => R +>x : A +>x : A + +declare const bs: Box; +>bs : Box + +declare const bn: Box; +>bn : Box + +const n = call(bn.m); +>n : (x: T) => Pair +>call(bn.m) : (x: T) => Pair +>call : (f: (x: A) => R) => (x: A) => R +>bn.m : (x: T) => Pair +>bn : Box +>m : (x: T) => Pair + +=== b.ts === +declare const c: boolean; +>c : boolean + +const r = c ? call(bs.m) : call(bn.m); +>r : ((x: T) => Pair) | ((x: T) => Pair) +>c ? call(bs.m) : call(bn.m) : ((x: T) => Pair) | ((x: T) => Pair) +>c : boolean +>call(bs.m) : (x: T) => Pair +>call : (f: (x: A) => R) => (x: A) => R +>bs.m : (x: T) => Pair +>bs : Box +>m : (x: T) => Pair +>call(bn.m) : (x: T) => Pair +>call : (f: (x: A) => R) => (x: A) => R +>bn.m : (x: T) => Pair +>bn : Box +>m : (x: T) => Pair + diff --git a/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..cbd22ad10c410 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=default).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/constAssertionBindingPatternQueryOrder.ts] //// + +=== constAssertionBindingPatternQueryOrder.ts === +declare function settle(fn: () => T): Promise<{ [K in keyof T]: [Awaited] }>; +>settle : Symbol(settle, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 0)) +>T : Symbol(T, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 24)) +>fn : Symbol(fn, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 54)) +>T : Symbol(T, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 24)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>K : Symbol(K, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 79)) +>T : Symbol(T, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 24)) +>Awaited : Symbol(Awaited, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 24)) +>K : Symbol(K, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 79)) + +async function f() { +>f : Symbol(f, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 113)) + + const [[a], b] = await settle(() => [Promise.resolve(0), Promise.reject(1)] as const); +>a : Symbol(a, Decl(constAssertionBindingPatternQueryOrder.ts, 3, 10)) +>b : Symbol(b, Decl(constAssertionBindingPatternQueryOrder.ts, 3, 13)) +>settle : Symbol(settle, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 0)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) +>const : Symbol(const) +} + diff --git a/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=default).types new file mode 100644 index 0000000000000..d263c604b0052 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=default).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/constAssertionBindingPatternQueryOrder.ts] //// + +=== constAssertionBindingPatternQueryOrder.ts === +declare function settle(fn: () => T): Promise<{ [K in keyof T]: [Awaited] }>; +>settle : (fn: () => T) => Promise<{ [K in keyof T]: [Awaited]; }> +>fn : () => T + +async function f() { +>f : () => Promise + + const [[a], b] = await settle(() => [Promise.resolve(0), Promise.reject(1)] as const); +>a : number +>b : [never] +>await settle(() => [Promise.resolve(0), Promise.reject(1)] as const) : [[number], [never]] +>settle(() => [Promise.resolve(0), Promise.reject(1)] as const) : Promise<[[number], [never]]> +>settle : (fn: () => T) => Promise<{ [K in keyof T]: [Awaited]; }> +>() => [Promise.resolve(0), Promise.reject(1)] as const : () => [Promise, Promise] +>[Promise.resolve(0), Promise.reject(1)] as const : [Promise, Promise] +>[Promise.resolve(0), Promise.reject(1)] : [Promise, Promise] +>Promise.resolve(0) : Promise +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>Promise : PromiseConstructor +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>0 : 0 +>Promise.reject(1) : Promise +>Promise.reject : (reason?: any) => Promise +>Promise : PromiseConstructor +>reject : (reason?: any) => Promise +>1 : 1 +} + diff --git a/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..cbd22ad10c410 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=typesfirst).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/constAssertionBindingPatternQueryOrder.ts] //// + +=== constAssertionBindingPatternQueryOrder.ts === +declare function settle(fn: () => T): Promise<{ [K in keyof T]: [Awaited] }>; +>settle : Symbol(settle, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 0)) +>T : Symbol(T, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 24)) +>fn : Symbol(fn, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 54)) +>T : Symbol(T, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 24)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>K : Symbol(K, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 79)) +>T : Symbol(T, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 24)) +>Awaited : Symbol(Awaited, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 24)) +>K : Symbol(K, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 79)) + +async function f() { +>f : Symbol(f, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 113)) + + const [[a], b] = await settle(() => [Promise.resolve(0), Promise.reject(1)] as const); +>a : Symbol(a, Decl(constAssertionBindingPatternQueryOrder.ts, 3, 10)) +>b : Symbol(b, Decl(constAssertionBindingPatternQueryOrder.ts, 3, 13)) +>settle : Symbol(settle, Decl(constAssertionBindingPatternQueryOrder.ts, 0, 0)) +>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) +>Promise.reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) +>const : Symbol(const) +} + diff --git a/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..d263c604b0052 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/constAssertionBindingPatternQueryOrder(checkorder=typesfirst).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/constAssertionBindingPatternQueryOrder.ts] //// + +=== constAssertionBindingPatternQueryOrder.ts === +declare function settle(fn: () => T): Promise<{ [K in keyof T]: [Awaited] }>; +>settle : (fn: () => T) => Promise<{ [K in keyof T]: [Awaited]; }> +>fn : () => T + +async function f() { +>f : () => Promise + + const [[a], b] = await settle(() => [Promise.resolve(0), Promise.reject(1)] as const); +>a : number +>b : [never] +>await settle(() => [Promise.resolve(0), Promise.reject(1)] as const) : [[number], [never]] +>settle(() => [Promise.resolve(0), Promise.reject(1)] as const) : Promise<[[number], [never]]> +>settle : (fn: () => T) => Promise<{ [K in keyof T]: [Awaited]; }> +>() => [Promise.resolve(0), Promise.reject(1)] as const : () => [Promise, Promise] +>[Promise.resolve(0), Promise.reject(1)] as const : [Promise, Promise] +>[Promise.resolve(0), Promise.reject(1)] : [Promise, Promise] +>Promise.resolve(0) : Promise +>Promise.resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>Promise : PromiseConstructor +>resolve : { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; } +>0 : 0 +>Promise.reject(1) : Promise +>Promise.reject : (reason?: any) => Promise +>Promise : PromiseConstructor +>reject : (reason?: any) => Promise +>1 : 1 +} + diff --git a/tsc/testdata/baselines/reference/compiler/contextualCheckReentryFromOuterTypeParameters.symbols b/tsc/testdata/baselines/reference/compiler/contextualCheckReentryFromOuterTypeParameters.symbols new file mode 100644 index 0000000000000..88f761461324a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualCheckReentryFromOuterTypeParameters.symbols @@ -0,0 +1,81 @@ +//// [tests/cases/compiler/contextualCheckReentryFromOuterTypeParameters.ts] //// + +=== contextualCheckReentryFromOuterTypeParameters.ts === +interface Argv { +>Argv : Symbol(Argv, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 0)) +>T : Symbol(T, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 15)) + + command(builder: (args: Argv) => Argv, handler: (args: Arguments) => void): Argv; +>command : Symbol(Argv.command, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 24)) +>U : Symbol(U, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 1, 12)) +>builder : Symbol(builder, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 1, 15)) +>args : Symbol(args, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 1, 25)) +>Argv : Symbol(Argv, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 0)) +>T : Symbol(T, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 15)) +>Argv : Symbol(Argv, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 0)) +>U : Symbol(U, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 1, 12)) +>handler : Symbol(handler, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 1, 51)) +>args : Symbol(args, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 1, 62)) +>Arguments : Symbol(Arguments, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 3, 1)) +>U : Symbol(U, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 1, 12)) +>Argv : Symbol(Argv, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 0)) +>T : Symbol(T, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 15)) + + option(key: K, options: O): Argv<{ [key in K]: O } & Check>; +>option : Symbol(Argv.option, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 1, 100)) +>K : Symbol(K, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 2, 11)) +>O : Symbol(O, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 2, 28)) +>key : Symbol(key, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 2, 32)) +>K : Symbol(K, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 2, 11)) +>options : Symbol(options, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 2, 39)) +>O : Symbol(O, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 2, 28)) +>Argv : Symbol(Argv, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 0)) +>key : Symbol(key, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 2, 61)) +>K : Symbol(K, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 2, 11)) +>O : Symbol(O, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 2, 28)) +>Check : Symbol(Check, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 4, 78)) +>O : Symbol(O, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 2, 28)) +} +type Arguments = { [key in keyof T]: T[key] } & { [key: string]: unknown }; +>Arguments : Symbol(Arguments, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 3, 1)) +>T : Symbol(T, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 4, 15)) +>key : Symbol(key, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 4, 23)) +>T : Symbol(T, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 4, 15)) +>T : Symbol(T, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 4, 15)) +>key : Symbol(key, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 4, 23)) +>key : Symbol(key, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 4, 54)) + +type Check = O extends {} ? {} : {}; +>Check : Symbol(Check, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 4, 78)) +>O : Symbol(O, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 5, 11)) +>O : Symbol(O, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 5, 11)) + +declare const yargs: Argv; +>yargs : Symbol(yargs, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 6, 13)) +>Argv : Symbol(Argv, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 0)) + +yargs.command( +>yargs.command : Symbol(Argv.command, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 24)) +>yargs : Symbol(yargs, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 6, 13)) +>command : Symbol(Argv.command, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 0, 24)) + + (yargs) => yargs.option("a", { type: "string" }), +>yargs : Symbol(yargs, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 9, 5)) +>yargs.option : Symbol(Argv.option, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 1, 100)) +>yargs : Symbol(yargs, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 9, 5)) +>option : Symbol(Argv.option, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 1, 100)) +>type : Symbol(type, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 9, 34)) + + (argv) => { +>argv : Symbol(argv, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 10, 5)) + + const a: { type: string } = argv.a; +>a : Symbol(a, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 11, 13)) +>type : Symbol(type, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 11, 18)) +>argv.a : Symbol(a) +>argv : Symbol(argv, Decl(contextualCheckReentryFromOuterTypeParameters.ts, 10, 5)) +>a : Symbol(a) + + }, +); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualCheckReentryFromOuterTypeParameters.types b/tsc/testdata/baselines/reference/compiler/contextualCheckReentryFromOuterTypeParameters.types new file mode 100644 index 0000000000000..bd12f97face3b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualCheckReentryFromOuterTypeParameters.types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/contextualCheckReentryFromOuterTypeParameters.ts] //// + +=== contextualCheckReentryFromOuterTypeParameters.ts === +interface Argv { + command(builder: (args: Argv) => Argv, handler: (args: Arguments) => void): Argv; +>command : (builder: (args: Argv) => Argv, handler: (args: Arguments) => void) => Argv +>builder : (args: Argv) => Argv +>args : Argv +>handler : (args: Arguments) => void +>args : Arguments + + option(key: K, options: O): Argv<{ [key in K]: O } & Check>; +>option : (key: K, options: O) => Argv<{ [key in K]: O; } & Check> +>key : K +>options : O +} +type Arguments = { [key in keyof T]: T[key] } & { [key: string]: unknown }; +>Arguments : Arguments +>key : string + +type Check = O extends {} ? {} : {}; +>Check : Check + +declare const yargs: Argv; +>yargs : Argv<{}> + +yargs.command( +>yargs.command( (yargs) => yargs.option("a", { type: "string" }), (argv) => { const a: { type: string } = argv.a; },) : Argv<{}> +>yargs.command : (builder: (args: Argv<{}>) => Argv, handler: (args: Arguments) => void) => Argv<{}> +>yargs : Argv<{}> +>command : (builder: (args: Argv<{}>) => Argv, handler: (args: Arguments) => void) => Argv<{}> + + (yargs) => yargs.option("a", { type: "string" }), +>(yargs) => yargs.option("a", { type: "string" }) : (yargs: Argv<{}>) => Argv<{ a: { type: string; }; }> +>yargs : Argv<{}> +>yargs.option("a", { type: "string" }) : Argv<{ a: { type: string; }; }> +>yargs.option : (key: K, options: O) => Argv<{ [key in K]: O; } & Check> +>yargs : Argv<{}> +>option : (key: K, options: O) => Argv<{ [key in K]: O; } & Check> +>"a" : "a" +>{ type: "string" } : { type: string; } +>type : string +>"string" : "string" + + (argv) => { +>(argv) => { const a: { type: string } = argv.a; } : (argv: Arguments<{ a: { type: string; }; }>) => void +>argv : Arguments<{ a: { type: string; }; }> + + const a: { type: string } = argv.a; +>a : { type: string; } +>type : string +>argv.a : { type: string; } +>argv : Arguments<{ a: { type: string; }; }> +>a : { type: string; } + + }, +); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=default).symbols new file mode 100644 index 0000000000000..3fe6805b944a0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=default).symbols @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/contextualOuterTypeParameters.ts] //// + +=== contextualOuterTypeParameters.ts === +// https://github.com/microsoft/TypeScript/issues/59450 + +declare function f(fun: (t: T) => void): void +>f : Symbol(f, Decl(contextualOuterTypeParameters.ts, 0, 0)) +>fun : Symbol(fun, Decl(contextualOuterTypeParameters.ts, 2, 19)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 2, 25)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 2, 28)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 2, 25)) + +f(t => { +>f : Symbol(f, Decl(contextualOuterTypeParameters.ts, 0, 0)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 4, 2)) + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : Symbol(isArray, Decl(contextualOuterTypeParameters.ts, 4, 8)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 4, 2)) + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : Symbol(IsObject, Decl(contextualOuterTypeParameters.ts, 5, 64)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 6, 21)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 4, 2)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 6, 45)) + +}); + +const fn1: (x: T) => void = t => { +>fn1 : Symbol(fn1, Decl(contextualOuterTypeParameters.ts, 9, 5)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 9, 12)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 9, 15)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 9, 12)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 9, 30)) + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : Symbol(isArray, Decl(contextualOuterTypeParameters.ts, 9, 37)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 9, 30)) + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : Symbol(IsObject, Decl(contextualOuterTypeParameters.ts, 10, 64)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 11, 21)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 9, 30)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 11, 45)) + +}; + +const fn2: (x: T) => void = function test(t) { +>fn2 : Symbol(fn2, Decl(contextualOuterTypeParameters.ts, 14, 5)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 14, 12)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 14, 15)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 14, 12)) +>test : Symbol(test, Decl(contextualOuterTypeParameters.ts, 14, 30)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 14, 45)) + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : Symbol(isArray, Decl(contextualOuterTypeParameters.ts, 14, 49)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 14, 45)) + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : Symbol(IsObject, Decl(contextualOuterTypeParameters.ts, 15, 64)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 16, 21)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 14, 45)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 16, 45)) + +}; + +const obj: { f: (x: T) => void } = { +>obj : Symbol(obj, Decl(contextualOuterTypeParameters.ts, 19, 5)) +>f : Symbol(f, Decl(contextualOuterTypeParameters.ts, 19, 12)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 19, 17)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 19, 20)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 19, 17)) + + f(t) { +>f : Symbol(f, Decl(contextualOuterTypeParameters.ts, 19, 39)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 20, 6)) + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : Symbol(isArray, Decl(contextualOuterTypeParameters.ts, 20, 10)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 20, 6)) + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : Symbol(IsObject, Decl(contextualOuterTypeParameters.ts, 21, 68)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 22, 25)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 20, 6)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 22, 49)) + } +}; + +f(function self(t) { +>f : Symbol(f, Decl(contextualOuterTypeParameters.ts, 0, 0)) +>self : Symbol(self, Decl(contextualOuterTypeParameters.ts, 26, 2)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 26, 16)) + + const s = self; +>s : Symbol(s, Decl(contextualOuterTypeParameters.ts, 27, 9)) +>self : Symbol(self, Decl(contextualOuterTypeParameters.ts, 26, 2)) + + type P = Parameters; +>P : Symbol(P, Decl(contextualOuterTypeParameters.ts, 27, 19)) +>Parameters : Symbol(Parameters, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(contextualOuterTypeParameters.ts, 27, 9)) + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=default).types new file mode 100644 index 0000000000000..3be38bfec4e31 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=default).types @@ -0,0 +1,120 @@ +//// [tests/cases/compiler/contextualOuterTypeParameters.ts] //// + +=== contextualOuterTypeParameters.ts === +// https://github.com/microsoft/TypeScript/issues/59450 + +declare function f(fun: (t: T) => void): void +>f : (fun: (t: T) => void) => void +>fun : (t: T) => void +>t : T + +f(t => { +>f(t => { type isArray = (typeof t)[] extends string[] ? true : false; type IsObject = { x: typeof t } extends { x: string } ? true : false;}) : void +>f : (fun: (t: T) => void) => void +>t => { type isArray = (typeof t)[] extends string[] ? true : false; type IsObject = { x: typeof t } extends { x: string } ? true : false;} : (t: T) => void +>t : T + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : T[] extends string[] ? true : false +>t : T +>true : true +>false : false + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : { x: typeof t; } extends { x: string; } ? true : false +>x : T +>t : T +>x : string +>true : true +>false : false + +}); + +const fn1: (x: T) => void = t => { +>fn1 : (x: T) => void +>x : T +>t => { type isArray = (typeof t)[] extends string[] ? true : false; type IsObject = { x: typeof t } extends { x: string } ? true : false;} : (t: T) => void +>t : T + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : T[] extends string[] ? true : false +>t : T +>true : true +>false : false + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : { x: typeof t; } extends { x: string; } ? true : false +>x : T +>t : T +>x : string +>true : true +>false : false + +}; + +const fn2: (x: T) => void = function test(t) { +>fn2 : (x: T) => void +>x : T +>function test(t) { type isArray = (typeof t)[] extends string[] ? true : false; type IsObject = { x: typeof t } extends { x: string } ? true : false;} : (t: T) => void +>test : (t: T) => void +>t : T + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : T[] extends string[] ? true : false +>t : T +>true : true +>false : false + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : { x: typeof t; } extends { x: string; } ? true : false +>x : T +>t : T +>x : string +>true : true +>false : false + +}; + +const obj: { f: (x: T) => void } = { +>obj : { f: (x: T) => void; } +>f : (x: T) => void +>x : T +>{ f(t) { type isArray = (typeof t)[] extends string[] ? true : false; type IsObject = { x: typeof t } extends { x: string } ? true : false; }} : { f(t: T): void; } + + f(t) { +>f : (t: T) => void +>t : T + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : T[] extends string[] ? true : false +>t : T +>true : true +>false : false + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : { x: typeof t; } extends { x: string; } ? true : false +>x : T +>t : T +>x : string +>true : true +>false : false + } +}; + +f(function self(t) { +>f(function self(t) { const s = self; type P = Parameters;}) : void +>f : (fun: (t: T) => void) => void +>function self(t) { const s = self; type P = Parameters;} : (t: T) => void +>self : (t: T) => void +>t : T + + const s = self; +>s : (t: T) => void +>self : (t: T) => void + + type P = Parameters; +>P : [t: unknown] +>s : (t: T) => void + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..3fe6805b944a0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=typesfirst).symbols @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/contextualOuterTypeParameters.ts] //// + +=== contextualOuterTypeParameters.ts === +// https://github.com/microsoft/TypeScript/issues/59450 + +declare function f(fun: (t: T) => void): void +>f : Symbol(f, Decl(contextualOuterTypeParameters.ts, 0, 0)) +>fun : Symbol(fun, Decl(contextualOuterTypeParameters.ts, 2, 19)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 2, 25)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 2, 28)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 2, 25)) + +f(t => { +>f : Symbol(f, Decl(contextualOuterTypeParameters.ts, 0, 0)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 4, 2)) + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : Symbol(isArray, Decl(contextualOuterTypeParameters.ts, 4, 8)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 4, 2)) + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : Symbol(IsObject, Decl(contextualOuterTypeParameters.ts, 5, 64)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 6, 21)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 4, 2)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 6, 45)) + +}); + +const fn1: (x: T) => void = t => { +>fn1 : Symbol(fn1, Decl(contextualOuterTypeParameters.ts, 9, 5)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 9, 12)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 9, 15)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 9, 12)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 9, 30)) + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : Symbol(isArray, Decl(contextualOuterTypeParameters.ts, 9, 37)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 9, 30)) + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : Symbol(IsObject, Decl(contextualOuterTypeParameters.ts, 10, 64)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 11, 21)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 9, 30)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 11, 45)) + +}; + +const fn2: (x: T) => void = function test(t) { +>fn2 : Symbol(fn2, Decl(contextualOuterTypeParameters.ts, 14, 5)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 14, 12)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 14, 15)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 14, 12)) +>test : Symbol(test, Decl(contextualOuterTypeParameters.ts, 14, 30)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 14, 45)) + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : Symbol(isArray, Decl(contextualOuterTypeParameters.ts, 14, 49)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 14, 45)) + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : Symbol(IsObject, Decl(contextualOuterTypeParameters.ts, 15, 64)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 16, 21)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 14, 45)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 16, 45)) + +}; + +const obj: { f: (x: T) => void } = { +>obj : Symbol(obj, Decl(contextualOuterTypeParameters.ts, 19, 5)) +>f : Symbol(f, Decl(contextualOuterTypeParameters.ts, 19, 12)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 19, 17)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 19, 20)) +>T : Symbol(T, Decl(contextualOuterTypeParameters.ts, 19, 17)) + + f(t) { +>f : Symbol(f, Decl(contextualOuterTypeParameters.ts, 19, 39)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 20, 6)) + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : Symbol(isArray, Decl(contextualOuterTypeParameters.ts, 20, 10)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 20, 6)) + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : Symbol(IsObject, Decl(contextualOuterTypeParameters.ts, 21, 68)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 22, 25)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 20, 6)) +>x : Symbol(x, Decl(contextualOuterTypeParameters.ts, 22, 49)) + } +}; + +f(function self(t) { +>f : Symbol(f, Decl(contextualOuterTypeParameters.ts, 0, 0)) +>self : Symbol(self, Decl(contextualOuterTypeParameters.ts, 26, 2)) +>t : Symbol(t, Decl(contextualOuterTypeParameters.ts, 26, 16)) + + const s = self; +>s : Symbol(s, Decl(contextualOuterTypeParameters.ts, 27, 9)) +>self : Symbol(self, Decl(contextualOuterTypeParameters.ts, 26, 2)) + + type P = Parameters; +>P : Symbol(P, Decl(contextualOuterTypeParameters.ts, 27, 19)) +>Parameters : Symbol(Parameters, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(contextualOuterTypeParameters.ts, 27, 9)) + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=typesfirst).types new file mode 100644 index 0000000000000..280e75fb600cf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualOuterTypeParameters(checkorder=typesfirst).types @@ -0,0 +1,120 @@ +//// [tests/cases/compiler/contextualOuterTypeParameters.ts] //// + +=== contextualOuterTypeParameters.ts === +// https://github.com/microsoft/TypeScript/issues/59450 + +declare function f(fun: (t: T) => void): void +>f : (fun: (t: T) => void) => void +>fun : (t: T) => void +>t : T + +f(t => { +>f(t => { type isArray = (typeof t)[] extends string[] ? true : false; type IsObject = { x: typeof t } extends { x: string } ? true : false;}) : void +>f : (fun: (t: T) => void) => void +>t => { type isArray = (typeof t)[] extends string[] ? true : false; type IsObject = { x: typeof t } extends { x: string } ? true : false;} : (t: T) => void +>t : T + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : T[] extends string[] ? true : false +>t : T +>true : true +>false : false + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : { x: typeof t; } extends { x: string; } ? true : false +>x : T +>t : T +>x : string +>true : true +>false : false + +}); + +const fn1: (x: T) => void = t => { +>fn1 : (x: T) => void +>x : T +>t => { type isArray = (typeof t)[] extends string[] ? true : false; type IsObject = { x: typeof t } extends { x: string } ? true : false;} : (t: T) => void +>t : T + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : false +>t : T +>true : true +>false : false + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : false +>x : T +>t : T +>x : string +>true : true +>false : false + +}; + +const fn2: (x: T) => void = function test(t) { +>fn2 : (x: T) => void +>x : T +>function test(t) { type isArray = (typeof t)[] extends string[] ? true : false; type IsObject = { x: typeof t } extends { x: string } ? true : false;} : (t: T) => void +>test : (t: T) => void +>t : T + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : false +>t : T +>true : true +>false : false + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : false +>x : T +>t : T +>x : string +>true : true +>false : false + +}; + +const obj: { f: (x: T) => void } = { +>obj : { f: (x: T) => void; } +>f : (x: T) => void +>x : T +>{ f(t) { type isArray = (typeof t)[] extends string[] ? true : false; type IsObject = { x: typeof t } extends { x: string } ? true : false; }} : { f(t: T): void; } + + f(t) { +>f : (t: T) => void +>t : T + + type isArray = (typeof t)[] extends string[] ? true : false; +>isArray : false +>t : T +>true : true +>false : false + + type IsObject = { x: typeof t } extends { x: string } ? true : false; +>IsObject : false +>x : T +>t : T +>x : string +>true : true +>false : false + } +}; + +f(function self(t) { +>f(function self(t) { const s = self; type P = Parameters;}) : void +>f : (fun: (t: T) => void) => void +>function self(t) { const s = self; type P = Parameters;} : (t: T) => void +>self : (t: T) => void +>t : T + + const s = self; +>s : (t: T) => void +>self : (t: T) => void + + type P = Parameters; +>P : [t: unknown] +>s : (t: T) => void + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).js new file mode 100644 index 0000000000000..a31e69f0899d0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/contextualParameterDefaultReferenceCheckOrder.ts] //// + +//// [contextualParameterDefaultReferenceCheckOrder.ts] +// x is contextually typed as 1, but its initializer widens it to number. The +// reference to x must have the same type whether it is queried before or +// after the function is checked. + +const f: (g: () => number, x: 1) => void = (g = () => x, x = 0) => {}; + + +//// [contextualParameterDefaultReferenceCheckOrder.js] +"use strict"; +// x is contextually typed as 1, but its initializer widens it to number. The +// reference to x must have the same type whether it is queried before or +// after the function is checked. +const f = (g = () => x, x = 0) => { }; diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..97bc4c3a2eae5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/contextualParameterDefaultReferenceCheckOrder.ts] //// + +=== contextualParameterDefaultReferenceCheckOrder.ts === +// x is contextually typed as 1, but its initializer widens it to number. The +// reference to x must have the same type whether it is queried before or +// after the function is checked. + +const f: (g: () => number, x: 1) => void = (g = () => x, x = 0) => {}; +>f : Symbol(f, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 5)) +>g : Symbol(g, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 10)) +>x : Symbol(x, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 26)) +>g : Symbol(g, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 44)) +>x : Symbol(x, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 56)) +>x : Symbol(x, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 56)) + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..b977f7c29faff --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=default).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/contextualParameterDefaultReferenceCheckOrder.ts] //// + +=== contextualParameterDefaultReferenceCheckOrder.ts === +// x is contextually typed as 1, but its initializer widens it to number. The +// reference to x must have the same type whether it is queried before or +// after the function is checked. + +const f: (g: () => number, x: 1) => void = (g = () => x, x = 0) => {}; +>f : (g: () => number, x: 1) => void +>g : () => number +>x : 1 +>(g = () => x, x = 0) => {} : (g?: () => number, x?: number) => void +>g : () => number +>() => x : () => 1 +>x : number +>x : number +>0 : 0 + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).js new file mode 100644 index 0000000000000..a31e69f0899d0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/contextualParameterDefaultReferenceCheckOrder.ts] //// + +//// [contextualParameterDefaultReferenceCheckOrder.ts] +// x is contextually typed as 1, but its initializer widens it to number. The +// reference to x must have the same type whether it is queried before or +// after the function is checked. + +const f: (g: () => number, x: 1) => void = (g = () => x, x = 0) => {}; + + +//// [contextualParameterDefaultReferenceCheckOrder.js] +"use strict"; +// x is contextually typed as 1, but its initializer widens it to number. The +// reference to x must have the same type whether it is queried before or +// after the function is checked. +const f = (g = () => x, x = 0) => { }; diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..97bc4c3a2eae5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/contextualParameterDefaultReferenceCheckOrder.ts] //// + +=== contextualParameterDefaultReferenceCheckOrder.ts === +// x is contextually typed as 1, but its initializer widens it to number. The +// reference to x must have the same type whether it is queried before or +// after the function is checked. + +const f: (g: () => number, x: 1) => void = (g = () => x, x = 0) => {}; +>f : Symbol(f, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 5)) +>g : Symbol(g, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 10)) +>x : Symbol(x, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 26)) +>g : Symbol(g, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 44)) +>x : Symbol(x, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 56)) +>x : Symbol(x, Decl(contextualParameterDefaultReferenceCheckOrder.ts, 4, 56)) + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..ef328c8e6e1bc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterDefaultReferenceCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/contextualParameterDefaultReferenceCheckOrder.ts] //// + +=== contextualParameterDefaultReferenceCheckOrder.ts === +// x is contextually typed as 1, but its initializer widens it to number. The +// reference to x must have the same type whether it is queried before or +// after the function is checked. + +const f: (g: () => number, x: 1) => void = (g = () => x, x = 0) => {}; +>f : (g: () => number, x: 1) => void +>g : () => number +>x : 1 +>(g = () => x, x = 0) => {} : (g?: () => number, x?: number) => void +>g : () => number +>() => x : () => 1 +>x : 1 +>x : number +>0 : 0 + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=default).symbols new file mode 100644 index 0000000000000..c4969f0ef5812 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=default).symbols @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/contextualParameterInCircularVariableInitializer.ts] //// + +=== contextualParameterInCircularVariableInitializer.ts === +// The initializer of `store` refers to `store` from a callback, so resolving +// the type of `store` re-enters itself. `y` must still get its contextual +// type `string` from `Store` (zustand `create()(...)` pattern), with no +// TS7006, as in main and TS 6.0. + +declare function create(init: () => T): T; +>create : Symbol(create, Decl(contextualParameterInCircularVariableInitializer.ts, 0, 0)) +>T : Symbol(T, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 24)) +>init : Symbol(init, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 27)) +>T : Symbol(T, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 24)) +>T : Symbol(T, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 24)) + +interface Store { +>Store : Symbol(Store, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 45)) + + a: (x: boolean) => void; +>a : Symbol(Store.a, Decl(contextualParameterInCircularVariableInitializer.ts, 7, 17)) +>x : Symbol(x, Decl(contextualParameterInCircularVariableInitializer.ts, 8, 8)) + + b: (y: string) => void; +>b : Symbol(Store.b, Decl(contextualParameterInCircularVariableInitializer.ts, 8, 28)) +>y : Symbol(y, Decl(contextualParameterInCircularVariableInitializer.ts, 9, 8)) +} + +const store = create(() => ({ +>store : Symbol(store, Decl(contextualParameterInCircularVariableInitializer.ts, 12, 5)) +>create : Symbol(create, Decl(contextualParameterInCircularVariableInitializer.ts, 0, 0)) +>Store : Symbol(Store, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 45)) + + a: (x) => store.b(""), +>a : Symbol(a, Decl(contextualParameterInCircularVariableInitializer.ts, 12, 36)) +>x : Symbol(x, Decl(contextualParameterInCircularVariableInitializer.ts, 13, 8)) +>store.b : Symbol(Store.b, Decl(contextualParameterInCircularVariableInitializer.ts, 8, 28)) +>store : Symbol(store, Decl(contextualParameterInCircularVariableInitializer.ts, 12, 5)) +>b : Symbol(Store.b, Decl(contextualParameterInCircularVariableInitializer.ts, 8, 28)) + + b: (y) => {}, +>b : Symbol(b, Decl(contextualParameterInCircularVariableInitializer.ts, 13, 26)) +>y : Symbol(y, Decl(contextualParameterInCircularVariableInitializer.ts, 14, 8)) + +})); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=default).types new file mode 100644 index 0000000000000..95dd171a5925d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=default).types @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/contextualParameterInCircularVariableInitializer.ts] //// + +=== contextualParameterInCircularVariableInitializer.ts === +// The initializer of `store` refers to `store` from a callback, so resolving +// the type of `store` re-enters itself. `y` must still get its contextual +// type `string` from `Store` (zustand `create()(...)` pattern), with no +// TS7006, as in main and TS 6.0. + +declare function create(init: () => T): T; +>create : (init: () => T) => T +>init : () => T + +interface Store { + a: (x: boolean) => void; +>a : (x: boolean) => void +>x : boolean + + b: (y: string) => void; +>b : (y: string) => void +>y : string +} + +const store = create(() => ({ +>store : Store +>create(() => ({ a: (x) => store.b(""), b: (y) => {},})) : Store +>create : (init: () => T) => T +>() => ({ a: (x) => store.b(""), b: (y) => {},}) : () => { a: (x: boolean) => void; b: (y: string) => void; } +>({ a: (x) => store.b(""), b: (y) => {},}) : { a: (x: boolean) => void; b: (y: string) => void; } +>{ a: (x) => store.b(""), b: (y) => {},} : { a: (x: boolean) => void; b: (y: string) => void; } + + a: (x) => store.b(""), +>a : (x: boolean) => void +>(x) => store.b("") : (x: boolean) => void +>x : boolean +>store.b("") : void +>store.b : (y: string) => void +>store : Store +>b : (y: string) => void +>"" : "" + + b: (y) => {}, +>b : (y: string) => void +>(y) => {} : (y: string) => void +>y : string + +})); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..c4969f0ef5812 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=typesfirst).symbols @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/contextualParameterInCircularVariableInitializer.ts] //// + +=== contextualParameterInCircularVariableInitializer.ts === +// The initializer of `store` refers to `store` from a callback, so resolving +// the type of `store` re-enters itself. `y` must still get its contextual +// type `string` from `Store` (zustand `create()(...)` pattern), with no +// TS7006, as in main and TS 6.0. + +declare function create(init: () => T): T; +>create : Symbol(create, Decl(contextualParameterInCircularVariableInitializer.ts, 0, 0)) +>T : Symbol(T, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 24)) +>init : Symbol(init, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 27)) +>T : Symbol(T, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 24)) +>T : Symbol(T, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 24)) + +interface Store { +>Store : Symbol(Store, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 45)) + + a: (x: boolean) => void; +>a : Symbol(Store.a, Decl(contextualParameterInCircularVariableInitializer.ts, 7, 17)) +>x : Symbol(x, Decl(contextualParameterInCircularVariableInitializer.ts, 8, 8)) + + b: (y: string) => void; +>b : Symbol(Store.b, Decl(contextualParameterInCircularVariableInitializer.ts, 8, 28)) +>y : Symbol(y, Decl(contextualParameterInCircularVariableInitializer.ts, 9, 8)) +} + +const store = create(() => ({ +>store : Symbol(store, Decl(contextualParameterInCircularVariableInitializer.ts, 12, 5)) +>create : Symbol(create, Decl(contextualParameterInCircularVariableInitializer.ts, 0, 0)) +>Store : Symbol(Store, Decl(contextualParameterInCircularVariableInitializer.ts, 5, 45)) + + a: (x) => store.b(""), +>a : Symbol(a, Decl(contextualParameterInCircularVariableInitializer.ts, 12, 36)) +>x : Symbol(x, Decl(contextualParameterInCircularVariableInitializer.ts, 13, 8)) +>store.b : Symbol(Store.b, Decl(contextualParameterInCircularVariableInitializer.ts, 8, 28)) +>store : Symbol(store, Decl(contextualParameterInCircularVariableInitializer.ts, 12, 5)) +>b : Symbol(Store.b, Decl(contextualParameterInCircularVariableInitializer.ts, 8, 28)) + + b: (y) => {}, +>b : Symbol(b, Decl(contextualParameterInCircularVariableInitializer.ts, 13, 26)) +>y : Symbol(y, Decl(contextualParameterInCircularVariableInitializer.ts, 14, 8)) + +})); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=typesfirst).types new file mode 100644 index 0000000000000..95dd171a5925d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterInCircularVariableInitializer(checkorder=typesfirst).types @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/contextualParameterInCircularVariableInitializer.ts] //// + +=== contextualParameterInCircularVariableInitializer.ts === +// The initializer of `store` refers to `store` from a callback, so resolving +// the type of `store` re-enters itself. `y` must still get its contextual +// type `string` from `Store` (zustand `create()(...)` pattern), with no +// TS7006, as in main and TS 6.0. + +declare function create(init: () => T): T; +>create : (init: () => T) => T +>init : () => T + +interface Store { + a: (x: boolean) => void; +>a : (x: boolean) => void +>x : boolean + + b: (y: string) => void; +>b : (y: string) => void +>y : string +} + +const store = create(() => ({ +>store : Store +>create(() => ({ a: (x) => store.b(""), b: (y) => {},})) : Store +>create : (init: () => T) => T +>() => ({ a: (x) => store.b(""), b: (y) => {},}) : () => { a: (x: boolean) => void; b: (y: string) => void; } +>({ a: (x) => store.b(""), b: (y) => {},}) : { a: (x: boolean) => void; b: (y: string) => void; } +>{ a: (x) => store.b(""), b: (y) => {},} : { a: (x: boolean) => void; b: (y: string) => void; } + + a: (x) => store.b(""), +>a : (x: boolean) => void +>(x) => store.b("") : (x: boolean) => void +>x : boolean +>store.b("") : void +>store.b : (y: string) => void +>store : Store +>b : (y: string) => void +>"" : "" + + b: (y) => {}, +>b : (y: string) => void +>(y) => {} : (y: string) => void +>y : string + +})); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=default).symbols new file mode 100644 index 0000000000000..e51b75113df82 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=default).symbols @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/contextualParameterInReturnTypeCycleOfGenericCall.ts] //// + +=== contextualParameterInReturnTypeCycleOfGenericCall.ts === +// Inferring `T` for `g` needs the return type of the arrow, whose body is a +// call to `f` that is contextually typed by that same return type, a cycle. +// `state` must still get the contextual type `number` (S inferred from +// `initialState`), as in main and TS 6.0 (redux-toolkit `createSlice` inside +// vitest `expect(() => ...)` pattern). + +declare function f S>>(options: { +>f : Symbol(f, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 0, 0)) +>S : Symbol(S, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 19)) +>CR : Symbol(CR, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 21)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>state : Symbol(state, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 49)) +>S : Symbol(S, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 19)) +>S : Symbol(S, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 19)) +>options : Symbol(options, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 66)) + + initialState: S; +>initialState : Symbol(initialState, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 76)) +>S : Symbol(S, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 19)) + + reducers: CR; +>reducers : Symbol(reducers, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 7, 20)) +>CR : Symbol(CR, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 21)) + +}): CR; +>CR : Symbol(CR, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 21)) + +declare function g(a: T): void; +>g : Symbol(g, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 9, 7)) +>T : Symbol(T, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 10, 19)) +>a : Symbol(a, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 10, 22)) +>T : Symbol(T, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 10, 19)) + +g(() => f({ reducers: { a: (state) => state + 1 }, initialState: 0 })); +>g : Symbol(g, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 9, 7)) +>f : Symbol(f, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 0, 0)) +>reducers : Symbol(reducers, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 12, 11)) +>a : Symbol(a, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 12, 23)) +>state : Symbol(state, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 12, 28)) +>state : Symbol(state, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 12, 28)) +>initialState : Symbol(initialState, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 12, 50)) + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=default).types new file mode 100644 index 0000000000000..4d0000d7f411b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=default).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/contextualParameterInReturnTypeCycleOfGenericCall.ts] //// + +=== contextualParameterInReturnTypeCycleOfGenericCall.ts === +// Inferring `T` for `g` needs the return type of the arrow, whose body is a +// call to `f` that is contextually typed by that same return type, a cycle. +// `state` must still get the contextual type `number` (S inferred from +// `initialState`), as in main and TS 6.0 (redux-toolkit `createSlice` inside +// vitest `expect(() => ...)` pattern). + +declare function f S>>(options: { +>f : S>>(options: { initialState: S; reducers: CR; }) => CR +>state : S +>options : { initialState: S; reducers: CR; } + + initialState: S; +>initialState : S + + reducers: CR; +>reducers : CR + +}): CR; +declare function g(a: T): void; +>g : (a: T) => void +>a : T + +g(() => f({ reducers: { a: (state) => state + 1 }, initialState: 0 })); +>g(() => f({ reducers: { a: (state) => state + 1 }, initialState: 0 })) : void +>g : (a: T) => void +>() => f({ reducers: { a: (state) => state + 1 }, initialState: 0 }) : () => { a: (state: number) => number; } +>f({ reducers: { a: (state) => state + 1 }, initialState: 0 }) : { a: (state: number) => number; } +>f : S>>(options: { initialState: S; reducers: CR; }) => CR +>{ reducers: { a: (state) => state + 1 }, initialState: 0 } : { reducers: { a: (state: number) => number; }; initialState: number; } +>reducers : { a: (state: number) => number; } +>{ a: (state) => state + 1 } : { a: (state: number) => number; } +>a : (state: number) => number +>(state) => state + 1 : (state: number) => number +>state : number +>state + 1 : number +>state : number +>1 : 1 +>initialState : number +>0 : 0 + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..e51b75113df82 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=typesfirst).symbols @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/contextualParameterInReturnTypeCycleOfGenericCall.ts] //// + +=== contextualParameterInReturnTypeCycleOfGenericCall.ts === +// Inferring `T` for `g` needs the return type of the arrow, whose body is a +// call to `f` that is contextually typed by that same return type, a cycle. +// `state` must still get the contextual type `number` (S inferred from +// `initialState`), as in main and TS 6.0 (redux-toolkit `createSlice` inside +// vitest `expect(() => ...)` pattern). + +declare function f S>>(options: { +>f : Symbol(f, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 0, 0)) +>S : Symbol(S, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 19)) +>CR : Symbol(CR, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 21)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>state : Symbol(state, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 49)) +>S : Symbol(S, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 19)) +>S : Symbol(S, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 19)) +>options : Symbol(options, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 66)) + + initialState: S; +>initialState : Symbol(initialState, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 76)) +>S : Symbol(S, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 19)) + + reducers: CR; +>reducers : Symbol(reducers, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 7, 20)) +>CR : Symbol(CR, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 21)) + +}): CR; +>CR : Symbol(CR, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 6, 21)) + +declare function g(a: T): void; +>g : Symbol(g, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 9, 7)) +>T : Symbol(T, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 10, 19)) +>a : Symbol(a, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 10, 22)) +>T : Symbol(T, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 10, 19)) + +g(() => f({ reducers: { a: (state) => state + 1 }, initialState: 0 })); +>g : Symbol(g, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 9, 7)) +>f : Symbol(f, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 0, 0)) +>reducers : Symbol(reducers, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 12, 11)) +>a : Symbol(a, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 12, 23)) +>state : Symbol(state, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 12, 28)) +>state : Symbol(state, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 12, 28)) +>initialState : Symbol(initialState, Decl(contextualParameterInReturnTypeCycleOfGenericCall.ts, 12, 50)) + diff --git a/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=typesfirst).types new file mode 100644 index 0000000000000..4d0000d7f411b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualParameterInReturnTypeCycleOfGenericCall(checkorder=typesfirst).types @@ -0,0 +1,43 @@ +//// [tests/cases/compiler/contextualParameterInReturnTypeCycleOfGenericCall.ts] //// + +=== contextualParameterInReturnTypeCycleOfGenericCall.ts === +// Inferring `T` for `g` needs the return type of the arrow, whose body is a +// call to `f` that is contextually typed by that same return type, a cycle. +// `state` must still get the contextual type `number` (S inferred from +// `initialState`), as in main and TS 6.0 (redux-toolkit `createSlice` inside +// vitest `expect(() => ...)` pattern). + +declare function f S>>(options: { +>f : S>>(options: { initialState: S; reducers: CR; }) => CR +>state : S +>options : { initialState: S; reducers: CR; } + + initialState: S; +>initialState : S + + reducers: CR; +>reducers : CR + +}): CR; +declare function g(a: T): void; +>g : (a: T) => void +>a : T + +g(() => f({ reducers: { a: (state) => state + 1 }, initialState: 0 })); +>g(() => f({ reducers: { a: (state) => state + 1 }, initialState: 0 })) : void +>g : (a: T) => void +>() => f({ reducers: { a: (state) => state + 1 }, initialState: 0 }) : () => { a: (state: number) => number; } +>f({ reducers: { a: (state) => state + 1 }, initialState: 0 }) : { a: (state: number) => number; } +>f : S>>(options: { initialState: S; reducers: CR; }) => CR +>{ reducers: { a: (state) => state + 1 }, initialState: 0 } : { reducers: { a: (state: number) => number; }; initialState: number; } +>reducers : { a: (state: number) => number; } +>{ a: (state) => state + 1 } : { a: (state: number) => number; } +>a : (state: number) => number +>(state) => state + 1 : (state: number) => number +>state : number +>state + 1 : number +>state : number +>1 : 1 +>initialState : number +>0 : 0 + diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).js new file mode 100644 index 0000000000000..6772baec879f7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/contextualReturnArrayPatternCallback.ts] //// + +//// [contextualReturnArrayPatternCallback.ts] +interface Matcher { + matcher(): { match(value: Input): boolean; value?: Value }; +} +type Pattern = Input | Matcher | { [Key in keyof Input]?: Pattern }; +type ArrayElement = Input extends readonly (infer Value)[] ? Value : unknown; +declare function array>>(value: Value): Matcher; +declare function when unknown>(callback: Callback): Matcher; +declare function accept>(value: Value): void; + +accept({ + list: array({ + prop: when(value => { + const text: string = value; + return true; + }), + }), +}); + + +//// [contextualReturnArrayPatternCallback.js] +"use strict"; +accept({ + list: array({ + prop: when(value => { + const text = value; + return true; + }), + }), +}); diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).symbols new file mode 100644 index 0000000000000..2e6faa18727fd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).symbols @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/contextualReturnArrayPatternCallback.ts] //// + +=== contextualReturnArrayPatternCallback.ts === +interface Matcher { +>Matcher : Symbol(Matcher, Decl(contextualReturnArrayPatternCallback.ts, 0, 0)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 0, 18)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 0, 24)) + + matcher(): { match(value: Input): boolean; value?: Value }; +>matcher : Symbol(Matcher.matcher, Decl(contextualReturnArrayPatternCallback.ts, 0, 43)) +>match : Symbol(match, Decl(contextualReturnArrayPatternCallback.ts, 1, 16)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 1, 23)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 0, 18)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 1, 46)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 0, 24)) +} +type Pattern = Input | Matcher | { [Key in keyof Input]?: Pattern }; +>Pattern : Symbol(Pattern, Decl(contextualReturnArrayPatternCallback.ts, 2, 1)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 3, 13)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 3, 13)) +>Matcher : Symbol(Matcher, Decl(contextualReturnArrayPatternCallback.ts, 0, 0)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 3, 13)) +>Key : Symbol(Key, Decl(contextualReturnArrayPatternCallback.ts, 3, 50)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 3, 13)) +>Pattern : Symbol(Pattern, Decl(contextualReturnArrayPatternCallback.ts, 2, 1)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 3, 13)) +>Key : Symbol(Key, Decl(contextualReturnArrayPatternCallback.ts, 3, 50)) + +type ArrayElement = Input extends readonly (infer Value)[] ? Value : unknown; +>ArrayElement : Symbol(ArrayElement, Decl(contextualReturnArrayPatternCallback.ts, 3, 94)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 4, 18)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 4, 18)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 4, 56)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 4, 56)) + +declare function array>>(value: Value): Matcher; +>array : Symbol(array, Decl(contextualReturnArrayPatternCallback.ts, 4, 84)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 5, 23)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 5, 29)) +>Pattern : Symbol(Pattern, Decl(contextualReturnArrayPatternCallback.ts, 2, 1)) +>ArrayElement : Symbol(ArrayElement, Decl(contextualReturnArrayPatternCallback.ts, 3, 94)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 5, 23)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 5, 74)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 5, 29)) +>Matcher : Symbol(Matcher, Decl(contextualReturnArrayPatternCallback.ts, 0, 0)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 5, 23)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 5, 29)) + +declare function when unknown>(callback: Callback): Matcher; +>when : Symbol(when, Decl(contextualReturnArrayPatternCallback.ts, 5, 111)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 6, 22)) +>Callback : Symbol(Callback, Decl(contextualReturnArrayPatternCallback.ts, 6, 28)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 6, 47)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 6, 22)) +>callback : Symbol(callback, Decl(contextualReturnArrayPatternCallback.ts, 6, 73)) +>Callback : Symbol(Callback, Decl(contextualReturnArrayPatternCallback.ts, 6, 28)) +>Matcher : Symbol(Matcher, Decl(contextualReturnArrayPatternCallback.ts, 0, 0)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 6, 22)) + +declare function accept>(value: Value): void; +>accept : Symbol(accept, Decl(contextualReturnArrayPatternCallback.ts, 6, 109)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 7, 24)) +>Pattern : Symbol(Pattern, Decl(contextualReturnArrayPatternCallback.ts, 2, 1)) +>list : Symbol(list, Decl(contextualReturnArrayPatternCallback.ts, 7, 47)) +>prop : Symbol(prop, Decl(contextualReturnArrayPatternCallback.ts, 7, 55)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 7, 77)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 7, 24)) + +accept({ +>accept : Symbol(accept, Decl(contextualReturnArrayPatternCallback.ts, 6, 109)) + + list: array({ +>list : Symbol(list, Decl(contextualReturnArrayPatternCallback.ts, 9, 8)) +>array : Symbol(array, Decl(contextualReturnArrayPatternCallback.ts, 4, 84)) + + prop: when(value => { +>prop : Symbol(prop, Decl(contextualReturnArrayPatternCallback.ts, 10, 17)) +>when : Symbol(when, Decl(contextualReturnArrayPatternCallback.ts, 5, 111)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 11, 19)) + + const text: string = value; +>text : Symbol(text, Decl(contextualReturnArrayPatternCallback.ts, 12, 17)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 11, 19)) + + return true; + }), + }), +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).types new file mode 100644 index 0000000000000..8ae0e4c69acc3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=default).types @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/contextualReturnArrayPatternCallback.ts] //// + +=== contextualReturnArrayPatternCallback.ts === +interface Matcher { + matcher(): { match(value: Input): boolean; value?: Value }; +>matcher : () => { match(value: Input): boolean; value?: Value; } +>match : (value: Input) => boolean +>value : Input +>value : Value | undefined +} +type Pattern = Input | Matcher | { [Key in keyof Input]?: Pattern }; +>Pattern : Pattern + +type ArrayElement = Input extends readonly (infer Value)[] ? Value : unknown; +>ArrayElement : ArrayElement + +declare function array>>(value: Value): Matcher; +>array : >>(value: Value) => Matcher +>value : Value + +declare function when unknown>(callback: Callback): Matcher; +>when : unknown>(callback: Callback) => Matcher +>value : Input +>callback : Callback + +declare function accept>(value: Value): void; +>accept : >(value: Value) => void +>list : { prop: string; }[] +>prop : string +>value : Value + +accept({ +>accept({ list: array({ prop: when(value => { const text: string = value; return true; }), }),}) : void +>accept : >(value: Value) => void +>{ list: array({ prop: when(value => { const text: string = value; return true; }), }),} : { list: Matcher<{ prop: string; }[], { prop: Matcher; }>; } + + list: array({ +>list : Matcher<{ prop: string; }[], { prop: Matcher; }> +>array({ prop: when(value => { const text: string = value; return true; }), }) : Matcher<{ prop: string; }[], { prop: Matcher; }> +>array : >>(value: Value) => Matcher +>{ prop: when(value => { const text: string = value; return true; }), } : { prop: Matcher; } + + prop: when(value => { +>prop : Matcher +>when(value => { const text: string = value; return true; }) : Matcher +>when : unknown>(callback: Callback) => Matcher +>value => { const text: string = value; return true; } : (value: string) => boolean +>value : string + + const text: string = value; +>text : string +>value : string + + return true; +>true : true + + }), + }), +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..0976f43f81f01 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).errors.txt @@ -0,0 +1,24 @@ +contextualReturnArrayPatternCallback.ts(13,19): error TS2322: Type 'unknown' is not assignable to type 'string'. + + +==== contextualReturnArrayPatternCallback.ts (1 errors) ==== + interface Matcher { + matcher(): { match(value: Input): boolean; value?: Value }; + } + type Pattern = Input | Matcher | { [Key in keyof Input]?: Pattern }; + type ArrayElement = Input extends readonly (infer Value)[] ? Value : unknown; + declare function array>>(value: Value): Matcher; + declare function when unknown>(callback: Callback): Matcher; + declare function accept>(value: Value): void; + + accept({ + list: array({ + prop: when(value => { + const text: string = value; + ~~~~ +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + return true; + }), + }), + }); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).js new file mode 100644 index 0000000000000..6772baec879f7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).js @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/contextualReturnArrayPatternCallback.ts] //// + +//// [contextualReturnArrayPatternCallback.ts] +interface Matcher { + matcher(): { match(value: Input): boolean; value?: Value }; +} +type Pattern = Input | Matcher | { [Key in keyof Input]?: Pattern }; +type ArrayElement = Input extends readonly (infer Value)[] ? Value : unknown; +declare function array>>(value: Value): Matcher; +declare function when unknown>(callback: Callback): Matcher; +declare function accept>(value: Value): void; + +accept({ + list: array({ + prop: when(value => { + const text: string = value; + return true; + }), + }), +}); + + +//// [contextualReturnArrayPatternCallback.js] +"use strict"; +accept({ + list: array({ + prop: when(value => { + const text = value; + return true; + }), + }), +}); diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..2e6faa18727fd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).symbols @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/contextualReturnArrayPatternCallback.ts] //// + +=== contextualReturnArrayPatternCallback.ts === +interface Matcher { +>Matcher : Symbol(Matcher, Decl(contextualReturnArrayPatternCallback.ts, 0, 0)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 0, 18)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 0, 24)) + + matcher(): { match(value: Input): boolean; value?: Value }; +>matcher : Symbol(Matcher.matcher, Decl(contextualReturnArrayPatternCallback.ts, 0, 43)) +>match : Symbol(match, Decl(contextualReturnArrayPatternCallback.ts, 1, 16)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 1, 23)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 0, 18)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 1, 46)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 0, 24)) +} +type Pattern = Input | Matcher | { [Key in keyof Input]?: Pattern }; +>Pattern : Symbol(Pattern, Decl(contextualReturnArrayPatternCallback.ts, 2, 1)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 3, 13)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 3, 13)) +>Matcher : Symbol(Matcher, Decl(contextualReturnArrayPatternCallback.ts, 0, 0)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 3, 13)) +>Key : Symbol(Key, Decl(contextualReturnArrayPatternCallback.ts, 3, 50)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 3, 13)) +>Pattern : Symbol(Pattern, Decl(contextualReturnArrayPatternCallback.ts, 2, 1)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 3, 13)) +>Key : Symbol(Key, Decl(contextualReturnArrayPatternCallback.ts, 3, 50)) + +type ArrayElement = Input extends readonly (infer Value)[] ? Value : unknown; +>ArrayElement : Symbol(ArrayElement, Decl(contextualReturnArrayPatternCallback.ts, 3, 94)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 4, 18)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 4, 18)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 4, 56)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 4, 56)) + +declare function array>>(value: Value): Matcher; +>array : Symbol(array, Decl(contextualReturnArrayPatternCallback.ts, 4, 84)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 5, 23)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 5, 29)) +>Pattern : Symbol(Pattern, Decl(contextualReturnArrayPatternCallback.ts, 2, 1)) +>ArrayElement : Symbol(ArrayElement, Decl(contextualReturnArrayPatternCallback.ts, 3, 94)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 5, 23)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 5, 74)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 5, 29)) +>Matcher : Symbol(Matcher, Decl(contextualReturnArrayPatternCallback.ts, 0, 0)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 5, 23)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 5, 29)) + +declare function when unknown>(callback: Callback): Matcher; +>when : Symbol(when, Decl(contextualReturnArrayPatternCallback.ts, 5, 111)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 6, 22)) +>Callback : Symbol(Callback, Decl(contextualReturnArrayPatternCallback.ts, 6, 28)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 6, 47)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 6, 22)) +>callback : Symbol(callback, Decl(contextualReturnArrayPatternCallback.ts, 6, 73)) +>Callback : Symbol(Callback, Decl(contextualReturnArrayPatternCallback.ts, 6, 28)) +>Matcher : Symbol(Matcher, Decl(contextualReturnArrayPatternCallback.ts, 0, 0)) +>Input : Symbol(Input, Decl(contextualReturnArrayPatternCallback.ts, 6, 22)) + +declare function accept>(value: Value): void; +>accept : Symbol(accept, Decl(contextualReturnArrayPatternCallback.ts, 6, 109)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 7, 24)) +>Pattern : Symbol(Pattern, Decl(contextualReturnArrayPatternCallback.ts, 2, 1)) +>list : Symbol(list, Decl(contextualReturnArrayPatternCallback.ts, 7, 47)) +>prop : Symbol(prop, Decl(contextualReturnArrayPatternCallback.ts, 7, 55)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 7, 77)) +>Value : Symbol(Value, Decl(contextualReturnArrayPatternCallback.ts, 7, 24)) + +accept({ +>accept : Symbol(accept, Decl(contextualReturnArrayPatternCallback.ts, 6, 109)) + + list: array({ +>list : Symbol(list, Decl(contextualReturnArrayPatternCallback.ts, 9, 8)) +>array : Symbol(array, Decl(contextualReturnArrayPatternCallback.ts, 4, 84)) + + prop: when(value => { +>prop : Symbol(prop, Decl(contextualReturnArrayPatternCallback.ts, 10, 17)) +>when : Symbol(when, Decl(contextualReturnArrayPatternCallback.ts, 5, 111)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 11, 19)) + + const text: string = value; +>text : Symbol(text, Decl(contextualReturnArrayPatternCallback.ts, 12, 17)) +>value : Symbol(value, Decl(contextualReturnArrayPatternCallback.ts, 11, 19)) + + return true; + }), + }), +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).types new file mode 100644 index 0000000000000..68eb717e1e135 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).types @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/contextualReturnArrayPatternCallback.ts] //// + +=== contextualReturnArrayPatternCallback.ts === +interface Matcher { + matcher(): { match(value: Input): boolean; value?: Value }; +>matcher : () => { match(value: Input): boolean; value?: Value; } +>match : (value: Input) => boolean +>value : Input +>value : Value | undefined +} +type Pattern = Input | Matcher | { [Key in keyof Input]?: Pattern }; +>Pattern : Pattern + +type ArrayElement = Input extends readonly (infer Value)[] ? Value : unknown; +>ArrayElement : ArrayElement + +declare function array>>(value: Value): Matcher; +>array : >>(value: Value) => Matcher +>value : Value + +declare function when unknown>(callback: Callback): Matcher; +>when : unknown>(callback: Callback) => Matcher +>value : Input +>callback : Callback + +declare function accept>(value: Value): void; +>accept : >(value: Value) => void +>list : { prop: string; }[] +>prop : string +>value : Value + +accept({ +>accept({ list: array({ prop: when(value => { const text: string = value; return true; }), }),}) : void +>accept : >(value: Value) => void +>{ list: array({ prop: when(value => { const text: string = value; return true; }), }),} : { list: Matcher<{ prop: string; }[], { prop: Matcher; }>; } + + list: array({ +>list : Matcher<{ prop: string; }[], { prop: Matcher; }> +>array({ prop: when(value => { const text: string = value; return true; }), }) : Matcher<{ prop: string; }[], { prop: Matcher; }> +>array : >>(value: Value) => Matcher +>{ prop: when(value => { const text: string = value; return true; }), } : { prop: Matcher; } + + prop: when(value => { +>prop : Matcher +>when(value => { const text: string = value; return true; }) : Matcher +>when : unknown>(callback: Callback) => Matcher +>value => { const text: string = value; return true; } : (value: unknown) => boolean +>value : unknown + + const text: string = value; +>text : string +>value : unknown + + return true; +>true : true + + }), + }), +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..ecb3938461895 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,23 @@ +contextualThisAssertionCheckOrder.ts(15,5): error TS7027: Unreachable code detected. + + +==== contextualThisAssertionCheckOrder.ts (1 errors) ==== + // A function expression's this is typed contextually, and calling an + // assertion or never-returning method through it narrows the same way + // whether or not the types in the call were requested first (42175). + + declare function makeContextualThisParameter(cb: (this: T) => any): void; + + makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { + const v = Boolean(); + this.assert(v); + const w: true = v; + }); + + makeContextualThisParameter<{ returnNever(): never }>(function () { + this.returnNever(); + debugger; + ~~~~~~~~~ +!!! error TS7027: Unreachable code detected. + }); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..2ec09cb43678b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/contextualThisAssertionCheckOrder.ts] //// + +=== contextualThisAssertionCheckOrder.ts === +// A function expression's this is typed contextually, and calling an +// assertion or never-returning method through it narrows the same way +// whether or not the types in the call were requested first (42175). + +declare function makeContextualThisParameter(cb: (this: T) => any): void; +>makeContextualThisParameter : Symbol(makeContextualThisParameter, Decl(contextualThisAssertionCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(contextualThisAssertionCheckOrder.ts, 4, 45)) +>cb : Symbol(cb, Decl(contextualThisAssertionCheckOrder.ts, 4, 48)) +>this : Symbol(this, Decl(contextualThisAssertionCheckOrder.ts, 4, 53)) +>T : Symbol(T, Decl(contextualThisAssertionCheckOrder.ts, 4, 45)) + +makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { +>makeContextualThisParameter : Symbol(makeContextualThisParameter, Decl(contextualThisAssertionCheckOrder.ts, 0, 0)) +>assert : Symbol(assert, Decl(contextualThisAssertionCheckOrder.ts, 6, 29)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 6, 37)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 6, 37)) + + const v = Boolean(); +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 7, 9)) +>Boolean : Symbol(Boolean, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + this.assert(v); +>this.assert : Symbol(assert, Decl(contextualThisAssertionCheckOrder.ts, 6, 29)) +>this : Symbol(this, Decl(contextualThisAssertionCheckOrder.ts, 4, 53)) +>assert : Symbol(assert, Decl(contextualThisAssertionCheckOrder.ts, 6, 29)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 7, 9)) + + const w: true = v; +>w : Symbol(w, Decl(contextualThisAssertionCheckOrder.ts, 9, 9)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 7, 9)) + +}); + +makeContextualThisParameter<{ returnNever(): never }>(function () { +>makeContextualThisParameter : Symbol(makeContextualThisParameter, Decl(contextualThisAssertionCheckOrder.ts, 0, 0)) +>returnNever : Symbol(returnNever, Decl(contextualThisAssertionCheckOrder.ts, 12, 29)) + + this.returnNever(); +>this.returnNever : Symbol(returnNever, Decl(contextualThisAssertionCheckOrder.ts, 12, 29)) +>this : Symbol(this, Decl(contextualThisAssertionCheckOrder.ts, 4, 53)) +>returnNever : Symbol(returnNever, Decl(contextualThisAssertionCheckOrder.ts, 12, 29)) + + debugger; +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..e887d73dbdbfe --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=default).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/contextualThisAssertionCheckOrder.ts] //// + +=== contextualThisAssertionCheckOrder.ts === +// A function expression's this is typed contextually, and calling an +// assertion or never-returning method through it narrows the same way +// whether or not the types in the call were requested first (42175). + +declare function makeContextualThisParameter(cb: (this: T) => any): void; +>makeContextualThisParameter : (cb: (this: T) => any) => void +>cb : (this: T) => any +>this : T + +makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { +>makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { const v = Boolean(); this.assert(v); const w: true = v;}) : void +>makeContextualThisParameter : (cb: (this: T) => any) => void +>assert : (v: any) => asserts v +>v : any +>function () { const v = Boolean(); this.assert(v); const w: true = v;} : (this: { assert(v: any): asserts v; }) => void + + const v = Boolean(); +>v : boolean +>Boolean() : boolean +>Boolean : BooleanConstructor + + this.assert(v); +>this.assert(v) : void +>this.assert : (v: any) => asserts v +>this : { assert(v: any): asserts v; } +>assert : (v: any) => asserts v +>v : boolean + + const w: true = v; +>w : true +>true : true +>v : true + +}); + +makeContextualThisParameter<{ returnNever(): never }>(function () { +>makeContextualThisParameter<{ returnNever(): never }>(function () { this.returnNever(); debugger;}) : void +>makeContextualThisParameter : (cb: (this: T) => any) => void +>returnNever : () => never +>function () { this.returnNever(); debugger;} : (this: { returnNever(): never; }) => never + + this.returnNever(); +>this.returnNever() : never +>this.returnNever : () => never +>this : { returnNever(): never; } +>returnNever : () => never + + debugger; +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..ecb3938461895 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,23 @@ +contextualThisAssertionCheckOrder.ts(15,5): error TS7027: Unreachable code detected. + + +==== contextualThisAssertionCheckOrder.ts (1 errors) ==== + // A function expression's this is typed contextually, and calling an + // assertion or never-returning method through it narrows the same way + // whether or not the types in the call were requested first (42175). + + declare function makeContextualThisParameter(cb: (this: T) => any): void; + + makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { + const v = Boolean(); + this.assert(v); + const w: true = v; + }); + + makeContextualThisParameter<{ returnNever(): never }>(function () { + this.returnNever(); + debugger; + ~~~~~~~~~ +!!! error TS7027: Unreachable code detected. + }); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..63ff5486444a7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/contextualThisAssertionCheckOrder.ts] //// + +=== contextualThisAssertionCheckOrder.ts === +// A function expression's this is typed contextually, and calling an +// assertion or never-returning method through it narrows the same way +// whether or not the types in the call were requested first (42175). + +declare function makeContextualThisParameter(cb: (this: T) => any): void; +>makeContextualThisParameter : Symbol(makeContextualThisParameter, Decl(contextualThisAssertionCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(contextualThisAssertionCheckOrder.ts, 4, 45)) +>cb : Symbol(cb, Decl(contextualThisAssertionCheckOrder.ts, 4, 48)) +>this : Symbol(this, Decl(contextualThisAssertionCheckOrder.ts, 4, 53)) +>T : Symbol(T, Decl(contextualThisAssertionCheckOrder.ts, 4, 45)) + +makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { +>makeContextualThisParameter : Symbol(makeContextualThisParameter, Decl(contextualThisAssertionCheckOrder.ts, 0, 0)) +>assert : Symbol(assert, Decl(contextualThisAssertionCheckOrder.ts, 6, 29)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 6, 37)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 6, 37)) + + const v = Boolean(); +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 7, 9)) +>Boolean : Symbol(Boolean, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + this.assert(v); +>this.assert : Symbol(assert, Decl(contextualThisAssertionCheckOrder.ts, 6, 29)) +>this : Symbol(__type, Decl(contextualThisAssertionCheckOrder.ts, 6, 28)) +>assert : Symbol(assert, Decl(contextualThisAssertionCheckOrder.ts, 6, 29)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 7, 9)) + + const w: true = v; +>w : Symbol(w, Decl(contextualThisAssertionCheckOrder.ts, 9, 9)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 7, 9)) + +}); + +makeContextualThisParameter<{ returnNever(): never }>(function () { +>makeContextualThisParameter : Symbol(makeContextualThisParameter, Decl(contextualThisAssertionCheckOrder.ts, 0, 0)) +>returnNever : Symbol(returnNever, Decl(contextualThisAssertionCheckOrder.ts, 12, 29)) + + this.returnNever(); +>this.returnNever : Symbol(returnNever, Decl(contextualThisAssertionCheckOrder.ts, 12, 29)) +>this : Symbol(this, Decl(contextualThisAssertionCheckOrder.ts, 4, 53)) +>returnNever : Symbol(returnNever, Decl(contextualThisAssertionCheckOrder.ts, 12, 29)) + + debugger; +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..3fb2044aab220 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/contextualThisAssertionCheckOrder.ts] //// + +=== contextualThisAssertionCheckOrder.ts === +// A function expression's this is typed contextually, and calling an +// assertion or never-returning method through it narrows the same way +// whether or not the types in the call were requested first (42175). + +declare function makeContextualThisParameter(cb: (this: T) => any): void; +>makeContextualThisParameter : (cb: (this: T) => any) => void +>cb : (this: T) => any +>this : T + +makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { +>makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { const v = Boolean(); this.assert(v); const w: true = v;}) : void +>makeContextualThisParameter : (cb: (this: T) => any) => void +>assert : (v: any) => asserts v +>v : any +>function () { const v = Boolean(); this.assert(v); const w: true = v;} : () => void + + const v = Boolean(); +>v : boolean +>Boolean() : boolean +>Boolean : BooleanConstructor + + this.assert(v); +>this.assert(v) : void +>this.assert : (v: any) => asserts v +>this : { assert(v: any): asserts v; } +>assert : (v: any) => asserts v +>v : boolean + + const w: true = v; +>w : true +>true : true +>v : true + +}); + +makeContextualThisParameter<{ returnNever(): never }>(function () { +>makeContextualThisParameter<{ returnNever(): never }>(function () { this.returnNever(); debugger;}) : void +>makeContextualThisParameter : (cb: (this: T) => any) => void +>returnNever : () => never +>function () { this.returnNever(); debugger;} : (this: { returnNever(): never; }) => never + + this.returnNever(); +>this.returnNever() : never +>this.returnNever : () => never +>this : { returnNever(): never; } +>returnNever : () => never + + debugger; +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..43249bea06a62 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,29 @@ +contextualThisAssertionCheckOrder.ts(9,5): error TS2775: Assertions require every name in the call target to be declared with an explicit type annotation. +contextualThisAssertionCheckOrder.ts(10,11): error TS2322: Type 'boolean' is not assignable to type 'true'. +contextualThisAssertionCheckOrder.ts(15,5): error TS7027: Unreachable code detected. + + +==== contextualThisAssertionCheckOrder.ts (3 errors) ==== + // A function expression's this is typed contextually, and calling an + // assertion or never-returning method through it narrows the same way + // whether or not the types in the call were requested first (42175). + + declare function makeContextualThisParameter(cb: (this: T) => any): void; + + makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { + const v = Boolean(); + this.assert(v); + ~~~~~~~~~~~ +!!! error TS2775: Assertions require every name in the call target to be declared with an explicit type annotation. + const w: true = v; + ~ +!!! error TS2322: Type 'boolean' is not assignable to type 'true'. + }); + + makeContextualThisParameter<{ returnNever(): never }>(function () { + this.returnNever(); + debugger; + ~~~~~~~~~ +!!! error TS7027: Unreachable code detected. + }); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..2ec09cb43678b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/contextualThisAssertionCheckOrder.ts] //// + +=== contextualThisAssertionCheckOrder.ts === +// A function expression's this is typed contextually, and calling an +// assertion or never-returning method through it narrows the same way +// whether or not the types in the call were requested first (42175). + +declare function makeContextualThisParameter(cb: (this: T) => any): void; +>makeContextualThisParameter : Symbol(makeContextualThisParameter, Decl(contextualThisAssertionCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(contextualThisAssertionCheckOrder.ts, 4, 45)) +>cb : Symbol(cb, Decl(contextualThisAssertionCheckOrder.ts, 4, 48)) +>this : Symbol(this, Decl(contextualThisAssertionCheckOrder.ts, 4, 53)) +>T : Symbol(T, Decl(contextualThisAssertionCheckOrder.ts, 4, 45)) + +makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { +>makeContextualThisParameter : Symbol(makeContextualThisParameter, Decl(contextualThisAssertionCheckOrder.ts, 0, 0)) +>assert : Symbol(assert, Decl(contextualThisAssertionCheckOrder.ts, 6, 29)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 6, 37)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 6, 37)) + + const v = Boolean(); +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 7, 9)) +>Boolean : Symbol(Boolean, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + this.assert(v); +>this.assert : Symbol(assert, Decl(contextualThisAssertionCheckOrder.ts, 6, 29)) +>this : Symbol(this, Decl(contextualThisAssertionCheckOrder.ts, 4, 53)) +>assert : Symbol(assert, Decl(contextualThisAssertionCheckOrder.ts, 6, 29)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 7, 9)) + + const w: true = v; +>w : Symbol(w, Decl(contextualThisAssertionCheckOrder.ts, 9, 9)) +>v : Symbol(v, Decl(contextualThisAssertionCheckOrder.ts, 7, 9)) + +}); + +makeContextualThisParameter<{ returnNever(): never }>(function () { +>makeContextualThisParameter : Symbol(makeContextualThisParameter, Decl(contextualThisAssertionCheckOrder.ts, 0, 0)) +>returnNever : Symbol(returnNever, Decl(contextualThisAssertionCheckOrder.ts, 12, 29)) + + this.returnNever(); +>this.returnNever : Symbol(returnNever, Decl(contextualThisAssertionCheckOrder.ts, 12, 29)) +>this : Symbol(this, Decl(contextualThisAssertionCheckOrder.ts, 4, 53)) +>returnNever : Symbol(returnNever, Decl(contextualThisAssertionCheckOrder.ts, 12, 29)) + + debugger; +}); + diff --git a/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..3629054e94f8e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualThisAssertionCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/contextualThisAssertionCheckOrder.ts] //// + +=== contextualThisAssertionCheckOrder.ts === +// A function expression's this is typed contextually, and calling an +// assertion or never-returning method through it narrows the same way +// whether or not the types in the call were requested first (42175). + +declare function makeContextualThisParameter(cb: (this: T) => any): void; +>makeContextualThisParameter : (cb: (this: T) => any) => void +>cb : (this: T) => any +>this : T + +makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { +>makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { const v = Boolean(); this.assert(v); const w: true = v;}) : void +>makeContextualThisParameter : (cb: (this: T) => any) => void +>assert : (v: any) => asserts v +>v : any +>function () { const v = Boolean(); this.assert(v); const w: true = v;} : (this: { assert(v: any): asserts v; }) => void + + const v = Boolean(); +>v : boolean +>Boolean() : boolean +>Boolean : BooleanConstructor + + this.assert(v); +>this.assert(v) : void +>this.assert : (v: any) => asserts v +>this : { assert(v: any): asserts v; } +>assert : (v: any) => asserts v +>v : boolean + + const w: true = v; +>w : true +>true : true +>v : boolean + +}); + +makeContextualThisParameter<{ returnNever(): never }>(function () { +>makeContextualThisParameter<{ returnNever(): never }>(function () { this.returnNever(); debugger;}) : void +>makeContextualThisParameter : (cb: (this: T) => any) => void +>returnNever : () => never +>function () { this.returnNever(); debugger;} : (this: { returnNever(): never; }) => never + + this.returnNever(); +>this.returnNever() : never +>this.returnNever : () => never +>this : { returnNever(): never; } +>returnNever : () => never + + debugger; +}); + diff --git a/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).js new file mode 100644 index 0000000000000..8b4161c226ae7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/cycleYieldThroughVarianceCheckOrder.ts] //// + +//// [cycleYieldThroughVarianceCheckOrder.ts] +// Resolving the base of E measures the variances of B, which needs the type +// of p, which needs the members of E. Whether p is circular must not depend +// on whether B is checked before the type of arg is queried. + +declare class B { + p: E["p"]; +} +declare class E extends mix(Base) { + p: number; +} +declare function mix object>(x: T): T; +declare class Base { + constructor(arg?: InstanceType); +} + + +//// [cycleYieldThroughVarianceCheckOrder.js] +"use strict"; +// Resolving the base of E measures the variances of B, which needs the type +// of p, which needs the members of E. Whether p is circular must not depend +// on whether B is checked before the type of arg is queried. diff --git a/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..38e787a55de34 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).symbols @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/cycleYieldThroughVarianceCheckOrder.ts] //// + +=== cycleYieldThroughVarianceCheckOrder.ts === +// Resolving the base of E measures the variances of B, which needs the type +// of p, which needs the members of E. Whether p is circular must not depend +// on whether B is checked before the type of arg is queried. + +declare class B { +>B : Symbol(B, Decl(cycleYieldThroughVarianceCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(cycleYieldThroughVarianceCheckOrder.ts, 4, 16)) + + p: E["p"]; +>p : Symbol(B.p, Decl(cycleYieldThroughVarianceCheckOrder.ts, 4, 20)) +>E : Symbol(E, Decl(cycleYieldThroughVarianceCheckOrder.ts, 6, 1)) +} +declare class E extends mix(Base) { +>E : Symbol(E, Decl(cycleYieldThroughVarianceCheckOrder.ts, 6, 1)) +>mix : Symbol(mix, Decl(cycleYieldThroughVarianceCheckOrder.ts, 9, 1)) +>Base : Symbol(Base, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 58)) + + p: number; +>p : Symbol(E.p, Decl(cycleYieldThroughVarianceCheckOrder.ts, 7, 35)) +} +declare function mix object>(x: T): T; +>mix : Symbol(mix, Decl(cycleYieldThroughVarianceCheckOrder.ts, 9, 1)) +>T : Symbol(T, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 21)) +>x : Symbol(x, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 49)) +>T : Symbol(T, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 21)) +>T : Symbol(T, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 21)) + +declare class Base { +>Base : Symbol(Base, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 58)) + + constructor(arg?: InstanceType); +>arg : Symbol(arg, Decl(cycleYieldThroughVarianceCheckOrder.ts, 12, 16)) +>InstanceType : Symbol(InstanceType, Decl(lib.es5.d.ts, --, --)) +>B : Symbol(B, Decl(cycleYieldThroughVarianceCheckOrder.ts, 0, 0)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..7c73b8e4d56be --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=default).types @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/cycleYieldThroughVarianceCheckOrder.ts] //// + +=== cycleYieldThroughVarianceCheckOrder.ts === +// Resolving the base of E measures the variances of B, which needs the type +// of p, which needs the members of E. Whether p is circular must not depend +// on whether B is checked before the type of arg is queried. + +declare class B { +>B : B + + p: E["p"]; +>p : number +} +declare class E extends mix(Base) { +>E : E +>mix(Base) : Base +>mix : object>(x: T) => T +>Base : typeof Base + + p: number; +>p : number +} +declare function mix object>(x: T): T; +>mix : object>(x: T) => T +>x : T + +declare class Base { +>Base : Base + + constructor(arg?: InstanceType); +>arg : B | undefined +>B : typeof B +} + diff --git a/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).js new file mode 100644 index 0000000000000..8b4161c226ae7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/cycleYieldThroughVarianceCheckOrder.ts] //// + +//// [cycleYieldThroughVarianceCheckOrder.ts] +// Resolving the base of E measures the variances of B, which needs the type +// of p, which needs the members of E. Whether p is circular must not depend +// on whether B is checked before the type of arg is queried. + +declare class B { + p: E["p"]; +} +declare class E extends mix(Base) { + p: number; +} +declare function mix object>(x: T): T; +declare class Base { + constructor(arg?: InstanceType); +} + + +//// [cycleYieldThroughVarianceCheckOrder.js] +"use strict"; +// Resolving the base of E measures the variances of B, which needs the type +// of p, which needs the members of E. Whether p is circular must not depend +// on whether B is checked before the type of arg is queried. diff --git a/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..38e787a55de34 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,39 @@ +//// [tests/cases/compiler/cycleYieldThroughVarianceCheckOrder.ts] //// + +=== cycleYieldThroughVarianceCheckOrder.ts === +// Resolving the base of E measures the variances of B, which needs the type +// of p, which needs the members of E. Whether p is circular must not depend +// on whether B is checked before the type of arg is queried. + +declare class B { +>B : Symbol(B, Decl(cycleYieldThroughVarianceCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(cycleYieldThroughVarianceCheckOrder.ts, 4, 16)) + + p: E["p"]; +>p : Symbol(B.p, Decl(cycleYieldThroughVarianceCheckOrder.ts, 4, 20)) +>E : Symbol(E, Decl(cycleYieldThroughVarianceCheckOrder.ts, 6, 1)) +} +declare class E extends mix(Base) { +>E : Symbol(E, Decl(cycleYieldThroughVarianceCheckOrder.ts, 6, 1)) +>mix : Symbol(mix, Decl(cycleYieldThroughVarianceCheckOrder.ts, 9, 1)) +>Base : Symbol(Base, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 58)) + + p: number; +>p : Symbol(E.p, Decl(cycleYieldThroughVarianceCheckOrder.ts, 7, 35)) +} +declare function mix object>(x: T): T; +>mix : Symbol(mix, Decl(cycleYieldThroughVarianceCheckOrder.ts, 9, 1)) +>T : Symbol(T, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 21)) +>x : Symbol(x, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 49)) +>T : Symbol(T, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 21)) +>T : Symbol(T, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 21)) + +declare class Base { +>Base : Symbol(Base, Decl(cycleYieldThroughVarianceCheckOrder.ts, 10, 58)) + + constructor(arg?: InstanceType); +>arg : Symbol(arg, Decl(cycleYieldThroughVarianceCheckOrder.ts, 12, 16)) +>InstanceType : Symbol(InstanceType, Decl(lib.es5.d.ts, --, --)) +>B : Symbol(B, Decl(cycleYieldThroughVarianceCheckOrder.ts, 0, 0)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..7c73b8e4d56be --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/cycleYieldThroughVarianceCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/cycleYieldThroughVarianceCheckOrder.ts] //// + +=== cycleYieldThroughVarianceCheckOrder.ts === +// Resolving the base of E measures the variances of B, which needs the type +// of p, which needs the members of E. Whether p is circular must not depend +// on whether B is checked before the type of arg is queried. + +declare class B { +>B : B + + p: E["p"]; +>p : number +} +declare class E extends mix(Base) { +>E : E +>mix(Base) : Base +>mix : object>(x: T) => T +>Base : typeof Base + + p: number; +>p : number +} +declare function mix object>(x: T): T; +>mix : object>(x: T) => T +>x : T + +declare class Base { +>Base : Base + + constructor(arg?: InstanceType); +>arg : B | undefined +>B : typeof B +} + diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..a1474c01bbc98 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,29 @@ +deepIndexedAccessChainConstraintCheckOrder.ts(14,14): error TS2339: Property 'b' does not exist on type 'T'. +deepIndexedAccessChainConstraintCheckOrder.ts(14,20): error TS2339: Property 'b' does not exist on type 'T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]'. + + +==== deepIndexedAccessChainConstraintCheckOrder.ts (2 errors) ==== + // The base constraint of a chain of indexed accesses is found through the + // object type of each, all of which share the recursion identity of the + // type parameter. The chain is finite, so the property access is valid + // however deep the chain, and whichever declaration is checked first (65508). + + interface Box { a: Box; b: string } + + const f: typeof victim = (x: U, y: { b: string }) => x.b; + + function victim( + x: T, + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + ): string { + return x.b + y.b; + ~ +!!! error TS2339: Property 'b' does not exist on type 'T'. + ~ +!!! error TS2339: Property 'b' does not exist on type 'T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]'. + } + + function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { + return y.b; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..d4a45f6e4fbab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).symbols @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts] //// + +=== deepIndexedAccessChainConstraintCheckOrder.ts === +// The base constraint of a chain of indexed accesses is found through the +// object type of each, all of which share the recursion identity of the +// type parameter. The chain is finite, so the property access is valid +// however deep the chain, and whichever declaration is checked first (65508). + +interface Box { a: Box; b: string } +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>a : Symbol(Box.a, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 15)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) + +const f: typeof victim = (x: U, y: { b: string }) => x.b; +>f : Symbol(f, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 5)) +>victim : Symbol(victim, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 72)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 26)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 41)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 26)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 46)) +>b : Symbol(b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 51)) +>x.b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 41)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) + +function victim( +>victim : Symbol(victim, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 72)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) + + x: T, +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 31)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) + + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 10, 9)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) + +): string { + return x.b + y.b; +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 31)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 10, 9)) +} + +function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { +>lone : Symbol(lone, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 14, 1)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 14)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 29)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 14)) + + return y.b; +>y.b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 29)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..f3de565d90af5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=default).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts] //// + +=== deepIndexedAccessChainConstraintCheckOrder.ts === +// The base constraint of a chain of indexed accesses is found through the +// object type of each, all of which share the recursion identity of the +// type parameter. The chain is finite, so the property access is valid +// however deep the chain, and whichever declaration is checked first (65508). + +interface Box { a: Box; b: string } +>a : Box +>b : string + +const f: typeof victim = (x: U, y: { b: string }) => x.b; +>f : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>victim : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>(x: U, y: { b: string }) => x.b : (x: U, y: { b: string; }) => string +>x : U +>y : { b: string; } +>b : string +>x.b : string +>x : U +>b : string + +function victim( +>victim : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string + + x: T, +>x : T + + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>y : T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + +): string { + return x.b + y.b; +>x.b + y.b : any +>x.b : any +>x : T +>b : any +>y.b : any +>y : T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>b : any +} + +function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { +>lone : (y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>y : U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + + return y.b; +>y.b : string +>y : U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>b : string +} + diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).errors.txt b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).errors.txt new file mode 100644 index 0000000000000..a1474c01bbc98 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).errors.txt @@ -0,0 +1,29 @@ +deepIndexedAccessChainConstraintCheckOrder.ts(14,14): error TS2339: Property 'b' does not exist on type 'T'. +deepIndexedAccessChainConstraintCheckOrder.ts(14,20): error TS2339: Property 'b' does not exist on type 'T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]'. + + +==== deepIndexedAccessChainConstraintCheckOrder.ts (2 errors) ==== + // The base constraint of a chain of indexed accesses is found through the + // object type of each, all of which share the recursion identity of the + // type parameter. The chain is finite, so the property access is valid + // however deep the chain, and whichever declaration is checked first (65508). + + interface Box { a: Box; b: string } + + const f: typeof victim = (x: U, y: { b: string }) => x.b; + + function victim( + x: T, + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + ): string { + return x.b + y.b; + ~ +!!! error TS2339: Property 'b' does not exist on type 'T'. + ~ +!!! error TS2339: Property 'b' does not exist on type 'T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]'. + } + + function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { + return y.b; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).symbols new file mode 100644 index 0000000000000..0e2b934129ba9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).symbols @@ -0,0 +1,63 @@ +//// [tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts] //// + +=== deepIndexedAccessChainConstraintCheckOrder.ts === +// The base constraint of a chain of indexed accesses is found through the +// object type of each, all of which share the recursion identity of the +// type parameter. The chain is finite, so the property access is valid +// however deep the chain, and whichever declaration is checked first (65508). + +interface Box { a: Box; b: string } +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>a : Symbol(Box.a, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 15)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) + +const f: typeof victim = (x: U, y: { b: string }) => x.b; +>f : Symbol(f, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 5)) +>victim : Symbol(victim, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 72)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 26)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 41)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 26)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 46)) +>b : Symbol(b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 51)) +>x.b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 41)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) + +function victim( +>victim : Symbol(victim, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 72)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) + + x: T, +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 31)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) + + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 10, 9)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) + +): string { + return x.b + y.b; +>x.b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 31)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +>y.b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 10, 9)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +} + +function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { +>lone : Symbol(lone, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 14, 1)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 14)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 29)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 14)) + + return y.b; +>y.b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 29)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).types new file mode 100644 index 0000000000000..b2f6d1f4b2c0c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=isolated).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts] //// + +=== deepIndexedAccessChainConstraintCheckOrder.ts === +// The base constraint of a chain of indexed accesses is found through the +// object type of each, all of which share the recursion identity of the +// type parameter. The chain is finite, so the property access is valid +// however deep the chain, and whichever declaration is checked first (65508). + +interface Box { a: Box; b: string } +>a : Box +>b : string + +const f: typeof victim = (x: U, y: { b: string }) => x.b; +>f : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>victim : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>(x: U, y: { b: string }) => x.b : (x: U, y: { b: string; }) => string +>x : U +>y : { b: string; } +>b : string +>x.b : string +>x : U +>b : string + +function victim( +>victim : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string + + x: T, +>x : T + + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>y : T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + +): string { + return x.b + y.b; +>x.b + y.b : string +>x.b : string +>x : T +>b : string +>y.b : string +>y : T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>b : string +} + +function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { +>lone : (y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>y : U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + + return y.b; +>y.b : string +>y : U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>b : string +} + diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).errors.txt b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).errors.txt new file mode 100644 index 0000000000000..a1474c01bbc98 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).errors.txt @@ -0,0 +1,29 @@ +deepIndexedAccessChainConstraintCheckOrder.ts(14,14): error TS2339: Property 'b' does not exist on type 'T'. +deepIndexedAccessChainConstraintCheckOrder.ts(14,20): error TS2339: Property 'b' does not exist on type 'T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]'. + + +==== deepIndexedAccessChainConstraintCheckOrder.ts (2 errors) ==== + // The base constraint of a chain of indexed accesses is found through the + // object type of each, all of which share the recursion identity of the + // type parameter. The chain is finite, so the property access is valid + // however deep the chain, and whichever declaration is checked first (65508). + + interface Box { a: Box; b: string } + + const f: typeof victim = (x: U, y: { b: string }) => x.b; + + function victim( + x: T, + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + ): string { + return x.b + y.b; + ~ +!!! error TS2339: Property 'b' does not exist on type 'T'. + ~ +!!! error TS2339: Property 'b' does not exist on type 'T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]'. + } + + function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { + return y.b; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).symbols new file mode 100644 index 0000000000000..d4a45f6e4fbab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).symbols @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts] //// + +=== deepIndexedAccessChainConstraintCheckOrder.ts === +// The base constraint of a chain of indexed accesses is found through the +// object type of each, all of which share the recursion identity of the +// type parameter. The chain is finite, so the property access is valid +// however deep the chain, and whichever declaration is checked first (65508). + +interface Box { a: Box; b: string } +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>a : Symbol(Box.a, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 15)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) + +const f: typeof victim = (x: U, y: { b: string }) => x.b; +>f : Symbol(f, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 5)) +>victim : Symbol(victim, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 72)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 26)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 41)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 26)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 46)) +>b : Symbol(b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 51)) +>x.b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 41)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) + +function victim( +>victim : Symbol(victim, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 72)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) + + x: T, +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 31)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) + + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 10, 9)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) + +): string { + return x.b + y.b; +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 31)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 10, 9)) +} + +function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { +>lone : Symbol(lone, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 14, 1)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 14)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 29)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 14)) + + return y.b; +>y.b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 29)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).types new file mode 100644 index 0000000000000..f3de565d90af5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=reverse).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts] //// + +=== deepIndexedAccessChainConstraintCheckOrder.ts === +// The base constraint of a chain of indexed accesses is found through the +// object type of each, all of which share the recursion identity of the +// type parameter. The chain is finite, so the property access is valid +// however deep the chain, and whichever declaration is checked first (65508). + +interface Box { a: Box; b: string } +>a : Box +>b : string + +const f: typeof victim = (x: U, y: { b: string }) => x.b; +>f : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>victim : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>(x: U, y: { b: string }) => x.b : (x: U, y: { b: string; }) => string +>x : U +>y : { b: string; } +>b : string +>x.b : string +>x : U +>b : string + +function victim( +>victim : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string + + x: T, +>x : T + + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>y : T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + +): string { + return x.b + y.b; +>x.b + y.b : any +>x.b : any +>x : T +>b : any +>y.b : any +>y : T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>b : any +} + +function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { +>lone : (y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>y : U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + + return y.b; +>y.b : string +>y : U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>b : string +} + diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..ef5a88b87d18e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,32 @@ +deepIndexedAccessChainConstraintCheckOrder.ts(14,14): error TS2339: Property 'b' does not exist on type 'T'. +deepIndexedAccessChainConstraintCheckOrder.ts(14,20): error TS2339: Property 'b' does not exist on type 'T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]'. +deepIndexedAccessChainConstraintCheckOrder.ts(18,14): error TS2339: Property 'b' does not exist on type 'U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]'. + + +==== deepIndexedAccessChainConstraintCheckOrder.ts (3 errors) ==== + // The base constraint of a chain of indexed accesses is found through the + // object type of each, all of which share the recursion identity of the + // type parameter. The chain is finite, so the property access is valid + // however deep the chain, and whichever declaration is checked first (65508). + + interface Box { a: Box; b: string } + + const f: typeof victim = (x: U, y: { b: string }) => x.b; + + function victim( + x: T, + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + ): string { + return x.b + y.b; + ~ +!!! error TS2339: Property 'b' does not exist on type 'T'. + ~ +!!! error TS2339: Property 'b' does not exist on type 'T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]'. + } + + function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { + return y.b; + ~ +!!! error TS2339: Property 'b' does not exist on type 'U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..0c09c7dce7f91 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,57 @@ +//// [tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts] //// + +=== deepIndexedAccessChainConstraintCheckOrder.ts === +// The base constraint of a chain of indexed accesses is found through the +// object type of each, all of which share the recursion identity of the +// type parameter. The chain is finite, so the property access is valid +// however deep the chain, and whichever declaration is checked first (65508). + +interface Box { a: Box; b: string } +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>a : Symbol(Box.a, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 15)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) + +const f: typeof victim = (x: U, y: { b: string }) => x.b; +>f : Symbol(f, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 5)) +>victim : Symbol(victim, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 72)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 26)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 41)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 26)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 46)) +>b : Symbol(b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 51)) +>x.b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 41)) +>b : Symbol(Box.b, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 5, 23)) + +function victim( +>victim : Symbol(victim, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 7, 72)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) + + x: T, +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 31)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) + + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 10, 9)) +>T : Symbol(T, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 16)) + +): string { + return x.b + y.b; +>x : Symbol(x, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 9, 31)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 10, 9)) +} + +function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { +>lone : Symbol(lone, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 14, 1)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 14)) +>Box : Symbol(Box, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 0, 0)) +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 29)) +>U : Symbol(U, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 14)) + + return y.b; +>y : Symbol(y, Decl(deepIndexedAccessChainConstraintCheckOrder.ts, 16, 29)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..28f4ad3966190 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deepIndexedAccessChainConstraintCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts] //// + +=== deepIndexedAccessChainConstraintCheckOrder.ts === +// The base constraint of a chain of indexed accesses is found through the +// object type of each, all of which share the recursion identity of the +// type parameter. The chain is finite, so the property access is valid +// however deep the chain, and whichever declaration is checked first (65508). + +interface Box { a: Box; b: string } +>a : Box +>b : string + +const f: typeof victim = (x: U, y: { b: string }) => x.b; +>f : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>victim : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>(x: U, y: { b: string }) => x.b : (x: U, y: { b: string; }) => string +>x : U +>y : { b: string; } +>b : string +>x.b : string +>x : U +>b : string + +function victim( +>victim : (x: T, y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string + + x: T, +>x : T + + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>y : T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + +): string { + return x.b + y.b; +>x.b + y.b : any +>x.b : any +>x : T +>b : any +>y.b : any +>y : T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>b : any +} + +function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { +>lone : (y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]) => string +>y : U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] + + return y.b; +>y.b : any +>y : U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +>b : any +} + diff --git a/tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.errors.txt b/tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.errors.txt new file mode 100644 index 0000000000000..88bdce38b167c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.errors.txt @@ -0,0 +1,24 @@ +deferredTypeReferenceCycleRollback.ts(17,31): error TS2304: Cannot find name 'Missing'. + + +==== deferredTypeReferenceCycleRollback.ts (1 errors) ==== + // A cycle rollback used to reset the type of the Array> + // node while the deferred reference identified by that node survived, + // which crashed a later instantiation of it. + + declare function declare(): void; + + interface PluginObj { + visitor: Visit; + } + type Visit = VisitFn | VisitObj; + type VisitFn = (path: NodePath

) => void; + interface VisitObj {} + declare class NodePath { + parentPath: NodePath>; + get: Get; + } + type Get = T extends Array ? Array> : never; + ~~~~~~~ +!!! error TS2304: Cannot find name 'Missing'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.symbols b/tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.symbols new file mode 100644 index 0000000000000..285889376a2ba --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.symbols @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/deferredTypeReferenceCycleRollback.ts] //// + +=== deferredTypeReferenceCycleRollback.ts === +// A cycle rollback used to reset the type of the Array> +// node while the deferred reference identified by that node survived, +// which crashed a later instantiation of it. + +declare function declare(): void; +>declare : Symbol(declare, Decl(deferredTypeReferenceCycleRollback.ts, 0, 0)) +>T : Symbol(T, Decl(deferredTypeReferenceCycleRollback.ts, 4, 25)) +>PluginObj : Symbol(PluginObj, Decl(deferredTypeReferenceCycleRollback.ts, 4, 66)) +>PluginObj : Symbol(PluginObj, Decl(deferredTypeReferenceCycleRollback.ts, 4, 66)) + +interface PluginObj { +>PluginObj : Symbol(PluginObj, Decl(deferredTypeReferenceCycleRollback.ts, 4, 66)) +>S : Symbol(S, Decl(deferredTypeReferenceCycleRollback.ts, 6, 20)) + + visitor: Visit; +>visitor : Symbol(PluginObj.visitor, Decl(deferredTypeReferenceCycleRollback.ts, 6, 34)) +>Visit : Symbol(Visit, Decl(deferredTypeReferenceCycleRollback.ts, 8, 1)) +>S : Symbol(S, Decl(deferredTypeReferenceCycleRollback.ts, 6, 20)) +} +type Visit = VisitFn | VisitObj; +>Visit : Symbol(Visit, Decl(deferredTypeReferenceCycleRollback.ts, 8, 1)) +>S : Symbol(S, Decl(deferredTypeReferenceCycleRollback.ts, 9, 11)) +>P : Symbol(P, Decl(deferredTypeReferenceCycleRollback.ts, 9, 13)) +>VisitFn : Symbol(VisitFn, Decl(deferredTypeReferenceCycleRollback.ts, 9, 50)) +>S : Symbol(S, Decl(deferredTypeReferenceCycleRollback.ts, 9, 11)) +>P : Symbol(P, Decl(deferredTypeReferenceCycleRollback.ts, 9, 13)) +>VisitObj : Symbol(VisitObj, Decl(deferredTypeReferenceCycleRollback.ts, 10, 49)) +>S : Symbol(S, Decl(deferredTypeReferenceCycleRollback.ts, 9, 11)) +>P : Symbol(P, Decl(deferredTypeReferenceCycleRollback.ts, 9, 13)) + +type VisitFn = (path: NodePath

) => void; +>VisitFn : Symbol(VisitFn, Decl(deferredTypeReferenceCycleRollback.ts, 9, 50)) +>S : Symbol(S, Decl(deferredTypeReferenceCycleRollback.ts, 10, 13)) +>P : Symbol(P, Decl(deferredTypeReferenceCycleRollback.ts, 10, 15)) +>path : Symbol(path, Decl(deferredTypeReferenceCycleRollback.ts, 10, 22)) +>NodePath : Symbol(NodePath, Decl(deferredTypeReferenceCycleRollback.ts, 11, 27)) +>P : Symbol(P, Decl(deferredTypeReferenceCycleRollback.ts, 10, 15)) + +interface VisitObj {} +>VisitObj : Symbol(VisitObj, Decl(deferredTypeReferenceCycleRollback.ts, 10, 49)) +>S : Symbol(S, Decl(deferredTypeReferenceCycleRollback.ts, 11, 19)) +>P : Symbol(P, Decl(deferredTypeReferenceCycleRollback.ts, 11, 21)) + +declare class NodePath { +>NodePath : Symbol(NodePath, Decl(deferredTypeReferenceCycleRollback.ts, 11, 27)) +>T : Symbol(T, Decl(deferredTypeReferenceCycleRollback.ts, 12, 23)) + + parentPath: NodePath>; +>parentPath : Symbol(NodePath.parentPath, Decl(deferredTypeReferenceCycleRollback.ts, 12, 27)) +>NodePath : Symbol(NodePath, Decl(deferredTypeReferenceCycleRollback.ts, 11, 27)) +>Exclude : Symbol(Exclude, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(deferredTypeReferenceCycleRollback.ts, 12, 23)) + + get: Get; +>get : Symbol(NodePath.get, Decl(deferredTypeReferenceCycleRollback.ts, 13, 43)) +>Get : Symbol(Get, Decl(deferredTypeReferenceCycleRollback.ts, 15, 1)) +>T : Symbol(T, Decl(deferredTypeReferenceCycleRollback.ts, 12, 23)) +} +type Get = T extends Array ? Array> : never; +>Get : Symbol(Get, Decl(deferredTypeReferenceCycleRollback.ts, 15, 1)) +>T : Symbol(T, Decl(deferredTypeReferenceCycleRollback.ts, 16, 9)) +>T : Symbol(T, Decl(deferredTypeReferenceCycleRollback.ts, 16, 9)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>Missing : Symbol(Missing) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>NodePath : Symbol(NodePath, Decl(deferredTypeReferenceCycleRollback.ts, 11, 27)) + diff --git a/tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.types b/tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.types new file mode 100644 index 0000000000000..7db259991a1ca --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deferredTypeReferenceCycleRollback.types @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/deferredTypeReferenceCycleRollback.ts] //// + +=== deferredTypeReferenceCycleRollback.ts === +// A cycle rollback used to reset the type of the Array> +// node while the deferred reference identified by that node survived, +// which crashed a later instantiation of it. + +declare function declare(): void; +>declare : >() => void + +interface PluginObj { + visitor: Visit; +>visitor : Visit +} +type Visit = VisitFn | VisitObj; +>Visit : Visit + +type VisitFn = (path: NodePath

) => void; +>VisitFn : VisitFn +>path : NodePath

= (m: Effect<() => Effect>) => [R]; + declare const make: Make; + + const r = make(succeed(gen(function* () { + yield* req; + return ""; + }))); + const check: [1] = r; // error message shows what R was inferred as + ~~~~~ +!!! error TS2322: Type '[unknown]' is not assignable to type '[1]'. +!!! error TS2322: Type 'unknown' is not assignable to type '1'. + + type Payload = { scalars: object; objects: object }; + + type FindResult

= A extends { select: infer S extends object } + ? { + [K in keyof S]: S[K] extends object + ? P extends { objects: { [k in K]: (infer O)[] } } + ? FindResult[] + : never + : P['scalars'][K & keyof P['scalars']]; + } + : never; + + type MessagePayload = { objects: {}; scalars: { body: string } }; + type ConversationPayload = { objects: { messages: MessagePayload[] }; scalars: {} }; + type ThreadPayload = { objects: { conversations: ConversationPayload[] }; scalars: {} }; + + declare function findThread(args: A): FindResult; + + const thread = findThread({ + select: { conversations: { select: { messages: { select: { body: true } } } } }, + }); + + type ThreadRow = { conversations: Array<{ messages: Array }> }; + + declare function firstMessageViaAlias(thread: ThreadRow): M; + declare function firstMessageInline(thread: { conversations: Array<{ messages: Array }> }): M; + + const viaAlias: string = firstMessageViaAlias(thread).body; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2571: Object is of type 'unknown'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.symbols b/tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.symbols new file mode 100644 index 0000000000000..15b2910eecaa2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.symbols @@ -0,0 +1,218 @@ +//// [tests/cases/compiler/inferenceThroughGenericAliasCallSignature.ts] //// + +=== inferenceThroughGenericAliasCallSignature.ts === +// R is inferred from the return type of a function passed through a call +// signature of a generic type alias, and M from a recursive mapped result +// (64757). + +interface Effect { +>Effect : Symbol(Effect, Decl(inferenceThroughGenericAliasCallSignature.ts, 0, 0)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 4, 17)) +>R : Symbol(R, Decl(inferenceThroughGenericAliasCallSignature.ts, 4, 23)) + + readonly _A: () => A; +>_A : Symbol(Effect._A, Decl(inferenceThroughGenericAliasCallSignature.ts, 4, 40)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 4, 17)) + + readonly _R: () => R; +>_R : Symbol(Effect._R, Decl(inferenceThroughGenericAliasCallSignature.ts, 5, 23)) +>R : Symbol(R, Decl(inferenceThroughGenericAliasCallSignature.ts, 4, 23)) + + [Symbol.iterator](): Iterator, A>; +>[Symbol.iterator] : Symbol(Effect[Symbol.iterator], Decl(inferenceThroughGenericAliasCallSignature.ts, 6, 23)) +>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --)) +>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --)) +>Effect : Symbol(Effect, Decl(inferenceThroughGenericAliasCallSignature.ts, 0, 0)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 4, 17)) +>R : Symbol(R, Decl(inferenceThroughGenericAliasCallSignature.ts, 4, 23)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 4, 17)) +} +declare function succeed(value: A): Effect; +>succeed : Symbol(succeed, Decl(inferenceThroughGenericAliasCallSignature.ts, 8, 1)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 9, 25)) +>value : Symbol(value, Decl(inferenceThroughGenericAliasCallSignature.ts, 9, 28)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 9, 25)) +>Effect : Symbol(Effect, Decl(inferenceThroughGenericAliasCallSignature.ts, 0, 0)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 9, 25)) + +declare function gen, AEff>( +>gen : Symbol(gen, Decl(inferenceThroughGenericAliasCallSignature.ts, 9, 49)) +>Eff : Symbol(Eff, Decl(inferenceThroughGenericAliasCallSignature.ts, 10, 21)) +>Effect : Symbol(Effect, Decl(inferenceThroughGenericAliasCallSignature.ts, 0, 0)) +>AEff : Symbol(AEff, Decl(inferenceThroughGenericAliasCallSignature.ts, 10, 50)) + + body: () => Generator, +>body : Symbol(body, Decl(inferenceThroughGenericAliasCallSignature.ts, 10, 57)) +>Generator : Symbol(Generator, Decl(lib.es2015.generator.d.ts, --, --)) +>Eff : Symbol(Eff, Decl(inferenceThroughGenericAliasCallSignature.ts, 10, 21)) +>AEff : Symbol(AEff, Decl(inferenceThroughGenericAliasCallSignature.ts, 10, 50)) + +): () => Effect ? R : never>; +>Effect : Symbol(Effect, Decl(inferenceThroughGenericAliasCallSignature.ts, 0, 0)) +>AEff : Symbol(AEff, Decl(inferenceThroughGenericAliasCallSignature.ts, 10, 50)) +>Eff : Symbol(Eff, Decl(inferenceThroughGenericAliasCallSignature.ts, 10, 21)) +>Effect : Symbol(Effect, Decl(inferenceThroughGenericAliasCallSignature.ts, 0, 0)) +>_A : Symbol(_A, Decl(inferenceThroughGenericAliasCallSignature.ts, 12, 46)) +>R : Symbol(R, Decl(inferenceThroughGenericAliasCallSignature.ts, 12, 56)) +>R : Symbol(R, Decl(inferenceThroughGenericAliasCallSignature.ts, 12, 56)) + +interface Req { readonly url: string } +>Req : Symbol(Req, Decl(inferenceThroughGenericAliasCallSignature.ts, 12, 73)) +>url : Symbol(Req.url, Decl(inferenceThroughGenericAliasCallSignature.ts, 14, 15)) + +declare const req: Effect; +>req : Symbol(req, Decl(inferenceThroughGenericAliasCallSignature.ts, 15, 13)) +>Effect : Symbol(Effect, Decl(inferenceThroughGenericAliasCallSignature.ts, 0, 0)) +>Req : Symbol(Req, Decl(inferenceThroughGenericAliasCallSignature.ts, 12, 73)) +>Req : Symbol(Req, Decl(inferenceThroughGenericAliasCallSignature.ts, 12, 73)) + +type Make

= (m: Effect<() => Effect>) => [R]; +>Make : Symbol(Make, Decl(inferenceThroughGenericAliasCallSignature.ts, 15, 36)) +>P : Symbol(P, Decl(inferenceThroughGenericAliasCallSignature.ts, 17, 10)) +>R : Symbol(R, Decl(inferenceThroughGenericAliasCallSignature.ts, 17, 16)) +>m : Symbol(m, Decl(inferenceThroughGenericAliasCallSignature.ts, 17, 19)) +>Effect : Symbol(Effect, Decl(inferenceThroughGenericAliasCallSignature.ts, 0, 0)) +>Effect : Symbol(Effect, Decl(inferenceThroughGenericAliasCallSignature.ts, 0, 0)) +>R : Symbol(R, Decl(inferenceThroughGenericAliasCallSignature.ts, 17, 16)) +>R : Symbol(R, Decl(inferenceThroughGenericAliasCallSignature.ts, 17, 16)) + +declare const make: Make; +>make : Symbol(make, Decl(inferenceThroughGenericAliasCallSignature.ts, 18, 13)) +>Make : Symbol(Make, Decl(inferenceThroughGenericAliasCallSignature.ts, 15, 36)) + +const r = make(succeed(gen(function* () { +>r : Symbol(r, Decl(inferenceThroughGenericAliasCallSignature.ts, 20, 5)) +>make : Symbol(make, Decl(inferenceThroughGenericAliasCallSignature.ts, 18, 13)) +>succeed : Symbol(succeed, Decl(inferenceThroughGenericAliasCallSignature.ts, 8, 1)) +>gen : Symbol(gen, Decl(inferenceThroughGenericAliasCallSignature.ts, 9, 49)) + + yield* req; +>req : Symbol(req, Decl(inferenceThroughGenericAliasCallSignature.ts, 15, 13)) + + return ""; +}))); +const check: [1] = r; // error message shows what R was inferred as +>check : Symbol(check, Decl(inferenceThroughGenericAliasCallSignature.ts, 24, 5)) +>r : Symbol(r, Decl(inferenceThroughGenericAliasCallSignature.ts, 20, 5)) + +type Payload = { scalars: object; objects: object }; +>Payload : Symbol(Payload, Decl(inferenceThroughGenericAliasCallSignature.ts, 24, 21)) +>scalars : Symbol(scalars, Decl(inferenceThroughGenericAliasCallSignature.ts, 26, 16)) +>objects : Symbol(objects, Decl(inferenceThroughGenericAliasCallSignature.ts, 26, 33)) + +type FindResult

= A extends { select: infer S extends object } +>FindResult : Symbol(FindResult, Decl(inferenceThroughGenericAliasCallSignature.ts, 26, 52)) +>P : Symbol(P, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 16)) +>Payload : Symbol(Payload, Decl(inferenceThroughGenericAliasCallSignature.ts, 24, 21)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 34)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 34)) +>select : Symbol(select, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 51)) +>S : Symbol(S, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 65)) + + ? { + [K in keyof S]: S[K] extends object +>K : Symbol(K, Decl(inferenceThroughGenericAliasCallSignature.ts, 30, 7)) +>S : Symbol(S, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 65)) +>S : Symbol(S, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 65)) +>K : Symbol(K, Decl(inferenceThroughGenericAliasCallSignature.ts, 30, 7)) + + ? P extends { objects: { [k in K]: (infer O)[] } } +>P : Symbol(P, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 16)) +>objects : Symbol(objects, Decl(inferenceThroughGenericAliasCallSignature.ts, 31, 21)) +>k : Symbol(k, Decl(inferenceThroughGenericAliasCallSignature.ts, 31, 34)) +>K : Symbol(K, Decl(inferenceThroughGenericAliasCallSignature.ts, 30, 7)) +>O : Symbol(O, Decl(inferenceThroughGenericAliasCallSignature.ts, 31, 49)) + + ? FindResult[] +>FindResult : Symbol(FindResult, Decl(inferenceThroughGenericAliasCallSignature.ts, 26, 52)) +>O : Symbol(O, Decl(inferenceThroughGenericAliasCallSignature.ts, 31, 49)) +>Payload : Symbol(Payload, Decl(inferenceThroughGenericAliasCallSignature.ts, 24, 21)) +>S : Symbol(S, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 65)) +>K : Symbol(K, Decl(inferenceThroughGenericAliasCallSignature.ts, 30, 7)) + + : never + : P['scalars'][K & keyof P['scalars']]; +>P : Symbol(P, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 16)) +>K : Symbol(K, Decl(inferenceThroughGenericAliasCallSignature.ts, 30, 7)) +>P : Symbol(P, Decl(inferenceThroughGenericAliasCallSignature.ts, 28, 16)) + } + : never; + +type MessagePayload = { objects: {}; scalars: { body: string } }; +>MessagePayload : Symbol(MessagePayload, Decl(inferenceThroughGenericAliasCallSignature.ts, 36, 10)) +>objects : Symbol(objects, Decl(inferenceThroughGenericAliasCallSignature.ts, 38, 23)) +>scalars : Symbol(scalars, Decl(inferenceThroughGenericAliasCallSignature.ts, 38, 36)) +>body : Symbol(body, Decl(inferenceThroughGenericAliasCallSignature.ts, 38, 47)) + +type ConversationPayload = { objects: { messages: MessagePayload[] }; scalars: {} }; +>ConversationPayload : Symbol(ConversationPayload, Decl(inferenceThroughGenericAliasCallSignature.ts, 38, 65)) +>objects : Symbol(objects, Decl(inferenceThroughGenericAliasCallSignature.ts, 39, 28)) +>messages : Symbol(messages, Decl(inferenceThroughGenericAliasCallSignature.ts, 39, 39)) +>MessagePayload : Symbol(MessagePayload, Decl(inferenceThroughGenericAliasCallSignature.ts, 36, 10)) +>scalars : Symbol(scalars, Decl(inferenceThroughGenericAliasCallSignature.ts, 39, 69)) + +type ThreadPayload = { objects: { conversations: ConversationPayload[] }; scalars: {} }; +>ThreadPayload : Symbol(ThreadPayload, Decl(inferenceThroughGenericAliasCallSignature.ts, 39, 84)) +>objects : Symbol(objects, Decl(inferenceThroughGenericAliasCallSignature.ts, 40, 22)) +>conversations : Symbol(conversations, Decl(inferenceThroughGenericAliasCallSignature.ts, 40, 33)) +>ConversationPayload : Symbol(ConversationPayload, Decl(inferenceThroughGenericAliasCallSignature.ts, 38, 65)) +>scalars : Symbol(scalars, Decl(inferenceThroughGenericAliasCallSignature.ts, 40, 73)) + +declare function findThread(args: A): FindResult; +>findThread : Symbol(findThread, Decl(inferenceThroughGenericAliasCallSignature.ts, 40, 88)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 42, 28)) +>args : Symbol(args, Decl(inferenceThroughGenericAliasCallSignature.ts, 42, 31)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 42, 28)) +>FindResult : Symbol(FindResult, Decl(inferenceThroughGenericAliasCallSignature.ts, 26, 52)) +>ThreadPayload : Symbol(ThreadPayload, Decl(inferenceThroughGenericAliasCallSignature.ts, 39, 84)) +>A : Symbol(A, Decl(inferenceThroughGenericAliasCallSignature.ts, 42, 28)) + +const thread = findThread({ +>thread : Symbol(thread, Decl(inferenceThroughGenericAliasCallSignature.ts, 44, 5)) +>findThread : Symbol(findThread, Decl(inferenceThroughGenericAliasCallSignature.ts, 40, 88)) + + select: { conversations: { select: { messages: { select: { body: true } } } } }, +>select : Symbol(select, Decl(inferenceThroughGenericAliasCallSignature.ts, 44, 27)) +>conversations : Symbol(conversations, Decl(inferenceThroughGenericAliasCallSignature.ts, 45, 11)) +>select : Symbol(select, Decl(inferenceThroughGenericAliasCallSignature.ts, 45, 28)) +>messages : Symbol(messages, Decl(inferenceThroughGenericAliasCallSignature.ts, 45, 38)) +>select : Symbol(select, Decl(inferenceThroughGenericAliasCallSignature.ts, 45, 50)) +>body : Symbol(body, Decl(inferenceThroughGenericAliasCallSignature.ts, 45, 60)) + +}); + +type ThreadRow = { conversations: Array<{ messages: Array }> }; +>ThreadRow : Symbol(ThreadRow, Decl(inferenceThroughGenericAliasCallSignature.ts, 46, 3)) +>M : Symbol(M, Decl(inferenceThroughGenericAliasCallSignature.ts, 48, 15)) +>conversations : Symbol(conversations, Decl(inferenceThroughGenericAliasCallSignature.ts, 48, 21)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>messages : Symbol(messages, Decl(inferenceThroughGenericAliasCallSignature.ts, 48, 44)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>M : Symbol(M, Decl(inferenceThroughGenericAliasCallSignature.ts, 48, 15)) + +declare function firstMessageViaAlias(thread: ThreadRow): M; +>firstMessageViaAlias : Symbol(firstMessageViaAlias, Decl(inferenceThroughGenericAliasCallSignature.ts, 48, 69)) +>M : Symbol(M, Decl(inferenceThroughGenericAliasCallSignature.ts, 50, 38)) +>thread : Symbol(thread, Decl(inferenceThroughGenericAliasCallSignature.ts, 50, 41)) +>ThreadRow : Symbol(ThreadRow, Decl(inferenceThroughGenericAliasCallSignature.ts, 46, 3)) +>M : Symbol(M, Decl(inferenceThroughGenericAliasCallSignature.ts, 50, 38)) +>M : Symbol(M, Decl(inferenceThroughGenericAliasCallSignature.ts, 50, 38)) + +declare function firstMessageInline(thread: { conversations: Array<{ messages: Array }> }): M; +>firstMessageInline : Symbol(firstMessageInline, Decl(inferenceThroughGenericAliasCallSignature.ts, 50, 66)) +>M : Symbol(M, Decl(inferenceThroughGenericAliasCallSignature.ts, 51, 36)) +>thread : Symbol(thread, Decl(inferenceThroughGenericAliasCallSignature.ts, 51, 39)) +>conversations : Symbol(conversations, Decl(inferenceThroughGenericAliasCallSignature.ts, 51, 48)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>messages : Symbol(messages, Decl(inferenceThroughGenericAliasCallSignature.ts, 51, 71)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>M : Symbol(M, Decl(inferenceThroughGenericAliasCallSignature.ts, 51, 36)) +>M : Symbol(M, Decl(inferenceThroughGenericAliasCallSignature.ts, 51, 36)) + +const viaAlias: string = firstMessageViaAlias(thread).body; +>viaAlias : Symbol(viaAlias, Decl(inferenceThroughGenericAliasCallSignature.ts, 53, 5)) +>firstMessageViaAlias : Symbol(firstMessageViaAlias, Decl(inferenceThroughGenericAliasCallSignature.ts, 48, 69)) +>thread : Symbol(thread, Decl(inferenceThroughGenericAliasCallSignature.ts, 44, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.types b/tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.types new file mode 100644 index 0000000000000..517edb5b39167 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.types @@ -0,0 +1,154 @@ +//// [tests/cases/compiler/inferenceThroughGenericAliasCallSignature.ts] //// + +=== inferenceThroughGenericAliasCallSignature.ts === +// R is inferred from the return type of a function passed through a call +// signature of a generic type alias, and M from a recursive mapped result +// (64757). + +interface Effect { + readonly _A: () => A; +>_A : () => A + + readonly _R: () => R; +>_R : () => R + + [Symbol.iterator](): Iterator, A>; +>[Symbol.iterator] : () => Iterator, A> +>Symbol.iterator : unique symbol +>Symbol : SymbolConstructor +>iterator : unique symbol +} +declare function succeed(value: A): Effect; +>succeed : (value: A) => Effect +>value : A + +declare function gen, AEff>( +>gen : , AEff>(body: () => Generator) => () => Effect ? R : never> + + body: () => Generator, +>body : () => Generator + +): () => Effect ? R : never>; + +interface Req { readonly url: string } +>url : string + +declare const req: Effect; +>req : Effect + +type Make

= (m: Effect<() => Effect>) => [R]; +>Make : Make

+>m : Effect<() => Effect, never> + +declare const make: Make; +>make : Make + +const r = make(succeed(gen(function* () { +>r : [unknown] +>make(succeed(gen(function* () { yield* req; return "";}))) : [unknown] +>make : Make +>succeed(gen(function* () { yield* req; return "";})) : Effect<() => Effect, never> +>succeed : (value: A) => Effect +>gen(function* () { yield* req; return "";}) : () => Effect +>gen : , AEff>(body: () => Generator) => () => Effect ? R : never> +>function* () { yield* req; return "";} : () => Generator, string, any> + + yield* req; +>yield* req : Req +>req : Effect + + return ""; +>"" : "" + +}))); +const check: [1] = r; // error message shows what R was inferred as +>check : [1] +>r : [unknown] + +type Payload = { scalars: object; objects: object }; +>Payload : Payload +>scalars : object +>objects : object + +type FindResult

= A extends { select: infer S extends object } +>FindResult : FindResult +>select : S + + ? { + [K in keyof S]: S[K] extends object + ? P extends { objects: { [k in K]: (infer O)[] } } +>objects : { [k in K]: O[]; } + + ? FindResult[] + : never + : P['scalars'][K & keyof P['scalars']]; + } + : never; + +type MessagePayload = { objects: {}; scalars: { body: string } }; +>MessagePayload : MessagePayload +>objects : {} +>scalars : { body: string; } +>body : string + +type ConversationPayload = { objects: { messages: MessagePayload[] }; scalars: {} }; +>ConversationPayload : ConversationPayload +>objects : { messages: MessagePayload[]; } +>messages : MessagePayload[] +>scalars : {} + +type ThreadPayload = { objects: { conversations: ConversationPayload[] }; scalars: {} }; +>ThreadPayload : ThreadPayload +>objects : { conversations: ConversationPayload[]; } +>conversations : ConversationPayload[] +>scalars : {} + +declare function findThread(args: A): FindResult; +>findThread : (args: A) => FindResult +>args : A + +const thread = findThread({ +>thread : { conversations: { messages: { body: string; }[]; }[]; } +>findThread({ select: { conversations: { select: { messages: { select: { body: true } } } } },}) : { conversations: { messages: { body: string; }[]; }[]; } +>findThread : (args: A) => FindResult +>{ select: { conversations: { select: { messages: { select: { body: true } } } } },} : { select: { conversations: { select: { messages: { select: { body: true; }; }; }; }; }; } + + select: { conversations: { select: { messages: { select: { body: true } } } } }, +>select : { conversations: { select: { messages: { select: { body: true; }; }; }; }; } +>{ conversations: { select: { messages: { select: { body: true } } } } } : { conversations: { select: { messages: { select: { body: true; }; }; }; }; } +>conversations : { select: { messages: { select: { body: true; }; }; }; } +>{ select: { messages: { select: { body: true } } } } : { select: { messages: { select: { body: true; }; }; }; } +>select : { messages: { select: { body: true; }; }; } +>{ messages: { select: { body: true } } } : { messages: { select: { body: true; }; }; } +>messages : { select: { body: true; }; } +>{ select: { body: true } } : { select: { body: true; }; } +>select : { body: true; } +>{ body: true } : { body: true; } +>body : true +>true : true + +}); + +type ThreadRow = { conversations: Array<{ messages: Array }> }; +>ThreadRow : ThreadRow +>conversations : { messages: Array; }[] +>messages : M[] + +declare function firstMessageViaAlias(thread: ThreadRow): M; +>firstMessageViaAlias : (thread: ThreadRow) => M +>thread : ThreadRow + +declare function firstMessageInline(thread: { conversations: Array<{ messages: Array }> }): M; +>firstMessageInline : (thread: { conversations: Array<{ messages: Array; }>; }) => M +>thread : { conversations: Array<{ messages: Array; }>; } +>conversations : { messages: Array; }[] +>messages : M[] + +const viaAlias: string = firstMessageViaAlias(thread).body; +>viaAlias : string +>firstMessageViaAlias(thread).body : any +>firstMessageViaAlias(thread) : unknown +>firstMessageViaAlias : (thread: ThreadRow) => M +>thread : { conversations: { messages: { body: string; }[]; }[]; } +>body : any + diff --git a/tsc/testdata/baselines/reference/compiler/inferenceThroughNestedReferencesOfSameType.symbols b/tsc/testdata/baselines/reference/compiler/inferenceThroughNestedReferencesOfSameType.symbols new file mode 100644 index 0000000000000..ef79fe0853cae --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceThroughNestedReferencesOfSameType.symbols @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/inferenceThroughNestedReferencesOfSameType.ts] //// + +=== inferenceThroughNestedReferencesOfSameType.ts === +// Inferring from Promise> to Promise> reaches +// Promise>, through the next method of AsyncIterator. +// That Promise is not built from the first one, so inference must not stop +// there as though it were expanding without end. + +interface C { +>C : Symbol(C, Decl(inferenceThroughNestedReferencesOfSameType.ts, 0, 0)) +>T : Symbol(T, Decl(inferenceThroughNestedReferencesOfSameType.ts, 5, 12)) + + [Symbol.asyncIterator](): C; +>[Symbol.asyncIterator] : Symbol(C[Symbol.asyncIterator], Decl(inferenceThroughNestedReferencesOfSameType.ts, 5, 16)) +>Symbol.asyncIterator : Symbol(SymbolConstructor.asyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) +>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --)) +>asyncIterator : Symbol(SymbolConstructor.asyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) +>C : Symbol(C, Decl(inferenceThroughNestedReferencesOfSameType.ts, 0, 0)) +>T : Symbol(T, Decl(inferenceThroughNestedReferencesOfSameType.ts, 5, 12)) + + next(): Promise>; +>next : Symbol(C.next, Decl(inferenceThroughNestedReferencesOfSameType.ts, 6, 35)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>IteratorResult : Symbol(IteratorResult, Decl(lib.es2015.iterable.d.ts, --, --)) +>T : Symbol(T, Decl(inferenceThroughNestedReferencesOfSameType.ts, 5, 12)) +} + +declare function g(x: Promise>): T; +>g : Symbol(g, Decl(inferenceThroughNestedReferencesOfSameType.ts, 8, 1)) +>T : Symbol(T, Decl(inferenceThroughNestedReferencesOfSameType.ts, 10, 19)) +>x : Symbol(x, Decl(inferenceThroughNestedReferencesOfSameType.ts, 10, 22)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>AsyncIterable : Symbol(AsyncIterable, Decl(lib.es2018.asynciterable.d.ts, --, --)) +>T : Symbol(T, Decl(inferenceThroughNestedReferencesOfSameType.ts, 10, 19)) +>T : Symbol(T, Decl(inferenceThroughNestedReferencesOfSameType.ts, 10, 19)) + +declare const c: Promise>; +>c : Symbol(c, Decl(inferenceThroughNestedReferencesOfSameType.ts, 11, 13)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>C : Symbol(C, Decl(inferenceThroughNestedReferencesOfSameType.ts, 0, 0)) +>a : Symbol(a, Decl(inferenceThroughNestedReferencesOfSameType.ts, 11, 28)) + +const n = g(c); +>n : Symbol(n, Decl(inferenceThroughNestedReferencesOfSameType.ts, 12, 5)) +>g : Symbol(g, Decl(inferenceThroughNestedReferencesOfSameType.ts, 8, 1)) +>c : Symbol(c, Decl(inferenceThroughNestedReferencesOfSameType.ts, 11, 13)) + +declare function follow(open: () => Promise>, onFrame: (frame: T) => void): void; +>follow : Symbol(follow, Decl(inferenceThroughNestedReferencesOfSameType.ts, 12, 15)) +>T : Symbol(T, Decl(inferenceThroughNestedReferencesOfSameType.ts, 14, 24)) +>open : Symbol(open, Decl(inferenceThroughNestedReferencesOfSameType.ts, 14, 27)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>AsyncIterable : Symbol(AsyncIterable, Decl(lib.es2018.asynciterable.d.ts, --, --)) +>T : Symbol(T, Decl(inferenceThroughNestedReferencesOfSameType.ts, 14, 24)) +>onFrame : Symbol(onFrame, Decl(inferenceThroughNestedReferencesOfSameType.ts, 14, 65)) +>frame : Symbol(frame, Decl(inferenceThroughNestedReferencesOfSameType.ts, 14, 76)) +>T : Symbol(T, Decl(inferenceThroughNestedReferencesOfSameType.ts, 14, 24)) + +follow(() => c, frame => frame.a); +>follow : Symbol(follow, Decl(inferenceThroughNestedReferencesOfSameType.ts, 12, 15)) +>c : Symbol(c, Decl(inferenceThroughNestedReferencesOfSameType.ts, 11, 13)) +>frame : Symbol(frame, Decl(inferenceThroughNestedReferencesOfSameType.ts, 15, 15)) +>frame.a : Symbol(a, Decl(inferenceThroughNestedReferencesOfSameType.ts, 11, 28)) +>frame : Symbol(frame, Decl(inferenceThroughNestedReferencesOfSameType.ts, 15, 15)) +>a : Symbol(a, Decl(inferenceThroughNestedReferencesOfSameType.ts, 11, 28)) + diff --git a/tsc/testdata/baselines/reference/compiler/inferenceThroughNestedReferencesOfSameType.types b/tsc/testdata/baselines/reference/compiler/inferenceThroughNestedReferencesOfSameType.types new file mode 100644 index 0000000000000..7da0229631f1f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceThroughNestedReferencesOfSameType.types @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/inferenceThroughNestedReferencesOfSameType.ts] //// + +=== inferenceThroughNestedReferencesOfSameType.ts === +// Inferring from Promise> to Promise> reaches +// Promise>, through the next method of AsyncIterator. +// That Promise is not built from the first one, so inference must not stop +// there as though it were expanding without end. + +interface C { + [Symbol.asyncIterator](): C; +>[Symbol.asyncIterator] : () => C +>Symbol.asyncIterator : unique symbol +>Symbol : SymbolConstructor +>asyncIterator : unique symbol + + next(): Promise>; +>next : () => Promise> +} + +declare function g(x: Promise>): T; +>g : (x: Promise>) => T +>x : Promise> + +declare const c: Promise>; +>c : Promise> +>a : 1 + +const n = g(c); +>n : { a: 1; } +>g(c) : { a: 1; } +>g : (x: Promise>) => T +>c : Promise> + +declare function follow(open: () => Promise>, onFrame: (frame: T) => void): void; +>follow : (open: () => Promise>, onFrame: (frame: T) => void) => void +>open : () => Promise> +>onFrame : (frame: T) => void +>frame : T + +follow(() => c, frame => frame.a); +>follow(() => c, frame => frame.a) : void +>follow : (open: () => Promise>, onFrame: (frame: T) => void) => void +>() => c : () => Promise> +>c : Promise> +>frame => frame.a : (frame: { a: 1; }) => 1 +>frame : { a: 1; } +>frame.a : 1 +>frame : { a: 1; } +>a : 1 + diff --git a/tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.errors.txt b/tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.errors.txt new file mode 100644 index 0000000000000..a34bbb1f6960b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.errors.txt @@ -0,0 +1,26 @@ +inferenceThroughSortOfFlattenedIterable.ts(10,2): error TS2322: Type 'unknown[]' is not assignable to type 'readonly string[]'. + Type 'unknown' is not assignable to type 'string'. + + +==== inferenceThroughSortOfFlattenedIterable.ts (1 errors) ==== + // Sorting the array made from a flattened iterable must keep its element type. + + function getAllValuesUnsorted(m: ReadonlyArray>): ReadonlyArray { + // OK + return Array.from(flatten(m.values())) + } + + function getAllValuesSorted(m: ReadonlyArray>): ReadonlyArray { + // Type 'unknown[]' is not assignable to type 'readonly string[]'. + return Array.from(flatten(m.values())).sort() + ~~~~~~ +!!! error TS2322: Type 'unknown[]' is not assignable to type 'readonly string[]'. +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + } + + function* flatten(a: Iterable>): Iterable { + for (const xs of a) + for (const x of xs) + yield x + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.symbols b/tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.symbols new file mode 100644 index 0000000000000..9e92b4fcae85c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.symbols @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/inferenceThroughSortOfFlattenedIterable.ts] //// + +=== inferenceThroughSortOfFlattenedIterable.ts === +// Sorting the array made from a flattened iterable must keep its element type. + +function getAllValuesUnsorted(m: ReadonlyArray>): ReadonlyArray { +>getAllValuesUnsorted : Symbol(getAllValuesUnsorted, Decl(inferenceThroughSortOfFlattenedIterable.ts, 0, 0)) +>m : Symbol(m, Decl(inferenceThroughSortOfFlattenedIterable.ts, 2, 30)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --) ... and 3 more) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --) ... and 3 more) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --) ... and 3 more) + + // OK + return Array.from(flatten(m.values())) +>Array.from : Symbol(ArrayConstructor.from, Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>from : Symbol(ArrayConstructor.from, Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --)) +>flatten : Symbol(flatten, Decl(inferenceThroughSortOfFlattenedIterable.ts, 10, 1)) +>m.values : Symbol(ReadonlyArray.values, Decl(lib.es2015.iterable.d.ts, --, --)) +>m : Symbol(m, Decl(inferenceThroughSortOfFlattenedIterable.ts, 2, 30)) +>values : Symbol(ReadonlyArray.values, Decl(lib.es2015.iterable.d.ts, --, --)) +} + +function getAllValuesSorted(m: ReadonlyArray>): ReadonlyArray { +>getAllValuesSorted : Symbol(getAllValuesSorted, Decl(inferenceThroughSortOfFlattenedIterable.ts, 5, 1)) +>m : Symbol(m, Decl(inferenceThroughSortOfFlattenedIterable.ts, 7, 28)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --) ... and 3 more) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --) ... and 3 more) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --) ... and 3 more) + + // Type 'unknown[]' is not assignable to type 'readonly string[]'. + return Array.from(flatten(m.values())).sort() +>Array.from(flatten(m.values())).sort : Symbol(Array.sort, Decl(lib.es5.d.ts, --, --)) +>Array.from : Symbol(ArrayConstructor.from, Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>from : Symbol(ArrayConstructor.from, Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --)) +>flatten : Symbol(flatten, Decl(inferenceThroughSortOfFlattenedIterable.ts, 10, 1)) +>m.values : Symbol(ReadonlyArray.values, Decl(lib.es2015.iterable.d.ts, --, --)) +>m : Symbol(m, Decl(inferenceThroughSortOfFlattenedIterable.ts, 7, 28)) +>values : Symbol(ReadonlyArray.values, Decl(lib.es2015.iterable.d.ts, --, --)) +>sort : Symbol(Array.sort, Decl(lib.es5.d.ts, --, --)) +} + +function* flatten(a: Iterable>): Iterable { +>flatten : Symbol(flatten, Decl(inferenceThroughSortOfFlattenedIterable.ts, 10, 1)) +>T : Symbol(T, Decl(inferenceThroughSortOfFlattenedIterable.ts, 12, 18)) +>a : Symbol(a, Decl(inferenceThroughSortOfFlattenedIterable.ts, 12, 21)) +>Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --)) +>Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --)) +>T : Symbol(T, Decl(inferenceThroughSortOfFlattenedIterable.ts, 12, 18)) +>Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --)) +>T : Symbol(T, Decl(inferenceThroughSortOfFlattenedIterable.ts, 12, 18)) + + for (const xs of a) +>xs : Symbol(xs, Decl(inferenceThroughSortOfFlattenedIterable.ts, 13, 11)) +>a : Symbol(a, Decl(inferenceThroughSortOfFlattenedIterable.ts, 12, 21)) + + for (const x of xs) +>x : Symbol(x, Decl(inferenceThroughSortOfFlattenedIterable.ts, 14, 12)) +>xs : Symbol(xs, Decl(inferenceThroughSortOfFlattenedIterable.ts, 13, 11)) + + yield x +>x : Symbol(x, Decl(inferenceThroughSortOfFlattenedIterable.ts, 14, 12)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.types b/tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.types new file mode 100644 index 0000000000000..fa14743403d39 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceThroughSortOfFlattenedIterable.types @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/inferenceThroughSortOfFlattenedIterable.ts] //// + +=== inferenceThroughSortOfFlattenedIterable.ts === +// Sorting the array made from a flattened iterable must keep its element type. + +function getAllValuesUnsorted(m: ReadonlyArray>): ReadonlyArray { +>getAllValuesUnsorted : (m: ReadonlyArray>) => ReadonlyArray +>m : readonly (readonly string[])[] + + // OK + return Array.from(flatten(m.values())) +>Array.from(flatten(m.values())) : string[] +>Array.from : { (arrayLike: ArrayLike): T[]; (arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; (iterable: Iterable | ArrayLike): T[]; (iterable: Iterable | ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; } +>Array : ArrayConstructor +>from : { (arrayLike: ArrayLike): T[]; (arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; (iterable: Iterable | ArrayLike): T[]; (iterable: Iterable | ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; } +>flatten(m.values()) : Iterable +>flatten : (a: Iterable>) => Iterable +>m.values() : ArrayIterator +>m.values : () => ArrayIterator +>m : readonly (readonly string[])[] +>values : () => ArrayIterator +} + +function getAllValuesSorted(m: ReadonlyArray>): ReadonlyArray { +>getAllValuesSorted : (m: ReadonlyArray>) => ReadonlyArray +>m : readonly (readonly string[])[] + + // Type 'unknown[]' is not assignable to type 'readonly string[]'. + return Array.from(flatten(m.values())).sort() +>Array.from(flatten(m.values())).sort() : unknown[] +>Array.from(flatten(m.values())).sort : (compareFn?: ((a: unknown, b: unknown) => number) | undefined) => unknown[] +>Array.from(flatten(m.values())) : unknown[] +>Array.from : { (arrayLike: ArrayLike): T[]; (arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; (iterable: Iterable | ArrayLike): T[]; (iterable: Iterable | ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; } +>Array : ArrayConstructor +>from : { (arrayLike: ArrayLike): T[]; (arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; (iterable: Iterable | ArrayLike): T[]; (iterable: Iterable | ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; } +>flatten(m.values()) : Iterable +>flatten : (a: Iterable>) => Iterable +>m.values() : ArrayIterator +>m.values : () => ArrayIterator +>m : readonly (readonly string[])[] +>values : () => ArrayIterator +>sort : (compareFn?: ((a: unknown, b: unknown) => number) | undefined) => unknown[] +} + +function* flatten(a: Iterable>): Iterable { +>flatten : (a: Iterable>) => Iterable +>a : Iterable> + + for (const xs of a) +>xs : Iterable +>a : Iterable> + + for (const x of xs) +>x : T +>xs : Iterable + + yield x +>yield x : any +>x : T +} + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=default).symbols new file mode 100644 index 0000000000000..0031705ad6203 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=default).symbols @@ -0,0 +1,69 @@ +//// [tests/cases/compiler/instantiationCouldContainTypeVariablesAfterCycle.ts] //// + +=== instantiationCouldContainTypeVariablesAfterCycle.ts === +// Query is instantiated with only non-generic arguments, so it (and DeepPartial>) +// can't contain type variables, and inference from Meta must not structurally recurse into +// DeepPartial>. That recursion would expand the infinite DeepPartial and report +// TS5114. The carry-forward of the "could contain type variables" flag set at instantiation time +// must survive even when the instantiation is created inside a circularity that is later discarded. + +declare const a: Meta; +>a : Symbol(a, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 6, 13)) +>Meta : Symbol(Meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 36)) + +fromMetadata(a); +>fromMetadata : Symbol(fromMetadata, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 16, 33)) +>a : Symbol(a, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 6, 13)) + +type DeepPartial = { [P in keyof T]: DeepPartial }; +>DeepPartial : Symbol(DeepPartial, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 7, 16)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 17)) +>P : Symbol(P, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 25)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 17)) +>DeepPartial : Symbol(DeepPartial, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 7, 16)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 17)) +>P : Symbol(P, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 25)) + +type Nested = Nested[]; +>Nested : Symbol(Nested, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 60)) +>Nested : Symbol(Nested, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 60)) + +interface Prop { owner: Meta } +>Prop : Symbol(Prop, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 9, 23)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 15)) +>owner : Symbol(Prop.owner, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 19)) +>Meta : Symbol(Meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 36)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 15)) + +interface Meta { +>Meta : Symbol(Meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 36)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 11, 15)) + + prop: Prop; +>prop : Symbol(Meta.prop, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 11, 19)) +>Prop : Symbol(Prop, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 9, 23)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 11, 15)) + + other: any; +>other : Symbol(Meta.other, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 12, 18)) + + query: Query; +>query : Symbol(Meta.query, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 13, 15)) +>Query : Symbol(Query, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 15, 1)) +} +type Query = { cond: Nested }; +>Query : Symbol(Query, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 15, 1)) +>X : Symbol(X, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 16, 11)) +>cond : Symbol(cond, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 16, 17)) +>Nested : Symbol(Nested, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 60)) + +declare function fromMetadata(meta: Meta | DeepPartial>): void; +>fromMetadata : Symbol(fromMetadata, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 16, 33)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 17, 30)) +>meta : Symbol(meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 17, 33)) +>Meta : Symbol(Meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 36)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 17, 30)) +>DeepPartial : Symbol(DeepPartial, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 7, 16)) +>Meta : Symbol(Meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 36)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 17, 30)) + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=default).types new file mode 100644 index 0000000000000..1541a7890f5e6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=default).types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/instantiationCouldContainTypeVariablesAfterCycle.ts] //// + +=== instantiationCouldContainTypeVariablesAfterCycle.ts === +// Query is instantiated with only non-generic arguments, so it (and DeepPartial>) +// can't contain type variables, and inference from Meta must not structurally recurse into +// DeepPartial>. That recursion would expand the infinite DeepPartial and report +// TS5114. The carry-forward of the "could contain type variables" flag set at instantiation time +// must survive even when the instantiation is created inside a circularity that is later discarded. + +declare const a: Meta; +>a : Meta + +fromMetadata(a); +>fromMetadata(a) : void +>fromMetadata : (meta: Meta | DeepPartial>) => void +>a : Meta + +type DeepPartial = { [P in keyof T]: DeepPartial }; +>DeepPartial : DeepPartial + +type Nested = Nested[]; +>Nested : Nested + +interface Prop { owner: Meta } +>owner : Meta + +interface Meta { + prop: Prop; +>prop : Prop + + other: any; +>other : any + + query: Query; +>query : Query +} +type Query = { cond: Nested }; +>Query : Query +>cond : Nested + +declare function fromMetadata(meta: Meta | DeepPartial>): void; +>fromMetadata : (meta: Meta | DeepPartial>) => void +>meta : DeepPartial> | Meta + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..0031705ad6203 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=typesfirst).symbols @@ -0,0 +1,69 @@ +//// [tests/cases/compiler/instantiationCouldContainTypeVariablesAfterCycle.ts] //// + +=== instantiationCouldContainTypeVariablesAfterCycle.ts === +// Query is instantiated with only non-generic arguments, so it (and DeepPartial>) +// can't contain type variables, and inference from Meta must not structurally recurse into +// DeepPartial>. That recursion would expand the infinite DeepPartial and report +// TS5114. The carry-forward of the "could contain type variables" flag set at instantiation time +// must survive even when the instantiation is created inside a circularity that is later discarded. + +declare const a: Meta; +>a : Symbol(a, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 6, 13)) +>Meta : Symbol(Meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 36)) + +fromMetadata(a); +>fromMetadata : Symbol(fromMetadata, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 16, 33)) +>a : Symbol(a, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 6, 13)) + +type DeepPartial = { [P in keyof T]: DeepPartial }; +>DeepPartial : Symbol(DeepPartial, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 7, 16)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 17)) +>P : Symbol(P, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 25)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 17)) +>DeepPartial : Symbol(DeepPartial, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 7, 16)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 17)) +>P : Symbol(P, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 25)) + +type Nested = Nested[]; +>Nested : Symbol(Nested, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 60)) +>Nested : Symbol(Nested, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 60)) + +interface Prop { owner: Meta } +>Prop : Symbol(Prop, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 9, 23)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 15)) +>owner : Symbol(Prop.owner, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 19)) +>Meta : Symbol(Meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 36)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 15)) + +interface Meta { +>Meta : Symbol(Meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 36)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 11, 15)) + + prop: Prop; +>prop : Symbol(Meta.prop, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 11, 19)) +>Prop : Symbol(Prop, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 9, 23)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 11, 15)) + + other: any; +>other : Symbol(Meta.other, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 12, 18)) + + query: Query; +>query : Symbol(Meta.query, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 13, 15)) +>Query : Symbol(Query, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 15, 1)) +} +type Query = { cond: Nested }; +>Query : Symbol(Query, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 15, 1)) +>X : Symbol(X, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 16, 11)) +>cond : Symbol(cond, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 16, 17)) +>Nested : Symbol(Nested, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 8, 60)) + +declare function fromMetadata(meta: Meta | DeepPartial>): void; +>fromMetadata : Symbol(fromMetadata, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 16, 33)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 17, 30)) +>meta : Symbol(meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 17, 33)) +>Meta : Symbol(Meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 36)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 17, 30)) +>DeepPartial : Symbol(DeepPartial, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 7, 16)) +>Meta : Symbol(Meta, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 10, 36)) +>T : Symbol(T, Decl(instantiationCouldContainTypeVariablesAfterCycle.ts, 17, 30)) + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=typesfirst).types new file mode 100644 index 0000000000000..1541a7890f5e6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationCouldContainTypeVariablesAfterCycle(checkorder=typesfirst).types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/instantiationCouldContainTypeVariablesAfterCycle.ts] //// + +=== instantiationCouldContainTypeVariablesAfterCycle.ts === +// Query is instantiated with only non-generic arguments, so it (and DeepPartial>) +// can't contain type variables, and inference from Meta must not structurally recurse into +// DeepPartial>. That recursion would expand the infinite DeepPartial and report +// TS5114. The carry-forward of the "could contain type variables" flag set at instantiation time +// must survive even when the instantiation is created inside a circularity that is later discarded. + +declare const a: Meta; +>a : Meta + +fromMetadata(a); +>fromMetadata(a) : void +>fromMetadata : (meta: Meta | DeepPartial>) => void +>a : Meta + +type DeepPartial = { [P in keyof T]: DeepPartial }; +>DeepPartial : DeepPartial + +type Nested = Nested[]; +>Nested : Nested + +interface Prop { owner: Meta } +>owner : Meta + +interface Meta { + prop: Prop; +>prop : Prop + + other: any; +>other : any + + query: Query; +>query : Query +} +type Query = { cond: Nested }; +>Query : Query +>cond : Nested + +declare function fromMetadata(meta: Meta | DeepPartial>): void; +>fromMetadata : (meta: Meta | DeepPartial>) => void +>meta : DeepPartial> | Meta + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..e139f88dccad8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=default).symbols @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/instantiationCountSharedCheckOrder.ts] //// + +=== instantiationCountSharedCheckOrder.ts === +// Instantiating Wide<[], "a"> fresh takes over five million instantiations, +// which is too many. In program order Rest has already done all but about +// two million of them. Whether All takes too many must not depend on which +// comes first. + +type D = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; +>D : Symbol(D, Decl(instantiationCountSharedCheckOrder.ts, 0, 0)) + +type K = `${D}${D}${D}`; +>K : Symbol(K, Decl(instantiationCountSharedCheckOrder.ts, 5, 47)) +>D : Symbol(D, Decl(instantiationCountSharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(instantiationCountSharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(instantiationCountSharedCheckOrder.ts, 0, 0)) + +type Wide = N["length"] extends 6 ? [I, J] : { [J2 in K]: Wide<[...N, 0], I, J2> }[K]; +>Wide : Symbol(Wide, Decl(instantiationCountSharedCheckOrder.ts, 6, 24)) +>N : Symbol(N, Decl(instantiationCountSharedCheckOrder.ts, 7, 10)) +>I : Symbol(I, Decl(instantiationCountSharedCheckOrder.ts, 7, 24)) +>J : Symbol(J, Decl(instantiationCountSharedCheckOrder.ts, 7, 27)) +>N : Symbol(N, Decl(instantiationCountSharedCheckOrder.ts, 7, 10)) +>I : Symbol(I, Decl(instantiationCountSharedCheckOrder.ts, 7, 24)) +>J : Symbol(J, Decl(instantiationCountSharedCheckOrder.ts, 7, 27)) +>J2 : Symbol(J2, Decl(instantiationCountSharedCheckOrder.ts, 7, 77)) +>K : Symbol(K, Decl(instantiationCountSharedCheckOrder.ts, 5, 47)) +>Wide : Symbol(Wide, Decl(instantiationCountSharedCheckOrder.ts, 6, 24)) +>N : Symbol(N, Decl(instantiationCountSharedCheckOrder.ts, 7, 10)) +>I : Symbol(I, Decl(instantiationCountSharedCheckOrder.ts, 7, 24)) +>J2 : Symbol(J2, Decl(instantiationCountSharedCheckOrder.ts, 7, 77)) +>K : Symbol(K, Decl(instantiationCountSharedCheckOrder.ts, 5, 47)) + +type Rest = Wide<[0, 0], "a">; +>Rest : Symbol(Rest, Decl(instantiationCountSharedCheckOrder.ts, 7, 115)) +>Wide : Symbol(Wide, Decl(instantiationCountSharedCheckOrder.ts, 6, 24)) + +type All = Wide<[], "a">; +>All : Symbol(All, Decl(instantiationCountSharedCheckOrder.ts, 8, 30)) +>Wide : Symbol(Wide, Decl(instantiationCountSharedCheckOrder.ts, 6, 24)) + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..7df2d098a6ea2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=default).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/instantiationCountSharedCheckOrder.ts] //// + +=== instantiationCountSharedCheckOrder.ts === +// Instantiating Wide<[], "a"> fresh takes over five million instantiations, +// which is too many. In program order Rest has already done all but about +// two million of them. Whether All takes too many must not depend on which +// comes first. + +type D = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; +>D : D + +type K = `${D}${D}${D}`; +>K : "000" | "001" | "002" | "003" | "004" | "005" | "006" | "007" | "008" | "009" | "010" | "011" | "012" | "013" | "014" | "015" | "016" | "017" | "018" | "019" | "020" | "021" | "022" | "023" | "024" | "025" | "026" | "027" | "028" | "029" | "030" | "031" | "032" | "033" | "034" | "035" | "036" | "037" | "038" | "039" | "040" | "041" | "042" | "043" | "044" | "045" | "046" | "047" | "048" | "049" | "050" | "051" | "052" | "053" | "054" | "055" | "056" | "057" | "058" | "059" | "060" | "061" | "062" | "063" | "064" | "065" | "066" | "067" | "068" | "069" | "070" | "071" | "072" | "073" | "074" | "075" | "076" | "077" | "078" | "079" | "080" | "081" | "082" | "083" | "084" | "085" | "086" | "087" | "088" | "089" | "090" | "091" | "092" | "093" | "094" | "095" | "096" | "097" | "098" | "099" | "100" | "101" | "102" | "103" | "104" | "105" | "106" | "107" | "108" | "109" | "110" | "111" | "112" | "113" | "114" | "115" | "116" | "117" | "118" | "119" | "120" | "121" | "122" | "123" | "124" | "125" | "126" | "127" | "128" | "129" | "130" | "131" | "132" | "133" | "134" | "135" | "136" | "137" | "138" | "139" | "140" | "141" | "142" | "143" | "144" | "145" | "146" | "147" | "148" | "149" | "150" | "151" | "152" | "153" | "154" | "155" | "156" | "157" | "158" | "159" | "160" | "161" | "162" | "163" | "164" | "165" | "166" | "167" | "168" | "169" | "170" | "171" | "172" | "173" | "174" | "175" | "176" | "177" | "178" | "179" | "180" | "181" | "182" | "183" | "184" | "185" | "186" | "187" | "188" | "189" | "190" | "191" | "192" | "193" | "194" | "195" | "196" | "197" | "198" | "199" | "200" | "201" | "202" | "203" | "204" | "205" | "206" | "207" | "208" | "209" | "210" | "211" | "212" | "213" | "214" | "215" | "216" | "217" | "218" | "219" | "220" | "221" | "222" | "223" | "224" | "225" | "226" | "227" | "228" | "229" | "230" | "231" | "232" | "233" | "234" | "235" | "236" | "237" | "238" | "239" | "240" | "241" | "242" | "243" | "244" | "245" | "246" | "247" | "248" | "249" | "250" | "251" | "252" | "253" | "254" | "255" | "256" | "257" | "258" | "259" | "260" | "261" | "262" | "263" | "264" | "265" | "266" | "267" | "268" | "269" | "270" | "271" | "272" | "273" | "274" | "275" | "276" | "277" | "278" | "279" | "280" | "281" | "282" | "283" | "284" | "285" | "286" | "287" | "288" | "289" | "290" | "291" | "292" | "293" | "294" | "295" | "296" | "297" | "298" | "299" | "300" | "301" | "302" | "303" | "304" | "305" | "306" | "307" | "308" | "309" | "310" | "311" | "312" | "313" | "314" | "315" | "316" | "317" | "318" | "319" | "320" | "321" | "322" | "323" | "324" | "325" | "326" | "327" | "328" | "329" | "330" | "331" | "332" | "333" | "334" | "335" | "336" | "337" | "338" | "339" | "340" | "341" | "342" | "343" | "344" | "345" | "346" | "347" | "348" | "349" | "350" | "351" | "352" | "353" | "354" | "355" | "356" | "357" | "358" | "359" | "360" | "361" | "362" | "363" | "364" | "365" | "366" | "367" | "368" | "369" | "370" | "371" | "372" | "373" | "374" | "375" | "376" | "377" | "378" | "379" | "380" | "381" | "382" | "383" | "384" | "385" | "386" | "387" | "388" | "389" | "390" | "391" | "392" | "393" | "394" | "395" | "396" | "397" | "398" | "399" | "400" | "401" | "402" | "403" | "404" | "405" | "406" | "407" | "408" | "409" | "410" | "411" | "412" | "413" | "414" | "415" | "416" | "417" | "418" | "419" | "420" | "421" | "422" | "423" | "424" | "425" | "426" | "427" | "428" | "429" | "430" | "431" | "432" | "433" | "434" | "435" | "436" | "437" | "438" | "439" | "440" | "441" | "442" | "443" | "444" | "445" | "446" | "447" | "448" | "449" | "450" | "451" | "452" | "453" | "454" | "455" | "456" | "457" | "458" | "459" | "460" | "461" | "462" | "463" | "464" | "465" | "466" | "467" | "468" | "469" | "470" | "471" | "472" | "473" | "474" | "475" | "476" | "477" | "478" | "479" | "480" | "481" | "482" | "483" | "484" | "485" | "486" | "487" | "488" | "489" | "490" | "491" | "492" | "493" | "494" | "495" | "496" | "497" | "498" | "499" | "500" | "501" | "502" | "503" | "504" | "505" | "506" | "507" | "508" | "509" | "510" | "511" | "512" | "513" | "514" | "515" | "516" | "517" | "518" | "519" | "520" | "521" | "522" | "523" | "524" | "525" | "526" | "527" | "528" | "529" | "530" | "531" | "532" | "533" | "534" | "535" | "536" | "537" | "538" | "539" | "540" | "541" | "542" | "543" | "544" | "545" | "546" | "547" | "548" | "549" | "550" | "551" | "552" | "553" | "554" | "555" | "556" | "557" | "558" | "559" | "560" | "561" | "562" | "563" | "564" | "565" | "566" | "567" | "568" | "569" | "570" | "571" | "572" | "573" | "574" | "575" | "576" | "577" | "578" | "579" | "580" | "581" | "582" | "583" | "584" | "585" | "586" | "587" | "588" | "589" | "590" | "591" | "592" | "593" | "594" | "595" | "596" | "597" | "598" | "599" | "600" | "601" | "602" | "603" | "604" | "605" | "606" | "607" | "608" | "609" | "610" | "611" | "612" | "613" | "614" | "615" | "616" | "617" | "618" | "619" | "620" | "621" | "622" | "623" | "624" | "625" | "626" | "627" | "628" | "629" | "630" | "631" | "632" | "633" | "634" | "635" | "636" | "637" | "638" | "639" | "640" | "641" | "642" | "643" | "644" | "645" | "646" | "647" | "648" | "649" | "650" | "651" | "652" | "653" | "654" | "655" | "656" | "657" | "658" | "659" | "660" | "661" | "662" | "663" | "664" | "665" | "666" | "667" | "668" | "669" | "670" | "671" | "672" | "673" | "674" | "675" | "676" | "677" | "678" | "679" | "680" | "681" | "682" | "683" | "684" | "685" | "686" | "687" | "688" | "689" | "690" | "691" | "692" | "693" | "694" | "695" | "696" | "697" | "698" | "699" | "700" | "701" | "702" | "703" | "704" | "705" | "706" | "707" | "708" | "709" | "710" | "711" | "712" | "713" | "714" | "715" | "716" | "717" | "718" | "719" | "720" | "721" | "722" | "723" | "724" | "725" | "726" | "727" | "728" | "729" | "730" | "731" | "732" | "733" | "734" | "735" | "736" | "737" | "738" | "739" | "740" | "741" | "742" | "743" | "744" | "745" | "746" | "747" | "748" | "749" | "750" | "751" | "752" | "753" | "754" | "755" | "756" | "757" | "758" | "759" | "760" | "761" | "762" | "763" | "764" | "765" | "766" | "767" | "768" | "769" | "770" | "771" | "772" | "773" | "774" | "775" | "776" | "777" | "778" | "779" | "780" | "781" | "782" | "783" | "784" | "785" | "786" | "787" | "788" | "789" | "790" | "791" | "792" | "793" | "794" | "795" | "796" | "797" | "798" | "799" | "800" | "801" | "802" | "803" | "804" | "805" | "806" | "807" | "808" | "809" | "810" | "811" | "812" | "813" | "814" | "815" | "816" | "817" | "818" | "819" | "820" | "821" | "822" | "823" | "824" | "825" | "826" | "827" | "828" | "829" | "830" | "831" | "832" | "833" | "834" | "835" | "836" | "837" | "838" | "839" | "840" | "841" | "842" | "843" | "844" | "845" | "846" | "847" | "848" | "849" | "850" | "851" | "852" | "853" | "854" | "855" | "856" | "857" | "858" | "859" | "860" | "861" | "862" | "863" | "864" | "865" | "866" | "867" | "868" | "869" | "870" | "871" | "872" | "873" | "874" | "875" | "876" | "877" | "878" | "879" | "880" | "881" | "882" | "883" | "884" | "885" | "886" | "887" | "888" | "889" | "890" | "891" | "892" | "893" | "894" | "895" | "896" | "897" | "898" | "899" | "900" | "901" | "902" | "903" | "904" | "905" | "906" | "907" | "908" | "909" | "910" | "911" | "912" | "913" | "914" | "915" | "916" | "917" | "918" | "919" | "920" | "921" | "922" | "923" | "924" | "925" | "926" | "927" | "928" | "929" | "930" | "931" | "932" | "933" | "934" | "935" | "936" | "937" | "938" | "939" | "940" | "941" | "942" | "943" | "944" | "945" | "946" | "947" | "948" | "949" | "950" | "951" | "952" | "953" | "954" | "955" | "956" | "957" | "958" | "959" | "960" | "961" | "962" | "963" | "964" | "965" | "966" | "967" | "968" | "969" | "970" | "971" | "972" | "973" | "974" | "975" | "976" | "977" | "978" | "979" | "980" | "981" | "982" | "983" | "984" | "985" | "986" | "987" | "988" | "989" | "990" | "991" | "992" | "993" | "994" | "995" | "996" | "997" | "998" | "999" + +type Wide = N["length"] extends 6 ? [I, J] : { [J2 in K]: Wide<[...N, 0], I, J2> }[K]; +>Wide : Wide + +type Rest = Wide<[0, 0], "a">; +>Rest : ["a", "000"] | ["a", "001"] | ["a", "002"] | ["a", "003"] | ["a", "004"] | ["a", "005"] | ["a", "006"] | ["a", "007"] | ["a", "008"] | ["a", "009"] | ["a", "010"] | ["a", "011"] | ["a", "012"] | ["a", "013"] | ["a", "014"] | ["a", "015"] | ["a", "016"] | ["a", "017"] | ["a", "018"] | ["a", "019"] | ["a", "020"] | ["a", "021"] | ["a", "022"] | ["a", "023"] | ["a", "024"] | ["a", "025"] | ["a", "026"] | ["a", "027"] | ["a", "028"] | ["a", "029"] | ["a", "030"] | ["a", "031"] | ["a", "032"] | ["a", "033"] | ["a", "034"] | ["a", "035"] | ["a", "036"] | ["a", "037"] | ["a", "038"] | ["a", "039"] | ["a", "040"] | ["a", "041"] | ["a", "042"] | ["a", "043"] | ["a", "044"] | ["a", "045"] | ["a", "046"] | ["a", "047"] | ["a", "048"] | ["a", "049"] | ["a", "050"] | ["a", "051"] | ["a", "052"] | ["a", "053"] | ["a", "054"] | ["a", "055"] | ["a", "056"] | ["a", "057"] | ["a", "058"] | ["a", "059"] | ["a", "060"] | ["a", "061"] | ["a", "062"] | ["a", "063"] | ["a", "064"] | ["a", "065"] | ["a", "066"] | ["a", "067"] | ["a", "068"] | ["a", "069"] | ["a", "070"] | ["a", "071"] | ["a", "072"] | ["a", "073"] | ["a", "074"] | ["a", "075"] | ["a", "076"] | ["a", "077"] | ["a", "078"] | ["a", "079"] | ["a", "080"] | ["a", "081"] | ["a", "082"] | ["a", "083"] | ["a", "084"] | ["a", "085"] | ["a", "086"] | ["a", "087"] | ["a", "088"] | ["a", "089"] | ["a", "090"] | ["a", "091"] | ["a", "092"] | ["a", "093"] | ["a", "094"] | ["a", "095"] | ["a", "096"] | ["a", "097"] | ["a", "098"] | ["a", "099"] | ["a", "100"] | ["a", "101"] | ["a", "102"] | ["a", "103"] | ["a", "104"] | ["a", "105"] | ["a", "106"] | ["a", "107"] | ["a", "108"] | ["a", "109"] | ["a", "110"] | ["a", "111"] | ["a", "112"] | ["a", "113"] | ["a", "114"] | ["a", "115"] | ["a", "116"] | ["a", "117"] | ["a", "118"] | ["a", "119"] | ["a", "120"] | ["a", "121"] | ["a", "122"] | ["a", "123"] | ["a", "124"] | ["a", "125"] | ["a", "126"] | ["a", "127"] | ["a", "128"] | ["a", "129"] | ["a", "130"] | ["a", "131"] | ["a", "132"] | ["a", "133"] | ["a", "134"] | ["a", "135"] | ["a", "136"] | ["a", "137"] | ["a", "138"] | ["a", "139"] | ["a", "140"] | ["a", "141"] | ["a", "142"] | ["a", "143"] | ["a", "144"] | ["a", "145"] | ["a", "146"] | ["a", "147"] | ["a", "148"] | ["a", "149"] | ["a", "150"] | ["a", "151"] | ["a", "152"] | ["a", "153"] | ["a", "154"] | ["a", "155"] | ["a", "156"] | ["a", "157"] | ["a", "158"] | ["a", "159"] | ["a", "160"] | ["a", "161"] | ["a", "162"] | ["a", "163"] | ["a", "164"] | ["a", "165"] | ["a", "166"] | ["a", "167"] | ["a", "168"] | ["a", "169"] | ["a", "170"] | ["a", "171"] | ["a", "172"] | ["a", "173"] | ["a", "174"] | ["a", "175"] | ["a", "176"] | ["a", "177"] | ["a", "178"] | ["a", "179"] | ["a", "180"] | ["a", "181"] | ["a", "182"] | ["a", "183"] | ["a", "184"] | ["a", "185"] | ["a", "186"] | ["a", "187"] | ["a", "188"] | ["a", "189"] | ["a", "190"] | ["a", "191"] | ["a", "192"] | ["a", "193"] | ["a", "194"] | ["a", "195"] | ["a", "196"] | ["a", "197"] | ["a", "198"] | ["a", "199"] | ["a", "200"] | ["a", "201"] | ["a", "202"] | ["a", "203"] | ["a", "204"] | ["a", "205"] | ["a", "206"] | ["a", "207"] | ["a", "208"] | ["a", "209"] | ["a", "210"] | ["a", "211"] | ["a", "212"] | ["a", "213"] | ["a", "214"] | ["a", "215"] | ["a", "216"] | ["a", "217"] | ["a", "218"] | ["a", "219"] | ["a", "220"] | ["a", "221"] | ["a", "222"] | ["a", "223"] | ["a", "224"] | ["a", "225"] | ["a", "226"] | ["a", "227"] | ["a", "228"] | ["a", "229"] | ["a", "230"] | ["a", "231"] | ["a", "232"] | ["a", "233"] | ["a", "234"] | ["a", "235"] | ["a", "236"] | ["a", "237"] | ["a", "238"] | ["a", "239"] | ["a", "240"] | ["a", "241"] | ["a", "242"] | ["a", "243"] | ["a", "244"] | ["a", "245"] | ["a", "246"] | ["a", "247"] | ["a", "248"] | ["a", "249"] | ["a", "250"] | ["a", "251"] | ["a", "252"] | ["a", "253"] | ["a", "254"] | ["a", "255"] | ["a", "256"] | ["a", "257"] | ["a", "258"] | ["a", "259"] | ["a", "260"] | ["a", "261"] | ["a", "262"] | ["a", "263"] | ["a", "264"] | ["a", "265"] | ["a", "266"] | ["a", "267"] | ["a", "268"] | ["a", "269"] | ["a", "270"] | ["a", "271"] | ["a", "272"] | ["a", "273"] | ["a", "274"] | ["a", "275"] | ["a", "276"] | ["a", "277"] | ["a", "278"] | ["a", "279"] | ["a", "280"] | ["a", "281"] | ["a", "282"] | ["a", "283"] | ["a", "284"] | ["a", "285"] | ["a", "286"] | ["a", "287"] | ["a", "288"] | ["a", "289"] | ["a", "290"] | ["a", "291"] | ["a", "292"] | ["a", "293"] | ["a", "294"] | ["a", "295"] | ["a", "296"] | ["a", "297"] | ["a", "298"] | ["a", "299"] | ["a", "300"] | ["a", "301"] | ["a", "302"] | ["a", "303"] | ["a", "304"] | ["a", "305"] | ["a", "306"] | ["a", "307"] | ["a", "308"] | ["a", "309"] | ["a", "310"] | ["a", "311"] | ["a", "312"] | ["a", "313"] | ["a", "314"] | ["a", "315"] | ["a", "316"] | ["a", "317"] | ["a", "318"] | ["a", "319"] | ["a", "320"] | ["a", "321"] | ["a", "322"] | ["a", "323"] | ["a", "324"] | ["a", "325"] | ["a", "326"] | ["a", "327"] | ["a", "328"] | ["a", "329"] | ["a", "330"] | ["a", "331"] | ["a", "332"] | ["a", "333"] | ["a", "334"] | ["a", "335"] | ["a", "336"] | ["a", "337"] | ["a", "338"] | ["a", "339"] | ["a", "340"] | ["a", "341"] | ["a", "342"] | ["a", "343"] | ["a", "344"] | ["a", "345"] | ["a", "346"] | ["a", "347"] | ["a", "348"] | ["a", "349"] | ["a", "350"] | ["a", "351"] | ["a", "352"] | ["a", "353"] | ["a", "354"] | ["a", "355"] | ["a", "356"] | ["a", "357"] | ["a", "358"] | ["a", "359"] | ["a", "360"] | ["a", "361"] | ["a", "362"] | ["a", "363"] | ["a", "364"] | ["a", "365"] | ["a", "366"] | ["a", "367"] | ["a", "368"] | ["a", "369"] | ["a", "370"] | ["a", "371"] | ["a", "372"] | ["a", "373"] | ["a", "374"] | ["a", "375"] | ["a", "376"] | ["a", "377"] | ["a", "378"] | ["a", "379"] | ["a", "380"] | ["a", "381"] | ["a", "382"] | ["a", "383"] | ["a", "384"] | ["a", "385"] | ["a", "386"] | ["a", "387"] | ["a", "388"] | ["a", "389"] | ["a", "390"] | ["a", "391"] | ["a", "392"] | ["a", "393"] | ["a", "394"] | ["a", "395"] | ["a", "396"] | ["a", "397"] | ["a", "398"] | ["a", "399"] | ["a", "400"] | ["a", "401"] | ["a", "402"] | ["a", "403"] | ["a", "404"] | ["a", "405"] | ["a", "406"] | ["a", "407"] | ["a", "408"] | ["a", "409"] | ["a", "410"] | ["a", "411"] | ["a", "412"] | ["a", "413"] | ["a", "414"] | ["a", "415"] | ["a", "416"] | ["a", "417"] | ["a", "418"] | ["a", "419"] | ["a", "420"] | ["a", "421"] | ["a", "422"] | ["a", "423"] | ["a", "424"] | ["a", "425"] | ["a", "426"] | ["a", "427"] | ["a", "428"] | ["a", "429"] | ["a", "430"] | ["a", "431"] | ["a", "432"] | ["a", "433"] | ["a", "434"] | ["a", "435"] | ["a", "436"] | ["a", "437"] | ["a", "438"] | ["a", "439"] | ["a", "440"] | ["a", "441"] | ["a", "442"] | ["a", "443"] | ["a", "444"] | ["a", "445"] | ["a", "446"] | ["a", "447"] | ["a", "448"] | ["a", "449"] | ["a", "450"] | ["a", "451"] | ["a", "452"] | ["a", "453"] | ["a", "454"] | ["a", "455"] | ["a", "456"] | ["a", "457"] | ["a", "458"] | ["a", "459"] | ["a", "460"] | ["a", "461"] | ["a", "462"] | ["a", "463"] | ["a", "464"] | ["a", "465"] | ["a", "466"] | ["a", "467"] | ["a", "468"] | ["a", "469"] | ["a", "470"] | ["a", "471"] | ["a", "472"] | ["a", "473"] | ["a", "474"] | ["a", "475"] | ["a", "476"] | ["a", "477"] | ["a", "478"] | ["a", "479"] | ["a", "480"] | ["a", "481"] | ["a", "482"] | ["a", "483"] | ["a", "484"] | ["a", "485"] | ["a", "486"] | ["a", "487"] | ["a", "488"] | ["a", "489"] | ["a", "490"] | ["a", "491"] | ["a", "492"] | ["a", "493"] | ["a", "494"] | ["a", "495"] | ["a", "496"] | ["a", "497"] | ["a", "498"] | ["a", "499"] | ["a", "500"] | ["a", "501"] | ["a", "502"] | ["a", "503"] | ["a", "504"] | ["a", "505"] | ["a", "506"] | ["a", "507"] | ["a", "508"] | ["a", "509"] | ["a", "510"] | ["a", "511"] | ["a", "512"] | ["a", "513"] | ["a", "514"] | ["a", "515"] | ["a", "516"] | ["a", "517"] | ["a", "518"] | ["a", "519"] | ["a", "520"] | ["a", "521"] | ["a", "522"] | ["a", "523"] | ["a", "524"] | ["a", "525"] | ["a", "526"] | ["a", "527"] | ["a", "528"] | ["a", "529"] | ["a", "530"] | ["a", "531"] | ["a", "532"] | ["a", "533"] | ["a", "534"] | ["a", "535"] | ["a", "536"] | ["a", "537"] | ["a", "538"] | ["a", "539"] | ["a", "540"] | ["a", "541"] | ["a", "542"] | ["a", "543"] | ["a", "544"] | ["a", "545"] | ["a", "546"] | ["a", "547"] | ["a", "548"] | ["a", "549"] | ["a", "550"] | ["a", "551"] | ["a", "552"] | ["a", "553"] | ["a", "554"] | ["a", "555"] | ["a", "556"] | ["a", "557"] | ["a", "558"] | ["a", "559"] | ["a", "560"] | ["a", "561"] | ["a", "562"] | ["a", "563"] | ["a", "564"] | ["a", "565"] | ["a", "566"] | ["a", "567"] | ["a", "568"] | ["a", "569"] | ["a", "570"] | ["a", "571"] | ["a", "572"] | ["a", "573"] | ["a", "574"] | ["a", "575"] | ["a", "576"] | ["a", "577"] | ["a", "578"] | ["a", "579"] | ["a", "580"] | ["a", "581"] | ["a", "582"] | ["a", "583"] | ["a", "584"] | ["a", "585"] | ["a", "586"] | ["a", "587"] | ["a", "588"] | ["a", "589"] | ["a", "590"] | ["a", "591"] | ["a", "592"] | ["a", "593"] | ["a", "594"] | ["a", "595"] | ["a", "596"] | ["a", "597"] | ["a", "598"] | ["a", "599"] | ["a", "600"] | ["a", "601"] | ["a", "602"] | ["a", "603"] | ["a", "604"] | ["a", "605"] | ["a", "606"] | ["a", "607"] | ["a", "608"] | ["a", "609"] | ["a", "610"] | ["a", "611"] | ["a", "612"] | ["a", "613"] | ["a", "614"] | ["a", "615"] | ["a", "616"] | ["a", "617"] | ["a", "618"] | ["a", "619"] | ["a", "620"] | ["a", "621"] | ["a", "622"] | ["a", "623"] | ["a", "624"] | ["a", "625"] | ["a", "626"] | ["a", "627"] | ["a", "628"] | ["a", "629"] | ["a", "630"] | ["a", "631"] | ["a", "632"] | ["a", "633"] | ["a", "634"] | ["a", "635"] | ["a", "636"] | ["a", "637"] | ["a", "638"] | ["a", "639"] | ["a", "640"] | ["a", "641"] | ["a", "642"] | ["a", "643"] | ["a", "644"] | ["a", "645"] | ["a", "646"] | ["a", "647"] | ["a", "648"] | ["a", "649"] | ["a", "650"] | ["a", "651"] | ["a", "652"] | ["a", "653"] | ["a", "654"] | ["a", "655"] | ["a", "656"] | ["a", "657"] | ["a", "658"] | ["a", "659"] | ["a", "660"] | ["a", "661"] | ["a", "662"] | ["a", "663"] | ["a", "664"] | ["a", "665"] | ["a", "666"] | ["a", "667"] | ["a", "668"] | ["a", "669"] | ["a", "670"] | ["a", "671"] | ["a", "672"] | ["a", "673"] | ["a", "674"] | ["a", "675"] | ["a", "676"] | ["a", "677"] | ["a", "678"] | ["a", "679"] | ["a", "680"] | ["a", "681"] | ["a", "682"] | ["a", "683"] | ["a", "684"] | ["a", "685"] | ["a", "686"] | ["a", "687"] | ["a", "688"] | ["a", "689"] | ["a", "690"] | ["a", "691"] | ["a", "692"] | ["a", "693"] | ["a", "694"] | ["a", "695"] | ["a", "696"] | ["a", "697"] | ["a", "698"] | ["a", "699"] | ["a", "700"] | ["a", "701"] | ["a", "702"] | ["a", "703"] | ["a", "704"] | ["a", "705"] | ["a", "706"] | ["a", "707"] | ["a", "708"] | ["a", "709"] | ["a", "710"] | ["a", "711"] | ["a", "712"] | ["a", "713"] | ["a", "714"] | ["a", "715"] | ["a", "716"] | ["a", "717"] | ["a", "718"] | ["a", "719"] | ["a", "720"] | ["a", "721"] | ["a", "722"] | ["a", "723"] | ["a", "724"] | ["a", "725"] | ["a", "726"] | ["a", "727"] | ["a", "728"] | ["a", "729"] | ["a", "730"] | ["a", "731"] | ["a", "732"] | ["a", "733"] | ["a", "734"] | ["a", "735"] | ["a", "736"] | ["a", "737"] | ["a", "738"] | ["a", "739"] | ["a", "740"] | ["a", "741"] | ["a", "742"] | ["a", "743"] | ["a", "744"] | ["a", "745"] | ["a", "746"] | ["a", "747"] | ["a", "748"] | ["a", "749"] | ["a", "750"] | ["a", "751"] | ["a", "752"] | ["a", "753"] | ["a", "754"] | ["a", "755"] | ["a", "756"] | ["a", "757"] | ["a", "758"] | ["a", "759"] | ["a", "760"] | ["a", "761"] | ["a", "762"] | ["a", "763"] | ["a", "764"] | ["a", "765"] | ["a", "766"] | ["a", "767"] | ["a", "768"] | ["a", "769"] | ["a", "770"] | ["a", "771"] | ["a", "772"] | ["a", "773"] | ["a", "774"] | ["a", "775"] | ["a", "776"] | ["a", "777"] | ["a", "778"] | ["a", "779"] | ["a", "780"] | ["a", "781"] | ["a", "782"] | ["a", "783"] | ["a", "784"] | ["a", "785"] | ["a", "786"] | ["a", "787"] | ["a", "788"] | ["a", "789"] | ["a", "790"] | ["a", "791"] | ["a", "792"] | ["a", "793"] | ["a", "794"] | ["a", "795"] | ["a", "796"] | ["a", "797"] | ["a", "798"] | ["a", "799"] | ["a", "800"] | ["a", "801"] | ["a", "802"] | ["a", "803"] | ["a", "804"] | ["a", "805"] | ["a", "806"] | ["a", "807"] | ["a", "808"] | ["a", "809"] | ["a", "810"] | ["a", "811"] | ["a", "812"] | ["a", "813"] | ["a", "814"] | ["a", "815"] | ["a", "816"] | ["a", "817"] | ["a", "818"] | ["a", "819"] | ["a", "820"] | ["a", "821"] | ["a", "822"] | ["a", "823"] | ["a", "824"] | ["a", "825"] | ["a", "826"] | ["a", "827"] | ["a", "828"] | ["a", "829"] | ["a", "830"] | ["a", "831"] | ["a", "832"] | ["a", "833"] | ["a", "834"] | ["a", "835"] | ["a", "836"] | ["a", "837"] | ["a", "838"] | ["a", "839"] | ["a", "840"] | ["a", "841"] | ["a", "842"] | ["a", "843"] | ["a", "844"] | ["a", "845"] | ["a", "846"] | ["a", "847"] | ["a", "848"] | ["a", "849"] | ["a", "850"] | ["a", "851"] | ["a", "852"] | ["a", "853"] | ["a", "854"] | ["a", "855"] | ["a", "856"] | ["a", "857"] | ["a", "858"] | ["a", "859"] | ["a", "860"] | ["a", "861"] | ["a", "862"] | ["a", "863"] | ["a", "864"] | ["a", "865"] | ["a", "866"] | ["a", "867"] | ["a", "868"] | ["a", "869"] | ["a", "870"] | ["a", "871"] | ["a", "872"] | ["a", "873"] | ["a", "874"] | ["a", "875"] | ["a", "876"] | ["a", "877"] | ["a", "878"] | ["a", "879"] | ["a", "880"] | ["a", "881"] | ["a", "882"] | ["a", "883"] | ["a", "884"] | ["a", "885"] | ["a", "886"] | ["a", "887"] | ["a", "888"] | ["a", "889"] | ["a", "890"] | ["a", "891"] | ["a", "892"] | ["a", "893"] | ["a", "894"] | ["a", "895"] | ["a", "896"] | ["a", "897"] | ["a", "898"] | ["a", "899"] | ["a", "900"] | ["a", "901"] | ["a", "902"] | ["a", "903"] | ["a", "904"] | ["a", "905"] | ["a", "906"] | ["a", "907"] | ["a", "908"] | ["a", "909"] | ["a", "910"] | ["a", "911"] | ["a", "912"] | ["a", "913"] | ["a", "914"] | ["a", "915"] | ["a", "916"] | ["a", "917"] | ["a", "918"] | ["a", "919"] | ["a", "920"] | ["a", "921"] | ["a", "922"] | ["a", "923"] | ["a", "924"] | ["a", "925"] | ["a", "926"] | ["a", "927"] | ["a", "928"] | ["a", "929"] | ["a", "930"] | ["a", "931"] | ["a", "932"] | ["a", "933"] | ["a", "934"] | ["a", "935"] | ["a", "936"] | ["a", "937"] | ["a", "938"] | ["a", "939"] | ["a", "940"] | ["a", "941"] | ["a", "942"] | ["a", "943"] | ["a", "944"] | ["a", "945"] | ["a", "946"] | ["a", "947"] | ["a", "948"] | ["a", "949"] | ["a", "950"] | ["a", "951"] | ["a", "952"] | ["a", "953"] | ["a", "954"] | ["a", "955"] | ["a", "956"] | ["a", "957"] | ["a", "958"] | ["a", "959"] | ["a", "960"] | ["a", "961"] | ["a", "962"] | ["a", "963"] | ["a", "964"] | ["a", "965"] | ["a", "966"] | ["a", "967"] | ["a", "968"] | ["a", "969"] | ["a", "970"] | ["a", "971"] | ["a", "972"] | ["a", "973"] | ["a", "974"] | ["a", "975"] | ["a", "976"] | ["a", "977"] | ["a", "978"] | ["a", "979"] | ["a", "980"] | ["a", "981"] | ["a", "982"] | ["a", "983"] | ["a", "984"] | ["a", "985"] | ["a", "986"] | ["a", "987"] | ["a", "988"] | ["a", "989"] | ["a", "990"] | ["a", "991"] | ["a", "992"] | ["a", "993"] | ["a", "994"] | ["a", "995"] | ["a", "996"] | ["a", "997"] | ["a", "998"] | ["a", "999"] + +type All = Wide<[], "a">; +>All : ["a", "000"] | ["a", "001"] | ["a", "002"] | ["a", "003"] | ["a", "004"] | ["a", "005"] | ["a", "006"] | ["a", "007"] | ["a", "008"] | ["a", "009"] | ["a", "010"] | ["a", "011"] | ["a", "012"] | ["a", "013"] | ["a", "014"] | ["a", "015"] | ["a", "016"] | ["a", "017"] | ["a", "018"] | ["a", "019"] | ["a", "020"] | ["a", "021"] | ["a", "022"] | ["a", "023"] | ["a", "024"] | ["a", "025"] | ["a", "026"] | ["a", "027"] | ["a", "028"] | ["a", "029"] | ["a", "030"] | ["a", "031"] | ["a", "032"] | ["a", "033"] | ["a", "034"] | ["a", "035"] | ["a", "036"] | ["a", "037"] | ["a", "038"] | ["a", "039"] | ["a", "040"] | ["a", "041"] | ["a", "042"] | ["a", "043"] | ["a", "044"] | ["a", "045"] | ["a", "046"] | ["a", "047"] | ["a", "048"] | ["a", "049"] | ["a", "050"] | ["a", "051"] | ["a", "052"] | ["a", "053"] | ["a", "054"] | ["a", "055"] | ["a", "056"] | ["a", "057"] | ["a", "058"] | ["a", "059"] | ["a", "060"] | ["a", "061"] | ["a", "062"] | ["a", "063"] | ["a", "064"] | ["a", "065"] | ["a", "066"] | ["a", "067"] | ["a", "068"] | ["a", "069"] | ["a", "070"] | ["a", "071"] | ["a", "072"] | ["a", "073"] | ["a", "074"] | ["a", "075"] | ["a", "076"] | ["a", "077"] | ["a", "078"] | ["a", "079"] | ["a", "080"] | ["a", "081"] | ["a", "082"] | ["a", "083"] | ["a", "084"] | ["a", "085"] | ["a", "086"] | ["a", "087"] | ["a", "088"] | ["a", "089"] | ["a", "090"] | ["a", "091"] | ["a", "092"] | ["a", "093"] | ["a", "094"] | ["a", "095"] | ["a", "096"] | ["a", "097"] | ["a", "098"] | ["a", "099"] | ["a", "100"] | ["a", "101"] | ["a", "102"] | ["a", "103"] | ["a", "104"] | ["a", "105"] | ["a", "106"] | ["a", "107"] | ["a", "108"] | ["a", "109"] | ["a", "110"] | ["a", "111"] | ["a", "112"] | ["a", "113"] | ["a", "114"] | ["a", "115"] | ["a", "116"] | ["a", "117"] | ["a", "118"] | ["a", "119"] | ["a", "120"] | ["a", "121"] | ["a", "122"] | ["a", "123"] | ["a", "124"] | ["a", "125"] | ["a", "126"] | ["a", "127"] | ["a", "128"] | ["a", "129"] | ["a", "130"] | ["a", "131"] | ["a", "132"] | ["a", "133"] | ["a", "134"] | ["a", "135"] | ["a", "136"] | ["a", "137"] | ["a", "138"] | ["a", "139"] | ["a", "140"] | ["a", "141"] | ["a", "142"] | ["a", "143"] | ["a", "144"] | ["a", "145"] | ["a", "146"] | ["a", "147"] | ["a", "148"] | ["a", "149"] | ["a", "150"] | ["a", "151"] | ["a", "152"] | ["a", "153"] | ["a", "154"] | ["a", "155"] | ["a", "156"] | ["a", "157"] | ["a", "158"] | ["a", "159"] | ["a", "160"] | ["a", "161"] | ["a", "162"] | ["a", "163"] | ["a", "164"] | ["a", "165"] | ["a", "166"] | ["a", "167"] | ["a", "168"] | ["a", "169"] | ["a", "170"] | ["a", "171"] | ["a", "172"] | ["a", "173"] | ["a", "174"] | ["a", "175"] | ["a", "176"] | ["a", "177"] | ["a", "178"] | ["a", "179"] | ["a", "180"] | ["a", "181"] | ["a", "182"] | ["a", "183"] | ["a", "184"] | ["a", "185"] | ["a", "186"] | ["a", "187"] | ["a", "188"] | ["a", "189"] | ["a", "190"] | ["a", "191"] | ["a", "192"] | ["a", "193"] | ["a", "194"] | ["a", "195"] | ["a", "196"] | ["a", "197"] | ["a", "198"] | ["a", "199"] | ["a", "200"] | ["a", "201"] | ["a", "202"] | ["a", "203"] | ["a", "204"] | ["a", "205"] | ["a", "206"] | ["a", "207"] | ["a", "208"] | ["a", "209"] | ["a", "210"] | ["a", "211"] | ["a", "212"] | ["a", "213"] | ["a", "214"] | ["a", "215"] | ["a", "216"] | ["a", "217"] | ["a", "218"] | ["a", "219"] | ["a", "220"] | ["a", "221"] | ["a", "222"] | ["a", "223"] | ["a", "224"] | ["a", "225"] | ["a", "226"] | ["a", "227"] | ["a", "228"] | ["a", "229"] | ["a", "230"] | ["a", "231"] | ["a", "232"] | ["a", "233"] | ["a", "234"] | ["a", "235"] | ["a", "236"] | ["a", "237"] | ["a", "238"] | ["a", "239"] | ["a", "240"] | ["a", "241"] | ["a", "242"] | ["a", "243"] | ["a", "244"] | ["a", "245"] | ["a", "246"] | ["a", "247"] | ["a", "248"] | ["a", "249"] | ["a", "250"] | ["a", "251"] | ["a", "252"] | ["a", "253"] | ["a", "254"] | ["a", "255"] | ["a", "256"] | ["a", "257"] | ["a", "258"] | ["a", "259"] | ["a", "260"] | ["a", "261"] | ["a", "262"] | ["a", "263"] | ["a", "264"] | ["a", "265"] | ["a", "266"] | ["a", "267"] | ["a", "268"] | ["a", "269"] | ["a", "270"] | ["a", "271"] | ["a", "272"] | ["a", "273"] | ["a", "274"] | ["a", "275"] | ["a", "276"] | ["a", "277"] | ["a", "278"] | ["a", "279"] | ["a", "280"] | ["a", "281"] | ["a", "282"] | ["a", "283"] | ["a", "284"] | ["a", "285"] | ["a", "286"] | ["a", "287"] | ["a", "288"] | ["a", "289"] | ["a", "290"] | ["a", "291"] | ["a", "292"] | ["a", "293"] | ["a", "294"] | ["a", "295"] | ["a", "296"] | ["a", "297"] | ["a", "298"] | ["a", "299"] | ["a", "300"] | ["a", "301"] | ["a", "302"] | ["a", "303"] | ["a", "304"] | ["a", "305"] | ["a", "306"] | ["a", "307"] | ["a", "308"] | ["a", "309"] | ["a", "310"] | ["a", "311"] | ["a", "312"] | ["a", "313"] | ["a", "314"] | ["a", "315"] | ["a", "316"] | ["a", "317"] | ["a", "318"] | ["a", "319"] | ["a", "320"] | ["a", "321"] | ["a", "322"] | ["a", "323"] | ["a", "324"] | ["a", "325"] | ["a", "326"] | ["a", "327"] | ["a", "328"] | ["a", "329"] | ["a", "330"] | ["a", "331"] | ["a", "332"] | ["a", "333"] | ["a", "334"] | ["a", "335"] | ["a", "336"] | ["a", "337"] | ["a", "338"] | ["a", "339"] | ["a", "340"] | ["a", "341"] | ["a", "342"] | ["a", "343"] | ["a", "344"] | ["a", "345"] | ["a", "346"] | ["a", "347"] | ["a", "348"] | ["a", "349"] | ["a", "350"] | ["a", "351"] | ["a", "352"] | ["a", "353"] | ["a", "354"] | ["a", "355"] | ["a", "356"] | ["a", "357"] | ["a", "358"] | ["a", "359"] | ["a", "360"] | ["a", "361"] | ["a", "362"] | ["a", "363"] | ["a", "364"] | ["a", "365"] | ["a", "366"] | ["a", "367"] | ["a", "368"] | ["a", "369"] | ["a", "370"] | ["a", "371"] | ["a", "372"] | ["a", "373"] | ["a", "374"] | ["a", "375"] | ["a", "376"] | ["a", "377"] | ["a", "378"] | ["a", "379"] | ["a", "380"] | ["a", "381"] | ["a", "382"] | ["a", "383"] | ["a", "384"] | ["a", "385"] | ["a", "386"] | ["a", "387"] | ["a", "388"] | ["a", "389"] | ["a", "390"] | ["a", "391"] | ["a", "392"] | ["a", "393"] | ["a", "394"] | ["a", "395"] | ["a", "396"] | ["a", "397"] | ["a", "398"] | ["a", "399"] | ["a", "400"] | ["a", "401"] | ["a", "402"] | ["a", "403"] | ["a", "404"] | ["a", "405"] | ["a", "406"] | ["a", "407"] | ["a", "408"] | ["a", "409"] | ["a", "410"] | ["a", "411"] | ["a", "412"] | ["a", "413"] | ["a", "414"] | ["a", "415"] | ["a", "416"] | ["a", "417"] | ["a", "418"] | ["a", "419"] | ["a", "420"] | ["a", "421"] | ["a", "422"] | ["a", "423"] | ["a", "424"] | ["a", "425"] | ["a", "426"] | ["a", "427"] | ["a", "428"] | ["a", "429"] | ["a", "430"] | ["a", "431"] | ["a", "432"] | ["a", "433"] | ["a", "434"] | ["a", "435"] | ["a", "436"] | ["a", "437"] | ["a", "438"] | ["a", "439"] | ["a", "440"] | ["a", "441"] | ["a", "442"] | ["a", "443"] | ["a", "444"] | ["a", "445"] | ["a", "446"] | ["a", "447"] | ["a", "448"] | ["a", "449"] | ["a", "450"] | ["a", "451"] | ["a", "452"] | ["a", "453"] | ["a", "454"] | ["a", "455"] | ["a", "456"] | ["a", "457"] | ["a", "458"] | ["a", "459"] | ["a", "460"] | ["a", "461"] | ["a", "462"] | ["a", "463"] | ["a", "464"] | ["a", "465"] | ["a", "466"] | ["a", "467"] | ["a", "468"] | ["a", "469"] | ["a", "470"] | ["a", "471"] | ["a", "472"] | ["a", "473"] | ["a", "474"] | ["a", "475"] | ["a", "476"] | ["a", "477"] | ["a", "478"] | ["a", "479"] | ["a", "480"] | ["a", "481"] | ["a", "482"] | ["a", "483"] | ["a", "484"] | ["a", "485"] | ["a", "486"] | ["a", "487"] | ["a", "488"] | ["a", "489"] | ["a", "490"] | ["a", "491"] | ["a", "492"] | ["a", "493"] | ["a", "494"] | ["a", "495"] | ["a", "496"] | ["a", "497"] | ["a", "498"] | ["a", "499"] | ["a", "500"] | ["a", "501"] | ["a", "502"] | ["a", "503"] | ["a", "504"] | ["a", "505"] | ["a", "506"] | ["a", "507"] | ["a", "508"] | ["a", "509"] | ["a", "510"] | ["a", "511"] | ["a", "512"] | ["a", "513"] | ["a", "514"] | ["a", "515"] | ["a", "516"] | ["a", "517"] | ["a", "518"] | ["a", "519"] | ["a", "520"] | ["a", "521"] | ["a", "522"] | ["a", "523"] | ["a", "524"] | ["a", "525"] | ["a", "526"] | ["a", "527"] | ["a", "528"] | ["a", "529"] | ["a", "530"] | ["a", "531"] | ["a", "532"] | ["a", "533"] | ["a", "534"] | ["a", "535"] | ["a", "536"] | ["a", "537"] | ["a", "538"] | ["a", "539"] | ["a", "540"] | ["a", "541"] | ["a", "542"] | ["a", "543"] | ["a", "544"] | ["a", "545"] | ["a", "546"] | ["a", "547"] | ["a", "548"] | ["a", "549"] | ["a", "550"] | ["a", "551"] | ["a", "552"] | ["a", "553"] | ["a", "554"] | ["a", "555"] | ["a", "556"] | ["a", "557"] | ["a", "558"] | ["a", "559"] | ["a", "560"] | ["a", "561"] | ["a", "562"] | ["a", "563"] | ["a", "564"] | ["a", "565"] | ["a", "566"] | ["a", "567"] | ["a", "568"] | ["a", "569"] | ["a", "570"] | ["a", "571"] | ["a", "572"] | ["a", "573"] | ["a", "574"] | ["a", "575"] | ["a", "576"] | ["a", "577"] | ["a", "578"] | ["a", "579"] | ["a", "580"] | ["a", "581"] | ["a", "582"] | ["a", "583"] | ["a", "584"] | ["a", "585"] | ["a", "586"] | ["a", "587"] | ["a", "588"] | ["a", "589"] | ["a", "590"] | ["a", "591"] | ["a", "592"] | ["a", "593"] | ["a", "594"] | ["a", "595"] | ["a", "596"] | ["a", "597"] | ["a", "598"] | ["a", "599"] | ["a", "600"] | ["a", "601"] | ["a", "602"] | ["a", "603"] | ["a", "604"] | ["a", "605"] | ["a", "606"] | ["a", "607"] | ["a", "608"] | ["a", "609"] | ["a", "610"] | ["a", "611"] | ["a", "612"] | ["a", "613"] | ["a", "614"] | ["a", "615"] | ["a", "616"] | ["a", "617"] | ["a", "618"] | ["a", "619"] | ["a", "620"] | ["a", "621"] | ["a", "622"] | ["a", "623"] | ["a", "624"] | ["a", "625"] | ["a", "626"] | ["a", "627"] | ["a", "628"] | ["a", "629"] | ["a", "630"] | ["a", "631"] | ["a", "632"] | ["a", "633"] | ["a", "634"] | ["a", "635"] | ["a", "636"] | ["a", "637"] | ["a", "638"] | ["a", "639"] | ["a", "640"] | ["a", "641"] | ["a", "642"] | ["a", "643"] | ["a", "644"] | ["a", "645"] | ["a", "646"] | ["a", "647"] | ["a", "648"] | ["a", "649"] | ["a", "650"] | ["a", "651"] | ["a", "652"] | ["a", "653"] | ["a", "654"] | ["a", "655"] | ["a", "656"] | ["a", "657"] | ["a", "658"] | ["a", "659"] | ["a", "660"] | ["a", "661"] | ["a", "662"] | ["a", "663"] | ["a", "664"] | ["a", "665"] | ["a", "666"] | ["a", "667"] | ["a", "668"] | ["a", "669"] | ["a", "670"] | ["a", "671"] | ["a", "672"] | ["a", "673"] | ["a", "674"] | ["a", "675"] | ["a", "676"] | ["a", "677"] | ["a", "678"] | ["a", "679"] | ["a", "680"] | ["a", "681"] | ["a", "682"] | ["a", "683"] | ["a", "684"] | ["a", "685"] | ["a", "686"] | ["a", "687"] | ["a", "688"] | ["a", "689"] | ["a", "690"] | ["a", "691"] | ["a", "692"] | ["a", "693"] | ["a", "694"] | ["a", "695"] | ["a", "696"] | ["a", "697"] | ["a", "698"] | ["a", "699"] | ["a", "700"] | ["a", "701"] | ["a", "702"] | ["a", "703"] | ["a", "704"] | ["a", "705"] | ["a", "706"] | ["a", "707"] | ["a", "708"] | ["a", "709"] | ["a", "710"] | ["a", "711"] | ["a", "712"] | ["a", "713"] | ["a", "714"] | ["a", "715"] | ["a", "716"] | ["a", "717"] | ["a", "718"] | ["a", "719"] | ["a", "720"] | ["a", "721"] | ["a", "722"] | ["a", "723"] | ["a", "724"] | ["a", "725"] | ["a", "726"] | ["a", "727"] | ["a", "728"] | ["a", "729"] | ["a", "730"] | ["a", "731"] | ["a", "732"] | ["a", "733"] | ["a", "734"] | ["a", "735"] | ["a", "736"] | ["a", "737"] | ["a", "738"] | ["a", "739"] | ["a", "740"] | ["a", "741"] | ["a", "742"] | ["a", "743"] | ["a", "744"] | ["a", "745"] | ["a", "746"] | ["a", "747"] | ["a", "748"] | ["a", "749"] | ["a", "750"] | ["a", "751"] | ["a", "752"] | ["a", "753"] | ["a", "754"] | ["a", "755"] | ["a", "756"] | ["a", "757"] | ["a", "758"] | ["a", "759"] | ["a", "760"] | ["a", "761"] | ["a", "762"] | ["a", "763"] | ["a", "764"] | ["a", "765"] | ["a", "766"] | ["a", "767"] | ["a", "768"] | ["a", "769"] | ["a", "770"] | ["a", "771"] | ["a", "772"] | ["a", "773"] | ["a", "774"] | ["a", "775"] | ["a", "776"] | ["a", "777"] | ["a", "778"] | ["a", "779"] | ["a", "780"] | ["a", "781"] | ["a", "782"] | ["a", "783"] | ["a", "784"] | ["a", "785"] | ["a", "786"] | ["a", "787"] | ["a", "788"] | ["a", "789"] | ["a", "790"] | ["a", "791"] | ["a", "792"] | ["a", "793"] | ["a", "794"] | ["a", "795"] | ["a", "796"] | ["a", "797"] | ["a", "798"] | ["a", "799"] | ["a", "800"] | ["a", "801"] | ["a", "802"] | ["a", "803"] | ["a", "804"] | ["a", "805"] | ["a", "806"] | ["a", "807"] | ["a", "808"] | ["a", "809"] | ["a", "810"] | ["a", "811"] | ["a", "812"] | ["a", "813"] | ["a", "814"] | ["a", "815"] | ["a", "816"] | ["a", "817"] | ["a", "818"] | ["a", "819"] | ["a", "820"] | ["a", "821"] | ["a", "822"] | ["a", "823"] | ["a", "824"] | ["a", "825"] | ["a", "826"] | ["a", "827"] | ["a", "828"] | ["a", "829"] | ["a", "830"] | ["a", "831"] | ["a", "832"] | ["a", "833"] | ["a", "834"] | ["a", "835"] | ["a", "836"] | ["a", "837"] | ["a", "838"] | ["a", "839"] | ["a", "840"] | ["a", "841"] | ["a", "842"] | ["a", "843"] | ["a", "844"] | ["a", "845"] | ["a", "846"] | ["a", "847"] | ["a", "848"] | ["a", "849"] | ["a", "850"] | ["a", "851"] | ["a", "852"] | ["a", "853"] | ["a", "854"] | ["a", "855"] | ["a", "856"] | ["a", "857"] | ["a", "858"] | ["a", "859"] | ["a", "860"] | ["a", "861"] | ["a", "862"] | ["a", "863"] | ["a", "864"] | ["a", "865"] | ["a", "866"] | ["a", "867"] | ["a", "868"] | ["a", "869"] | ["a", "870"] | ["a", "871"] | ["a", "872"] | ["a", "873"] | ["a", "874"] | ["a", "875"] | ["a", "876"] | ["a", "877"] | ["a", "878"] | ["a", "879"] | ["a", "880"] | ["a", "881"] | ["a", "882"] | ["a", "883"] | ["a", "884"] | ["a", "885"] | ["a", "886"] | ["a", "887"] | ["a", "888"] | ["a", "889"] | ["a", "890"] | ["a", "891"] | ["a", "892"] | ["a", "893"] | ["a", "894"] | ["a", "895"] | ["a", "896"] | ["a", "897"] | ["a", "898"] | ["a", "899"] | ["a", "900"] | ["a", "901"] | ["a", "902"] | ["a", "903"] | ["a", "904"] | ["a", "905"] | ["a", "906"] | ["a", "907"] | ["a", "908"] | ["a", "909"] | ["a", "910"] | ["a", "911"] | ["a", "912"] | ["a", "913"] | ["a", "914"] | ["a", "915"] | ["a", "916"] | ["a", "917"] | ["a", "918"] | ["a", "919"] | ["a", "920"] | ["a", "921"] | ["a", "922"] | ["a", "923"] | ["a", "924"] | ["a", "925"] | ["a", "926"] | ["a", "927"] | ["a", "928"] | ["a", "929"] | ["a", "930"] | ["a", "931"] | ["a", "932"] | ["a", "933"] | ["a", "934"] | ["a", "935"] | ["a", "936"] | ["a", "937"] | ["a", "938"] | ["a", "939"] | ["a", "940"] | ["a", "941"] | ["a", "942"] | ["a", "943"] | ["a", "944"] | ["a", "945"] | ["a", "946"] | ["a", "947"] | ["a", "948"] | ["a", "949"] | ["a", "950"] | ["a", "951"] | ["a", "952"] | ["a", "953"] | ["a", "954"] | ["a", "955"] | ["a", "956"] | ["a", "957"] | ["a", "958"] | ["a", "959"] | ["a", "960"] | ["a", "961"] | ["a", "962"] | ["a", "963"] | ["a", "964"] | ["a", "965"] | ["a", "966"] | ["a", "967"] | ["a", "968"] | ["a", "969"] | ["a", "970"] | ["a", "971"] | ["a", "972"] | ["a", "973"] | ["a", "974"] | ["a", "975"] | ["a", "976"] | ["a", "977"] | ["a", "978"] | ["a", "979"] | ["a", "980"] | ["a", "981"] | ["a", "982"] | ["a", "983"] | ["a", "984"] | ["a", "985"] | ["a", "986"] | ["a", "987"] | ["a", "988"] | ["a", "989"] | ["a", "990"] | ["a", "991"] | ["a", "992"] | ["a", "993"] | ["a", "994"] | ["a", "995"] | ["a", "996"] | ["a", "997"] | ["a", "998"] | ["a", "999"] + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..0dcf882bf475c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,16 @@ +error TS2589: Type instantiation is excessively deep and possibly infinite. + + +!!! error TS2589: Type instantiation is excessively deep and possibly infinite. +==== instantiationCountSharedCheckOrder.ts (0 errors) ==== + // Instantiating Wide<[], "a"> fresh takes over five million instantiations, + // which is too many. In program order Rest has already done all but about + // two million of them. Whether All takes too many must not depend on which + // comes first. + + type D = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; + type K = `${D}${D}${D}`; + type Wide = N["length"] extends 6 ? [I, J] : { [J2 in K]: Wide<[...N, 0], I, J2> }[K]; + type Rest = Wide<[0, 0], "a">; + type All = Wide<[], "a">; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..e139f88dccad8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/instantiationCountSharedCheckOrder.ts] //// + +=== instantiationCountSharedCheckOrder.ts === +// Instantiating Wide<[], "a"> fresh takes over five million instantiations, +// which is too many. In program order Rest has already done all but about +// two million of them. Whether All takes too many must not depend on which +// comes first. + +type D = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; +>D : Symbol(D, Decl(instantiationCountSharedCheckOrder.ts, 0, 0)) + +type K = `${D}${D}${D}`; +>K : Symbol(K, Decl(instantiationCountSharedCheckOrder.ts, 5, 47)) +>D : Symbol(D, Decl(instantiationCountSharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(instantiationCountSharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(instantiationCountSharedCheckOrder.ts, 0, 0)) + +type Wide = N["length"] extends 6 ? [I, J] : { [J2 in K]: Wide<[...N, 0], I, J2> }[K]; +>Wide : Symbol(Wide, Decl(instantiationCountSharedCheckOrder.ts, 6, 24)) +>N : Symbol(N, Decl(instantiationCountSharedCheckOrder.ts, 7, 10)) +>I : Symbol(I, Decl(instantiationCountSharedCheckOrder.ts, 7, 24)) +>J : Symbol(J, Decl(instantiationCountSharedCheckOrder.ts, 7, 27)) +>N : Symbol(N, Decl(instantiationCountSharedCheckOrder.ts, 7, 10)) +>I : Symbol(I, Decl(instantiationCountSharedCheckOrder.ts, 7, 24)) +>J : Symbol(J, Decl(instantiationCountSharedCheckOrder.ts, 7, 27)) +>J2 : Symbol(J2, Decl(instantiationCountSharedCheckOrder.ts, 7, 77)) +>K : Symbol(K, Decl(instantiationCountSharedCheckOrder.ts, 5, 47)) +>Wide : Symbol(Wide, Decl(instantiationCountSharedCheckOrder.ts, 6, 24)) +>N : Symbol(N, Decl(instantiationCountSharedCheckOrder.ts, 7, 10)) +>I : Symbol(I, Decl(instantiationCountSharedCheckOrder.ts, 7, 24)) +>J2 : Symbol(J2, Decl(instantiationCountSharedCheckOrder.ts, 7, 77)) +>K : Symbol(K, Decl(instantiationCountSharedCheckOrder.ts, 5, 47)) + +type Rest = Wide<[0, 0], "a">; +>Rest : Symbol(Rest, Decl(instantiationCountSharedCheckOrder.ts, 7, 115)) +>Wide : Symbol(Wide, Decl(instantiationCountSharedCheckOrder.ts, 6, 24)) + +type All = Wide<[], "a">; +>All : Symbol(All, Decl(instantiationCountSharedCheckOrder.ts, 8, 30)) +>Wide : Symbol(Wide, Decl(instantiationCountSharedCheckOrder.ts, 6, 24)) + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..4ed5f89ebfadd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationCountSharedCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/instantiationCountSharedCheckOrder.ts] //// + +=== instantiationCountSharedCheckOrder.ts === +// Instantiating Wide<[], "a"> fresh takes over five million instantiations, +// which is too many. In program order Rest has already done all but about +// two million of them. Whether All takes too many must not depend on which +// comes first. + +type D = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; +>D : D + +type K = `${D}${D}${D}`; +>K : "000" | "001" | "002" | "003" | "004" | "005" | "006" | "007" | "008" | "009" | "010" | "011" | "012" | "013" | "014" | "015" | "016" | "017" | "018" | "019" | "020" | "021" | "022" | "023" | "024" | "025" | "026" | "027" | "028" | "029" | "030" | "031" | "032" | "033" | "034" | "035" | "036" | "037" | "038" | "039" | "040" | "041" | "042" | "043" | "044" | "045" | "046" | "047" | "048" | "049" | "050" | "051" | "052" | "053" | "054" | "055" | "056" | "057" | "058" | "059" | "060" | "061" | "062" | "063" | "064" | "065" | "066" | "067" | "068" | "069" | "070" | "071" | "072" | "073" | "074" | "075" | "076" | "077" | "078" | "079" | "080" | "081" | "082" | "083" | "084" | "085" | "086" | "087" | "088" | "089" | "090" | "091" | "092" | "093" | "094" | "095" | "096" | "097" | "098" | "099" | "100" | "101" | "102" | "103" | "104" | "105" | "106" | "107" | "108" | "109" | "110" | "111" | "112" | "113" | "114" | "115" | "116" | "117" | "118" | "119" | "120" | "121" | "122" | "123" | "124" | "125" | "126" | "127" | "128" | "129" | "130" | "131" | "132" | "133" | "134" | "135" | "136" | "137" | "138" | "139" | "140" | "141" | "142" | "143" | "144" | "145" | "146" | "147" | "148" | "149" | "150" | "151" | "152" | "153" | "154" | "155" | "156" | "157" | "158" | "159" | "160" | "161" | "162" | "163" | "164" | "165" | "166" | "167" | "168" | "169" | "170" | "171" | "172" | "173" | "174" | "175" | "176" | "177" | "178" | "179" | "180" | "181" | "182" | "183" | "184" | "185" | "186" | "187" | "188" | "189" | "190" | "191" | "192" | "193" | "194" | "195" | "196" | "197" | "198" | "199" | "200" | "201" | "202" | "203" | "204" | "205" | "206" | "207" | "208" | "209" | "210" | "211" | "212" | "213" | "214" | "215" | "216" | "217" | "218" | "219" | "220" | "221" | "222" | "223" | "224" | "225" | "226" | "227" | "228" | "229" | "230" | "231" | "232" | "233" | "234" | "235" | "236" | "237" | "238" | "239" | "240" | "241" | "242" | "243" | "244" | "245" | "246" | "247" | "248" | "249" | "250" | "251" | "252" | "253" | "254" | "255" | "256" | "257" | "258" | "259" | "260" | "261" | "262" | "263" | "264" | "265" | "266" | "267" | "268" | "269" | "270" | "271" | "272" | "273" | "274" | "275" | "276" | "277" | "278" | "279" | "280" | "281" | "282" | "283" | "284" | "285" | "286" | "287" | "288" | "289" | "290" | "291" | "292" | "293" | "294" | "295" | "296" | "297" | "298" | "299" | "300" | "301" | "302" | "303" | "304" | "305" | "306" | "307" | "308" | "309" | "310" | "311" | "312" | "313" | "314" | "315" | "316" | "317" | "318" | "319" | "320" | "321" | "322" | "323" | "324" | "325" | "326" | "327" | "328" | "329" | "330" | "331" | "332" | "333" | "334" | "335" | "336" | "337" | "338" | "339" | "340" | "341" | "342" | "343" | "344" | "345" | "346" | "347" | "348" | "349" | "350" | "351" | "352" | "353" | "354" | "355" | "356" | "357" | "358" | "359" | "360" | "361" | "362" | "363" | "364" | "365" | "366" | "367" | "368" | "369" | "370" | "371" | "372" | "373" | "374" | "375" | "376" | "377" | "378" | "379" | "380" | "381" | "382" | "383" | "384" | "385" | "386" | "387" | "388" | "389" | "390" | "391" | "392" | "393" | "394" | "395" | "396" | "397" | "398" | "399" | "400" | "401" | "402" | "403" | "404" | "405" | "406" | "407" | "408" | "409" | "410" | "411" | "412" | "413" | "414" | "415" | "416" | "417" | "418" | "419" | "420" | "421" | "422" | "423" | "424" | "425" | "426" | "427" | "428" | "429" | "430" | "431" | "432" | "433" | "434" | "435" | "436" | "437" | "438" | "439" | "440" | "441" | "442" | "443" | "444" | "445" | "446" | "447" | "448" | "449" | "450" | "451" | "452" | "453" | "454" | "455" | "456" | "457" | "458" | "459" | "460" | "461" | "462" | "463" | "464" | "465" | "466" | "467" | "468" | "469" | "470" | "471" | "472" | "473" | "474" | "475" | "476" | "477" | "478" | "479" | "480" | "481" | "482" | "483" | "484" | "485" | "486" | "487" | "488" | "489" | "490" | "491" | "492" | "493" | "494" | "495" | "496" | "497" | "498" | "499" | "500" | "501" | "502" | "503" | "504" | "505" | "506" | "507" | "508" | "509" | "510" | "511" | "512" | "513" | "514" | "515" | "516" | "517" | "518" | "519" | "520" | "521" | "522" | "523" | "524" | "525" | "526" | "527" | "528" | "529" | "530" | "531" | "532" | "533" | "534" | "535" | "536" | "537" | "538" | "539" | "540" | "541" | "542" | "543" | "544" | "545" | "546" | "547" | "548" | "549" | "550" | "551" | "552" | "553" | "554" | "555" | "556" | "557" | "558" | "559" | "560" | "561" | "562" | "563" | "564" | "565" | "566" | "567" | "568" | "569" | "570" | "571" | "572" | "573" | "574" | "575" | "576" | "577" | "578" | "579" | "580" | "581" | "582" | "583" | "584" | "585" | "586" | "587" | "588" | "589" | "590" | "591" | "592" | "593" | "594" | "595" | "596" | "597" | "598" | "599" | "600" | "601" | "602" | "603" | "604" | "605" | "606" | "607" | "608" | "609" | "610" | "611" | "612" | "613" | "614" | "615" | "616" | "617" | "618" | "619" | "620" | "621" | "622" | "623" | "624" | "625" | "626" | "627" | "628" | "629" | "630" | "631" | "632" | "633" | "634" | "635" | "636" | "637" | "638" | "639" | "640" | "641" | "642" | "643" | "644" | "645" | "646" | "647" | "648" | "649" | "650" | "651" | "652" | "653" | "654" | "655" | "656" | "657" | "658" | "659" | "660" | "661" | "662" | "663" | "664" | "665" | "666" | "667" | "668" | "669" | "670" | "671" | "672" | "673" | "674" | "675" | "676" | "677" | "678" | "679" | "680" | "681" | "682" | "683" | "684" | "685" | "686" | "687" | "688" | "689" | "690" | "691" | "692" | "693" | "694" | "695" | "696" | "697" | "698" | "699" | "700" | "701" | "702" | "703" | "704" | "705" | "706" | "707" | "708" | "709" | "710" | "711" | "712" | "713" | "714" | "715" | "716" | "717" | "718" | "719" | "720" | "721" | "722" | "723" | "724" | "725" | "726" | "727" | "728" | "729" | "730" | "731" | "732" | "733" | "734" | "735" | "736" | "737" | "738" | "739" | "740" | "741" | "742" | "743" | "744" | "745" | "746" | "747" | "748" | "749" | "750" | "751" | "752" | "753" | "754" | "755" | "756" | "757" | "758" | "759" | "760" | "761" | "762" | "763" | "764" | "765" | "766" | "767" | "768" | "769" | "770" | "771" | "772" | "773" | "774" | "775" | "776" | "777" | "778" | "779" | "780" | "781" | "782" | "783" | "784" | "785" | "786" | "787" | "788" | "789" | "790" | "791" | "792" | "793" | "794" | "795" | "796" | "797" | "798" | "799" | "800" | "801" | "802" | "803" | "804" | "805" | "806" | "807" | "808" | "809" | "810" | "811" | "812" | "813" | "814" | "815" | "816" | "817" | "818" | "819" | "820" | "821" | "822" | "823" | "824" | "825" | "826" | "827" | "828" | "829" | "830" | "831" | "832" | "833" | "834" | "835" | "836" | "837" | "838" | "839" | "840" | "841" | "842" | "843" | "844" | "845" | "846" | "847" | "848" | "849" | "850" | "851" | "852" | "853" | "854" | "855" | "856" | "857" | "858" | "859" | "860" | "861" | "862" | "863" | "864" | "865" | "866" | "867" | "868" | "869" | "870" | "871" | "872" | "873" | "874" | "875" | "876" | "877" | "878" | "879" | "880" | "881" | "882" | "883" | "884" | "885" | "886" | "887" | "888" | "889" | "890" | "891" | "892" | "893" | "894" | "895" | "896" | "897" | "898" | "899" | "900" | "901" | "902" | "903" | "904" | "905" | "906" | "907" | "908" | "909" | "910" | "911" | "912" | "913" | "914" | "915" | "916" | "917" | "918" | "919" | "920" | "921" | "922" | "923" | "924" | "925" | "926" | "927" | "928" | "929" | "930" | "931" | "932" | "933" | "934" | "935" | "936" | "937" | "938" | "939" | "940" | "941" | "942" | "943" | "944" | "945" | "946" | "947" | "948" | "949" | "950" | "951" | "952" | "953" | "954" | "955" | "956" | "957" | "958" | "959" | "960" | "961" | "962" | "963" | "964" | "965" | "966" | "967" | "968" | "969" | "970" | "971" | "972" | "973" | "974" | "975" | "976" | "977" | "978" | "979" | "980" | "981" | "982" | "983" | "984" | "985" | "986" | "987" | "988" | "989" | "990" | "991" | "992" | "993" | "994" | "995" | "996" | "997" | "998" | "999" + +type Wide = N["length"] extends 6 ? [I, J] : { [J2 in K]: Wide<[...N, 0], I, J2> }[K]; +>Wide : Wide + +type Rest = Wide<[0, 0], "a">; +>Rest : ["a", "000"] | ["a", "001"] | ["a", "002"] | ["a", "003"] | ["a", "004"] | ["a", "005"] | ["a", "006"] | ["a", "007"] | ["a", "008"] | ["a", "009"] | ["a", "010"] | ["a", "011"] | ["a", "012"] | ["a", "013"] | ["a", "014"] | ["a", "015"] | ["a", "016"] | ["a", "017"] | ["a", "018"] | ["a", "019"] | ["a", "020"] | ["a", "021"] | ["a", "022"] | ["a", "023"] | ["a", "024"] | ["a", "025"] | ["a", "026"] | ["a", "027"] | ["a", "028"] | ["a", "029"] | ["a", "030"] | ["a", "031"] | ["a", "032"] | ["a", "033"] | ["a", "034"] | ["a", "035"] | ["a", "036"] | ["a", "037"] | ["a", "038"] | ["a", "039"] | ["a", "040"] | ["a", "041"] | ["a", "042"] | ["a", "043"] | ["a", "044"] | ["a", "045"] | ["a", "046"] | ["a", "047"] | ["a", "048"] | ["a", "049"] | ["a", "050"] | ["a", "051"] | ["a", "052"] | ["a", "053"] | ["a", "054"] | ["a", "055"] | ["a", "056"] | ["a", "057"] | ["a", "058"] | ["a", "059"] | ["a", "060"] | ["a", "061"] | ["a", "062"] | ["a", "063"] | ["a", "064"] | ["a", "065"] | ["a", "066"] | ["a", "067"] | ["a", "068"] | ["a", "069"] | ["a", "070"] | ["a", "071"] | ["a", "072"] | ["a", "073"] | ["a", "074"] | ["a", "075"] | ["a", "076"] | ["a", "077"] | ["a", "078"] | ["a", "079"] | ["a", "080"] | ["a", "081"] | ["a", "082"] | ["a", "083"] | ["a", "084"] | ["a", "085"] | ["a", "086"] | ["a", "087"] | ["a", "088"] | ["a", "089"] | ["a", "090"] | ["a", "091"] | ["a", "092"] | ["a", "093"] | ["a", "094"] | ["a", "095"] | ["a", "096"] | ["a", "097"] | ["a", "098"] | ["a", "099"] | ["a", "100"] | ["a", "101"] | ["a", "102"] | ["a", "103"] | ["a", "104"] | ["a", "105"] | ["a", "106"] | ["a", "107"] | ["a", "108"] | ["a", "109"] | ["a", "110"] | ["a", "111"] | ["a", "112"] | ["a", "113"] | ["a", "114"] | ["a", "115"] | ["a", "116"] | ["a", "117"] | ["a", "118"] | ["a", "119"] | ["a", "120"] | ["a", "121"] | ["a", "122"] | ["a", "123"] | ["a", "124"] | ["a", "125"] | ["a", "126"] | ["a", "127"] | ["a", "128"] | ["a", "129"] | ["a", "130"] | ["a", "131"] | ["a", "132"] | ["a", "133"] | ["a", "134"] | ["a", "135"] | ["a", "136"] | ["a", "137"] | ["a", "138"] | ["a", "139"] | ["a", "140"] | ["a", "141"] | ["a", "142"] | ["a", "143"] | ["a", "144"] | ["a", "145"] | ["a", "146"] | ["a", "147"] | ["a", "148"] | ["a", "149"] | ["a", "150"] | ["a", "151"] | ["a", "152"] | ["a", "153"] | ["a", "154"] | ["a", "155"] | ["a", "156"] | ["a", "157"] | ["a", "158"] | ["a", "159"] | ["a", "160"] | ["a", "161"] | ["a", "162"] | ["a", "163"] | ["a", "164"] | ["a", "165"] | ["a", "166"] | ["a", "167"] | ["a", "168"] | ["a", "169"] | ["a", "170"] | ["a", "171"] | ["a", "172"] | ["a", "173"] | ["a", "174"] | ["a", "175"] | ["a", "176"] | ["a", "177"] | ["a", "178"] | ["a", "179"] | ["a", "180"] | ["a", "181"] | ["a", "182"] | ["a", "183"] | ["a", "184"] | ["a", "185"] | ["a", "186"] | ["a", "187"] | ["a", "188"] | ["a", "189"] | ["a", "190"] | ["a", "191"] | ["a", "192"] | ["a", "193"] | ["a", "194"] | ["a", "195"] | ["a", "196"] | ["a", "197"] | ["a", "198"] | ["a", "199"] | ["a", "200"] | ["a", "201"] | ["a", "202"] | ["a", "203"] | ["a", "204"] | ["a", "205"] | ["a", "206"] | ["a", "207"] | ["a", "208"] | ["a", "209"] | ["a", "210"] | ["a", "211"] | ["a", "212"] | ["a", "213"] | ["a", "214"] | ["a", "215"] | ["a", "216"] | ["a", "217"] | ["a", "218"] | ["a", "219"] | ["a", "220"] | ["a", "221"] | ["a", "222"] | ["a", "223"] | ["a", "224"] | ["a", "225"] | ["a", "226"] | ["a", "227"] | ["a", "228"] | ["a", "229"] | ["a", "230"] | ["a", "231"] | ["a", "232"] | ["a", "233"] | ["a", "234"] | ["a", "235"] | ["a", "236"] | ["a", "237"] | ["a", "238"] | ["a", "239"] | ["a", "240"] | ["a", "241"] | ["a", "242"] | ["a", "243"] | ["a", "244"] | ["a", "245"] | ["a", "246"] | ["a", "247"] | ["a", "248"] | ["a", "249"] | ["a", "250"] | ["a", "251"] | ["a", "252"] | ["a", "253"] | ["a", "254"] | ["a", "255"] | ["a", "256"] | ["a", "257"] | ["a", "258"] | ["a", "259"] | ["a", "260"] | ["a", "261"] | ["a", "262"] | ["a", "263"] | ["a", "264"] | ["a", "265"] | ["a", "266"] | ["a", "267"] | ["a", "268"] | ["a", "269"] | ["a", "270"] | ["a", "271"] | ["a", "272"] | ["a", "273"] | ["a", "274"] | ["a", "275"] | ["a", "276"] | ["a", "277"] | ["a", "278"] | ["a", "279"] | ["a", "280"] | ["a", "281"] | ["a", "282"] | ["a", "283"] | ["a", "284"] | ["a", "285"] | ["a", "286"] | ["a", "287"] | ["a", "288"] | ["a", "289"] | ["a", "290"] | ["a", "291"] | ["a", "292"] | ["a", "293"] | ["a", "294"] | ["a", "295"] | ["a", "296"] | ["a", "297"] | ["a", "298"] | ["a", "299"] | ["a", "300"] | ["a", "301"] | ["a", "302"] | ["a", "303"] | ["a", "304"] | ["a", "305"] | ["a", "306"] | ["a", "307"] | ["a", "308"] | ["a", "309"] | ["a", "310"] | ["a", "311"] | ["a", "312"] | ["a", "313"] | ["a", "314"] | ["a", "315"] | ["a", "316"] | ["a", "317"] | ["a", "318"] | ["a", "319"] | ["a", "320"] | ["a", "321"] | ["a", "322"] | ["a", "323"] | ["a", "324"] | ["a", "325"] | ["a", "326"] | ["a", "327"] | ["a", "328"] | ["a", "329"] | ["a", "330"] | ["a", "331"] | ["a", "332"] | ["a", "333"] | ["a", "334"] | ["a", "335"] | ["a", "336"] | ["a", "337"] | ["a", "338"] | ["a", "339"] | ["a", "340"] | ["a", "341"] | ["a", "342"] | ["a", "343"] | ["a", "344"] | ["a", "345"] | ["a", "346"] | ["a", "347"] | ["a", "348"] | ["a", "349"] | ["a", "350"] | ["a", "351"] | ["a", "352"] | ["a", "353"] | ["a", "354"] | ["a", "355"] | ["a", "356"] | ["a", "357"] | ["a", "358"] | ["a", "359"] | ["a", "360"] | ["a", "361"] | ["a", "362"] | ["a", "363"] | ["a", "364"] | ["a", "365"] | ["a", "366"] | ["a", "367"] | ["a", "368"] | ["a", "369"] | ["a", "370"] | ["a", "371"] | ["a", "372"] | ["a", "373"] | ["a", "374"] | ["a", "375"] | ["a", "376"] | ["a", "377"] | ["a", "378"] | ["a", "379"] | ["a", "380"] | ["a", "381"] | ["a", "382"] | ["a", "383"] | ["a", "384"] | ["a", "385"] | ["a", "386"] | ["a", "387"] | ["a", "388"] | ["a", "389"] | ["a", "390"] | ["a", "391"] | ["a", "392"] | ["a", "393"] | ["a", "394"] | ["a", "395"] | ["a", "396"] | ["a", "397"] | ["a", "398"] | ["a", "399"] | ["a", "400"] | ["a", "401"] | ["a", "402"] | ["a", "403"] | ["a", "404"] | ["a", "405"] | ["a", "406"] | ["a", "407"] | ["a", "408"] | ["a", "409"] | ["a", "410"] | ["a", "411"] | ["a", "412"] | ["a", "413"] | ["a", "414"] | ["a", "415"] | ["a", "416"] | ["a", "417"] | ["a", "418"] | ["a", "419"] | ["a", "420"] | ["a", "421"] | ["a", "422"] | ["a", "423"] | ["a", "424"] | ["a", "425"] | ["a", "426"] | ["a", "427"] | ["a", "428"] | ["a", "429"] | ["a", "430"] | ["a", "431"] | ["a", "432"] | ["a", "433"] | ["a", "434"] | ["a", "435"] | ["a", "436"] | ["a", "437"] | ["a", "438"] | ["a", "439"] | ["a", "440"] | ["a", "441"] | ["a", "442"] | ["a", "443"] | ["a", "444"] | ["a", "445"] | ["a", "446"] | ["a", "447"] | ["a", "448"] | ["a", "449"] | ["a", "450"] | ["a", "451"] | ["a", "452"] | ["a", "453"] | ["a", "454"] | ["a", "455"] | ["a", "456"] | ["a", "457"] | ["a", "458"] | ["a", "459"] | ["a", "460"] | ["a", "461"] | ["a", "462"] | ["a", "463"] | ["a", "464"] | ["a", "465"] | ["a", "466"] | ["a", "467"] | ["a", "468"] | ["a", "469"] | ["a", "470"] | ["a", "471"] | ["a", "472"] | ["a", "473"] | ["a", "474"] | ["a", "475"] | ["a", "476"] | ["a", "477"] | ["a", "478"] | ["a", "479"] | ["a", "480"] | ["a", "481"] | ["a", "482"] | ["a", "483"] | ["a", "484"] | ["a", "485"] | ["a", "486"] | ["a", "487"] | ["a", "488"] | ["a", "489"] | ["a", "490"] | ["a", "491"] | ["a", "492"] | ["a", "493"] | ["a", "494"] | ["a", "495"] | ["a", "496"] | ["a", "497"] | ["a", "498"] | ["a", "499"] | ["a", "500"] | ["a", "501"] | ["a", "502"] | ["a", "503"] | ["a", "504"] | ["a", "505"] | ["a", "506"] | ["a", "507"] | ["a", "508"] | ["a", "509"] | ["a", "510"] | ["a", "511"] | ["a", "512"] | ["a", "513"] | ["a", "514"] | ["a", "515"] | ["a", "516"] | ["a", "517"] | ["a", "518"] | ["a", "519"] | ["a", "520"] | ["a", "521"] | ["a", "522"] | ["a", "523"] | ["a", "524"] | ["a", "525"] | ["a", "526"] | ["a", "527"] | ["a", "528"] | ["a", "529"] | ["a", "530"] | ["a", "531"] | ["a", "532"] | ["a", "533"] | ["a", "534"] | ["a", "535"] | ["a", "536"] | ["a", "537"] | ["a", "538"] | ["a", "539"] | ["a", "540"] | ["a", "541"] | ["a", "542"] | ["a", "543"] | ["a", "544"] | ["a", "545"] | ["a", "546"] | ["a", "547"] | ["a", "548"] | ["a", "549"] | ["a", "550"] | ["a", "551"] | ["a", "552"] | ["a", "553"] | ["a", "554"] | ["a", "555"] | ["a", "556"] | ["a", "557"] | ["a", "558"] | ["a", "559"] | ["a", "560"] | ["a", "561"] | ["a", "562"] | ["a", "563"] | ["a", "564"] | ["a", "565"] | ["a", "566"] | ["a", "567"] | ["a", "568"] | ["a", "569"] | ["a", "570"] | ["a", "571"] | ["a", "572"] | ["a", "573"] | ["a", "574"] | ["a", "575"] | ["a", "576"] | ["a", "577"] | ["a", "578"] | ["a", "579"] | ["a", "580"] | ["a", "581"] | ["a", "582"] | ["a", "583"] | ["a", "584"] | ["a", "585"] | ["a", "586"] | ["a", "587"] | ["a", "588"] | ["a", "589"] | ["a", "590"] | ["a", "591"] | ["a", "592"] | ["a", "593"] | ["a", "594"] | ["a", "595"] | ["a", "596"] | ["a", "597"] | ["a", "598"] | ["a", "599"] | ["a", "600"] | ["a", "601"] | ["a", "602"] | ["a", "603"] | ["a", "604"] | ["a", "605"] | ["a", "606"] | ["a", "607"] | ["a", "608"] | ["a", "609"] | ["a", "610"] | ["a", "611"] | ["a", "612"] | ["a", "613"] | ["a", "614"] | ["a", "615"] | ["a", "616"] | ["a", "617"] | ["a", "618"] | ["a", "619"] | ["a", "620"] | ["a", "621"] | ["a", "622"] | ["a", "623"] | ["a", "624"] | ["a", "625"] | ["a", "626"] | ["a", "627"] | ["a", "628"] | ["a", "629"] | ["a", "630"] | ["a", "631"] | ["a", "632"] | ["a", "633"] | ["a", "634"] | ["a", "635"] | ["a", "636"] | ["a", "637"] | ["a", "638"] | ["a", "639"] | ["a", "640"] | ["a", "641"] | ["a", "642"] | ["a", "643"] | ["a", "644"] | ["a", "645"] | ["a", "646"] | ["a", "647"] | ["a", "648"] | ["a", "649"] | ["a", "650"] | ["a", "651"] | ["a", "652"] | ["a", "653"] | ["a", "654"] | ["a", "655"] | ["a", "656"] | ["a", "657"] | ["a", "658"] | ["a", "659"] | ["a", "660"] | ["a", "661"] | ["a", "662"] | ["a", "663"] | ["a", "664"] | ["a", "665"] | ["a", "666"] | ["a", "667"] | ["a", "668"] | ["a", "669"] | ["a", "670"] | ["a", "671"] | ["a", "672"] | ["a", "673"] | ["a", "674"] | ["a", "675"] | ["a", "676"] | ["a", "677"] | ["a", "678"] | ["a", "679"] | ["a", "680"] | ["a", "681"] | ["a", "682"] | ["a", "683"] | ["a", "684"] | ["a", "685"] | ["a", "686"] | ["a", "687"] | ["a", "688"] | ["a", "689"] | ["a", "690"] | ["a", "691"] | ["a", "692"] | ["a", "693"] | ["a", "694"] | ["a", "695"] | ["a", "696"] | ["a", "697"] | ["a", "698"] | ["a", "699"] | ["a", "700"] | ["a", "701"] | ["a", "702"] | ["a", "703"] | ["a", "704"] | ["a", "705"] | ["a", "706"] | ["a", "707"] | ["a", "708"] | ["a", "709"] | ["a", "710"] | ["a", "711"] | ["a", "712"] | ["a", "713"] | ["a", "714"] | ["a", "715"] | ["a", "716"] | ["a", "717"] | ["a", "718"] | ["a", "719"] | ["a", "720"] | ["a", "721"] | ["a", "722"] | ["a", "723"] | ["a", "724"] | ["a", "725"] | ["a", "726"] | ["a", "727"] | ["a", "728"] | ["a", "729"] | ["a", "730"] | ["a", "731"] | ["a", "732"] | ["a", "733"] | ["a", "734"] | ["a", "735"] | ["a", "736"] | ["a", "737"] | ["a", "738"] | ["a", "739"] | ["a", "740"] | ["a", "741"] | ["a", "742"] | ["a", "743"] | ["a", "744"] | ["a", "745"] | ["a", "746"] | ["a", "747"] | ["a", "748"] | ["a", "749"] | ["a", "750"] | ["a", "751"] | ["a", "752"] | ["a", "753"] | ["a", "754"] | ["a", "755"] | ["a", "756"] | ["a", "757"] | ["a", "758"] | ["a", "759"] | ["a", "760"] | ["a", "761"] | ["a", "762"] | ["a", "763"] | ["a", "764"] | ["a", "765"] | ["a", "766"] | ["a", "767"] | ["a", "768"] | ["a", "769"] | ["a", "770"] | ["a", "771"] | ["a", "772"] | ["a", "773"] | ["a", "774"] | ["a", "775"] | ["a", "776"] | ["a", "777"] | ["a", "778"] | ["a", "779"] | ["a", "780"] | ["a", "781"] | ["a", "782"] | ["a", "783"] | ["a", "784"] | ["a", "785"] | ["a", "786"] | ["a", "787"] | ["a", "788"] | ["a", "789"] | ["a", "790"] | ["a", "791"] | ["a", "792"] | ["a", "793"] | ["a", "794"] | ["a", "795"] | ["a", "796"] | ["a", "797"] | ["a", "798"] | ["a", "799"] | ["a", "800"] | ["a", "801"] | ["a", "802"] | ["a", "803"] | ["a", "804"] | ["a", "805"] | ["a", "806"] | ["a", "807"] | ["a", "808"] | ["a", "809"] | ["a", "810"] | ["a", "811"] | ["a", "812"] | ["a", "813"] | ["a", "814"] | ["a", "815"] | ["a", "816"] | ["a", "817"] | ["a", "818"] | ["a", "819"] | ["a", "820"] | ["a", "821"] | ["a", "822"] | ["a", "823"] | ["a", "824"] | ["a", "825"] | ["a", "826"] | ["a", "827"] | ["a", "828"] | ["a", "829"] | ["a", "830"] | ["a", "831"] | ["a", "832"] | ["a", "833"] | ["a", "834"] | ["a", "835"] | ["a", "836"] | ["a", "837"] | ["a", "838"] | ["a", "839"] | ["a", "840"] | ["a", "841"] | ["a", "842"] | ["a", "843"] | ["a", "844"] | ["a", "845"] | ["a", "846"] | ["a", "847"] | ["a", "848"] | ["a", "849"] | ["a", "850"] | ["a", "851"] | ["a", "852"] | ["a", "853"] | ["a", "854"] | ["a", "855"] | ["a", "856"] | ["a", "857"] | ["a", "858"] | ["a", "859"] | ["a", "860"] | ["a", "861"] | ["a", "862"] | ["a", "863"] | ["a", "864"] | ["a", "865"] | ["a", "866"] | ["a", "867"] | ["a", "868"] | ["a", "869"] | ["a", "870"] | ["a", "871"] | ["a", "872"] | ["a", "873"] | ["a", "874"] | ["a", "875"] | ["a", "876"] | ["a", "877"] | ["a", "878"] | ["a", "879"] | ["a", "880"] | ["a", "881"] | ["a", "882"] | ["a", "883"] | ["a", "884"] | ["a", "885"] | ["a", "886"] | ["a", "887"] | ["a", "888"] | ["a", "889"] | ["a", "890"] | ["a", "891"] | ["a", "892"] | ["a", "893"] | ["a", "894"] | ["a", "895"] | ["a", "896"] | ["a", "897"] | ["a", "898"] | ["a", "899"] | ["a", "900"] | ["a", "901"] | ["a", "902"] | ["a", "903"] | ["a", "904"] | ["a", "905"] | ["a", "906"] | ["a", "907"] | ["a", "908"] | ["a", "909"] | ["a", "910"] | ["a", "911"] | ["a", "912"] | ["a", "913"] | ["a", "914"] | ["a", "915"] | ["a", "916"] | ["a", "917"] | ["a", "918"] | ["a", "919"] | ["a", "920"] | ["a", "921"] | ["a", "922"] | ["a", "923"] | ["a", "924"] | ["a", "925"] | ["a", "926"] | ["a", "927"] | ["a", "928"] | ["a", "929"] | ["a", "930"] | ["a", "931"] | ["a", "932"] | ["a", "933"] | ["a", "934"] | ["a", "935"] | ["a", "936"] | ["a", "937"] | ["a", "938"] | ["a", "939"] | ["a", "940"] | ["a", "941"] | ["a", "942"] | ["a", "943"] | ["a", "944"] | ["a", "945"] | ["a", "946"] | ["a", "947"] | ["a", "948"] | ["a", "949"] | ["a", "950"] | ["a", "951"] | ["a", "952"] | ["a", "953"] | ["a", "954"] | ["a", "955"] | ["a", "956"] | ["a", "957"] | ["a", "958"] | ["a", "959"] | ["a", "960"] | ["a", "961"] | ["a", "962"] | ["a", "963"] | ["a", "964"] | ["a", "965"] | ["a", "966"] | ["a", "967"] | ["a", "968"] | ["a", "969"] | ["a", "970"] | ["a", "971"] | ["a", "972"] | ["a", "973"] | ["a", "974"] | ["a", "975"] | ["a", "976"] | ["a", "977"] | ["a", "978"] | ["a", "979"] | ["a", "980"] | ["a", "981"] | ["a", "982"] | ["a", "983"] | ["a", "984"] | ["a", "985"] | ["a", "986"] | ["a", "987"] | ["a", "988"] | ["a", "989"] | ["a", "990"] | ["a", "991"] | ["a", "992"] | ["a", "993"] | ["a", "994"] | ["a", "995"] | ["a", "996"] | ["a", "997"] | ["a", "998"] | ["a", "999"] + +type All = Wide<[], "a">; +>All : any + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..f884f93457e7e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=default).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/instantiationDepthSharedCheckOrder.ts] //// + +=== instantiationDepthSharedCheckOrder.ts === +// Instantiating Deep<[]> fresh nests 100 instantiations of Deep, which is +// too deep. In program order each declaration finds the rest of the chain +// already instantiated by the one before it, so none of them nests more +// than 25. Whether DeepAll is too deep must not depend on which comes first. + +type Deep = N["length"] extends 100 ? never : Deep<[...N, 0]> | N["length"]; +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) +>N : Symbol(N, Decl(instantiationDepthSharedCheckOrder.ts, 5, 10)) +>N : Symbol(N, Decl(instantiationDepthSharedCheckOrder.ts, 5, 10)) +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) +>N : Symbol(N, Decl(instantiationDepthSharedCheckOrder.ts, 5, 10)) +>N : Symbol(N, Decl(instantiationDepthSharedCheckOrder.ts, 5, 10)) + +type Deep75 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep75 : Symbol(Deep75, Decl(instantiationDepthSharedCheckOrder.ts, 5, 91)) +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) + +type Deep50 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep50 : Symbol(Deep50, Decl(instantiationDepthSharedCheckOrder.ts, 6, 246)) +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) + +type Deep25 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep25 : Symbol(Deep25, Decl(instantiationDepthSharedCheckOrder.ts, 7, 171)) +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) + +type DeepAll = Deep<[]>; +>DeepAll : Symbol(DeepAll, Decl(instantiationDepthSharedCheckOrder.ts, 8, 96)) +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..19ec88f95d195 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=default).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/instantiationDepthSharedCheckOrder.ts] //// + +=== instantiationDepthSharedCheckOrder.ts === +// Instantiating Deep<[]> fresh nests 100 instantiations of Deep, which is +// too deep. In program order each declaration finds the rest of the chain +// already instantiated by the one before it, so none of them nests more +// than 25. Whether DeepAll is too deep must not depend on which comes first. + +type Deep = N["length"] extends 100 ? never : Deep<[...N, 0]> | N["length"]; +>Deep : Deep + +type Deep75 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep75 : 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 + +type Deep50 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep50 : 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 + +type Deep25 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep25 : 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 + +type DeepAll = Deep<[]>; +>DeepAll : 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..083ecdc701b69 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,16 @@ +error TS5114: Instantiations of type 'Deep' appear infinitely circular. + + +!!! error TS5114: Instantiations of type 'Deep' appear infinitely circular. +==== instantiationDepthSharedCheckOrder.ts (0 errors) ==== + // Instantiating Deep<[]> fresh nests 100 instantiations of Deep, which is + // too deep. In program order each declaration finds the rest of the chain + // already instantiated by the one before it, so none of them nests more + // than 25. Whether DeepAll is too deep must not depend on which comes first. + + type Deep = N["length"] extends 100 ? never : Deep<[...N, 0]> | N["length"]; + type Deep75 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; + type Deep50 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; + type Deep25 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; + type DeepAll = Deep<[]>; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..f884f93457e7e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/instantiationDepthSharedCheckOrder.ts] //// + +=== instantiationDepthSharedCheckOrder.ts === +// Instantiating Deep<[]> fresh nests 100 instantiations of Deep, which is +// too deep. In program order each declaration finds the rest of the chain +// already instantiated by the one before it, so none of them nests more +// than 25. Whether DeepAll is too deep must not depend on which comes first. + +type Deep = N["length"] extends 100 ? never : Deep<[...N, 0]> | N["length"]; +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) +>N : Symbol(N, Decl(instantiationDepthSharedCheckOrder.ts, 5, 10)) +>N : Symbol(N, Decl(instantiationDepthSharedCheckOrder.ts, 5, 10)) +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) +>N : Symbol(N, Decl(instantiationDepthSharedCheckOrder.ts, 5, 10)) +>N : Symbol(N, Decl(instantiationDepthSharedCheckOrder.ts, 5, 10)) + +type Deep75 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep75 : Symbol(Deep75, Decl(instantiationDepthSharedCheckOrder.ts, 5, 91)) +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) + +type Deep50 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep50 : Symbol(Deep50, Decl(instantiationDepthSharedCheckOrder.ts, 6, 246)) +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) + +type Deep25 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep25 : Symbol(Deep25, Decl(instantiationDepthSharedCheckOrder.ts, 7, 171)) +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) + +type DeepAll = Deep<[]>; +>DeepAll : Symbol(DeepAll, Decl(instantiationDepthSharedCheckOrder.ts, 8, 96)) +>Deep : Symbol(Deep, Decl(instantiationDepthSharedCheckOrder.ts, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..9edac22f5cd4e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationDepthSharedCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/instantiationDepthSharedCheckOrder.ts] //// + +=== instantiationDepthSharedCheckOrder.ts === +// Instantiating Deep<[]> fresh nests 100 instantiations of Deep, which is +// too deep. In program order each declaration finds the rest of the chain +// already instantiated by the one before it, so none of them nests more +// than 25. Whether DeepAll is too deep must not depend on which comes first. + +type Deep = N["length"] extends 100 ? never : Deep<[...N, 0]> | N["length"]; +>Deep : Deep + +type Deep75 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep75 : any + +type Deep50 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep50 : any + +type Deep25 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>Deep25 : any + +type DeepAll = Deep<[]>; +>DeepAll : any + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..a674eea18c3f4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,32 @@ +instantiationExpressionConstraintCycleCheckOrder.ts(17,41): error TS2344: Type 'A' does not satisfy the constraint 'A'. + Type 'T' is not assignable to type 'number'. + + +==== instantiationExpressionConstraintCycleCheckOrder.ts (1 errors) ==== + // Checking the type arguments of the instantiation expressions against their + // constraints needs the variances of A, which need the type of child. The + // constraint errors and the types of child must not depend on whether child + // is queried before A is checked. + + namespace InterfaceCycle { + declare function b(): U; + interface A { + value: T; + child: typeof b>; + } + } + + namespace ClassCycle { + class A { + value!: T; + child!: InstanceType>>; + ~~~~ +!!! error TS2344: Type 'A' does not satisfy the constraint 'A'. +!!! error TS2344: Type 'T' is not assignable to type 'number'. +!!! related TS2208 instantiationExpressionConstraintCycleCheckOrder.ts:15:13: This type parameter might need an `extends number` constraint. + static B = class B { + parent!: T; + }; + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).js new file mode 100644 index 0000000000000..4f198380085a7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).js @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/instantiationExpressionConstraintCycleCheckOrder.ts] //// + +//// [instantiationExpressionConstraintCycleCheckOrder.ts] +// Checking the type arguments of the instantiation expressions against their +// constraints needs the variances of A, which need the type of child. The +// constraint errors and the types of child must not depend on whether child +// is queried before A is checked. + +namespace InterfaceCycle { + declare function b(): U; + interface A { + value: T; + child: typeof b>; + } +} + +namespace ClassCycle { + class A { + value!: T; + child!: InstanceType>>; + static B = class B { + parent!: T; + }; + } +} + + +//// [instantiationExpressionConstraintCycleCheckOrder.js] +"use strict"; +// Checking the type arguments of the instantiation expressions against their +// constraints needs the variances of A, which need the type of child. The +// constraint errors and the types of child must not depend on whether child +// is queried before A is checked. +var InterfaceCycle; +(function (InterfaceCycle) { +})(InterfaceCycle || (InterfaceCycle = {})); +var ClassCycle; +(function (ClassCycle) { + class A { + value; + child; + static B = class B { + parent; + }; + } +})(ClassCycle || (ClassCycle = {})); diff --git a/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..8651ce4a98d10 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).symbols @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/instantiationExpressionConstraintCycleCheckOrder.ts] //// + +=== instantiationExpressionConstraintCycleCheckOrder.ts === +// Checking the type arguments of the instantiation expressions against their +// constraints needs the variances of A, which need the type of child. The +// constraint errors and the types of child must not depend on whether child +// is queried before A is checked. + +namespace InterfaceCycle { +>InterfaceCycle : Symbol(InterfaceCycle, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 0, 0)) + + declare function b(): U; +>b : Symbol(b, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 5, 26)) +>U : Symbol(U, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 23)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 45)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 45)) +>U : Symbol(U, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 23)) + + interface A { +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 45)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 7, 16)) + + value: T; +>value : Symbol(A.value, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 7, 29)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 7, 16)) + + child: typeof b>; +>child : Symbol(A.child, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 8, 17)) +>b : Symbol(b, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 5, 26)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 45)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 7, 16)) + } +} + +namespace ClassCycle { +>ClassCycle : Symbol(ClassCycle, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 11, 1)) + + class A { +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 13, 22)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 14, 12)) + + value!: T; +>value : Symbol(A.value, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 14, 25)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 14, 12)) + + child!: InstanceType>>; +>child : Symbol(A.child, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 15, 18)) +>InstanceType : Symbol(InstanceType, Decl(lib.es5.d.ts, --, --)) +>A.B : Symbol(A.B, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 16, 47)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 13, 22)) +>B : Symbol(A.B, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 16, 47)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 13, 22)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 14, 12)) + + static B = class B { +>B : Symbol(A.B, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 16, 47)) +>B : Symbol(B, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 17, 18)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 17, 27)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 13, 22)) + + parent!: T; +>parent : Symbol(B.parent, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 17, 41)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 17, 27)) + + }; + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..21ae95de09035 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=default).types @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/instantiationExpressionConstraintCycleCheckOrder.ts] //// + +=== instantiationExpressionConstraintCycleCheckOrder.ts === +// Checking the type arguments of the instantiation expressions against their +// constraints needs the variances of A, which need the type of child. The +// constraint errors and the types of child must not depend on whether child +// is queried before A is checked. + +namespace InterfaceCycle { +>InterfaceCycle : typeof InterfaceCycle + + declare function b(): U; +>b : >() => U + + interface A { + value: T; +>value : T + + child: typeof b>; +>child : typeof b> +>b : >() => U + } +} + +namespace ClassCycle { +>ClassCycle : typeof ClassCycle + + class A { +>A : A + + value!: T; +>value : T + + child!: InstanceType>>; +>child : B> +>A.B : typeof B +>A : typeof A +>B : typeof B + + static B = class B { +>B : typeof B +>class B { parent!: T; } : typeof B +>B : typeof B + + parent!: T; +>parent : T + + }; + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..34b433cab41d3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,38 @@ +instantiationExpressionConstraintCycleCheckOrder.ts(10,25): error TS2344: Type 'A' does not satisfy the constraint 'A'. + Type 'T' is not assignable to type 'number'. +instantiationExpressionConstraintCycleCheckOrder.ts(17,41): error TS2344: Type 'A' does not satisfy the constraint 'A'. + Type 'T' is not assignable to type 'number'. + + +==== instantiationExpressionConstraintCycleCheckOrder.ts (2 errors) ==== + // Checking the type arguments of the instantiation expressions against their + // constraints needs the variances of A, which need the type of child. The + // constraint errors and the types of child must not depend on whether child + // is queried before A is checked. + + namespace InterfaceCycle { + declare function b(): U; + interface A { + value: T; + child: typeof b>; + ~~~~ +!!! error TS2344: Type 'A' does not satisfy the constraint 'A'. +!!! error TS2344: Type 'T' is not assignable to type 'number'. +!!! related TS2208 instantiationExpressionConstraintCycleCheckOrder.ts:8:17: This type parameter might need an `extends number` constraint. + } + } + + namespace ClassCycle { + class A { + value!: T; + child!: InstanceType>>; + ~~~~ +!!! error TS2344: Type 'A' does not satisfy the constraint 'A'. +!!! error TS2344: Type 'T' is not assignable to type 'number'. +!!! related TS2208 instantiationExpressionConstraintCycleCheckOrder.ts:15:13: This type parameter might need an `extends number` constraint. + static B = class B { + parent!: T; + }; + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).js new file mode 100644 index 0000000000000..4f198380085a7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).js @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/instantiationExpressionConstraintCycleCheckOrder.ts] //// + +//// [instantiationExpressionConstraintCycleCheckOrder.ts] +// Checking the type arguments of the instantiation expressions against their +// constraints needs the variances of A, which need the type of child. The +// constraint errors and the types of child must not depend on whether child +// is queried before A is checked. + +namespace InterfaceCycle { + declare function b(): U; + interface A { + value: T; + child: typeof b>; + } +} + +namespace ClassCycle { + class A { + value!: T; + child!: InstanceType>>; + static B = class B { + parent!: T; + }; + } +} + + +//// [instantiationExpressionConstraintCycleCheckOrder.js] +"use strict"; +// Checking the type arguments of the instantiation expressions against their +// constraints needs the variances of A, which need the type of child. The +// constraint errors and the types of child must not depend on whether child +// is queried before A is checked. +var InterfaceCycle; +(function (InterfaceCycle) { +})(InterfaceCycle || (InterfaceCycle = {})); +var ClassCycle; +(function (ClassCycle) { + class A { + value; + child; + static B = class B { + parent; + }; + } +})(ClassCycle || (ClassCycle = {})); diff --git a/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..8651ce4a98d10 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/instantiationExpressionConstraintCycleCheckOrder.ts] //// + +=== instantiationExpressionConstraintCycleCheckOrder.ts === +// Checking the type arguments of the instantiation expressions against their +// constraints needs the variances of A, which need the type of child. The +// constraint errors and the types of child must not depend on whether child +// is queried before A is checked. + +namespace InterfaceCycle { +>InterfaceCycle : Symbol(InterfaceCycle, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 0, 0)) + + declare function b(): U; +>b : Symbol(b, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 5, 26)) +>U : Symbol(U, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 23)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 45)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 45)) +>U : Symbol(U, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 23)) + + interface A { +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 45)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 7, 16)) + + value: T; +>value : Symbol(A.value, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 7, 29)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 7, 16)) + + child: typeof b>; +>child : Symbol(A.child, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 8, 17)) +>b : Symbol(b, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 5, 26)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 6, 45)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 7, 16)) + } +} + +namespace ClassCycle { +>ClassCycle : Symbol(ClassCycle, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 11, 1)) + + class A { +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 13, 22)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 14, 12)) + + value!: T; +>value : Symbol(A.value, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 14, 25)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 14, 12)) + + child!: InstanceType>>; +>child : Symbol(A.child, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 15, 18)) +>InstanceType : Symbol(InstanceType, Decl(lib.es5.d.ts, --, --)) +>A.B : Symbol(A.B, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 16, 47)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 13, 22)) +>B : Symbol(A.B, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 16, 47)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 13, 22)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 14, 12)) + + static B = class B { +>B : Symbol(A.B, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 16, 47)) +>B : Symbol(B, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 17, 18)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 17, 27)) +>A : Symbol(A, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 13, 22)) + + parent!: T; +>parent : Symbol(B.parent, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 17, 41)) +>T : Symbol(T, Decl(instantiationExpressionConstraintCycleCheckOrder.ts, 17, 27)) + + }; + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..4b7e7e4ea94e9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintCycleCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/instantiationExpressionConstraintCycleCheckOrder.ts] //// + +=== instantiationExpressionConstraintCycleCheckOrder.ts === +// Checking the type arguments of the instantiation expressions against their +// constraints needs the variances of A, which need the type of child. The +// constraint errors and the types of child must not depend on whether child +// is queried before A is checked. + +namespace InterfaceCycle { +>InterfaceCycle : typeof InterfaceCycle + + declare function b(): U; +>b : >() => U + + interface A { + value: T; +>value : T + + child: typeof b>; +>child : () => A +>b : >() => U + } +} + +namespace ClassCycle { +>ClassCycle : typeof ClassCycle + + class A { +>A : A + + value!: T; +>value : T + + child!: InstanceType>>; +>child : B> +>A.B : typeof B +>A : typeof A +>B : typeof B + + static B = class B { +>B : typeof B +>class B { parent!: T; } : typeof B +>B : typeof B + + parent!: T; +>parent : T + + }; + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintInStaticClassExpression.symbols b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintInStaticClassExpression.symbols new file mode 100644 index 0000000000000..e7a7218e1a855 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintInStaticClassExpression.symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/instantiationExpressionConstraintInStaticClassExpression.ts] //// + +=== instantiationExpressionConstraintInStaticClassExpression.ts === +// A does not satisfy the constraint A of B, as T is not assignable to +// number, which must be reported. + +class A { +>A : Symbol(A, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 0, 0)) +>T : Symbol(T, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 3, 8)) + + value!: T; +>value : Symbol(A.value, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 3, 21)) +>T : Symbol(T, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 3, 8)) + + child!: InstanceType>>; // this should error +>child : Symbol(A.child, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 4, 12)) +>InstanceType : Symbol(InstanceType, Decl(lib.es5.d.ts, --, --)) +>A.B : Symbol(A.B, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 5, 41)) +>A : Symbol(A, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 0, 0)) +>B : Symbol(A.B, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 5, 41)) +>A : Symbol(A, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 0, 0)) +>T : Symbol(T, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 3, 8)) + + static B = class B { +>B : Symbol(A.B, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 5, 41)) +>B : Symbol(B, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 7, 12)) +>T : Symbol(T, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 7, 21)) +>A : Symbol(A, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 0, 0)) +>A : Symbol(A, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 0, 0)) + + parent!: T; +>parent : Symbol(B.parent, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 7, 39)) +>T : Symbol(T, Decl(instantiationExpressionConstraintInStaticClassExpression.ts, 7, 21)) + + }; +} + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintInStaticClassExpression.types b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintInStaticClassExpression.types new file mode 100644 index 0000000000000..4f1d247f40a86 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationExpressionConstraintInStaticClassExpression.types @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/instantiationExpressionConstraintInStaticClassExpression.ts] //// + +=== instantiationExpressionConstraintInStaticClassExpression.ts === +// A does not satisfy the constraint A of B, as T is not assignable to +// number, which must be reported. + +class A { +>A : A + + value!: T; +>value : T + + child!: InstanceType>>; // this should error +>child : B> +>A.B : typeof B +>A : typeof A +>B : typeof B + + static B = class B { +>B : typeof B +>class B { parent!: T; } : typeof B +>B : typeof B + + parent!: T; +>parent : T + + }; +} + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.errors.txt b/tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.errors.txt new file mode 100644 index 0000000000000..69dd6c2b622df --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.errors.txt @@ -0,0 +1,24 @@ +instantiationLimitsCheckOrder.ts(11,16): error TS2589: Type instantiation is excessively deep and possibly infinite. + + +==== instantiationLimitsCheckOrder.ts (1 errors) ==== + // The depth limit on instantiations must not depend on what was + // instantiated before. The limit on the number of instantiations does, as + // it only stops runaway instantiations, so it is only tested for a single + // statement whose work nothing else shares. + + type D = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; + type K = `${D}${D}${D}`; + + // Several million instantiations, well over the limit, for one statement. + type Wide = N["length"] extends 8 ? I : { [J in K]: Wide<[...N, 0], [J, I][0]> }[K]; + type WideAll = Wide<[], "">; + ~~~~~~~~~~~~ +!!! error TS2589: Type instantiation is excessively deep and possibly infinite. + + // Over a hundred nested instantiations, half of which already happened for + // another statement. + type Deep = N["length"] extends 60 ? never : Deep<[...N, 0]> | N["length"]; + type DeepTail = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; + type DeepAll = Deep<[]>; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.symbols b/tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.symbols new file mode 100644 index 0000000000000..c49f0e567e06e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.symbols @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/instantiationLimitsCheckOrder.ts] //// + +=== instantiationLimitsCheckOrder.ts === +// The depth limit on instantiations must not depend on what was +// instantiated before. The limit on the number of instantiations does, as +// it only stops runaway instantiations, so it is only tested for a single +// statement whose work nothing else shares. + +type D = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; +>D : Symbol(D, Decl(instantiationLimitsCheckOrder.ts, 0, 0)) + +type K = `${D}${D}${D}`; +>K : Symbol(K, Decl(instantiationLimitsCheckOrder.ts, 5, 47)) +>D : Symbol(D, Decl(instantiationLimitsCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(instantiationLimitsCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(instantiationLimitsCheckOrder.ts, 0, 0)) + +// Several million instantiations, well over the limit, for one statement. +type Wide = N["length"] extends 8 ? I : { [J in K]: Wide<[...N, 0], [J, I][0]> }[K]; +>Wide : Symbol(Wide, Decl(instantiationLimitsCheckOrder.ts, 6, 24)) +>N : Symbol(N, Decl(instantiationLimitsCheckOrder.ts, 9, 10)) +>I : Symbol(I, Decl(instantiationLimitsCheckOrder.ts, 9, 24)) +>N : Symbol(N, Decl(instantiationLimitsCheckOrder.ts, 9, 10)) +>I : Symbol(I, Decl(instantiationLimitsCheckOrder.ts, 9, 24)) +>J : Symbol(J, Decl(instantiationLimitsCheckOrder.ts, 9, 61)) +>K : Symbol(K, Decl(instantiationLimitsCheckOrder.ts, 5, 47)) +>Wide : Symbol(Wide, Decl(instantiationLimitsCheckOrder.ts, 6, 24)) +>N : Symbol(N, Decl(instantiationLimitsCheckOrder.ts, 9, 10)) +>J : Symbol(J, Decl(instantiationLimitsCheckOrder.ts, 9, 61)) +>I : Symbol(I, Decl(instantiationLimitsCheckOrder.ts, 9, 24)) +>K : Symbol(K, Decl(instantiationLimitsCheckOrder.ts, 5, 47)) + +type WideAll = Wide<[], "">; +>WideAll : Symbol(WideAll, Decl(instantiationLimitsCheckOrder.ts, 9, 102)) +>Wide : Symbol(Wide, Decl(instantiationLimitsCheckOrder.ts, 6, 24)) + +// Over a hundred nested instantiations, half of which already happened for +// another statement. +type Deep = N["length"] extends 60 ? never : Deep<[...N, 0]> | N["length"]; +>Deep : Symbol(Deep, Decl(instantiationLimitsCheckOrder.ts, 10, 28)) +>N : Symbol(N, Decl(instantiationLimitsCheckOrder.ts, 14, 10)) +>N : Symbol(N, Decl(instantiationLimitsCheckOrder.ts, 14, 10)) +>Deep : Symbol(Deep, Decl(instantiationLimitsCheckOrder.ts, 10, 28)) +>N : Symbol(N, Decl(instantiationLimitsCheckOrder.ts, 14, 10)) +>N : Symbol(N, Decl(instantiationLimitsCheckOrder.ts, 14, 10)) + +type DeepTail = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>DeepTail : Symbol(DeepTail, Decl(instantiationLimitsCheckOrder.ts, 14, 90)) +>Deep : Symbol(Deep, Decl(instantiationLimitsCheckOrder.ts, 10, 28)) + +type DeepAll = Deep<[]>; +>DeepAll : Symbol(DeepAll, Decl(instantiationLimitsCheckOrder.ts, 15, 113)) +>Deep : Symbol(Deep, Decl(instantiationLimitsCheckOrder.ts, 10, 28)) + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.types b/tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.types new file mode 100644 index 0000000000000..5227b6c530923 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationLimitsCheckOrder.types @@ -0,0 +1,32 @@ +//// [tests/cases/compiler/instantiationLimitsCheckOrder.ts] //// + +=== instantiationLimitsCheckOrder.ts === +// The depth limit on instantiations must not depend on what was +// instantiated before. The limit on the number of instantiations does, as +// it only stops runaway instantiations, so it is only tested for a single +// statement whose work nothing else shares. + +type D = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; +>D : D + +type K = `${D}${D}${D}`; +>K : "000" | "001" | "002" | "003" | "004" | "005" | "006" | "007" | "008" | "009" | "010" | "011" | "012" | "013" | "014" | "015" | "016" | "017" | "018" | "019" | "020" | "021" | "022" | "023" | "024" | "025" | "026" | "027" | "028" | "029" | "030" | "031" | "032" | "033" | "034" | "035" | "036" | "037" | "038" | "039" | "040" | "041" | "042" | "043" | "044" | "045" | "046" | "047" | "048" | "049" | "050" | "051" | "052" | "053" | "054" | "055" | "056" | "057" | "058" | "059" | "060" | "061" | "062" | "063" | "064" | "065" | "066" | "067" | "068" | "069" | "070" | "071" | "072" | "073" | "074" | "075" | "076" | "077" | "078" | "079" | "080" | "081" | "082" | "083" | "084" | "085" | "086" | "087" | "088" | "089" | "090" | "091" | "092" | "093" | "094" | "095" | "096" | "097" | "098" | "099" | "100" | "101" | "102" | "103" | "104" | "105" | "106" | "107" | "108" | "109" | "110" | "111" | "112" | "113" | "114" | "115" | "116" | "117" | "118" | "119" | "120" | "121" | "122" | "123" | "124" | "125" | "126" | "127" | "128" | "129" | "130" | "131" | "132" | "133" | "134" | "135" | "136" | "137" | "138" | "139" | "140" | "141" | "142" | "143" | "144" | "145" | "146" | "147" | "148" | "149" | "150" | "151" | "152" | "153" | "154" | "155" | "156" | "157" | "158" | "159" | "160" | "161" | "162" | "163" | "164" | "165" | "166" | "167" | "168" | "169" | "170" | "171" | "172" | "173" | "174" | "175" | "176" | "177" | "178" | "179" | "180" | "181" | "182" | "183" | "184" | "185" | "186" | "187" | "188" | "189" | "190" | "191" | "192" | "193" | "194" | "195" | "196" | "197" | "198" | "199" | "200" | "201" | "202" | "203" | "204" | "205" | "206" | "207" | "208" | "209" | "210" | "211" | "212" | "213" | "214" | "215" | "216" | "217" | "218" | "219" | "220" | "221" | "222" | "223" | "224" | "225" | "226" | "227" | "228" | "229" | "230" | "231" | "232" | "233" | "234" | "235" | "236" | "237" | "238" | "239" | "240" | "241" | "242" | "243" | "244" | "245" | "246" | "247" | "248" | "249" | "250" | "251" | "252" | "253" | "254" | "255" | "256" | "257" | "258" | "259" | "260" | "261" | "262" | "263" | "264" | "265" | "266" | "267" | "268" | "269" | "270" | "271" | "272" | "273" | "274" | "275" | "276" | "277" | "278" | "279" | "280" | "281" | "282" | "283" | "284" | "285" | "286" | "287" | "288" | "289" | "290" | "291" | "292" | "293" | "294" | "295" | "296" | "297" | "298" | "299" | "300" | "301" | "302" | "303" | "304" | "305" | "306" | "307" | "308" | "309" | "310" | "311" | "312" | "313" | "314" | "315" | "316" | "317" | "318" | "319" | "320" | "321" | "322" | "323" | "324" | "325" | "326" | "327" | "328" | "329" | "330" | "331" | "332" | "333" | "334" | "335" | "336" | "337" | "338" | "339" | "340" | "341" | "342" | "343" | "344" | "345" | "346" | "347" | "348" | "349" | "350" | "351" | "352" | "353" | "354" | "355" | "356" | "357" | "358" | "359" | "360" | "361" | "362" | "363" | "364" | "365" | "366" | "367" | "368" | "369" | "370" | "371" | "372" | "373" | "374" | "375" | "376" | "377" | "378" | "379" | "380" | "381" | "382" | "383" | "384" | "385" | "386" | "387" | "388" | "389" | "390" | "391" | "392" | "393" | "394" | "395" | "396" | "397" | "398" | "399" | "400" | "401" | "402" | "403" | "404" | "405" | "406" | "407" | "408" | "409" | "410" | "411" | "412" | "413" | "414" | "415" | "416" | "417" | "418" | "419" | "420" | "421" | "422" | "423" | "424" | "425" | "426" | "427" | "428" | "429" | "430" | "431" | "432" | "433" | "434" | "435" | "436" | "437" | "438" | "439" | "440" | "441" | "442" | "443" | "444" | "445" | "446" | "447" | "448" | "449" | "450" | "451" | "452" | "453" | "454" | "455" | "456" | "457" | "458" | "459" | "460" | "461" | "462" | "463" | "464" | "465" | "466" | "467" | "468" | "469" | "470" | "471" | "472" | "473" | "474" | "475" | "476" | "477" | "478" | "479" | "480" | "481" | "482" | "483" | "484" | "485" | "486" | "487" | "488" | "489" | "490" | "491" | "492" | "493" | "494" | "495" | "496" | "497" | "498" | "499" | "500" | "501" | "502" | "503" | "504" | "505" | "506" | "507" | "508" | "509" | "510" | "511" | "512" | "513" | "514" | "515" | "516" | "517" | "518" | "519" | "520" | "521" | "522" | "523" | "524" | "525" | "526" | "527" | "528" | "529" | "530" | "531" | "532" | "533" | "534" | "535" | "536" | "537" | "538" | "539" | "540" | "541" | "542" | "543" | "544" | "545" | "546" | "547" | "548" | "549" | "550" | "551" | "552" | "553" | "554" | "555" | "556" | "557" | "558" | "559" | "560" | "561" | "562" | "563" | "564" | "565" | "566" | "567" | "568" | "569" | "570" | "571" | "572" | "573" | "574" | "575" | "576" | "577" | "578" | "579" | "580" | "581" | "582" | "583" | "584" | "585" | "586" | "587" | "588" | "589" | "590" | "591" | "592" | "593" | "594" | "595" | "596" | "597" | "598" | "599" | "600" | "601" | "602" | "603" | "604" | "605" | "606" | "607" | "608" | "609" | "610" | "611" | "612" | "613" | "614" | "615" | "616" | "617" | "618" | "619" | "620" | "621" | "622" | "623" | "624" | "625" | "626" | "627" | "628" | "629" | "630" | "631" | "632" | "633" | "634" | "635" | "636" | "637" | "638" | "639" | "640" | "641" | "642" | "643" | "644" | "645" | "646" | "647" | "648" | "649" | "650" | "651" | "652" | "653" | "654" | "655" | "656" | "657" | "658" | "659" | "660" | "661" | "662" | "663" | "664" | "665" | "666" | "667" | "668" | "669" | "670" | "671" | "672" | "673" | "674" | "675" | "676" | "677" | "678" | "679" | "680" | "681" | "682" | "683" | "684" | "685" | "686" | "687" | "688" | "689" | "690" | "691" | "692" | "693" | "694" | "695" | "696" | "697" | "698" | "699" | "700" | "701" | "702" | "703" | "704" | "705" | "706" | "707" | "708" | "709" | "710" | "711" | "712" | "713" | "714" | "715" | "716" | "717" | "718" | "719" | "720" | "721" | "722" | "723" | "724" | "725" | "726" | "727" | "728" | "729" | "730" | "731" | "732" | "733" | "734" | "735" | "736" | "737" | "738" | "739" | "740" | "741" | "742" | "743" | "744" | "745" | "746" | "747" | "748" | "749" | "750" | "751" | "752" | "753" | "754" | "755" | "756" | "757" | "758" | "759" | "760" | "761" | "762" | "763" | "764" | "765" | "766" | "767" | "768" | "769" | "770" | "771" | "772" | "773" | "774" | "775" | "776" | "777" | "778" | "779" | "780" | "781" | "782" | "783" | "784" | "785" | "786" | "787" | "788" | "789" | "790" | "791" | "792" | "793" | "794" | "795" | "796" | "797" | "798" | "799" | "800" | "801" | "802" | "803" | "804" | "805" | "806" | "807" | "808" | "809" | "810" | "811" | "812" | "813" | "814" | "815" | "816" | "817" | "818" | "819" | "820" | "821" | "822" | "823" | "824" | "825" | "826" | "827" | "828" | "829" | "830" | "831" | "832" | "833" | "834" | "835" | "836" | "837" | "838" | "839" | "840" | "841" | "842" | "843" | "844" | "845" | "846" | "847" | "848" | "849" | "850" | "851" | "852" | "853" | "854" | "855" | "856" | "857" | "858" | "859" | "860" | "861" | "862" | "863" | "864" | "865" | "866" | "867" | "868" | "869" | "870" | "871" | "872" | "873" | "874" | "875" | "876" | "877" | "878" | "879" | "880" | "881" | "882" | "883" | "884" | "885" | "886" | "887" | "888" | "889" | "890" | "891" | "892" | "893" | "894" | "895" | "896" | "897" | "898" | "899" | "900" | "901" | "902" | "903" | "904" | "905" | "906" | "907" | "908" | "909" | "910" | "911" | "912" | "913" | "914" | "915" | "916" | "917" | "918" | "919" | "920" | "921" | "922" | "923" | "924" | "925" | "926" | "927" | "928" | "929" | "930" | "931" | "932" | "933" | "934" | "935" | "936" | "937" | "938" | "939" | "940" | "941" | "942" | "943" | "944" | "945" | "946" | "947" | "948" | "949" | "950" | "951" | "952" | "953" | "954" | "955" | "956" | "957" | "958" | "959" | "960" | "961" | "962" | "963" | "964" | "965" | "966" | "967" | "968" | "969" | "970" | "971" | "972" | "973" | "974" | "975" | "976" | "977" | "978" | "979" | "980" | "981" | "982" | "983" | "984" | "985" | "986" | "987" | "988" | "989" | "990" | "991" | "992" | "993" | "994" | "995" | "996" | "997" | "998" | "999" + +// Several million instantiations, well over the limit, for one statement. +type Wide = N["length"] extends 8 ? I : { [J in K]: Wide<[...N, 0], [J, I][0]> }[K]; +>Wide : Wide + +type WideAll = Wide<[], "">; +>WideAll : any + +// Over a hundred nested instantiations, half of which already happened for +// another statement. +type Deep = N["length"] extends 60 ? never : Deep<[...N, 0]> | N["length"]; +>Deep : Deep + +type DeepTail = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +>DeepTail : 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 + +type DeepAll = Deep<[]>; +>DeepAll : 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..cda46ad3a724f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,24 @@ +instantiationStackLimitCheckOrder.ts(6,48): error TS5114: Instantiations of type 'F' appear infinitely circular. +instantiationStackLimitCheckOrder.ts(14,11): error TS5114: Instantiations of type 'FlatArray' appear infinitely circular. + + +==== instantiationStackLimitCheckOrder.ts (2 errors) ==== + // F<[]> recurses forever, so instantiating it reaches the limit on the + // instantiation stack, wherever it is first instantiated. The instantiations + // in progress then fail as a whole, and none of them may be cached partly + // built for the other declaration to reuse. + + type F = T extends [unknown?, ...infer R] ? [0, ...F] : []; + ~~~~~~~~~~~~ +!!! error TS5114: Instantiations of type 'F' appear infinitely circular. + type X = F<[]>; + + // The element type of A[] is resolved whenever first needed, inside the + // instantiation of the return type of flat or not. Reaching the limit while + // flattening it must fail the same instantiations either way. + + type A = A[]; + const r = ([] as A).flat(Infinity); + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5114: Instantiations of type 'FlatArray' appear infinitely circular. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..97100f75a4cf2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/instantiationStackLimitCheckOrder.ts] //// + +=== instantiationStackLimitCheckOrder.ts === +// F<[]> recurses forever, so instantiating it reaches the limit on the +// instantiation stack, wherever it is first instantiated. The instantiations +// in progress then fail as a whole, and none of them may be cached partly +// built for the other declaration to reuse. + +type F = T extends [unknown?, ...infer R] ? [0, ...F] : []; +>F : Symbol(F, Decl(instantiationStackLimitCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(instantiationStackLimitCheckOrder.ts, 5, 7)) +>T : Symbol(T, Decl(instantiationStackLimitCheckOrder.ts, 5, 7)) +>R : Symbol(R, Decl(instantiationStackLimitCheckOrder.ts, 5, 41)) +>F : Symbol(F, Decl(instantiationStackLimitCheckOrder.ts, 0, 0)) +>R : Symbol(R, Decl(instantiationStackLimitCheckOrder.ts, 5, 41)) + +type X = F<[]>; +>X : Symbol(X, Decl(instantiationStackLimitCheckOrder.ts, 5, 65)) +>F : Symbol(F, Decl(instantiationStackLimitCheckOrder.ts, 0, 0)) + +// The element type of A[] is resolved whenever first needed, inside the +// instantiation of the return type of flat or not. Reaching the limit while +// flattening it must fail the same instantiations either way. + +type A = A[]; +>A : Symbol(A, Decl(instantiationStackLimitCheckOrder.ts, 6, 15)) +>A : Symbol(A, Decl(instantiationStackLimitCheckOrder.ts, 6, 15)) + +const r = ([] as A).flat(Infinity); +>r : Symbol(r, Decl(instantiationStackLimitCheckOrder.ts, 13, 5)) +>([] as A).flat : Symbol(Array.flat, Decl(lib.es2019.array.d.ts, --, --)) +>A : Symbol(A, Decl(instantiationStackLimitCheckOrder.ts, 6, 15)) +>flat : Symbol(Array.flat, Decl(lib.es2019.array.d.ts, --, --)) +>Infinity : Symbol(Infinity, Decl(lib.es5.d.ts, --, --)) + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..8e3cbd6baf4b9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=default).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/instantiationStackLimitCheckOrder.ts] //// + +=== instantiationStackLimitCheckOrder.ts === +// F<[]> recurses forever, so instantiating it reaches the limit on the +// instantiation stack, wherever it is first instantiated. The instantiations +// in progress then fail as a whole, and none of them may be cached partly +// built for the other declaration to reuse. + +type F = T extends [unknown?, ...infer R] ? [0, ...F] : []; +>F : F + +type X = F<[]>; +>X : [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...any[]] + +// The element type of A[] is resolved whenever first needed, inside the +// instantiation of the return type of flat or not. Reaching the limit while +// flattening it must fail the same instantiations either way. + +type A = A[]; +>A : A + +const r = ([] as A).flat(Infinity); +>r : any[] +>([] as A).flat(Infinity) : any[] +>([] as A).flat : (this: A, depth?: D | undefined) => FlatArray[] +>([] as A) : A +>[] as A : A +>[] : never[] +>flat : (this: A, depth?: D | undefined) => FlatArray[] +>Infinity : number + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..aaa7aed71c5bf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,23 @@ +error TS5114: Instantiations of type 'F' appear infinitely circular. +instantiationStackLimitCheckOrder.ts(14,11): error TS5114: Instantiations of type 'FlatArray' appear infinitely circular. + + +!!! error TS5114: Instantiations of type 'F' appear infinitely circular. +==== instantiationStackLimitCheckOrder.ts (1 errors) ==== + // F<[]> recurses forever, so instantiating it reaches the limit on the + // instantiation stack, wherever it is first instantiated. The instantiations + // in progress then fail as a whole, and none of them may be cached partly + // built for the other declaration to reuse. + + type F = T extends [unknown?, ...infer R] ? [0, ...F] : []; + type X = F<[]>; + + // The element type of A[] is resolved whenever first needed, inside the + // instantiation of the return type of flat or not. Reaching the limit while + // flattening it must fail the same instantiations either way. + + type A = A[]; + const r = ([] as A).flat(Infinity); + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS5114: Instantiations of type 'FlatArray' appear infinitely circular. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..97100f75a4cf2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/instantiationStackLimitCheckOrder.ts] //// + +=== instantiationStackLimitCheckOrder.ts === +// F<[]> recurses forever, so instantiating it reaches the limit on the +// instantiation stack, wherever it is first instantiated. The instantiations +// in progress then fail as a whole, and none of them may be cached partly +// built for the other declaration to reuse. + +type F = T extends [unknown?, ...infer R] ? [0, ...F] : []; +>F : Symbol(F, Decl(instantiationStackLimitCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(instantiationStackLimitCheckOrder.ts, 5, 7)) +>T : Symbol(T, Decl(instantiationStackLimitCheckOrder.ts, 5, 7)) +>R : Symbol(R, Decl(instantiationStackLimitCheckOrder.ts, 5, 41)) +>F : Symbol(F, Decl(instantiationStackLimitCheckOrder.ts, 0, 0)) +>R : Symbol(R, Decl(instantiationStackLimitCheckOrder.ts, 5, 41)) + +type X = F<[]>; +>X : Symbol(X, Decl(instantiationStackLimitCheckOrder.ts, 5, 65)) +>F : Symbol(F, Decl(instantiationStackLimitCheckOrder.ts, 0, 0)) + +// The element type of A[] is resolved whenever first needed, inside the +// instantiation of the return type of flat or not. Reaching the limit while +// flattening it must fail the same instantiations either way. + +type A = A[]; +>A : Symbol(A, Decl(instantiationStackLimitCheckOrder.ts, 6, 15)) +>A : Symbol(A, Decl(instantiationStackLimitCheckOrder.ts, 6, 15)) + +const r = ([] as A).flat(Infinity); +>r : Symbol(r, Decl(instantiationStackLimitCheckOrder.ts, 13, 5)) +>([] as A).flat : Symbol(Array.flat, Decl(lib.es2019.array.d.ts, --, --)) +>A : Symbol(A, Decl(instantiationStackLimitCheckOrder.ts, 6, 15)) +>flat : Symbol(Array.flat, Decl(lib.es2019.array.d.ts, --, --)) +>Infinity : Symbol(Infinity, Decl(lib.es5.d.ts, --, --)) + diff --git a/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..8e3cbd6baf4b9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/instantiationStackLimitCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/instantiationStackLimitCheckOrder.ts] //// + +=== instantiationStackLimitCheckOrder.ts === +// F<[]> recurses forever, so instantiating it reaches the limit on the +// instantiation stack, wherever it is first instantiated. The instantiations +// in progress then fail as a whole, and none of them may be cached partly +// built for the other declaration to reuse. + +type F = T extends [unknown?, ...infer R] ? [0, ...F] : []; +>F : F + +type X = F<[]>; +>X : [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...any[]] + +// The element type of A[] is resolved whenever first needed, inside the +// instantiation of the return type of flat or not. Reaching the limit while +// flattening it must fail the same instantiations either way. + +type A = A[]; +>A : A + +const r = ([] as A).flat(Infinity); +>r : any[] +>([] as A).flat(Infinity) : any[] +>([] as A).flat : (this: A, depth?: D | undefined) => FlatArray[] +>([] as A) : A +>[] as A : A +>[] : never[] +>flat : (this: A, depth?: D | undefined) => FlatArray[] +>Infinity : number + diff --git a/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..96858d411691e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,19 @@ +intersectionBaseConstructorCycleCheckOrder.ts(5,24): error TS2502: 'x' is referenced directly or indirectly in its own type annotation. +intersectionBaseConstructorCycleCheckOrder.ts(6,15): error TS2310: Type 'C' recursively references itself as a base type. +intersectionBaseConstructorCycleCheckOrder.ts(6,15): error TS2506: 'C' is referenced directly or indirectly in its own base expression. + + +==== intersectionBaseConstructorCycleCheckOrder.ts (3 errors) ==== + // The type of x depends on the members of C, which depend on its base B, + // whose members depend on the type of x. Whichever is resolved first, the + // cycle must be resolved the same way. + + declare const B: (new (x: C["p"]) => {}) & (new () => {}); + ~~~~~~~~~ +!!! error TS2502: 'x' is referenced directly or indirectly in its own type annotation. + declare class C extends B { p: number; } + ~ +!!! error TS2310: Type 'C' recursively references itself as a base type. + ~ +!!! error TS2506: 'C' is referenced directly or indirectly in its own base expression. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).js new file mode 100644 index 0000000000000..1110d38181fac --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/intersectionBaseConstructorCycleCheckOrder.ts] //// + +//// [intersectionBaseConstructorCycleCheckOrder.ts] +// The type of x depends on the members of C, which depend on its base B, +// whose members depend on the type of x. Whichever is resolved first, the +// cycle must be resolved the same way. + +declare const B: (new (x: C["p"]) => {}) & (new () => {}); +declare class C extends B { p: number; } + + +//// [intersectionBaseConstructorCycleCheckOrder.js] +"use strict"; +// The type of x depends on the members of C, which depend on its base B, +// whose members depend on the type of x. Whichever is resolved first, the +// cycle must be resolved the same way. diff --git a/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..3e614bc639b69 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/intersectionBaseConstructorCycleCheckOrder.ts] //// + +=== intersectionBaseConstructorCycleCheckOrder.ts === +// The type of x depends on the members of C, which depend on its base B, +// whose members depend on the type of x. Whichever is resolved first, the +// cycle must be resolved the same way. + +declare const B: (new (x: C["p"]) => {}) & (new () => {}); +>B : Symbol(B, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 4, 13)) +>x : Symbol(x, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 4, 23)) +>C : Symbol(C, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 4, 58)) + +declare class C extends B { p: number; } +>C : Symbol(C, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 4, 58)) +>B : Symbol(B, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 4, 13)) +>p : Symbol(C.p, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 5, 27)) + diff --git a/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..334afbb4eb4f5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=default).types @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/intersectionBaseConstructorCycleCheckOrder.ts] //// + +=== intersectionBaseConstructorCycleCheckOrder.ts === +// The type of x depends on the members of C, which depend on its base B, +// whose members depend on the type of x. Whichever is resolved first, the +// cycle must be resolved the same way. + +declare const B: (new (x: C["p"]) => {}) & (new () => {}); +>B : (new (x: C["p"]) => {}) & (new () => {}) +>x : any + +declare class C extends B { p: number; } +>C : C +>B : (new (x: C["p"]) => {}) & (new () => {}) +>p : number + diff --git a/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..96858d411691e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,19 @@ +intersectionBaseConstructorCycleCheckOrder.ts(5,24): error TS2502: 'x' is referenced directly or indirectly in its own type annotation. +intersectionBaseConstructorCycleCheckOrder.ts(6,15): error TS2310: Type 'C' recursively references itself as a base type. +intersectionBaseConstructorCycleCheckOrder.ts(6,15): error TS2506: 'C' is referenced directly or indirectly in its own base expression. + + +==== intersectionBaseConstructorCycleCheckOrder.ts (3 errors) ==== + // The type of x depends on the members of C, which depend on its base B, + // whose members depend on the type of x. Whichever is resolved first, the + // cycle must be resolved the same way. + + declare const B: (new (x: C["p"]) => {}) & (new () => {}); + ~~~~~~~~~ +!!! error TS2502: 'x' is referenced directly or indirectly in its own type annotation. + declare class C extends B { p: number; } + ~ +!!! error TS2310: Type 'C' recursively references itself as a base type. + ~ +!!! error TS2506: 'C' is referenced directly or indirectly in its own base expression. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).js new file mode 100644 index 0000000000000..1110d38181fac --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/intersectionBaseConstructorCycleCheckOrder.ts] //// + +//// [intersectionBaseConstructorCycleCheckOrder.ts] +// The type of x depends on the members of C, which depend on its base B, +// whose members depend on the type of x. Whichever is resolved first, the +// cycle must be resolved the same way. + +declare const B: (new (x: C["p"]) => {}) & (new () => {}); +declare class C extends B { p: number; } + + +//// [intersectionBaseConstructorCycleCheckOrder.js] +"use strict"; +// The type of x depends on the members of C, which depend on its base B, +// whose members depend on the type of x. Whichever is resolved first, the +// cycle must be resolved the same way. diff --git a/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..3e614bc639b69 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/intersectionBaseConstructorCycleCheckOrder.ts] //// + +=== intersectionBaseConstructorCycleCheckOrder.ts === +// The type of x depends on the members of C, which depend on its base B, +// whose members depend on the type of x. Whichever is resolved first, the +// cycle must be resolved the same way. + +declare const B: (new (x: C["p"]) => {}) & (new () => {}); +>B : Symbol(B, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 4, 13)) +>x : Symbol(x, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 4, 23)) +>C : Symbol(C, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 4, 58)) + +declare class C extends B { p: number; } +>C : Symbol(C, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 4, 58)) +>B : Symbol(B, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 4, 13)) +>p : Symbol(C.p, Decl(intersectionBaseConstructorCycleCheckOrder.ts, 5, 27)) + diff --git a/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..334afbb4eb4f5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/intersectionBaseConstructorCycleCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/intersectionBaseConstructorCycleCheckOrder.ts] //// + +=== intersectionBaseConstructorCycleCheckOrder.ts === +// The type of x depends on the members of C, which depend on its base B, +// whose members depend on the type of x. Whichever is resolved first, the +// cycle must be resolved the same way. + +declare const B: (new (x: C["p"]) => {}) & (new () => {}); +>B : (new (x: C["p"]) => {}) & (new () => {}) +>x : any + +declare class C extends B { p: number; } +>C : C +>B : (new (x: C["p"]) => {}) & (new () => {}) +>p : number + diff --git a/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..7f53be2113279 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,28 @@ +bubble.js(11,11): error TS7022: 'iPixel' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +bubble.js(11,20): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: any; }'. +bubble.js(11,20): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: boolean; }'. + + +==== bubble.js (3 errors) ==== + // Each element access on the right of a chained assignment reports its + // implicit any once, whichever of the assignments is typed first (64710, + // 64849). + + export class C { + /** @param {any} iScale @param {any} vScale @param {boolean} reset */ + updateElements(iScale, vScale, reset) { + const iAxis = iScale.axis; + const vAxis = vScale.axis; + const properties = {}; + const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1); + ~~~~~~ +!!! error TS7022: 'iPixel' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~~~~~~~~~~~~~~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: any; }'. + ~~~~~~~~~~~~~~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: boolean; }'. + const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2); + properties.skip = isNaN(iPixel) || isNaN(vPixel); + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..027d598ba6e5e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).symbols @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/jsElementAccessAssignmentChainCheckOrder.ts] //// + +=== bubble.js === +// Each element access on the right of a chained assignment reports its +// implicit any once, whichever of the assignments is typed first (64710, +// 64849). + +export class C { +>C : Symbol(C, Decl(bubble.js, 0, 0)) + + /** @param {any} iScale @param {any} vScale @param {boolean} reset */ + updateElements(iScale, vScale, reset) { +>updateElements : Symbol(C.updateElements, Decl(bubble.js, 4, 16)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) +>reset : Symbol(reset, Decl(bubble.js, 6, 32)) + + const iAxis = iScale.axis; +>iAxis : Symbol(iAxis, Decl(bubble.js, 7, 9)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) + + const vAxis = vScale.axis; +>vAxis : Symbol(vAxis, Decl(bubble.js, 8, 9)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) + + const properties = {}; +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) + + const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1); +>iPixel : Symbol(iPixel, Decl(bubble.js, 10, 9)) +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) +>iAxis : Symbol(iAxis, Decl(bubble.js, 7, 9)) +>reset : Symbol(reset, Decl(bubble.js, 6, 32)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) + + const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2); +>vPixel : Symbol(vPixel, Decl(bubble.js, 11, 9)) +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) +>vAxis : Symbol(vAxis, Decl(bubble.js, 8, 9)) +>reset : Symbol(reset, Decl(bubble.js, 6, 32)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) + + properties.skip = isNaN(iPixel) || isNaN(vPixel); +>properties.skip : Symbol(skip, Decl(bubble.js, 11, 98)) +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) +>skip : Symbol(skip, Decl(bubble.js, 11, 98)) +>isNaN : Symbol(isNaN, Decl(lib.es5.d.ts, --, --)) +>iPixel : Symbol(iPixel, Decl(bubble.js, 10, 9)) +>isNaN : Symbol(isNaN, Decl(lib.es5.d.ts, --, --)) +>vPixel : Symbol(vPixel, Decl(bubble.js, 11, 9)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..9ab13871a1094 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=default).types @@ -0,0 +1,85 @@ +//// [tests/cases/compiler/jsElementAccessAssignmentChainCheckOrder.ts] //// + +=== bubble.js === +// Each element access on the right of a chained assignment reports its +// implicit any once, whichever of the assignments is typed first (64710, +// 64849). + +export class C { +>C : C + + /** @param {any} iScale @param {any} vScale @param {boolean} reset */ + updateElements(iScale, vScale, reset) { +>updateElements : (iScale: any, vScale: any, reset: boolean) => void +>iScale : any +>vScale : any +>reset : boolean + + const iAxis = iScale.axis; +>iAxis : any +>iScale.axis : any +>iScale : any +>axis : any + + const vAxis = vScale.axis; +>vAxis : any +>vScale.axis : any +>vScale : any +>axis : any + + const properties = {}; +>properties : { skip: any; } +>{} : { skip: any; } + + const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1); +>iPixel : any +>properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1) : any +>properties[iAxis] : any +>properties : { skip: any; } +>iAxis : any +>reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1) : any +>reset : boolean +>iScale.getPixelForDecimal(0.5) : any +>iScale.getPixelForDecimal : any +>iScale : any +>getPixelForDecimal : any +>0.5 : 0.5 +>iScale.getPixelForValue(1) : any +>iScale.getPixelForValue : any +>iScale : any +>getPixelForValue : any +>1 : 1 + + const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2); +>vPixel : any +>properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2) : any +>properties[vAxis] : any +>properties : { skip: any; } +>vAxis : any +>reset ? vScale.getBasePixel() : vScale.getPixelForValue(2) : any +>reset : boolean +>vScale.getBasePixel() : any +>vScale.getBasePixel : any +>vScale : any +>getBasePixel : any +>vScale.getPixelForValue(2) : any +>vScale.getPixelForValue : any +>vScale : any +>getPixelForValue : any +>2 : 2 + + properties.skip = isNaN(iPixel) || isNaN(vPixel); +>properties.skip = isNaN(iPixel) || isNaN(vPixel) : boolean +>properties.skip : any +>properties : { skip: any; } +>skip : any +>isNaN(iPixel) || isNaN(vPixel) : boolean +>isNaN(iPixel) : boolean +>isNaN : (number: number) => boolean +>iPixel : any +>isNaN(vPixel) : boolean +>isNaN : (number: number) => boolean +>vPixel : any + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..520bc9bbc12ca --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,28 @@ +bubble.js(11,11): error TS7022: 'iPixel' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +bubble.js(11,20): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: any; }'. +bubble.js(12,20): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: boolean; }'. + + +==== bubble.js (3 errors) ==== + // Each element access on the right of a chained assignment reports its + // implicit any once, whichever of the assignments is typed first (64710, + // 64849). + + export class C { + /** @param {any} iScale @param {any} vScale @param {boolean} reset */ + updateElements(iScale, vScale, reset) { + const iAxis = iScale.axis; + const vAxis = vScale.axis; + const properties = {}; + const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1); + ~~~~~~ +!!! error TS7022: 'iPixel' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~~~~~~~~~~~~~~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: any; }'. + const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2); + ~~~~~~~~~~~~~~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: boolean; }'. + properties.skip = isNaN(iPixel) || isNaN(vPixel); + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..027d598ba6e5e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/jsElementAccessAssignmentChainCheckOrder.ts] //// + +=== bubble.js === +// Each element access on the right of a chained assignment reports its +// implicit any once, whichever of the assignments is typed first (64710, +// 64849). + +export class C { +>C : Symbol(C, Decl(bubble.js, 0, 0)) + + /** @param {any} iScale @param {any} vScale @param {boolean} reset */ + updateElements(iScale, vScale, reset) { +>updateElements : Symbol(C.updateElements, Decl(bubble.js, 4, 16)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) +>reset : Symbol(reset, Decl(bubble.js, 6, 32)) + + const iAxis = iScale.axis; +>iAxis : Symbol(iAxis, Decl(bubble.js, 7, 9)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) + + const vAxis = vScale.axis; +>vAxis : Symbol(vAxis, Decl(bubble.js, 8, 9)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) + + const properties = {}; +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) + + const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1); +>iPixel : Symbol(iPixel, Decl(bubble.js, 10, 9)) +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) +>iAxis : Symbol(iAxis, Decl(bubble.js, 7, 9)) +>reset : Symbol(reset, Decl(bubble.js, 6, 32)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) + + const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2); +>vPixel : Symbol(vPixel, Decl(bubble.js, 11, 9)) +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) +>vAxis : Symbol(vAxis, Decl(bubble.js, 8, 9)) +>reset : Symbol(reset, Decl(bubble.js, 6, 32)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) + + properties.skip = isNaN(iPixel) || isNaN(vPixel); +>properties.skip : Symbol(skip, Decl(bubble.js, 11, 98)) +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) +>skip : Symbol(skip, Decl(bubble.js, 11, 98)) +>isNaN : Symbol(isNaN, Decl(lib.es5.d.ts, --, --)) +>iPixel : Symbol(iPixel, Decl(bubble.js, 10, 9)) +>isNaN : Symbol(isNaN, Decl(lib.es5.d.ts, --, --)) +>vPixel : Symbol(vPixel, Decl(bubble.js, 11, 9)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..9ab13871a1094 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,85 @@ +//// [tests/cases/compiler/jsElementAccessAssignmentChainCheckOrder.ts] //// + +=== bubble.js === +// Each element access on the right of a chained assignment reports its +// implicit any once, whichever of the assignments is typed first (64710, +// 64849). + +export class C { +>C : C + + /** @param {any} iScale @param {any} vScale @param {boolean} reset */ + updateElements(iScale, vScale, reset) { +>updateElements : (iScale: any, vScale: any, reset: boolean) => void +>iScale : any +>vScale : any +>reset : boolean + + const iAxis = iScale.axis; +>iAxis : any +>iScale.axis : any +>iScale : any +>axis : any + + const vAxis = vScale.axis; +>vAxis : any +>vScale.axis : any +>vScale : any +>axis : any + + const properties = {}; +>properties : { skip: any; } +>{} : { skip: any; } + + const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1); +>iPixel : any +>properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1) : any +>properties[iAxis] : any +>properties : { skip: any; } +>iAxis : any +>reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1) : any +>reset : boolean +>iScale.getPixelForDecimal(0.5) : any +>iScale.getPixelForDecimal : any +>iScale : any +>getPixelForDecimal : any +>0.5 : 0.5 +>iScale.getPixelForValue(1) : any +>iScale.getPixelForValue : any +>iScale : any +>getPixelForValue : any +>1 : 1 + + const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2); +>vPixel : any +>properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2) : any +>properties[vAxis] : any +>properties : { skip: any; } +>vAxis : any +>reset ? vScale.getBasePixel() : vScale.getPixelForValue(2) : any +>reset : boolean +>vScale.getBasePixel() : any +>vScale.getBasePixel : any +>vScale : any +>getBasePixel : any +>vScale.getPixelForValue(2) : any +>vScale.getPixelForValue : any +>vScale : any +>getPixelForValue : any +>2 : 2 + + properties.skip = isNaN(iPixel) || isNaN(vPixel); +>properties.skip = isNaN(iPixel) || isNaN(vPixel) : boolean +>properties.skip : any +>properties : { skip: any; } +>skip : any +>isNaN(iPixel) || isNaN(vPixel) : boolean +>isNaN(iPixel) : boolean +>isNaN : (number: number) => boolean +>iPixel : any +>isNaN(vPixel) : boolean +>isNaN : (number: number) => boolean +>vPixel : any + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..9bba0e4f789fc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,31 @@ +bubble.js(11,11): error TS7022: 'iPixel' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +bubble.js(11,20): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: any; }'. +bubble.js(12,20): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: any; }'. +bubble.js(12,20): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: boolean; }'. + + +==== bubble.js (4 errors) ==== + // Each element access on the right of a chained assignment reports its + // implicit any once, whichever of the assignments is typed first (64710, + // 64849). + + export class C { + /** @param {any} iScale @param {any} vScale @param {boolean} reset */ + updateElements(iScale, vScale, reset) { + const iAxis = iScale.axis; + const vAxis = vScale.axis; + const properties = {}; + const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1); + ~~~~~~ +!!! error TS7022: 'iPixel' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~~~~~~~~~~~~~~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: any; }'. + const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2); + ~~~~~~~~~~~~~~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: any; }'. + ~~~~~~~~~~~~~~~~~ +!!! error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ skip: boolean; }'. + properties.skip = isNaN(iPixel) || isNaN(vPixel); + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..027d598ba6e5e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/jsElementAccessAssignmentChainCheckOrder.ts] //// + +=== bubble.js === +// Each element access on the right of a chained assignment reports its +// implicit any once, whichever of the assignments is typed first (64710, +// 64849). + +export class C { +>C : Symbol(C, Decl(bubble.js, 0, 0)) + + /** @param {any} iScale @param {any} vScale @param {boolean} reset */ + updateElements(iScale, vScale, reset) { +>updateElements : Symbol(C.updateElements, Decl(bubble.js, 4, 16)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) +>reset : Symbol(reset, Decl(bubble.js, 6, 32)) + + const iAxis = iScale.axis; +>iAxis : Symbol(iAxis, Decl(bubble.js, 7, 9)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) + + const vAxis = vScale.axis; +>vAxis : Symbol(vAxis, Decl(bubble.js, 8, 9)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) + + const properties = {}; +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) + + const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1); +>iPixel : Symbol(iPixel, Decl(bubble.js, 10, 9)) +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) +>iAxis : Symbol(iAxis, Decl(bubble.js, 7, 9)) +>reset : Symbol(reset, Decl(bubble.js, 6, 32)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) +>iScale : Symbol(iScale, Decl(bubble.js, 6, 17)) + + const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2); +>vPixel : Symbol(vPixel, Decl(bubble.js, 11, 9)) +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) +>vAxis : Symbol(vAxis, Decl(bubble.js, 8, 9)) +>reset : Symbol(reset, Decl(bubble.js, 6, 32)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) +>vScale : Symbol(vScale, Decl(bubble.js, 6, 24)) + + properties.skip = isNaN(iPixel) || isNaN(vPixel); +>properties.skip : Symbol(skip, Decl(bubble.js, 11, 98)) +>properties : Symbol(properties, Decl(bubble.js, 9, 9)) +>skip : Symbol(skip, Decl(bubble.js, 11, 98)) +>isNaN : Symbol(isNaN, Decl(lib.es5.d.ts, --, --)) +>iPixel : Symbol(iPixel, Decl(bubble.js, 10, 9)) +>isNaN : Symbol(isNaN, Decl(lib.es5.d.ts, --, --)) +>vPixel : Symbol(vPixel, Decl(bubble.js, 11, 9)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..9ab13871a1094 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsElementAccessAssignmentChainCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,85 @@ +//// [tests/cases/compiler/jsElementAccessAssignmentChainCheckOrder.ts] //// + +=== bubble.js === +// Each element access on the right of a chained assignment reports its +// implicit any once, whichever of the assignments is typed first (64710, +// 64849). + +export class C { +>C : C + + /** @param {any} iScale @param {any} vScale @param {boolean} reset */ + updateElements(iScale, vScale, reset) { +>updateElements : (iScale: any, vScale: any, reset: boolean) => void +>iScale : any +>vScale : any +>reset : boolean + + const iAxis = iScale.axis; +>iAxis : any +>iScale.axis : any +>iScale : any +>axis : any + + const vAxis = vScale.axis; +>vAxis : any +>vScale.axis : any +>vScale : any +>axis : any + + const properties = {}; +>properties : { skip: any; } +>{} : { skip: any; } + + const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1); +>iPixel : any +>properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1) : any +>properties[iAxis] : any +>properties : { skip: any; } +>iAxis : any +>reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1) : any +>reset : boolean +>iScale.getPixelForDecimal(0.5) : any +>iScale.getPixelForDecimal : any +>iScale : any +>getPixelForDecimal : any +>0.5 : 0.5 +>iScale.getPixelForValue(1) : any +>iScale.getPixelForValue : any +>iScale : any +>getPixelForValue : any +>1 : 1 + + const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2); +>vPixel : any +>properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2) : any +>properties[vAxis] : any +>properties : { skip: any; } +>vAxis : any +>reset ? vScale.getBasePixel() : vScale.getPixelForValue(2) : any +>reset : boolean +>vScale.getBasePixel() : any +>vScale.getBasePixel : any +>vScale : any +>getBasePixel : any +>vScale.getPixelForValue(2) : any +>vScale.getPixelForValue : any +>vScale : any +>getPixelForValue : any +>2 : 2 + + properties.skip = isNaN(iPixel) || isNaN(vPixel); +>properties.skip = isNaN(iPixel) || isNaN(vPixel) : boolean +>properties.skip : any +>properties : { skip: any; } +>skip : any +>isNaN(iPixel) || isNaN(vPixel) : boolean +>isNaN(iPixel) : boolean +>isNaN : (number: number) => boolean +>iPixel : any +>isNaN(vPixel) : boolean +>isNaN : (number: number) => boolean +>vPixel : any + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).js new file mode 100644 index 0000000000000..bead869eaeb90 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/jsdocLinkImportElisionQueryOrder.ts] //// + +//// [a.ts] +export interface A {} + +//// [b.ts] +import * as a from "./a"; + +/** + * See {@link a.A}. + */ +export function foo() {} + + +//// [a.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [b.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +/** + * See {@link a.A}. + */ +function foo() { } diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..5ac6b40e1c04f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/jsdocLinkImportElisionQueryOrder.ts] //// + +=== /a.ts === +export interface A {} +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== /b.ts === +import * as a from "./a"; +>a : Symbol(a, Decl(b.ts, 0, 6)) + +/** + * See {@link a.A}. + */ +export function foo() {} +>foo : Symbol(foo, Decl(b.ts, 0, 25)) + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).types new file mode 100644 index 0000000000000..239eddf0ea7ff --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=default).types @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/jsdocLinkImportElisionQueryOrder.ts] //// + +=== /a.ts === + +export interface A {} + +=== /b.ts === +import * as a from "./a"; +>a : typeof a + +/** + * See {@link a.A}. + */ +export function foo() {} +>foo : () => void + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).js b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).js new file mode 100644 index 0000000000000..0da32e96e9494 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).js @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/jsdocLinkImportElisionQueryOrder.ts] //// + +//// [a.ts] +export interface A {} + +//// [b.ts] +import * as a from "./a"; + +/** + * See {@link a.A}. + */ +export function foo() {} + + +//// [a.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//// [b.js] +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.foo = foo; +const a = __importStar(require("./a")); +/** + * See {@link a.A}. + */ +function foo() { } + + +!!!! File /b.js differs from original emit in noCheck emit +//// [b.js] +--- Expected The full check baseline ++++ Actual with noCheck set +@@ -1,40 +1,6 @@ + "use strict"; +-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { +- if (k2 === undefined) k2 = k; +- var desc = Object.getOwnPropertyDescriptor(m, k); +- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { +- desc = { enumerable: true, get: function() { return m[k]; } }; +- } +- Object.defineProperty(o, k2, desc); +-}) : (function(o, m, k, k2) { +- if (k2 === undefined) k2 = k; +- o[k2] = m[k]; +-})); +-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { +- Object.defineProperty(o, "default", { enumerable: true, value: v }); +-}) : function(o, v) { +- o["default"] = v; +-}); +-var __importStar = (this && this.__importStar) || (function () { +- var ownKeys = function(o) { +- ownKeys = Object.getOwnPropertyNames || function (o) { +- var ar = []; +- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; +- return ar; +- }; +- return ownKeys(o); +- }; +- return function (mod) { +- if (mod && mod.__esModule) return mod; +- var result = {}; +- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); +- __setModuleDefault(result, mod); +- return result; +- }; +-})(); + Object.defineProperty(exports, "__esModule", { value: true }); + exports.foo = foo; +-const a = __importStar(require("./a")); + /** + * See {@link a.A}. + */ \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..5ac6b40e1c04f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).symbols @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/jsdocLinkImportElisionQueryOrder.ts] //// + +=== /a.ts === +export interface A {} +>A : Symbol(A, Decl(a.ts, 0, 0)) + +=== /b.ts === +import * as a from "./a"; +>a : Symbol(a, Decl(b.ts, 0, 6)) + +/** + * See {@link a.A}. + */ +export function foo() {} +>foo : Symbol(foo, Decl(b.ts, 0, 25)) + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..239eddf0ea7ff --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkImportElisionQueryOrder(checkorder=editorfirst).types @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/jsdocLinkImportElisionQueryOrder.ts] //// + +=== /a.ts === + +export interface A {} + +=== /b.ts === +import * as a from "./a"; +>a : typeof a + +/** + * See {@link a.A}. + */ +export function foo() {} +>foo : () => void + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..f25187fdb68ca --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=default).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/jsdocLinkToTypeCheckOrder.ts] //// + +=== jsdocLinkToTypeCheckOrder.ts === +// Names in JSDoc links resolve to types and namespaces without errors, +// whether or not the editor asked about the comment first (59401). + +interface TextDocument { uri: string; getText(): string } +>TextDocument : Symbol(TextDocument, Decl(jsdocLinkToTypeCheckOrder.ts, 0, 0)) +>uri : Symbol(TextDocument.uri, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 24)) +>getText : Symbol(TextDocument.getText, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 37)) + +namespace NS { export interface Inner { a: number } } +>NS : Symbol(NS, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 57)) +>Inner : Symbol(Inner, Decl(jsdocLinkToTypeCheckOrder.ts, 4, 14)) +>a : Symbol(Inner.a, Decl(jsdocLinkToTypeCheckOrder.ts, 4, 39)) + +/** + * Uses {@link TextDocument} and {@link TextDocument.getText}. + * Also {@link NS.Inner}. + */ +export function f(doc: TextDocument): string { +>f : Symbol(f, Decl(jsdocLinkToTypeCheckOrder.ts, 4, 53)) +>doc : Symbol(doc, Decl(jsdocLinkToTypeCheckOrder.ts, 10, 18)) +>TextDocument : Symbol(TextDocument, Decl(jsdocLinkToTypeCheckOrder.ts, 0, 0)) + + return doc.getText(); +>doc.getText : Symbol(TextDocument.getText, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 37)) +>doc : Symbol(doc, Decl(jsdocLinkToTypeCheckOrder.ts, 10, 18)) +>getText : Symbol(TextDocument.getText, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 37)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..81bcdecadf9cc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=default).types @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/jsdocLinkToTypeCheckOrder.ts] //// + +=== jsdocLinkToTypeCheckOrder.ts === +// Names in JSDoc links resolve to types and namespaces without errors, +// whether or not the editor asked about the comment first (59401). + +interface TextDocument { uri: string; getText(): string } +>uri : string +>getText : () => string + +namespace NS { export interface Inner { a: number } } +>a : number + +/** + * Uses {@link TextDocument} and {@link TextDocument.getText}. + * Also {@link NS.Inner}. + */ +export function f(doc: TextDocument): string { +>f : (doc: TextDocument) => string +>doc : TextDocument + + return doc.getText(); +>doc.getText() : string +>doc.getText : () => string +>doc : TextDocument +>getText : () => string +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..b5810b2d7df26 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,23 @@ +jsdocLinkToTypeCheckOrder.ts(8,41): error TS2693: 'TextDocument' only refers to a type, but is being used as a value here. +jsdocLinkToTypeCheckOrder.ts(9,16): error TS2708: Cannot use namespace 'NS' as a value. + + +==== jsdocLinkToTypeCheckOrder.ts (2 errors) ==== + // Names in JSDoc links resolve to types and namespaces without errors, + // whether or not the editor asked about the comment first (59401). + + interface TextDocument { uri: string; getText(): string } + namespace NS { export interface Inner { a: number } } + + /** + * Uses {@link TextDocument} and {@link TextDocument.getText}. + ~~~~~~~~~~~~ +!!! error TS2693: 'TextDocument' only refers to a type, but is being used as a value here. + * Also {@link NS.Inner}. + ~~ +!!! error TS2708: Cannot use namespace 'NS' as a value. + */ + export function f(doc: TextDocument): string { + return doc.getText(); + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..f25187fdb68ca --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/jsdocLinkToTypeCheckOrder.ts] //// + +=== jsdocLinkToTypeCheckOrder.ts === +// Names in JSDoc links resolve to types and namespaces without errors, +// whether or not the editor asked about the comment first (59401). + +interface TextDocument { uri: string; getText(): string } +>TextDocument : Symbol(TextDocument, Decl(jsdocLinkToTypeCheckOrder.ts, 0, 0)) +>uri : Symbol(TextDocument.uri, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 24)) +>getText : Symbol(TextDocument.getText, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 37)) + +namespace NS { export interface Inner { a: number } } +>NS : Symbol(NS, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 57)) +>Inner : Symbol(Inner, Decl(jsdocLinkToTypeCheckOrder.ts, 4, 14)) +>a : Symbol(Inner.a, Decl(jsdocLinkToTypeCheckOrder.ts, 4, 39)) + +/** + * Uses {@link TextDocument} and {@link TextDocument.getText}. + * Also {@link NS.Inner}. + */ +export function f(doc: TextDocument): string { +>f : Symbol(f, Decl(jsdocLinkToTypeCheckOrder.ts, 4, 53)) +>doc : Symbol(doc, Decl(jsdocLinkToTypeCheckOrder.ts, 10, 18)) +>TextDocument : Symbol(TextDocument, Decl(jsdocLinkToTypeCheckOrder.ts, 0, 0)) + + return doc.getText(); +>doc.getText : Symbol(TextDocument.getText, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 37)) +>doc : Symbol(doc, Decl(jsdocLinkToTypeCheckOrder.ts, 10, 18)) +>getText : Symbol(TextDocument.getText, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 37)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..81bcdecadf9cc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/jsdocLinkToTypeCheckOrder.ts] //// + +=== jsdocLinkToTypeCheckOrder.ts === +// Names in JSDoc links resolve to types and namespaces without errors, +// whether or not the editor asked about the comment first (59401). + +interface TextDocument { uri: string; getText(): string } +>uri : string +>getText : () => string + +namespace NS { export interface Inner { a: number } } +>a : number + +/** + * Uses {@link TextDocument} and {@link TextDocument.getText}. + * Also {@link NS.Inner}. + */ +export function f(doc: TextDocument): string { +>f : (doc: TextDocument) => string +>doc : TextDocument + + return doc.getText(); +>doc.getText() : string +>doc.getText : () => string +>doc : TextDocument +>getText : () => string +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..f25187fdb68ca --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/jsdocLinkToTypeCheckOrder.ts] //// + +=== jsdocLinkToTypeCheckOrder.ts === +// Names in JSDoc links resolve to types and namespaces without errors, +// whether or not the editor asked about the comment first (59401). + +interface TextDocument { uri: string; getText(): string } +>TextDocument : Symbol(TextDocument, Decl(jsdocLinkToTypeCheckOrder.ts, 0, 0)) +>uri : Symbol(TextDocument.uri, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 24)) +>getText : Symbol(TextDocument.getText, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 37)) + +namespace NS { export interface Inner { a: number } } +>NS : Symbol(NS, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 57)) +>Inner : Symbol(Inner, Decl(jsdocLinkToTypeCheckOrder.ts, 4, 14)) +>a : Symbol(Inner.a, Decl(jsdocLinkToTypeCheckOrder.ts, 4, 39)) + +/** + * Uses {@link TextDocument} and {@link TextDocument.getText}. + * Also {@link NS.Inner}. + */ +export function f(doc: TextDocument): string { +>f : Symbol(f, Decl(jsdocLinkToTypeCheckOrder.ts, 4, 53)) +>doc : Symbol(doc, Decl(jsdocLinkToTypeCheckOrder.ts, 10, 18)) +>TextDocument : Symbol(TextDocument, Decl(jsdocLinkToTypeCheckOrder.ts, 0, 0)) + + return doc.getText(); +>doc.getText : Symbol(TextDocument.getText, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 37)) +>doc : Symbol(doc, Decl(jsdocLinkToTypeCheckOrder.ts, 10, 18)) +>getText : Symbol(TextDocument.getText, Decl(jsdocLinkToTypeCheckOrder.ts, 3, 37)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..81bcdecadf9cc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocLinkToTypeCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/jsdocLinkToTypeCheckOrder.ts] //// + +=== jsdocLinkToTypeCheckOrder.ts === +// Names in JSDoc links resolve to types and namespaces without errors, +// whether or not the editor asked about the comment first (59401). + +interface TextDocument { uri: string; getText(): string } +>uri : string +>getText : () => string + +namespace NS { export interface Inner { a: number } } +>a : number + +/** + * Uses {@link TextDocument} and {@link TextDocument.getText}. + * Also {@link NS.Inner}. + */ +export function f(doc: TextDocument): string { +>f : (doc: TextDocument) => string +>doc : TextDocument + + return doc.getText(); +>doc.getText() : string +>doc.getText : () => string +>doc : TextDocument +>getText : () => string +} + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.errors.txt b/tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.errors.txt new file mode 100644 index 0000000000000..f9f9a2d8d5885 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.errors.txt @@ -0,0 +1,33 @@ +a.js(4,1): error TS2322: Type '(content: string, rest_0?: boolean | undefined) => string' is not assignable to type '(a: string | number, ...rest: unknown[]) => string'. + Types of parameters 'content' and 'a' are incompatible. + Type 'string | number' is not assignable to type 'string'. + Type 'number' is not assignable to type 'string'. +a.js(9,7): error TS2322: Type '(content: string) => string' is not assignable to type '(content: string | number) => string'. + Types of parameters 'content' and 'content' are incompatible. + Type 'string | number' is not assignable to type 'string'. + Type 'number' is not assignable to type 'string'. + + +==== a.js (2 errors) ==== + /** @type {{ f: (a: string | number, ...rest: unknown[]) => string }} */ + const context = { f: (a) => "" }; + + context.f = + ~~~~~~~~~ +!!! error TS2322: Type '(content: string, rest_0?: boolean | undefined) => string' is not assignable to type '(a: string | number, ...rest: unknown[]) => string'. +!!! error TS2322: Types of parameters 'content' and 'a' are incompatible. +!!! error TS2322: Type 'string | number' is not assignable to type 'string'. +!!! error TS2322: Type 'number' is not assignable to type 'string'. + /** @type {(content: string, ...rest: [boolean?]) => string} */ + (content, ...rest) => content.toUpperCase() + rest.length; + + /** @type {(content: string | number) => string} */ + const g = + ~ +!!! error TS2322: Type '(content: string) => string' is not assignable to type '(content: string | number) => string'. +!!! error TS2322: Types of parameters 'content' and 'content' are incompatible. +!!! error TS2322: Type 'string | number' is not assignable to type 'string'. +!!! error TS2322: Type 'number' is not assignable to type 'string'. + /** @type {(content: string) => string} */ + (content) => content.toUpperCase(); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.symbols b/tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.symbols new file mode 100644 index 0000000000000..15ffe15bb65e2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.symbols @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/jsdocTypeTagOnContextuallyTypedFunction.ts] //// + +=== a.js === +/** @type {{ f: (a: string | number, ...rest: unknown[]) => string }} */ +const context = { f: (a) => "" }; +>context : Symbol(context, Decl(a.js, 1, 5)) +>f : Symbol(f, Decl(a.js, 1, 17)) +>a : Symbol(a, Decl(a.js, 1, 22)) + +context.f = +>context.f : Symbol(f, Decl(a.js, 0, 12)) +>context : Symbol(context, Decl(a.js, 1, 5)) +>f : Symbol(f, Decl(a.js, 0, 12)) + + /** @type {(content: string, ...rest: [boolean?]) => string} */ + (content, ...rest) => content.toUpperCase() + rest.length; +>content : Symbol(content, Decl(a.js, 5, 5)) +>rest : Symbol(rest, Decl(a.js, 5, 13)) +>content.toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) +>content : Symbol(content, Decl(a.js, 5, 5)) +>toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) +>rest.length : Symbol(length) +>rest : Symbol(rest, Decl(a.js, 5, 13)) +>length : Symbol(length) + +/** @type {(content: string | number) => string} */ +const g = +>g : Symbol(g, Decl(a.js, 8, 5)) + + /** @type {(content: string) => string} */ + (content) => content.toUpperCase(); +>content : Symbol(content, Decl(a.js, 10, 5)) +>content.toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) +>content : Symbol(content, Decl(a.js, 10, 5)) +>toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) + diff --git a/tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.types b/tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.types new file mode 100644 index 0000000000000..6defe743de587 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsdocTypeTagOnContextuallyTypedFunction.types @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/jsdocTypeTagOnContextuallyTypedFunction.ts] //// + +=== a.js === +/** @type {{ f: (a: string | number, ...rest: unknown[]) => string }} */ +const context = { f: (a) => "" }; +>context : { f: (a: string | number, ...rest: unknown[]) => string; } +>{ f: (a) => "" } : { f: (a: string | number) => string; } +>f : (a: string | number) => string +>(a) => "" : (a: string | number) => string +>a : string | number +>"" : "" + +context.f = +>context.f = /** @type {(content: string, ...rest: [boolean?]) => string} */ (content, ...rest) => content.toUpperCase() + rest.length : (content: string, rest_0?: boolean | undefined) => string +>context.f : (a: string | number, ...rest: unknown[]) => string +>context : { f: (a: string | number, ...rest: unknown[]) => string; } +>f : (a: string | number, ...rest: unknown[]) => string + + /** @type {(content: string, ...rest: [boolean?]) => string} */ + (content, ...rest) => content.toUpperCase() + rest.length; +>(content, ...rest) => content.toUpperCase() + rest.length : (content: string, rest_0?: boolean | undefined) => string +>content : string +>rest : [(boolean | undefined)?] +>content.toUpperCase() + rest.length : string +>content.toUpperCase() : string +>content.toUpperCase : () => string +>content : string +>toUpperCase : () => string +>rest.length : 0 | 1 +>rest : [(boolean | undefined)?] +>length : 0 | 1 + +/** @type {(content: string | number) => string} */ +const g = +>g : (content: string | number) => string + + /** @type {(content: string) => string} */ + (content) => content.toUpperCase(); +>(content) => content.toUpperCase() : (content: string) => string +>content : string +>content.toUpperCase() : string +>content.toUpperCase : () => string +>content : string +>toUpperCase : () => string + diff --git a/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).errors.txt new file mode 100644 index 0000000000000..191dc50e4166c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).errors.txt @@ -0,0 +1,33 @@ +jsxImportSourceNonPragmaComment.tsx(3,21): error TS2307: Cannot find module '@emotion/react' or its corresponding type declarations. +jsxImportSourceNonPragmaComment.tsx(7,5): error TS2875: This JSX tag requires the module path '@emotion/react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. +jsxImportSourceNonPragmaComment.tsx(7,5): error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. + + +==== jsxImportSourceNonPragmaComment.tsx (3 errors) ==== + /* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */ + /** @jsxImportSource @emotion/react */ + import { css } from "@emotion/react"; + ~~~~~~~~~~~~~~~~ +!!! error TS2307: Cannot find module '@emotion/react' or its corresponding type declarations. + + export default function Component() { + return ( + + ~~~~~~ +!!! error TS2875: This JSX tag requires the module path '@emotion/react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. + ~~~~~~ +!!! error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. + ); + } \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).js new file mode 100644 index 0000000000000..e58934ed59b6b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).js @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/jsxImportSourceNonPragmaComment.tsx] //// + +//// [jsxImportSourceNonPragmaComment.tsx] +/* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */ +/** @jsxImportSource @emotion/react */ +import { css } from "@emotion/react"; + +export default function Component() { + return ( + + ); +} + +//// [jsxImportSourceNonPragmaComment.jsx] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = Component; +/* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */ +/** @jsxImportSource @emotion/react */ +const react_1 = require("@emotion/react"); +function Component() { + return (); +} diff --git a/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).symbols new file mode 100644 index 0000000000000..d12b587e7c215 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/jsxImportSourceNonPragmaComment.tsx] //// + +=== jsxImportSourceNonPragmaComment.tsx === +/* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */ +/** @jsxImportSource @emotion/react */ +import { css } from "@emotion/react"; +>css : Symbol(css, Decl(jsxImportSourceNonPragmaComment.tsx, 2, 8)) + +export default function Component() { +>Component : Symbol(Component, Decl(jsxImportSourceNonPragmaComment.tsx, 2, 37)) + + return ( + css : Symbol(css, Decl(jsxImportSourceNonPragmaComment.tsx, 6, 10)) +>css : Symbol(css, Decl(jsxImportSourceNonPragmaComment.tsx, 2, 8)) + + color: red; + `} + /> + ); +} diff --git a/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).types new file mode 100644 index 0000000000000..5300452403d62 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=default).types @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/jsxImportSourceNonPragmaComment.tsx] //// + +=== jsxImportSourceNonPragmaComment.tsx === +/* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */ +/** @jsxImportSource @emotion/react */ +import { css } from "@emotion/react"; +>css : any + +export default function Component() { +>Component : () => any + + return ( +>( ) : any + + : any +>input : any + + css={css` +>css : any +>css` color: red; ` : any +>css : any +>` color: red; ` : "\n color: red;\n " + + color: red; + `} + /> + ); +} diff --git a/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..b45ab387a625b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).errors.txt @@ -0,0 +1,37 @@ +jsxImportSourceNonPragmaComment.tsx(3,21): error TS2307: Cannot find module '@emotion/react' or its corresponding type declarations. +jsxImportSourceNonPragmaComment.tsx(7,5): error TS2875: This JSX tag requires the module path '@emotion/react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. +jsxImportSourceNonPragmaComment.tsx(7,5): error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. +jsxImportSourceNonPragmaComment.tsx(7,6): error TS2552: Cannot find name 'input'. Did you mean 'oninput'? + + +==== jsxImportSourceNonPragmaComment.tsx (4 errors) ==== + /* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */ + /** @jsxImportSource @emotion/react */ + import { css } from "@emotion/react"; + ~~~~~~~~~~~~~~~~ +!!! error TS2307: Cannot find module '@emotion/react' or its corresponding type declarations. + + export default function Component() { + return ( + + ~~~~~~ +!!! error TS2875: This JSX tag requires the module path '@emotion/react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. + ~~~~~~ +!!! error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. + ); + } \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).js new file mode 100644 index 0000000000000..e58934ed59b6b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).js @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/jsxImportSourceNonPragmaComment.tsx] //// + +//// [jsxImportSourceNonPragmaComment.tsx] +/* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */ +/** @jsxImportSource @emotion/react */ +import { css } from "@emotion/react"; + +export default function Component() { + return ( + + ); +} + +//// [jsxImportSourceNonPragmaComment.jsx] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = Component; +/* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */ +/** @jsxImportSource @emotion/react */ +const react_1 = require("@emotion/react"); +function Component() { + return (); +} diff --git a/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..d12b587e7c215 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).symbols @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/jsxImportSourceNonPragmaComment.tsx] //// + +=== jsxImportSourceNonPragmaComment.tsx === +/* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */ +/** @jsxImportSource @emotion/react */ +import { css } from "@emotion/react"; +>css : Symbol(css, Decl(jsxImportSourceNonPragmaComment.tsx, 2, 8)) + +export default function Component() { +>Component : Symbol(Component, Decl(jsxImportSourceNonPragmaComment.tsx, 2, 37)) + + return ( + css : Symbol(css, Decl(jsxImportSourceNonPragmaComment.tsx, 6, 10)) +>css : Symbol(css, Decl(jsxImportSourceNonPragmaComment.tsx, 2, 8)) + + color: red; + `} + /> + ); +} diff --git a/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).types new file mode 100644 index 0000000000000..5300452403d62 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxImportSourceNonPragmaComment(checkorder=typesfirst).types @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/jsxImportSourceNonPragmaComment.tsx] //// + +=== jsxImportSourceNonPragmaComment.tsx === +/* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */ +/** @jsxImportSource @emotion/react */ +import { css } from "@emotion/react"; +>css : any + +export default function Component() { +>Component : () => any + + return ( +>( ) : any + + : any +>input : any + + css={css` +>css : any +>css` color: red; ` : any +>css : any +>` color: red; ` : "\n color: red;\n " + + color: red; + `} + /> + ); +} diff --git a/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).js new file mode 100644 index 0000000000000..4c58e6e84ff1d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/jsxIntrinsicElementsExtendsRecord.tsx] //// + +//// [index.tsx] +declare namespace JSX { + interface IntrinsicElements extends Record {} +} + +; + + +//// [index.jsx] +"use strict"; +; diff --git a/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).symbols new file mode 100644 index 0000000000000..c42caaed5098d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/jsxIntrinsicElementsExtendsRecord.tsx] //// + +=== index.tsx === +declare namespace JSX { +>JSX : Symbol(JSX, Decl(index.tsx, 0, 0)) + + interface IntrinsicElements extends Record {} +>IntrinsicElements : Symbol(IntrinsicElements, Decl(index.tsx, 0, 23)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +} + +; +>a : Symbol(JSX.IntrinsicElements, Decl(index.tsx, 0, 23)) + diff --git a/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).types new file mode 100644 index 0000000000000..30632f23d7dc4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=default).types @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/jsxIntrinsicElementsExtendsRecord.tsx] //// + +=== index.tsx === +declare namespace JSX { + interface IntrinsicElements extends Record {} +} + +; +> : error +>a : any + diff --git a/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..183a3fdcdd653 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).errors.txt @@ -0,0 +1,12 @@ +index.tsx(5,2): error TS2304: Cannot find name 'a'. + + +==== index.tsx (1 errors) ==== + declare namespace JSX { + interface IntrinsicElements extends Record {} + } + + ; + ~ +!!! error TS2304: Cannot find name 'a'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).js new file mode 100644 index 0000000000000..4c58e6e84ff1d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).js @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/jsxIntrinsicElementsExtendsRecord.tsx] //// + +//// [index.tsx] +declare namespace JSX { + interface IntrinsicElements extends Record {} +} + +; + + +//// [index.jsx] +"use strict"; +; diff --git a/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..c42caaed5098d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/jsxIntrinsicElementsExtendsRecord.tsx] //// + +=== index.tsx === +declare namespace JSX { +>JSX : Symbol(JSX, Decl(index.tsx, 0, 0)) + + interface IntrinsicElements extends Record {} +>IntrinsicElements : Symbol(IntrinsicElements, Decl(index.tsx, 0, 23)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +} + +; +>a : Symbol(JSX.IntrinsicElements, Decl(index.tsx, 0, 23)) + diff --git a/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).types new file mode 100644 index 0000000000000..a2a76b6e77eed --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/jsxIntrinsicElementsExtendsRecord(checkorder=typesfirst).types @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/jsxIntrinsicElementsExtendsRecord.tsx] //// + +=== index.tsx === +declare namespace JSX { + interface IntrinsicElements extends Record {} +} + +; +> : any +>a : any + diff --git a/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..44b9fe50fa70d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,14 @@ +keyofIndexSignatureCycleCheckOrder.ts(7,7): error TS2322: Type '123' is not assignable to type 'never'. + + +==== keyofIndexSignatureCycleCheckOrder.ts (1 errors) ==== + // S and the index signature of C depend on each other. Resolving the members + // of C first gives S from the part of them available so far, and resolving S + // first must give the same result rather than fail it as circular. + + interface C { [k: string]: S; } + type S = keyof C; + const k: S = 123; + ~ +!!! error TS2322: Type '123' is not assignable to type 'never'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..826be2b914e3b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/keyofIndexSignatureCycleCheckOrder.ts] //// + +=== keyofIndexSignatureCycleCheckOrder.ts === +// S and the index signature of C depend on each other. Resolving the members +// of C first gives S from the part of them available so far, and resolving S +// first must give the same result rather than fail it as circular. + +interface C { [k: string]: S; } +>C : Symbol(C, Decl(keyofIndexSignatureCycleCheckOrder.ts, 0, 0)) +>k : Symbol(k, Decl(keyofIndexSignatureCycleCheckOrder.ts, 4, 15)) +>S : Symbol(S, Decl(keyofIndexSignatureCycleCheckOrder.ts, 4, 31)) + +type S = keyof C; +>S : Symbol(S, Decl(keyofIndexSignatureCycleCheckOrder.ts, 4, 31)) +>C : Symbol(C, Decl(keyofIndexSignatureCycleCheckOrder.ts, 0, 0)) + +const k: S = 123; +>k : Symbol(k, Decl(keyofIndexSignatureCycleCheckOrder.ts, 6, 5)) +>S : Symbol(S, Decl(keyofIndexSignatureCycleCheckOrder.ts, 4, 31)) + diff --git a/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..d43b1450f3a46 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=default).types @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/keyofIndexSignatureCycleCheckOrder.ts] //// + +=== keyofIndexSignatureCycleCheckOrder.ts === +// S and the index signature of C depend on each other. Resolving the members +// of C first gives S from the part of them available so far, and resolving S +// first must give the same result rather than fail it as circular. + +interface C { [k: string]: S; } +>k : string + +type S = keyof C; +>S : never + +const k: S = 123; +>k : never +>123 : 123 + diff --git a/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..4b322a738aee9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,14 @@ +keyofIndexSignatureCycleCheckOrder.ts(6,6): error TS2456: Type alias 'S' circularly references itself. + + +==== keyofIndexSignatureCycleCheckOrder.ts (1 errors) ==== + // S and the index signature of C depend on each other. Resolving the members + // of C first gives S from the part of them available so far, and resolving S + // first must give the same result rather than fail it as circular. + + interface C { [k: string]: S; } + type S = keyof C; + ~ +!!! error TS2456: Type alias 'S' circularly references itself. + const k: S = 123; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..826be2b914e3b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/keyofIndexSignatureCycleCheckOrder.ts] //// + +=== keyofIndexSignatureCycleCheckOrder.ts === +// S and the index signature of C depend on each other. Resolving the members +// of C first gives S from the part of them available so far, and resolving S +// first must give the same result rather than fail it as circular. + +interface C { [k: string]: S; } +>C : Symbol(C, Decl(keyofIndexSignatureCycleCheckOrder.ts, 0, 0)) +>k : Symbol(k, Decl(keyofIndexSignatureCycleCheckOrder.ts, 4, 15)) +>S : Symbol(S, Decl(keyofIndexSignatureCycleCheckOrder.ts, 4, 31)) + +type S = keyof C; +>S : Symbol(S, Decl(keyofIndexSignatureCycleCheckOrder.ts, 4, 31)) +>C : Symbol(C, Decl(keyofIndexSignatureCycleCheckOrder.ts, 0, 0)) + +const k: S = 123; +>k : Symbol(k, Decl(keyofIndexSignatureCycleCheckOrder.ts, 6, 5)) +>S : Symbol(S, Decl(keyofIndexSignatureCycleCheckOrder.ts, 4, 31)) + diff --git a/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..812f122e35cc6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofIndexSignatureCycleCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/keyofIndexSignatureCycleCheckOrder.ts] //// + +=== keyofIndexSignatureCycleCheckOrder.ts === +// S and the index signature of C depend on each other. Resolving the members +// of C first gives S from the part of them available so far, and resolving S +// first must give the same result rather than fail it as circular. + +interface C { [k: string]: S; } +>k : string + +type S = keyof C; +>S : any + +const k: S = 123; +>k : any +>123 : 123 + diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..41598bc2f0eb1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,65 @@ +keyofSelfReferentialIndexSignatureCheckOrder.ts(15,7): error TS2322: Type '0' is not assignable to type '"a"'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(20,7): error TS2322: Type '0' is not assignable to type '"a"'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(25,7): error TS2322: Type '0' is not assignable to type 'keyof Q2'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(30,7): error TS2322: Type '0' is not assignable to type '"c"'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(35,7): error TS2322: Type '0' is not assignable to type 'keyof Q4'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(38,15): error TS2339: Property 'other' does not exist on type 'Q2'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(40,15): error TS2339: Property 'other' does not exist on type 'Q3'. + + +==== keyofSelfReferentialIndexSignatureCheckOrder.ts (7 errors) ==== + // The index signature of each type refers to its own keyof, so resolving its + // members needs its keyof, which needs its members. Checking an interface + // with several bases, or a type with a class base, reads its declared + // members while they are incomplete. Its keyof, and its index signature, + // must not depend on whether keyof is needed before or after the type is + // checked (65543). + + interface A { a?: string; } + interface B { b?: number; } + class C { c?: string; } + + const k0: keyof P0 = 0; + interface P0 { a?: string; [key: string]: P0[keyof P0]; } + interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } + const j0: keyof Q0 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type '"a"'. + + const k1: keyof P1 = 0; + interface P1 extends A { [key: string]: P1[keyof P1]; } + interface Q1 extends A { [key: string]: Q1[keyof Q1]; } + const j1: keyof Q1 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type '"a"'. + + const k2: keyof P2 = 0; + interface P2 extends A, B { [key: string]: P2[keyof P2]; } + interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } + const j2: keyof Q2 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type 'keyof Q2'. + + const k3: keyof P3 = 0; + interface P3 extends C { [key: string]: P3[keyof P3]; } + interface Q3 extends C { [key: string]: Q3[keyof Q3]; } + const j3: keyof Q3 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type '"c"'. + + const k4: keyof P4 = 0; + class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } + class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } + const j4: keyof Q4 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type 'keyof Q4'. + + declare const q2: Q2; + const v2 = q2.other; + ~~~~~ +!!! error TS2339: Property 'other' does not exist on type 'Q2'. + declare const q3: Q3; + const v3 = q3.other; + ~~~~~ +!!! error TS2339: Property 'other' does not exist on type 'Q3'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..79cd4a9cdb89d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).symbols @@ -0,0 +1,152 @@ +//// [tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts] //// + +=== keyofSelfReferentialIndexSignatureCheckOrder.ts === +// The index signature of each type refers to its own keyof, so resolving its +// members needs its keyof, which needs its members. Checking an interface +// with several bases, or a type with a class base, reads its declared +// members while they are incomplete. Its keyof, and its index signature, +// must not depend on whether keyof is needed before or after the type is +// checked (65543). + +interface A { a?: string; } +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>a : Symbol(A.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 13)) + +interface B { b?: number; } +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>b : Symbol(B.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 13)) + +class C { c?: string; } +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>c : Symbol(C.c, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 9, 9)) + +const k0: keyof P0 = 0; +>k0 : Symbol(k0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 5)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) + +interface P0 { a?: string; [key: string]: P0[keyof P0]; } +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) +>a : Symbol(P0.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 14)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 28)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) + +interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) +>a : Symbol(Q0.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 13, 14)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 13, 28)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) + +const j0: keyof Q0 = 0; +>j0 : Symbol(j0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 14, 5)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) + +const k1: keyof P1 = 0; +>k1 : Symbol(k1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 5)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) + +interface P1 extends A { [key: string]: P1[keyof P1]; } +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 26)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) + +interface Q1 extends A { [key: string]: Q1[keyof Q1]; } +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 18, 26)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) + +const j1: keyof Q1 = 0; +>j1 : Symbol(j1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 19, 5)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) + +const k2: keyof P2 = 0; +>k2 : Symbol(k2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 5)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) + +interface P2 extends A, B { [key: string]: P2[keyof P2]; } +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 29)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) + +interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 23, 29)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const j2: keyof Q2 = 0; +>j2 : Symbol(j2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 24, 5)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const k3: keyof P3 = 0; +>k3 : Symbol(k3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 5)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) + +interface P3 extends C { [key: string]: P3[keyof P3]; } +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 26)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) + +interface Q3 extends C { [key: string]: Q3[keyof Q3]; } +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 28, 26)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const j3: keyof Q3 = 0; +>j3 : Symbol(j3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 29, 5)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const k4: keyof P4 = 0; +>k4 : Symbol(k4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 5)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) + +class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>b : Symbol(P4.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 20)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 34)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) + +class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>b : Symbol(Q4.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 33, 20)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 33, 34)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) + +const j4: keyof Q4 = 0; +>j4 : Symbol(j4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 34, 5)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) + +declare const q2: Q2; +>q2 : Symbol(q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 36, 13)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const v2 = q2.other; +>v2 : Symbol(v2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 37, 5)) +>q2 : Symbol(q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 36, 13)) + +declare const q3: Q3; +>q3 : Symbol(q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 38, 13)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const v3 = q3.other; +>v3 : Symbol(v3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 39, 5)) +>q3 : Symbol(q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 38, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..c702990d7dcb4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=default).types @@ -0,0 +1,116 @@ +//// [tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts] //// + +=== keyofSelfReferentialIndexSignatureCheckOrder.ts === +// The index signature of each type refers to its own keyof, so resolving its +// members needs its keyof, which needs its members. Checking an interface +// with several bases, or a type with a class base, reads its declared +// members while they are incomplete. Its keyof, and its index signature, +// must not depend on whether keyof is needed before or after the type is +// checked (65543). + +interface A { a?: string; } +>a : string | undefined + +interface B { b?: number; } +>b : number | undefined + +class C { c?: string; } +>C : C +>c : string | undefined + +const k0: keyof P0 = 0; +>k0 : keyof P0 +>0 : 0 + +interface P0 { a?: string; [key: string]: P0[keyof P0]; } +>a : string | undefined +>key : string + +interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } +>a : string | undefined +>key : string + +const j0: keyof Q0 = 0; +>j0 : "a" +>0 : 0 + +const k1: keyof P1 = 0; +>k1 : keyof P1 +>0 : 0 + +interface P1 extends A { [key: string]: P1[keyof P1]; } +>key : string + +interface Q1 extends A { [key: string]: Q1[keyof Q1]; } +>key : string + +const j1: keyof Q1 = 0; +>j1 : "a" +>0 : 0 + +const k2: keyof P2 = 0; +>k2 : keyof P2 +>0 : 0 + +interface P2 extends A, B { [key: string]: P2[keyof P2]; } +>key : string + +interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } +>key : string + +const j2: keyof Q2 = 0; +>j2 : keyof Q2 +>0 : 0 + +const k3: keyof P3 = 0; +>k3 : keyof P3 +>0 : 0 + +interface P3 extends C { [key: string]: P3[keyof P3]; } +>key : string + +interface Q3 extends C { [key: string]: Q3[keyof Q3]; } +>key : string + +const j3: keyof Q3 = 0; +>j3 : "c" +>0 : 0 + +const k4: keyof P4 = 0; +>k4 : keyof P4 +>0 : 0 + +class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } +>P4 : P4 +>C : C +>b : number | undefined +>key : string + +class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } +>Q4 : Q4 +>C : C +>b : number | undefined +>key : string + +const j4: keyof Q4 = 0; +>j4 : keyof Q4 +>0 : 0 + +declare const q2: Q2; +>q2 : Q2 + +const v2 = q2.other; +>v2 : any +>q2.other : any +>q2 : Q2 +>other : any + +declare const q3: Q3; +>q3 : Q3 + +const v3 = q3.other; +>v3 : any +>q3.other : any +>q3 : Q3 +>other : any + diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).errors.txt b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).errors.txt new file mode 100644 index 0000000000000..41598bc2f0eb1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).errors.txt @@ -0,0 +1,65 @@ +keyofSelfReferentialIndexSignatureCheckOrder.ts(15,7): error TS2322: Type '0' is not assignable to type '"a"'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(20,7): error TS2322: Type '0' is not assignable to type '"a"'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(25,7): error TS2322: Type '0' is not assignable to type 'keyof Q2'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(30,7): error TS2322: Type '0' is not assignable to type '"c"'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(35,7): error TS2322: Type '0' is not assignable to type 'keyof Q4'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(38,15): error TS2339: Property 'other' does not exist on type 'Q2'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(40,15): error TS2339: Property 'other' does not exist on type 'Q3'. + + +==== keyofSelfReferentialIndexSignatureCheckOrder.ts (7 errors) ==== + // The index signature of each type refers to its own keyof, so resolving its + // members needs its keyof, which needs its members. Checking an interface + // with several bases, or a type with a class base, reads its declared + // members while they are incomplete. Its keyof, and its index signature, + // must not depend on whether keyof is needed before or after the type is + // checked (65543). + + interface A { a?: string; } + interface B { b?: number; } + class C { c?: string; } + + const k0: keyof P0 = 0; + interface P0 { a?: string; [key: string]: P0[keyof P0]; } + interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } + const j0: keyof Q0 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type '"a"'. + + const k1: keyof P1 = 0; + interface P1 extends A { [key: string]: P1[keyof P1]; } + interface Q1 extends A { [key: string]: Q1[keyof Q1]; } + const j1: keyof Q1 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type '"a"'. + + const k2: keyof P2 = 0; + interface P2 extends A, B { [key: string]: P2[keyof P2]; } + interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } + const j2: keyof Q2 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type 'keyof Q2'. + + const k3: keyof P3 = 0; + interface P3 extends C { [key: string]: P3[keyof P3]; } + interface Q3 extends C { [key: string]: Q3[keyof Q3]; } + const j3: keyof Q3 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type '"c"'. + + const k4: keyof P4 = 0; + class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } + class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } + const j4: keyof Q4 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type 'keyof Q4'. + + declare const q2: Q2; + const v2 = q2.other; + ~~~~~ +!!! error TS2339: Property 'other' does not exist on type 'Q2'. + declare const q3: Q3; + const v3 = q3.other; + ~~~~~ +!!! error TS2339: Property 'other' does not exist on type 'Q3'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).symbols b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).symbols new file mode 100644 index 0000000000000..c12fcfb66aa61 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).symbols @@ -0,0 +1,156 @@ +//// [tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts] //// + +=== keyofSelfReferentialIndexSignatureCheckOrder.ts === +// The index signature of each type refers to its own keyof, so resolving its +// members needs its keyof, which needs its members. Checking an interface +// with several bases, or a type with a class base, reads its declared +// members while they are incomplete. Its keyof, and its index signature, +// must not depend on whether keyof is needed before or after the type is +// checked (65543). + +interface A { a?: string; } +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>a : Symbol(A.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 13)) + +interface B { b?: number; } +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>b : Symbol(B.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 13)) + +class C { c?: string; } +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>c : Symbol(C.c, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 9, 9)) + +const k0: keyof P0 = 0; +>k0 : Symbol(k0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 5)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) + +interface P0 { a?: string; [key: string]: P0[keyof P0]; } +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) +>a : Symbol(P0.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 14)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 28)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) + +interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) +>a : Symbol(Q0.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 13, 14)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 13, 28)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) + +const j0: keyof Q0 = 0; +>j0 : Symbol(j0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 14, 5)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) + +const k1: keyof P1 = 0; +>k1 : Symbol(k1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 5)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) + +interface P1 extends A { [key: string]: P1[keyof P1]; } +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 26)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) + +interface Q1 extends A { [key: string]: Q1[keyof Q1]; } +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 18, 26)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) + +const j1: keyof Q1 = 0; +>j1 : Symbol(j1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 19, 5)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) + +const k2: keyof P2 = 0; +>k2 : Symbol(k2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 5)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) + +interface P2 extends A, B { [key: string]: P2[keyof P2]; } +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 29)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) + +interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 23, 29)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const j2: keyof Q2 = 0; +>j2 : Symbol(j2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 24, 5)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const k3: keyof P3 = 0; +>k3 : Symbol(k3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 5)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) + +interface P3 extends C { [key: string]: P3[keyof P3]; } +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 26)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) + +interface Q3 extends C { [key: string]: Q3[keyof Q3]; } +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 28, 26)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const j3: keyof Q3 = 0; +>j3 : Symbol(j3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 29, 5)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const k4: keyof P4 = 0; +>k4 : Symbol(k4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 5)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) + +class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>b : Symbol(P4.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 20)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 34)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) + +class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>b : Symbol(Q4.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 33, 20)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 33, 34)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) + +const j4: keyof Q4 = 0; +>j4 : Symbol(j4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 34, 5)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) + +declare const q2: Q2; +>q2 : Symbol(q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 36, 13)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const v2 = q2.other; +>v2 : Symbol(v2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 37, 5)) +>q2.other : Symbol(Q2.__index, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 23, 27)) +>q2 : Symbol(q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 36, 13)) +>other : Symbol(Q2.__index, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 23, 27)) + +declare const q3: Q3; +>q3 : Symbol(q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 38, 13)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const v3 = q3.other; +>v3 : Symbol(v3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 39, 5)) +>q3.other : Symbol(Q3.__index, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 28, 24)) +>q3 : Symbol(q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 38, 13)) +>other : Symbol(Q3.__index, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 28, 24)) + diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).types b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).types new file mode 100644 index 0000000000000..b337aff5320fd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=isolated).types @@ -0,0 +1,116 @@ +//// [tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts] //// + +=== keyofSelfReferentialIndexSignatureCheckOrder.ts === +// The index signature of each type refers to its own keyof, so resolving its +// members needs its keyof, which needs its members. Checking an interface +// with several bases, or a type with a class base, reads its declared +// members while they are incomplete. Its keyof, and its index signature, +// must not depend on whether keyof is needed before or after the type is +// checked (65543). + +interface A { a?: string; } +>a : string | undefined + +interface B { b?: number; } +>b : number | undefined + +class C { c?: string; } +>C : C +>c : string | undefined + +const k0: keyof P0 = 0; +>k0 : keyof P0 +>0 : 0 + +interface P0 { a?: string; [key: string]: P0[keyof P0]; } +>a : string | undefined +>key : string + +interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } +>a : string | undefined +>key : string + +const j0: keyof Q0 = 0; +>j0 : keyof Q0 +>0 : 0 + +const k1: keyof P1 = 0; +>k1 : keyof P1 +>0 : 0 + +interface P1 extends A { [key: string]: P1[keyof P1]; } +>key : string + +interface Q1 extends A { [key: string]: Q1[keyof Q1]; } +>key : string + +const j1: keyof Q1 = 0; +>j1 : keyof Q1 +>0 : 0 + +const k2: keyof P2 = 0; +>k2 : keyof P2 +>0 : 0 + +interface P2 extends A, B { [key: string]: P2[keyof P2]; } +>key : string + +interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } +>key : string + +const j2: keyof Q2 = 0; +>j2 : keyof Q2 +>0 : 0 + +const k3: keyof P3 = 0; +>k3 : keyof P3 +>0 : 0 + +interface P3 extends C { [key: string]: P3[keyof P3]; } +>key : string + +interface Q3 extends C { [key: string]: Q3[keyof Q3]; } +>key : string + +const j3: keyof Q3 = 0; +>j3 : keyof Q3 +>0 : 0 + +const k4: keyof P4 = 0; +>k4 : keyof P4 +>0 : 0 + +class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } +>P4 : P4 +>C : C +>b : number | undefined +>key : string + +class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } +>Q4 : Q4 +>C : C +>b : number | undefined +>key : string + +const j4: keyof Q4 = 0; +>j4 : keyof Q4 +>0 : 0 + +declare const q2: Q2; +>q2 : Q2 + +const v2 = q2.other; +>v2 : string | number | undefined +>q2.other : string | number | undefined +>q2 : Q2 +>other : string | number | undefined + +declare const q3: Q3; +>q3 : Q3 + +const v3 = q3.other; +>v3 : string | undefined +>q3.other : string | undefined +>q3 : Q3 +>other : string | undefined + diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).errors.txt b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).errors.txt new file mode 100644 index 0000000000000..41598bc2f0eb1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).errors.txt @@ -0,0 +1,65 @@ +keyofSelfReferentialIndexSignatureCheckOrder.ts(15,7): error TS2322: Type '0' is not assignable to type '"a"'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(20,7): error TS2322: Type '0' is not assignable to type '"a"'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(25,7): error TS2322: Type '0' is not assignable to type 'keyof Q2'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(30,7): error TS2322: Type '0' is not assignable to type '"c"'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(35,7): error TS2322: Type '0' is not assignable to type 'keyof Q4'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(38,15): error TS2339: Property 'other' does not exist on type 'Q2'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(40,15): error TS2339: Property 'other' does not exist on type 'Q3'. + + +==== keyofSelfReferentialIndexSignatureCheckOrder.ts (7 errors) ==== + // The index signature of each type refers to its own keyof, so resolving its + // members needs its keyof, which needs its members. Checking an interface + // with several bases, or a type with a class base, reads its declared + // members while they are incomplete. Its keyof, and its index signature, + // must not depend on whether keyof is needed before or after the type is + // checked (65543). + + interface A { a?: string; } + interface B { b?: number; } + class C { c?: string; } + + const k0: keyof P0 = 0; + interface P0 { a?: string; [key: string]: P0[keyof P0]; } + interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } + const j0: keyof Q0 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type '"a"'. + + const k1: keyof P1 = 0; + interface P1 extends A { [key: string]: P1[keyof P1]; } + interface Q1 extends A { [key: string]: Q1[keyof Q1]; } + const j1: keyof Q1 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type '"a"'. + + const k2: keyof P2 = 0; + interface P2 extends A, B { [key: string]: P2[keyof P2]; } + interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } + const j2: keyof Q2 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type 'keyof Q2'. + + const k3: keyof P3 = 0; + interface P3 extends C { [key: string]: P3[keyof P3]; } + interface Q3 extends C { [key: string]: Q3[keyof Q3]; } + const j3: keyof Q3 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type '"c"'. + + const k4: keyof P4 = 0; + class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } + class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } + const j4: keyof Q4 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type 'keyof Q4'. + + declare const q2: Q2; + const v2 = q2.other; + ~~~~~ +!!! error TS2339: Property 'other' does not exist on type 'Q2'. + declare const q3: Q3; + const v3 = q3.other; + ~~~~~ +!!! error TS2339: Property 'other' does not exist on type 'Q3'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).symbols b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).symbols new file mode 100644 index 0000000000000..79cd4a9cdb89d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).symbols @@ -0,0 +1,152 @@ +//// [tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts] //// + +=== keyofSelfReferentialIndexSignatureCheckOrder.ts === +// The index signature of each type refers to its own keyof, so resolving its +// members needs its keyof, which needs its members. Checking an interface +// with several bases, or a type with a class base, reads its declared +// members while they are incomplete. Its keyof, and its index signature, +// must not depend on whether keyof is needed before or after the type is +// checked (65543). + +interface A { a?: string; } +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>a : Symbol(A.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 13)) + +interface B { b?: number; } +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>b : Symbol(B.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 13)) + +class C { c?: string; } +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>c : Symbol(C.c, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 9, 9)) + +const k0: keyof P0 = 0; +>k0 : Symbol(k0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 5)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) + +interface P0 { a?: string; [key: string]: P0[keyof P0]; } +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) +>a : Symbol(P0.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 14)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 28)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) + +interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) +>a : Symbol(Q0.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 13, 14)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 13, 28)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) + +const j0: keyof Q0 = 0; +>j0 : Symbol(j0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 14, 5)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) + +const k1: keyof P1 = 0; +>k1 : Symbol(k1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 5)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) + +interface P1 extends A { [key: string]: P1[keyof P1]; } +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 26)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) + +interface Q1 extends A { [key: string]: Q1[keyof Q1]; } +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 18, 26)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) + +const j1: keyof Q1 = 0; +>j1 : Symbol(j1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 19, 5)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) + +const k2: keyof P2 = 0; +>k2 : Symbol(k2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 5)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) + +interface P2 extends A, B { [key: string]: P2[keyof P2]; } +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 29)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) + +interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 23, 29)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const j2: keyof Q2 = 0; +>j2 : Symbol(j2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 24, 5)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const k3: keyof P3 = 0; +>k3 : Symbol(k3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 5)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) + +interface P3 extends C { [key: string]: P3[keyof P3]; } +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 26)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) + +interface Q3 extends C { [key: string]: Q3[keyof Q3]; } +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 28, 26)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const j3: keyof Q3 = 0; +>j3 : Symbol(j3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 29, 5)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const k4: keyof P4 = 0; +>k4 : Symbol(k4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 5)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) + +class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>b : Symbol(P4.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 20)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 34)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) + +class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>b : Symbol(Q4.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 33, 20)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 33, 34)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) + +const j4: keyof Q4 = 0; +>j4 : Symbol(j4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 34, 5)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) + +declare const q2: Q2; +>q2 : Symbol(q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 36, 13)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const v2 = q2.other; +>v2 : Symbol(v2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 37, 5)) +>q2 : Symbol(q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 36, 13)) + +declare const q3: Q3; +>q3 : Symbol(q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 38, 13)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const v3 = q3.other; +>v3 : Symbol(v3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 39, 5)) +>q3 : Symbol(q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 38, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).types b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).types new file mode 100644 index 0000000000000..c702990d7dcb4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=reverse).types @@ -0,0 +1,116 @@ +//// [tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts] //// + +=== keyofSelfReferentialIndexSignatureCheckOrder.ts === +// The index signature of each type refers to its own keyof, so resolving its +// members needs its keyof, which needs its members. Checking an interface +// with several bases, or a type with a class base, reads its declared +// members while they are incomplete. Its keyof, and its index signature, +// must not depend on whether keyof is needed before or after the type is +// checked (65543). + +interface A { a?: string; } +>a : string | undefined + +interface B { b?: number; } +>b : number | undefined + +class C { c?: string; } +>C : C +>c : string | undefined + +const k0: keyof P0 = 0; +>k0 : keyof P0 +>0 : 0 + +interface P0 { a?: string; [key: string]: P0[keyof P0]; } +>a : string | undefined +>key : string + +interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } +>a : string | undefined +>key : string + +const j0: keyof Q0 = 0; +>j0 : "a" +>0 : 0 + +const k1: keyof P1 = 0; +>k1 : keyof P1 +>0 : 0 + +interface P1 extends A { [key: string]: P1[keyof P1]; } +>key : string + +interface Q1 extends A { [key: string]: Q1[keyof Q1]; } +>key : string + +const j1: keyof Q1 = 0; +>j1 : "a" +>0 : 0 + +const k2: keyof P2 = 0; +>k2 : keyof P2 +>0 : 0 + +interface P2 extends A, B { [key: string]: P2[keyof P2]; } +>key : string + +interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } +>key : string + +const j2: keyof Q2 = 0; +>j2 : keyof Q2 +>0 : 0 + +const k3: keyof P3 = 0; +>k3 : keyof P3 +>0 : 0 + +interface P3 extends C { [key: string]: P3[keyof P3]; } +>key : string + +interface Q3 extends C { [key: string]: Q3[keyof Q3]; } +>key : string + +const j3: keyof Q3 = 0; +>j3 : "c" +>0 : 0 + +const k4: keyof P4 = 0; +>k4 : keyof P4 +>0 : 0 + +class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } +>P4 : P4 +>C : C +>b : number | undefined +>key : string + +class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } +>Q4 : Q4 +>C : C +>b : number | undefined +>key : string + +const j4: keyof Q4 = 0; +>j4 : keyof Q4 +>0 : 0 + +declare const q2: Q2; +>q2 : Q2 + +const v2 = q2.other; +>v2 : any +>q2.other : any +>q2 : Q2 +>other : any + +declare const q3: Q3; +>q3 : Q3 + +const v3 = q3.other; +>v3 : any +>q3.other : any +>q3 : Q3 +>other : any + diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..4a6d3f1319496 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,50 @@ +keyofSelfReferentialIndexSignatureCheckOrder.ts(25,7): error TS2322: Type '0' is not assignable to type 'keyof Q2'. +keyofSelfReferentialIndexSignatureCheckOrder.ts(30,7): error TS2322: Type '0' is not assignable to type '"c"'. + + +==== keyofSelfReferentialIndexSignatureCheckOrder.ts (2 errors) ==== + // The index signature of each type refers to its own keyof, so resolving its + // members needs its keyof, which needs its members. Checking an interface + // with several bases, or a type with a class base, reads its declared + // members while they are incomplete. Its keyof, and its index signature, + // must not depend on whether keyof is needed before or after the type is + // checked (65543). + + interface A { a?: string; } + interface B { b?: number; } + class C { c?: string; } + + const k0: keyof P0 = 0; + interface P0 { a?: string; [key: string]: P0[keyof P0]; } + interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } + const j0: keyof Q0 = 0; + + const k1: keyof P1 = 0; + interface P1 extends A { [key: string]: P1[keyof P1]; } + interface Q1 extends A { [key: string]: Q1[keyof Q1]; } + const j1: keyof Q1 = 0; + + const k2: keyof P2 = 0; + interface P2 extends A, B { [key: string]: P2[keyof P2]; } + interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } + const j2: keyof Q2 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type 'keyof Q2'. + + const k3: keyof P3 = 0; + interface P3 extends C { [key: string]: P3[keyof P3]; } + interface Q3 extends C { [key: string]: Q3[keyof Q3]; } + const j3: keyof Q3 = 0; + ~~ +!!! error TS2322: Type '0' is not assignable to type '"c"'. + + const k4: keyof P4 = 0; + class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } + class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } + const j4: keyof Q4 = 0; + + declare const q2: Q2; + const v2 = q2.other; + declare const q3: Q3; + const v3 = q3.other; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..c12fcfb66aa61 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,156 @@ +//// [tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts] //// + +=== keyofSelfReferentialIndexSignatureCheckOrder.ts === +// The index signature of each type refers to its own keyof, so resolving its +// members needs its keyof, which needs its members. Checking an interface +// with several bases, or a type with a class base, reads its declared +// members while they are incomplete. Its keyof, and its index signature, +// must not depend on whether keyof is needed before or after the type is +// checked (65543). + +interface A { a?: string; } +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>a : Symbol(A.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 13)) + +interface B { b?: number; } +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>b : Symbol(B.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 13)) + +class C { c?: string; } +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>c : Symbol(C.c, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 9, 9)) + +const k0: keyof P0 = 0; +>k0 : Symbol(k0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 5)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) + +interface P0 { a?: string; [key: string]: P0[keyof P0]; } +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) +>a : Symbol(P0.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 14)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 28)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) +>P0 : Symbol(P0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 11, 23)) + +interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) +>a : Symbol(Q0.a, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 13, 14)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 13, 28)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) + +const j0: keyof Q0 = 0; +>j0 : Symbol(j0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 14, 5)) +>Q0 : Symbol(Q0, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 12, 57)) + +const k1: keyof P1 = 0; +>k1 : Symbol(k1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 5)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) + +interface P1 extends A { [key: string]: P1[keyof P1]; } +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 26)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) +>P1 : Symbol(P1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 16, 23)) + +interface Q1 extends A { [key: string]: Q1[keyof Q1]; } +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 18, 26)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) + +const j1: keyof Q1 = 0; +>j1 : Symbol(j1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 19, 5)) +>Q1 : Symbol(Q1, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 17, 55)) + +const k2: keyof P2 = 0; +>k2 : Symbol(k2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 5)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) + +interface P2 extends A, B { [key: string]: P2[keyof P2]; } +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 29)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) +>P2 : Symbol(P2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 21, 23)) + +interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) +>A : Symbol(A, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 7, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 23, 29)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const j2: keyof Q2 = 0; +>j2 : Symbol(j2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 24, 5)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const k3: keyof P3 = 0; +>k3 : Symbol(k3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 5)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) + +interface P3 extends C { [key: string]: P3[keyof P3]; } +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 26)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) +>P3 : Symbol(P3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 26, 23)) + +interface Q3 extends C { [key: string]: Q3[keyof Q3]; } +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 28, 26)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const j3: keyof Q3 = 0; +>j3 : Symbol(j3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 29, 5)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const k4: keyof P4 = 0; +>k4 : Symbol(k4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 5)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) + +class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>b : Symbol(P4.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 20)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 34)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) +>P4 : Symbol(P4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 31, 23)) + +class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) +>C : Symbol(C, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 8, 27)) +>b : Symbol(Q4.b, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 33, 20)) +>key : Symbol(key, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 33, 34)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) + +const j4: keyof Q4 = 0; +>j4 : Symbol(j4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 34, 5)) +>Q4 : Symbol(Q4, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 32, 63)) + +declare const q2: Q2; +>q2 : Symbol(q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 36, 13)) +>Q2 : Symbol(Q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 22, 58)) + +const v2 = q2.other; +>v2 : Symbol(v2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 37, 5)) +>q2.other : Symbol(Q2.__index, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 23, 27)) +>q2 : Symbol(q2, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 36, 13)) +>other : Symbol(Q2.__index, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 23, 27)) + +declare const q3: Q3; +>q3 : Symbol(q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 38, 13)) +>Q3 : Symbol(Q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 27, 55)) + +const v3 = q3.other; +>v3 : Symbol(v3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 39, 5)) +>q3.other : Symbol(Q3.__index, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 28, 24)) +>q3 : Symbol(q3, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 38, 13)) +>other : Symbol(Q3.__index, Decl(keyofSelfReferentialIndexSignatureCheckOrder.ts, 28, 24)) + diff --git a/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..b6a67c2c167cb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/keyofSelfReferentialIndexSignatureCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,116 @@ +//// [tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts] //// + +=== keyofSelfReferentialIndexSignatureCheckOrder.ts === +// The index signature of each type refers to its own keyof, so resolving its +// members needs its keyof, which needs its members. Checking an interface +// with several bases, or a type with a class base, reads its declared +// members while they are incomplete. Its keyof, and its index signature, +// must not depend on whether keyof is needed before or after the type is +// checked (65543). + +interface A { a?: string; } +>a : string | undefined + +interface B { b?: number; } +>b : number | undefined + +class C { c?: string; } +>C : C +>c : string | undefined + +const k0: keyof P0 = 0; +>k0 : keyof P0 +>0 : 0 + +interface P0 { a?: string; [key: string]: P0[keyof P0]; } +>a : string | undefined +>key : string + +interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } +>a : string | undefined +>key : string + +const j0: keyof Q0 = 0; +>j0 : keyof Q0 +>0 : 0 + +const k1: keyof P1 = 0; +>k1 : keyof P1 +>0 : 0 + +interface P1 extends A { [key: string]: P1[keyof P1]; } +>key : string + +interface Q1 extends A { [key: string]: Q1[keyof Q1]; } +>key : string + +const j1: keyof Q1 = 0; +>j1 : keyof Q1 +>0 : 0 + +const k2: keyof P2 = 0; +>k2 : keyof P2 +>0 : 0 + +interface P2 extends A, B { [key: string]: P2[keyof P2]; } +>key : string + +interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } +>key : string + +const j2: keyof Q2 = 0; +>j2 : keyof Q2 +>0 : 0 + +const k3: keyof P3 = 0; +>k3 : keyof P3 +>0 : 0 + +interface P3 extends C { [key: string]: P3[keyof P3]; } +>key : string + +interface Q3 extends C { [key: string]: Q3[keyof Q3]; } +>key : string + +const j3: keyof Q3 = 0; +>j3 : "c" +>0 : 0 + +const k4: keyof P4 = 0; +>k4 : keyof P4 +>0 : 0 + +class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } +>P4 : P4 +>C : C +>b : number | undefined +>key : string + +class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } +>Q4 : Q4 +>C : C +>b : number | undefined +>key : string + +const j4: keyof Q4 = 0; +>j4 : keyof Q4 +>0 : 0 + +declare const q2: Q2; +>q2 : Q2 + +const v2 = q2.other; +>v2 : string | number | undefined +>q2.other : string | number | undefined +>q2 : Q2 +>other : string | number | undefined + +declare const q3: Q3; +>q3 : Q3 + +const v3 = q3.other; +>v3 : string | undefined +>q3.other : string | undefined +>q3 : Q3 +>other : string | undefined + diff --git a/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).errors.txt new file mode 100644 index 0000000000000..a1b033edf54ba --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).errors.txt @@ -0,0 +1,15 @@ +limitDeepInstantiations.ts(4,9): error TS5114: Instantiations of type 'Foo' appear infinitely circular. +limitDeepInstantiations.ts(5,13): error TS2344: Type '"false"' does not satisfy the constraint '"true"'. + + +==== limitDeepInstantiations.ts (2 errors) ==== + // Repro from #14837 + + type Foo = { "true": Foo> }[T]; + let f1: Foo<"true", {}>; + ~~~~~~~~~~~~~~~ +!!! error TS5114: Instantiations of type 'Foo' appear infinitely circular. + let f2: Foo<"false", {}>; + ~~~~~~~ +!!! error TS2344: Type '"false"' does not satisfy the constraint '"true"'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).js new file mode 100644 index 0000000000000..5c149c0177558 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/limitDeepInstantiations.ts] //// + +//// [limitDeepInstantiations.ts] +// Repro from #14837 + +type Foo = { "true": Foo> }[T]; +let f1: Foo<"true", {}>; +let f2: Foo<"false", {}>; + + +//// [limitDeepInstantiations.js] +"use strict"; +// Repro from #14837 +let f1; +let f2; diff --git a/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).symbols new file mode 100644 index 0000000000000..73413334b6b82 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/limitDeepInstantiations.ts] //// + +=== limitDeepInstantiations.ts === +// Repro from #14837 + +type Foo = { "true": Foo> }[T]; +>Foo : Symbol(Foo, Decl(limitDeepInstantiations.ts, 0, 0)) +>T : Symbol(T, Decl(limitDeepInstantiations.ts, 2, 9)) +>B : Symbol(B, Decl(limitDeepInstantiations.ts, 2, 26)) +>"true" : Symbol("true", Decl(limitDeepInstantiations.ts, 2, 33)) +>Foo : Symbol(Foo, Decl(limitDeepInstantiations.ts, 0, 0)) +>T : Symbol(T, Decl(limitDeepInstantiations.ts, 2, 9)) +>Foo : Symbol(Foo, Decl(limitDeepInstantiations.ts, 0, 0)) +>T : Symbol(T, Decl(limitDeepInstantiations.ts, 2, 9)) +>B : Symbol(B, Decl(limitDeepInstantiations.ts, 2, 26)) +>T : Symbol(T, Decl(limitDeepInstantiations.ts, 2, 9)) + +let f1: Foo<"true", {}>; +>f1 : Symbol(f1, Decl(limitDeepInstantiations.ts, 3, 3)) +>Foo : Symbol(Foo, Decl(limitDeepInstantiations.ts, 0, 0)) + +let f2: Foo<"false", {}>; +>f2 : Symbol(f2, Decl(limitDeepInstantiations.ts, 4, 3)) +>Foo : Symbol(Foo, Decl(limitDeepInstantiations.ts, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).types new file mode 100644 index 0000000000000..520205007876c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=default).types @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/limitDeepInstantiations.ts] //// + +=== limitDeepInstantiations.ts === +// Repro from #14837 + +type Foo = { "true": Foo> }[T]; +>Foo : Foo +>"true" : Foo> + +let f1: Foo<"true", {}>; +>f1 : any + +let f2: Foo<"false", {}>; +>f2 : unknown + diff --git a/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..2998e94608985 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).errors.txt @@ -0,0 +1,14 @@ +error TS5114: Instantiations of type 'Foo' appear infinitely circular. +limitDeepInstantiations.ts(5,13): error TS2344: Type '"false"' does not satisfy the constraint '"true"'. + + +!!! error TS5114: Instantiations of type 'Foo' appear infinitely circular. +==== limitDeepInstantiations.ts (1 errors) ==== + // Repro from #14837 + + type Foo = { "true": Foo> }[T]; + let f1: Foo<"true", {}>; + let f2: Foo<"false", {}>; + ~~~~~~~ +!!! error TS2344: Type '"false"' does not satisfy the constraint '"true"'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).js new file mode 100644 index 0000000000000..5c149c0177558 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/limitDeepInstantiations.ts] //// + +//// [limitDeepInstantiations.ts] +// Repro from #14837 + +type Foo = { "true": Foo> }[T]; +let f1: Foo<"true", {}>; +let f2: Foo<"false", {}>; + + +//// [limitDeepInstantiations.js] +"use strict"; +// Repro from #14837 +let f1; +let f2; diff --git a/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..73413334b6b82 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/limitDeepInstantiations.ts] //// + +=== limitDeepInstantiations.ts === +// Repro from #14837 + +type Foo = { "true": Foo> }[T]; +>Foo : Symbol(Foo, Decl(limitDeepInstantiations.ts, 0, 0)) +>T : Symbol(T, Decl(limitDeepInstantiations.ts, 2, 9)) +>B : Symbol(B, Decl(limitDeepInstantiations.ts, 2, 26)) +>"true" : Symbol("true", Decl(limitDeepInstantiations.ts, 2, 33)) +>Foo : Symbol(Foo, Decl(limitDeepInstantiations.ts, 0, 0)) +>T : Symbol(T, Decl(limitDeepInstantiations.ts, 2, 9)) +>Foo : Symbol(Foo, Decl(limitDeepInstantiations.ts, 0, 0)) +>T : Symbol(T, Decl(limitDeepInstantiations.ts, 2, 9)) +>B : Symbol(B, Decl(limitDeepInstantiations.ts, 2, 26)) +>T : Symbol(T, Decl(limitDeepInstantiations.ts, 2, 9)) + +let f1: Foo<"true", {}>; +>f1 : Symbol(f1, Decl(limitDeepInstantiations.ts, 3, 3)) +>Foo : Symbol(Foo, Decl(limitDeepInstantiations.ts, 0, 0)) + +let f2: Foo<"false", {}>; +>f2 : Symbol(f2, Decl(limitDeepInstantiations.ts, 4, 3)) +>Foo : Symbol(Foo, Decl(limitDeepInstantiations.ts, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).types new file mode 100644 index 0000000000000..520205007876c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/limitDeepInstantiations(checkorder=typesfirst).types @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/limitDeepInstantiations.ts] //// + +=== limitDeepInstantiations.ts === +// Repro from #14837 + +type Foo = { "true": Foo> }[T]; +>Foo : Foo +>"true" : Foo> + +let f1: Foo<"true", {}>; +>f1 : any + +let f2: Foo<"false", {}>; +>f2 : unknown + diff --git a/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..b8ef5d4e60daf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,20 @@ +mappedTypeConstraintErrorsCheckOrder.ts(12,11): error TS2589: Type instantiation is excessively deep and possibly infinite. + + +==== mappedTypeConstraintErrorsCheckOrder.ts (1 errors) ==== + // A mapped type reports the errors of its constraint, here an instantiation + // that is too deep, at the mapped type, whichever node first requests it. + + type Dec = + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; + type Recur = + N extends 0 ? S : Recur, [S]>; + + type Explode = { + [P in Recur<5, "a"> & string as `${P}_key`]: any; + ~~~~~~~~~~~~~ +!!! error TS2589: Type instantiation is excessively deep and possibly infinite. + }; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..357d59e32bdf9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).symbols @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/mappedTypeConstraintErrorsCheckOrder.ts] //// + +=== mappedTypeConstraintErrorsCheckOrder.ts === +// A mapped type reports the errors of its constraint, here an instantiation +// that is too deep, at the mapped type, whichever node first requests it. + +type Dec = +>Dec : Symbol(Dec, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 0, 0)) +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) + + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) + + N extends 2 ? any : +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) + + N extends 1 ? 0 : 0; +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) + +type Recur = +>Recur : Symbol(Recur, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 6, 24)) +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 11)) +>S : Symbol(S, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 28)) + + N extends 0 ? S : Recur, [S]>; +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 11)) +>S : Symbol(S, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 28)) +>Recur : Symbol(Recur, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 6, 24)) +>Dec : Symbol(Dec, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 0, 0)) +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 11)) +>S : Symbol(S, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 28)) + +type Explode = { +>Explode : Symbol(Explode, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 8, 41)) + + [P in Recur<5, "a"> & string as `${P}_key`]: any; +>P : Symbol(P, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 11, 5)) +>Recur : Symbol(Recur, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 6, 24)) +>P : Symbol(P, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 11, 5)) + +}; + diff --git a/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..aa80da4a841eb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=default).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/mappedTypeConstraintErrorsCheckOrder.ts] //// + +=== mappedTypeConstraintErrorsCheckOrder.ts === +// A mapped type reports the errors of its constraint, here an instantiation +// that is too deep, at the mapped type, whichever node first requests it. + +type Dec = +>Dec : Dec + + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; +type Recur = +>Recur : Recur + + N extends 0 ? S : Recur, [S]>; + +type Explode = { +>Explode : Explode + + [P in Recur<5, "a"> & string as `${P}_key`]: any; +}; + diff --git a/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..5d71428db68bf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,19 @@ +error TS2589: Type instantiation is excessively deep and possibly infinite. + + +!!! error TS2589: Type instantiation is excessively deep and possibly infinite. +==== mappedTypeConstraintErrorsCheckOrder.ts (0 errors) ==== + // A mapped type reports the errors of its constraint, here an instantiation + // that is too deep, at the mapped type, whichever node first requests it. + + type Dec = + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; + type Recur = + N extends 0 ? S : Recur, [S]>; + + type Explode = { + [P in Recur<5, "a"> & string as `${P}_key`]: any; + }; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..357d59e32bdf9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/mappedTypeConstraintErrorsCheckOrder.ts] //// + +=== mappedTypeConstraintErrorsCheckOrder.ts === +// A mapped type reports the errors of its constraint, here an instantiation +// that is too deep, at the mapped type, whichever node first requests it. + +type Dec = +>Dec : Symbol(Dec, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 0, 0)) +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) + + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) + + N extends 2 ? any : +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) + + N extends 1 ? 0 : 0; +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 3, 9)) + +type Recur = +>Recur : Symbol(Recur, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 6, 24)) +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 11)) +>S : Symbol(S, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 28)) + + N extends 0 ? S : Recur, [S]>; +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 11)) +>S : Symbol(S, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 28)) +>Recur : Symbol(Recur, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 6, 24)) +>Dec : Symbol(Dec, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 0, 0)) +>N : Symbol(N, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 11)) +>S : Symbol(S, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 7, 28)) + +type Explode = { +>Explode : Symbol(Explode, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 8, 41)) + + [P in Recur<5, "a"> & string as `${P}_key`]: any; +>P : Symbol(P, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 11, 5)) +>Recur : Symbol(Recur, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 6, 24)) +>P : Symbol(P, Decl(mappedTypeConstraintErrorsCheckOrder.ts, 11, 5)) + +}; + diff --git a/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..aa80da4a841eb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mappedTypeConstraintErrorsCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/mappedTypeConstraintErrorsCheckOrder.ts] //// + +=== mappedTypeConstraintErrorsCheckOrder.ts === +// A mapped type reports the errors of its constraint, here an instantiation +// that is too deep, at the mapped type, whichever node first requests it. + +type Dec = +>Dec : Dec + + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; +type Recur = +>Recur : Recur + + N extends 0 ? S : Recur, [S]>; + +type Explode = { +>Explode : Explode + + [P in Recur<5, "a"> & string as `${P}_key`]: any; +}; + diff --git a/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..d931b608a3234 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=default).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/methodOfObjectLiteralInGenericCallCheckOrder.ts] //// + +=== methodOfObjectLiteralInGenericCallCheckOrder.ts === +// Inference for Object.fromEntries goes through a generic call with an +// object literal method, and gives the same result whether or not the +// editor asked about the call first (43948). + +const id = (x: T): T => x; +>id : Symbol(id, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 5)) +>T : Symbol(T, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 12)) +>x : Symbol(x, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 16)) +>T : Symbol(T, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 12)) +>T : Symbol(T, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 12)) +>x : Symbol(x, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 16)) + +const keys: string[] = []; +>keys : Symbol(keys, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 6, 5)) + +const result = Object.fromEntries(keys.map(k => [ +>result : Symbol(result, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 8, 5)) +>Object.fromEntries : Symbol(ObjectConstructor.fromEntries, Decl(lib.es2019.object.d.ts, --, --), Decl(lib.es2019.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>fromEntries : Symbol(ObjectConstructor.fromEntries, Decl(lib.es2019.object.d.ts, --, --), Decl(lib.es2019.object.d.ts, --, --)) +>keys.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>keys : Symbol(keys, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 6, 5)) +>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>k : Symbol(k, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 8, 43)) + + k, +>k : Symbol(k, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 8, 43)) + + id({ test() { } }), +>id : Symbol(id, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 5)) +>test : Symbol(test, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 10, 8)) + +])); + diff --git a/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..a260f7090b198 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=default).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/methodOfObjectLiteralInGenericCallCheckOrder.ts] //// + +=== methodOfObjectLiteralInGenericCallCheckOrder.ts === +// Inference for Object.fromEntries goes through a generic call with an +// object literal method, and gives the same result whether or not the +// editor asked about the call first (43948). + +const id = (x: T): T => x; +>id : (x: T) => T +>(x: T): T => x : (x: T) => T +>x : T +>x : T + +const keys: string[] = []; +>keys : string[] +>[] : never[] + +const result = Object.fromEntries(keys.map(k => [ +>result : { [k: string]: { test(): void; }; } +>Object.fromEntries(keys.map(k => [ k, id({ test() { } }),])) : { [k: string]: { test(): void; }; } +>Object.fromEntries : { (entries: Iterable): { [k: string]: T; }; (entries: Iterable): any; } +>Object : ObjectConstructor +>fromEntries : { (entries: Iterable): { [k: string]: T; }; (entries: Iterable): any; } +>keys.map(k => [ k, id({ test() { } }),]) : [string, { test(): void; }][] +>keys.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>keys : string[] +>map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>k => [ k, id({ test() { } }),] : (k: string) => [string, { test(): void; }] +>k : string +>[ k, id({ test() { } }),] : [string, { test(): void; }] + + k, +>k : string + + id({ test() { } }), +>id({ test() { } }) : { test(): void; } +>id : (x: T) => T +>{ test() { } } : { test(): void; } +>test : () => void + +])); + diff --git a/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..d931b608a3234 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/methodOfObjectLiteralInGenericCallCheckOrder.ts] //// + +=== methodOfObjectLiteralInGenericCallCheckOrder.ts === +// Inference for Object.fromEntries goes through a generic call with an +// object literal method, and gives the same result whether or not the +// editor asked about the call first (43948). + +const id = (x: T): T => x; +>id : Symbol(id, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 5)) +>T : Symbol(T, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 12)) +>x : Symbol(x, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 16)) +>T : Symbol(T, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 12)) +>T : Symbol(T, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 12)) +>x : Symbol(x, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 16)) + +const keys: string[] = []; +>keys : Symbol(keys, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 6, 5)) + +const result = Object.fromEntries(keys.map(k => [ +>result : Symbol(result, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 8, 5)) +>Object.fromEntries : Symbol(ObjectConstructor.fromEntries, Decl(lib.es2019.object.d.ts, --, --), Decl(lib.es2019.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>fromEntries : Symbol(ObjectConstructor.fromEntries, Decl(lib.es2019.object.d.ts, --, --), Decl(lib.es2019.object.d.ts, --, --)) +>keys.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>keys : Symbol(keys, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 6, 5)) +>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>k : Symbol(k, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 8, 43)) + + k, +>k : Symbol(k, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 8, 43)) + + id({ test() { } }), +>id : Symbol(id, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 5)) +>test : Symbol(test, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 10, 8)) + +])); + diff --git a/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..b952f46bb4ff4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/methodOfObjectLiteralInGenericCallCheckOrder.ts] //// + +=== methodOfObjectLiteralInGenericCallCheckOrder.ts === +// Inference for Object.fromEntries goes through a generic call with an +// object literal method, and gives the same result whether or not the +// editor asked about the call first (43948). + +const id = (x: T): T => x; +>id : (x: T) => T +>(x: T): T => x : (x: T) => T +>x : T +>x : T + +const keys: string[] = []; +>keys : string[] +>[] : never[] + +const result = Object.fromEntries(keys.map(k => [ +>result : any +>Object.fromEntries(keys.map(k => [ k, id({ test() { } }),])) : any +>Object.fromEntries : { (entries: Iterable): { [k: string]: T; }; (entries: Iterable): any; } +>Object : ObjectConstructor +>fromEntries : { (entries: Iterable): { [k: string]: T; }; (entries: Iterable): any; } +>keys.map(k => [ k, id({ test() { } }),]) : (string | { test(): void; })[][] +>keys.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>keys : string[] +>map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>k => [ k, id({ test() { } }),] : (k: string) => (string | { test(): void; })[] +>k : string +>[ k, id({ test() { } }),] : (string | { test(): void; })[] + + k, +>k : string + + id({ test() { } }), +>id({ test() { } }) : { test(): void; } +>id : (x: T) => T +>{ test() { } } : { test(): void; } +>test : () => void + +])); + diff --git a/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..d931b608a3234 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/methodOfObjectLiteralInGenericCallCheckOrder.ts] //// + +=== methodOfObjectLiteralInGenericCallCheckOrder.ts === +// Inference for Object.fromEntries goes through a generic call with an +// object literal method, and gives the same result whether or not the +// editor asked about the call first (43948). + +const id = (x: T): T => x; +>id : Symbol(id, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 5)) +>T : Symbol(T, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 12)) +>x : Symbol(x, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 16)) +>T : Symbol(T, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 12)) +>T : Symbol(T, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 12)) +>x : Symbol(x, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 16)) + +const keys: string[] = []; +>keys : Symbol(keys, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 6, 5)) + +const result = Object.fromEntries(keys.map(k => [ +>result : Symbol(result, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 8, 5)) +>Object.fromEntries : Symbol(ObjectConstructor.fromEntries, Decl(lib.es2019.object.d.ts, --, --), Decl(lib.es2019.object.d.ts, --, --)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>fromEntries : Symbol(ObjectConstructor.fromEntries, Decl(lib.es2019.object.d.ts, --, --), Decl(lib.es2019.object.d.ts, --, --)) +>keys.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>keys : Symbol(keys, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 6, 5)) +>map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) +>k : Symbol(k, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 8, 43)) + + k, +>k : Symbol(k, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 8, 43)) + + id({ test() { } }), +>id : Symbol(id, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 4, 5)) +>test : Symbol(test, Decl(methodOfObjectLiteralInGenericCallCheckOrder.ts, 10, 8)) + +])); + diff --git a/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..a260f7090b198 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/methodOfObjectLiteralInGenericCallCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/methodOfObjectLiteralInGenericCallCheckOrder.ts] //// + +=== methodOfObjectLiteralInGenericCallCheckOrder.ts === +// Inference for Object.fromEntries goes through a generic call with an +// object literal method, and gives the same result whether or not the +// editor asked about the call first (43948). + +const id = (x: T): T => x; +>id : (x: T) => T +>(x: T): T => x : (x: T) => T +>x : T +>x : T + +const keys: string[] = []; +>keys : string[] +>[] : never[] + +const result = Object.fromEntries(keys.map(k => [ +>result : { [k: string]: { test(): void; }; } +>Object.fromEntries(keys.map(k => [ k, id({ test() { } }),])) : { [k: string]: { test(): void; }; } +>Object.fromEntries : { (entries: Iterable): { [k: string]: T; }; (entries: Iterable): any; } +>Object : ObjectConstructor +>fromEntries : { (entries: Iterable): { [k: string]: T; }; (entries: Iterable): any; } +>keys.map(k => [ k, id({ test() { } }),]) : [string, { test(): void; }][] +>keys.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>keys : string[] +>map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>k => [ k, id({ test() { } }),] : (k: string) => [string, { test(): void; }] +>k : string +>[ k, id({ test() { } }),] : [string, { test(): void; }] + + k, +>k : string + + id({ test() { } }), +>id({ test() { } }) : { test(): void; } +>id : (x: T) => T +>{ test() { } } : { test(): void; } +>test : () => void + +])); + diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..47ee86b9b2ffc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,45 @@ +mixinMethodsReferringToAppliedClassCheckOrder.ts(31,7): error TS2417: Class static side 'typeof MixinApplied' incorrectly extends base class static side '{ prototype: (Anonymous function).Mixin2; } & { prototype: (Anonymous function).Mixin; }'. + Types of property 'prototype' are incompatible. + Type 'MixinApplied' is not assignable to type '(Anonymous function).Mixin2 & (Anonymous function).Mixin'. + Property 'bar' is missing in type 'MixinApplied' but required in type '(Anonymous function).Mixin2'. + + +==== mixinMethodsReferringToAppliedClassCheckOrder.ts (1 errors) ==== + // The mixin classes have methods referring to the class built from them, + // so checking the classes and typing their members first reach the same + // cycle in different places (55640). + + type ConstructorType = abstract new (...args: any[]) => T; + + function makeMixin, FinalConstructor>( + mixinFunction: (Base: TBase) => FinalConstructor + ): (Base?: TBase) => FinalConstructor { + return (Base?: TBase) => { + // do other things with Base, this example is simplified + return mixinFunction(Base ?? (Object as any)); + }; + } + + const MixinF = makeMixin(>(Base: TBase) => { + abstract class Mixin extends Base { + foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } + } + return Mixin + }) + + + const Mixin2F = makeMixin(>(Base: TBase) => { + abstract class Mixin2 extends Base { + bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } + } + return Mixin2 + }) + + class MixinApplied extends Mixin2F(MixinF()) {} + ~~~~~~~~~~~~ +!!! error TS2417: Class static side 'typeof MixinApplied' incorrectly extends base class static side '{ prototype: (Anonymous function).Mixin2; } & { prototype: (Anonymous function).Mixin; }'. +!!! error TS2417: Types of property 'prototype' are incompatible. +!!! error TS2417: Type 'MixinApplied' is not assignable to type '(Anonymous function).Mixin2 & (Anonymous function).Mixin'. +!!! error TS2417: Property 'bar' is missing in type 'MixinApplied' but required in type '(Anonymous function).Mixin2'. +!!! related TS2728 mixinMethodsReferringToAppliedClassCheckOrder.ts:26:5: 'bar' is declared here. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..e4ac67c169efb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).symbols @@ -0,0 +1,99 @@ +//// [tests/cases/compiler/mixinMethodsReferringToAppliedClassCheckOrder.ts] //// + +=== mixinMethodsReferringToAppliedClassCheckOrder.ts === +// The mixin classes have methods referring to the class built from them, +// so checking the classes and typing their members first reach the same +// cycle in different places (55640). + +type ConstructorType = abstract new (...args: any[]) => T; +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 21)) +>args : Symbol(args, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 40)) +>T : Symbol(T, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 21)) + +function makeMixin, FinalConstructor>( +>makeMixin : Symbol(makeMixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 61)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>FinalConstructor : Symbol(FinalConstructor, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 54)) + + mixinFunction: (Base: TBase) => FinalConstructor +>mixinFunction : Symbol(mixinFunction, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 73)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 7, 20)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) +>FinalConstructor : Symbol(FinalConstructor, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 54)) + +): (Base?: TBase) => FinalConstructor { +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 8, 4)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) +>FinalConstructor : Symbol(FinalConstructor, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 54)) + + return (Base?: TBase) => { +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 9, 12)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) + + // do other things with Base, this example is simplified + return mixinFunction(Base ?? (Object as any)); +>mixinFunction : Symbol(mixinFunction, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 73)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 9, 12)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + }; +} + +const MixinF = makeMixin(>(Base: TBase) => { +>MixinF : Symbol(MixinF, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 5)) +>makeMixin : Symbol(makeMixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 61)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 26)) +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 62)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 26)) + + abstract class Mixin extends Base { +>Mixin : Symbol(Mixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 79)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 62)) + + foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>foo : Symbol(Mixin.foo, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 16, 37)) +>foo : Symbol(foo, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 17, 8)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 17, 26)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 17, 26)) + } + return Mixin +>Mixin : Symbol(Mixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 79)) + +}) + + +const Mixin2F = makeMixin(>(Base: TBase) => { +>Mixin2F : Symbol(Mixin2F, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 5)) +>makeMixin : Symbol(makeMixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 61)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 27)) +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 63)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 27)) + + abstract class Mixin2 extends Base { +>Mixin2 : Symbol(Mixin2, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 80)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 63)) + + bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>bar : Symbol(Mixin2.bar, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 24, 38)) +>foo : Symbol(foo, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 25, 8)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 25, 26)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 25, 26)) + } + return Mixin2 +>Mixin2 : Symbol(Mixin2, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 80)) + +}) + +class MixinApplied extends Mixin2F(MixinF()) {} +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>Mixin2F : Symbol(Mixin2F, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 5)) +>MixinF : Symbol(MixinF, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..337a11c28ca64 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=default).types @@ -0,0 +1,90 @@ +//// [tests/cases/compiler/mixinMethodsReferringToAppliedClassCheckOrder.ts] //// + +=== mixinMethodsReferringToAppliedClassCheckOrder.ts === +// The mixin classes have methods referring to the class built from them, +// so checking the classes and typing their members first reach the same +// cycle in different places (55640). + +type ConstructorType = abstract new (...args: any[]) => T; +>ConstructorType : ConstructorType +>args : any[] + +function makeMixin, FinalConstructor>( +>makeMixin : , FinalConstructor>(mixinFunction: (Base: TBase) => FinalConstructor) => (Base?: TBase) => FinalConstructor + + mixinFunction: (Base: TBase) => FinalConstructor +>mixinFunction : (Base: TBase) => FinalConstructor +>Base : TBase + +): (Base?: TBase) => FinalConstructor { +>Base : TBase | undefined + + return (Base?: TBase) => { +>(Base?: TBase) => { // do other things with Base, this example is simplified return mixinFunction(Base ?? (Object as any)); } : (Base?: TBase) => FinalConstructor +>Base : TBase | undefined + + // do other things with Base, this example is simplified + return mixinFunction(Base ?? (Object as any)); +>mixinFunction(Base ?? (Object as any)) : FinalConstructor +>mixinFunction : (Base: TBase) => FinalConstructor +>Base ?? (Object as any) : any +>Base : TBase | undefined +>(Object as any) : any +>Object as any : any +>Object : ObjectConstructor + + }; +} + +const MixinF = makeMixin(>(Base: TBase) => { +>MixinF : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase +>makeMixin(>(Base: TBase) => { abstract class Mixin extends Base { foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin}) : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase +>makeMixin : , FinalConstructor>(mixinFunction: (Base: TBase) => FinalConstructor) => (Base?: TBase) => FinalConstructor +>>(Base: TBase) => { abstract class Mixin extends Base { foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin} : >(Base: TBase) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase +>Base : TBase + + abstract class Mixin extends Base { +>Mixin : Mixin +>Base : TBase + + foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>foo : (foo: MixinApplied, extra: boolean) => MixinApplied | boolean +>foo : MixinApplied +>extra : boolean +>extra : boolean + } + return Mixin +>Mixin : ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase + +}) + + +const Mixin2F = makeMixin(>(Base: TBase) => { +>Mixin2F : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>makeMixin(>(Base: TBase) => { abstract class Mixin2 extends Base { bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin2}) : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>makeMixin : , FinalConstructor>(mixinFunction: (Base: TBase) => FinalConstructor) => (Base?: TBase) => FinalConstructor +>>(Base: TBase) => { abstract class Mixin2 extends Base { bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin2} : >(Base: TBase) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>Base : TBase + + abstract class Mixin2 extends Base { +>Mixin2 : Mixin2 +>Base : TBase + + bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>bar : (foo: MixinApplied, extra: boolean) => MixinApplied | boolean +>foo : MixinApplied +>extra : boolean +>extra : boolean + } + return Mixin2 +>Mixin2 : ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase + +}) + +class MixinApplied extends Mixin2F(MixinF()) {} +>MixinApplied : MixinApplied +>Mixin2F(MixinF()) : ((abstract new (...args: any[]) => (Anonymous function).Mixin2) & { prototype: (Anonymous function).Mixin2; }) & ((abstract new (...args: any[]) => (Anonymous function).Mixin) & { prototype: (Anonymous function).Mixin; }) & ConstructorType +>Mixin2F : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>MixinF() : ((abstract new (...args: any[]) => (Anonymous function).Mixin) & { prototype: (Anonymous function).Mixin; }) & ConstructorType +>MixinF : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase + diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..47ee86b9b2ffc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,45 @@ +mixinMethodsReferringToAppliedClassCheckOrder.ts(31,7): error TS2417: Class static side 'typeof MixinApplied' incorrectly extends base class static side '{ prototype: (Anonymous function).Mixin2; } & { prototype: (Anonymous function).Mixin; }'. + Types of property 'prototype' are incompatible. + Type 'MixinApplied' is not assignable to type '(Anonymous function).Mixin2 & (Anonymous function).Mixin'. + Property 'bar' is missing in type 'MixinApplied' but required in type '(Anonymous function).Mixin2'. + + +==== mixinMethodsReferringToAppliedClassCheckOrder.ts (1 errors) ==== + // The mixin classes have methods referring to the class built from them, + // so checking the classes and typing their members first reach the same + // cycle in different places (55640). + + type ConstructorType = abstract new (...args: any[]) => T; + + function makeMixin, FinalConstructor>( + mixinFunction: (Base: TBase) => FinalConstructor + ): (Base?: TBase) => FinalConstructor { + return (Base?: TBase) => { + // do other things with Base, this example is simplified + return mixinFunction(Base ?? (Object as any)); + }; + } + + const MixinF = makeMixin(>(Base: TBase) => { + abstract class Mixin extends Base { + foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } + } + return Mixin + }) + + + const Mixin2F = makeMixin(>(Base: TBase) => { + abstract class Mixin2 extends Base { + bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } + } + return Mixin2 + }) + + class MixinApplied extends Mixin2F(MixinF()) {} + ~~~~~~~~~~~~ +!!! error TS2417: Class static side 'typeof MixinApplied' incorrectly extends base class static side '{ prototype: (Anonymous function).Mixin2; } & { prototype: (Anonymous function).Mixin; }'. +!!! error TS2417: Types of property 'prototype' are incompatible. +!!! error TS2417: Type 'MixinApplied' is not assignable to type '(Anonymous function).Mixin2 & (Anonymous function).Mixin'. +!!! error TS2417: Property 'bar' is missing in type 'MixinApplied' but required in type '(Anonymous function).Mixin2'. +!!! related TS2728 mixinMethodsReferringToAppliedClassCheckOrder.ts:26:5: 'bar' is declared here. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..e4ac67c169efb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,99 @@ +//// [tests/cases/compiler/mixinMethodsReferringToAppliedClassCheckOrder.ts] //// + +=== mixinMethodsReferringToAppliedClassCheckOrder.ts === +// The mixin classes have methods referring to the class built from them, +// so checking the classes and typing their members first reach the same +// cycle in different places (55640). + +type ConstructorType = abstract new (...args: any[]) => T; +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 21)) +>args : Symbol(args, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 40)) +>T : Symbol(T, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 21)) + +function makeMixin, FinalConstructor>( +>makeMixin : Symbol(makeMixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 61)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>FinalConstructor : Symbol(FinalConstructor, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 54)) + + mixinFunction: (Base: TBase) => FinalConstructor +>mixinFunction : Symbol(mixinFunction, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 73)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 7, 20)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) +>FinalConstructor : Symbol(FinalConstructor, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 54)) + +): (Base?: TBase) => FinalConstructor { +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 8, 4)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) +>FinalConstructor : Symbol(FinalConstructor, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 54)) + + return (Base?: TBase) => { +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 9, 12)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) + + // do other things with Base, this example is simplified + return mixinFunction(Base ?? (Object as any)); +>mixinFunction : Symbol(mixinFunction, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 73)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 9, 12)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + }; +} + +const MixinF = makeMixin(>(Base: TBase) => { +>MixinF : Symbol(MixinF, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 5)) +>makeMixin : Symbol(makeMixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 61)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 26)) +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 62)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 26)) + + abstract class Mixin extends Base { +>Mixin : Symbol(Mixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 79)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 62)) + + foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>foo : Symbol(Mixin.foo, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 16, 37)) +>foo : Symbol(foo, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 17, 8)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 17, 26)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 17, 26)) + } + return Mixin +>Mixin : Symbol(Mixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 79)) + +}) + + +const Mixin2F = makeMixin(>(Base: TBase) => { +>Mixin2F : Symbol(Mixin2F, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 5)) +>makeMixin : Symbol(makeMixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 61)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 27)) +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 63)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 27)) + + abstract class Mixin2 extends Base { +>Mixin2 : Symbol(Mixin2, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 80)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 63)) + + bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>bar : Symbol(Mixin2.bar, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 24, 38)) +>foo : Symbol(foo, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 25, 8)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 25, 26)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 25, 26)) + } + return Mixin2 +>Mixin2 : Symbol(Mixin2, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 80)) + +}) + +class MixinApplied extends Mixin2F(MixinF()) {} +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>Mixin2F : Symbol(Mixin2F, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 5)) +>MixinF : Symbol(MixinF, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..337a11c28ca64 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,90 @@ +//// [tests/cases/compiler/mixinMethodsReferringToAppliedClassCheckOrder.ts] //// + +=== mixinMethodsReferringToAppliedClassCheckOrder.ts === +// The mixin classes have methods referring to the class built from them, +// so checking the classes and typing their members first reach the same +// cycle in different places (55640). + +type ConstructorType = abstract new (...args: any[]) => T; +>ConstructorType : ConstructorType +>args : any[] + +function makeMixin, FinalConstructor>( +>makeMixin : , FinalConstructor>(mixinFunction: (Base: TBase) => FinalConstructor) => (Base?: TBase) => FinalConstructor + + mixinFunction: (Base: TBase) => FinalConstructor +>mixinFunction : (Base: TBase) => FinalConstructor +>Base : TBase + +): (Base?: TBase) => FinalConstructor { +>Base : TBase | undefined + + return (Base?: TBase) => { +>(Base?: TBase) => { // do other things with Base, this example is simplified return mixinFunction(Base ?? (Object as any)); } : (Base?: TBase) => FinalConstructor +>Base : TBase | undefined + + // do other things with Base, this example is simplified + return mixinFunction(Base ?? (Object as any)); +>mixinFunction(Base ?? (Object as any)) : FinalConstructor +>mixinFunction : (Base: TBase) => FinalConstructor +>Base ?? (Object as any) : any +>Base : TBase | undefined +>(Object as any) : any +>Object as any : any +>Object : ObjectConstructor + + }; +} + +const MixinF = makeMixin(>(Base: TBase) => { +>MixinF : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase +>makeMixin(>(Base: TBase) => { abstract class Mixin extends Base { foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin}) : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase +>makeMixin : , FinalConstructor>(mixinFunction: (Base: TBase) => FinalConstructor) => (Base?: TBase) => FinalConstructor +>>(Base: TBase) => { abstract class Mixin extends Base { foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin} : >(Base: TBase) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase +>Base : TBase + + abstract class Mixin extends Base { +>Mixin : Mixin +>Base : TBase + + foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>foo : (foo: MixinApplied, extra: boolean) => MixinApplied | boolean +>foo : MixinApplied +>extra : boolean +>extra : boolean + } + return Mixin +>Mixin : ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase + +}) + + +const Mixin2F = makeMixin(>(Base: TBase) => { +>Mixin2F : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>makeMixin(>(Base: TBase) => { abstract class Mixin2 extends Base { bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin2}) : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>makeMixin : , FinalConstructor>(mixinFunction: (Base: TBase) => FinalConstructor) => (Base?: TBase) => FinalConstructor +>>(Base: TBase) => { abstract class Mixin2 extends Base { bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin2} : >(Base: TBase) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>Base : TBase + + abstract class Mixin2 extends Base { +>Mixin2 : Mixin2 +>Base : TBase + + bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>bar : (foo: MixinApplied, extra: boolean) => MixinApplied | boolean +>foo : MixinApplied +>extra : boolean +>extra : boolean + } + return Mixin2 +>Mixin2 : ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase + +}) + +class MixinApplied extends Mixin2F(MixinF()) {} +>MixinApplied : MixinApplied +>Mixin2F(MixinF()) : ((abstract new (...args: any[]) => (Anonymous function).Mixin2) & { prototype: (Anonymous function).Mixin2; }) & ((abstract new (...args: any[]) => (Anonymous function).Mixin) & { prototype: (Anonymous function).Mixin; }) & ConstructorType +>Mixin2F : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>MixinF() : ((abstract new (...args: any[]) => (Anonymous function).Mixin) & { prototype: (Anonymous function).Mixin; }) & ConstructorType +>MixinF : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase + diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..07c9bf3cefd3a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,38 @@ +mixinMethodsReferringToAppliedClassCheckOrder.ts(31,28): error TS2507: Type 'never' is not a constructor function type. + + +==== mixinMethodsReferringToAppliedClassCheckOrder.ts (1 errors) ==== + // The mixin classes have methods referring to the class built from them, + // so checking the classes and typing their members first reach the same + // cycle in different places (55640). + + type ConstructorType = abstract new (...args: any[]) => T; + + function makeMixin, FinalConstructor>( + mixinFunction: (Base: TBase) => FinalConstructor + ): (Base?: TBase) => FinalConstructor { + return (Base?: TBase) => { + // do other things with Base, this example is simplified + return mixinFunction(Base ?? (Object as any)); + }; + } + + const MixinF = makeMixin(>(Base: TBase) => { + abstract class Mixin extends Base { + foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } + } + return Mixin + }) + + + const Mixin2F = makeMixin(>(Base: TBase) => { + abstract class Mixin2 extends Base { + bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } + } + return Mixin2 + }) + + class MixinApplied extends Mixin2F(MixinF()) {} + ~~~~~~~~~~~~~~~~~ +!!! error TS2507: Type 'never' is not a constructor function type. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..e4ac67c169efb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,99 @@ +//// [tests/cases/compiler/mixinMethodsReferringToAppliedClassCheckOrder.ts] //// + +=== mixinMethodsReferringToAppliedClassCheckOrder.ts === +// The mixin classes have methods referring to the class built from them, +// so checking the classes and typing their members first reach the same +// cycle in different places (55640). + +type ConstructorType = abstract new (...args: any[]) => T; +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 21)) +>args : Symbol(args, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 40)) +>T : Symbol(T, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 21)) + +function makeMixin, FinalConstructor>( +>makeMixin : Symbol(makeMixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 61)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>FinalConstructor : Symbol(FinalConstructor, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 54)) + + mixinFunction: (Base: TBase) => FinalConstructor +>mixinFunction : Symbol(mixinFunction, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 73)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 7, 20)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) +>FinalConstructor : Symbol(FinalConstructor, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 54)) + +): (Base?: TBase) => FinalConstructor { +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 8, 4)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) +>FinalConstructor : Symbol(FinalConstructor, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 54)) + + return (Base?: TBase) => { +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 9, 12)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 19)) + + // do other things with Base, this example is simplified + return mixinFunction(Base ?? (Object as any)); +>mixinFunction : Symbol(mixinFunction, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 6, 73)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 9, 12)) +>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + }; +} + +const MixinF = makeMixin(>(Base: TBase) => { +>MixinF : Symbol(MixinF, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 5)) +>makeMixin : Symbol(makeMixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 61)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 26)) +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 62)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 26)) + + abstract class Mixin extends Base { +>Mixin : Symbol(Mixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 79)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 62)) + + foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>foo : Symbol(Mixin.foo, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 16, 37)) +>foo : Symbol(foo, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 17, 8)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 17, 26)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 17, 26)) + } + return Mixin +>Mixin : Symbol(Mixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 79)) + +}) + + +const Mixin2F = makeMixin(>(Base: TBase) => { +>Mixin2F : Symbol(Mixin2F, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 5)) +>makeMixin : Symbol(makeMixin, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 4, 61)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 27)) +>ConstructorType : Symbol(ConstructorType, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 0, 0)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 63)) +>TBase : Symbol(TBase, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 27)) + + abstract class Mixin2 extends Base { +>Mixin2 : Symbol(Mixin2, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 80)) +>Base : Symbol(Base, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 63)) + + bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>bar : Symbol(Mixin2.bar, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 24, 38)) +>foo : Symbol(foo, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 25, 8)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 25, 26)) +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>extra : Symbol(extra, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 25, 26)) + } + return Mixin2 +>Mixin2 : Symbol(Mixin2, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 80)) + +}) + +class MixinApplied extends Mixin2F(MixinF()) {} +>MixinApplied : Symbol(MixinApplied, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 28, 2)) +>Mixin2F : Symbol(Mixin2F, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 23, 5)) +>MixinF : Symbol(MixinF, Decl(mixinMethodsReferringToAppliedClassCheckOrder.ts, 15, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..e17df722dc992 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,90 @@ +//// [tests/cases/compiler/mixinMethodsReferringToAppliedClassCheckOrder.ts] //// + +=== mixinMethodsReferringToAppliedClassCheckOrder.ts === +// The mixin classes have methods referring to the class built from them, +// so checking the classes and typing their members first reach the same +// cycle in different places (55640). + +type ConstructorType = abstract new (...args: any[]) => T; +>ConstructorType : ConstructorType +>args : any[] + +function makeMixin, FinalConstructor>( +>makeMixin : , FinalConstructor>(mixinFunction: (Base: TBase) => FinalConstructor) => (Base?: TBase) => FinalConstructor + + mixinFunction: (Base: TBase) => FinalConstructor +>mixinFunction : (Base: TBase) => FinalConstructor +>Base : TBase + +): (Base?: TBase) => FinalConstructor { +>Base : TBase | undefined + + return (Base?: TBase) => { +>(Base?: TBase) => { // do other things with Base, this example is simplified return mixinFunction(Base ?? (Object as any)); } : (Base?: TBase) => FinalConstructor +>Base : TBase | undefined + + // do other things with Base, this example is simplified + return mixinFunction(Base ?? (Object as any)); +>mixinFunction(Base ?? (Object as any)) : FinalConstructor +>mixinFunction : (Base: TBase) => FinalConstructor +>Base ?? (Object as any) : any +>Base : TBase | undefined +>(Object as any) : any +>Object as any : any +>Object : ObjectConstructor + + }; +} + +const MixinF = makeMixin(>(Base: TBase) => { +>MixinF : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase +>makeMixin(>(Base: TBase) => { abstract class Mixin extends Base { foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin}) : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase +>makeMixin : , FinalConstructor>(mixinFunction: (Base: TBase) => FinalConstructor) => (Base?: TBase) => FinalConstructor +>>(Base: TBase) => { abstract class Mixin extends Base { foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin} : >(Base: TBase) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase +>Base : TBase + + abstract class Mixin extends Base { +>Mixin : Mixin +>Base : TBase + + foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>foo : (foo: MixinApplied, extra: boolean) => MixinApplied | boolean +>foo : MixinApplied +>extra : boolean +>extra : boolean + } + return Mixin +>Mixin : ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase + +}) + + +const Mixin2F = makeMixin(>(Base: TBase) => { +>Mixin2F : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>makeMixin(>(Base: TBase) => { abstract class Mixin2 extends Base { bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin2}) : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>makeMixin : , FinalConstructor>(mixinFunction: (Base: TBase) => FinalConstructor) => (Base?: TBase) => FinalConstructor +>>(Base: TBase) => { abstract class Mixin2 extends Base { bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } } return Mixin2} : >(Base: TBase) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>Base : TBase + + abstract class Mixin2 extends Base { +>Mixin2 : Mixin2 +>Base : TBase + + bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } +>bar : (foo: MixinApplied, extra: boolean) => MixinApplied | boolean +>foo : MixinApplied +>extra : boolean +>extra : boolean + } + return Mixin2 +>Mixin2 : ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase + +}) + +class MixinApplied extends Mixin2F(MixinF()) {} +>MixinApplied : MixinApplied +>Mixin2F(MixinF()) : never +>Mixin2F : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase +>MixinF() : never +>MixinF : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase + diff --git a/tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.errors.txt b/tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.errors.txt new file mode 100644 index 0000000000000..0ba88e426e409 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.errors.txt @@ -0,0 +1,29 @@ +narrowedNeverAfterLoopWithAndCondition.ts(9,9): error TS2322: Type 'false' is not assignable to type 'never'. +narrowedNeverAfterLoopWithAndCondition.ts(17,19): error TS2339: Property 'last_ref' does not exist on type 'never'. + + +==== narrowedNeverAfterLoopWithAndCondition.ts (2 errors) ==== + // value_def is never inside the if. With a && condition, main and + // Strada leak the loop analysis's incomplete never placeholder + // (silentNever), so the property access is silently allowed and only + // the assignment errors. With `while (x)` they report the access. + function f(x: boolean, y: boolean) { + let value_def: { last_ref: boolean } | null = null; + if (value_def) { + while (x && y); + value_def.last_ref = false; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'false' is not assignable to type 'never'. + } + } + + function g(x: boolean) { + let value_def: { last_ref: boolean } | null = null; + if (value_def) { + while (x); + value_def.last_ref = false; + ~~~~~~~~ +!!! error TS2339: Property 'last_ref' does not exist on type 'never'. + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.symbols b/tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.symbols new file mode 100644 index 0000000000000..4320e2396f293 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.symbols @@ -0,0 +1,47 @@ +//// [tests/cases/compiler/narrowedNeverAfterLoopWithAndCondition.ts] //// + +=== narrowedNeverAfterLoopWithAndCondition.ts === +// value_def is never inside the if. With a && condition, main and +// Strada leak the loop analysis's incomplete never placeholder +// (silentNever), so the property access is silently allowed and only +// the assignment errors. With `while (x)` they report the access. +function f(x: boolean, y: boolean) { +>f : Symbol(f, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 0, 0)) +>x : Symbol(x, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 4, 11)) +>y : Symbol(y, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 4, 22)) + + let value_def: { last_ref: boolean } | null = null; +>value_def : Symbol(value_def, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 5, 7)) +>last_ref : Symbol(last_ref, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 5, 20)) + + if (value_def) { +>value_def : Symbol(value_def, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 5, 7)) + + while (x && y); +>x : Symbol(x, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 4, 11)) +>y : Symbol(y, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 4, 22)) + + value_def.last_ref = false; +>value_def : Symbol(value_def, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 5, 7)) + } +} + +function g(x: boolean) { +>g : Symbol(g, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 10, 1)) +>x : Symbol(x, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 12, 11)) + + let value_def: { last_ref: boolean } | null = null; +>value_def : Symbol(value_def, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 13, 7)) +>last_ref : Symbol(last_ref, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 13, 20)) + + if (value_def) { +>value_def : Symbol(value_def, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 13, 7)) + + while (x); +>x : Symbol(x, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 12, 11)) + + value_def.last_ref = false; +>value_def : Symbol(value_def, Decl(narrowedNeverAfterLoopWithAndCondition.ts, 13, 7)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.types b/tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.types new file mode 100644 index 0000000000000..ec7b2e4bfcb90 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/narrowedNeverAfterLoopWithAndCondition.types @@ -0,0 +1,56 @@ +//// [tests/cases/compiler/narrowedNeverAfterLoopWithAndCondition.ts] //// + +=== narrowedNeverAfterLoopWithAndCondition.ts === +// value_def is never inside the if. With a && condition, main and +// Strada leak the loop analysis's incomplete never placeholder +// (silentNever), so the property access is silently allowed and only +// the assignment errors. With `while (x)` they report the access. +function f(x: boolean, y: boolean) { +>f : (x: boolean, y: boolean) => void +>x : boolean +>y : boolean + + let value_def: { last_ref: boolean } | null = null; +>value_def : { last_ref: boolean; } | null +>last_ref : boolean + + if (value_def) { +>value_def : null + + while (x && y); +>x && y : boolean +>x : boolean +>y : boolean + + value_def.last_ref = false; +>value_def.last_ref = false : false +>value_def.last_ref : any +>value_def : never +>last_ref : any +>false : false + } +} + +function g(x: boolean) { +>g : (x: boolean) => void +>x : boolean + + let value_def: { last_ref: boolean } | null = null; +>value_def : { last_ref: boolean; } | null +>last_ref : boolean + + if (value_def) { +>value_def : null + + while (x); +>x : boolean + + value_def.last_ref = false; +>value_def.last_ref = false : false +>value_def.last_ref : any +>value_def : never +>last_ref : any +>false : false + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..3d0dd7f90da44 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,75 @@ +nestedCallContextualTypeCheckOrder.ts(12,7): error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. +nestedCallContextualTypeCheckOrder.ts(13,10): error TS2345: Argument of type '{ cb: (x: never) => never; v: number; }' is not assignable to parameter of type '{ cb: (x: number) => void; v: number; }'. + Types of property 'cb' are incompatible. + Type '(x: never) => never' is not assignable to type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. +nestedCallContextualTypeCheckOrder.ts(14,15): error TS7006: Parameter 'x' implicitly has an 'any' type. +nestedCallContextualTypeCheckOrder.ts(15,7): error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. +nestedCallContextualTypeCheckOrder.ts(16,7): error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. +nestedCallContextualTypeCheckOrder.ts(17,10): error TS2345: Argument of type '() => Generator<(x: never) => never, void, any>' is not assignable to parameter of type '() => Generator<(x: number) => void, any, any>'. + Type 'Generator<(x: never) => never, void, any>' is not assignable to type 'Generator<(x: number) => void, any, any>'. + The types returned by 'next(...)' are incompatible between these types. + Type 'IteratorResult<(x: never) => never, void>' is not assignable to type 'IteratorResult<(x: number) => void, any>'. + Type 'IteratorYieldResult<(x: never) => never>' is not assignable to type 'IteratorResult<(x: number) => void, any>'. + Type 'IteratorYieldResult<(x: never) => never>' is not assignable to type 'IteratorYieldResult<(x: number) => void>'. + Type '(x: never) => never' is not assignable to type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. + + +==== nestedCallContextualTypeCheckOrder.ts (6 errors) ==== + // A generic call whose contextual type comes from an enclosing call is + // resolved after it, whichever is queried first, through every expression + // that passes the contextual type on. + + declare function outer(cb: (x: T) => void, v: T): void; + declare function outerObj(o: { cb: (x: T) => void; v: T }): void; + declare function outerGen(g: () => Generator<(x: T) => void>, v: T): void; + declare function wrap(f: U): U; + declare function tag(s: TemplateStringsArray, cb: (x: T) => void, v: T): void; + declare function tagWrap(s: TemplateStringsArray, f: U): U; + + outer(wrap((x) => x.toFixed())!, 1); + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. +!!! error TS2345: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'never'. + outerObj({ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 }); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '{ cb: (x: never) => never; v: number; }' is not assignable to parameter of type '{ cb: (x: number) => void; v: number; }'. +!!! error TS2345: Types of property 'cb' are incompatible. +!!! error TS2345: Type '(x: never) => never' is not assignable to type '(x: number) => void'. +!!! error TS2345: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'never'. + outer(([wrap((x) => x.toFixed())] as const)[0], 1); + ~ +!!! error TS7006: Parameter 'x' implicitly has an 'any' type. + tag`${wrap((x) => x.toFixed())}${1}`; + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. +!!! error TS2345: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'never'. + outer(tagWrap`${(x) => x.toFixed()}`, 1); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. +!!! error TS2345: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'never'. + outerGen(function* () { yield wrap((x) => x.toFixed()); }, 1); + ~~~~~~~~ +!!! error TS2345: Argument of type '() => Generator<(x: never) => never, void, any>' is not assignable to parameter of type '() => Generator<(x: number) => void, any, any>'. +!!! error TS2345: Type 'Generator<(x: never) => never, void, any>' is not assignable to type 'Generator<(x: number) => void, any, any>'. +!!! error TS2345: The types returned by 'next(...)' are incompatible between these types. +!!! error TS2345: Type 'IteratorResult<(x: never) => never, void>' is not assignable to type 'IteratorResult<(x: number) => void, any>'. +!!! error TS2345: Type 'IteratorYieldResult<(x: never) => never>' is not assignable to type 'IteratorResult<(x: number) => void, any>'. +!!! error TS2345: Type 'IteratorYieldResult<(x: never) => never>' is not assignable to type 'IteratorYieldResult<(x: number) => void>'. +!!! error TS2345: Type '(x: never) => never' is not assignable to type '(x: number) => void'. +!!! error TS2345: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'never'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..c570d8990f40c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).symbols @@ -0,0 +1,103 @@ +//// [tests/cases/compiler/nestedCallContextualTypeCheckOrder.ts] //// + +=== nestedCallContextualTypeCheckOrder.ts === +// A generic call whose contextual type comes from an enclosing call is +// resolved after it, whichever is queried first, through every expression +// that passes the contextual type on. + +declare function outer(cb: (x: T) => void, v: T): void; +>outer : Symbol(outer, Decl(nestedCallContextualTypeCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 23)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 26)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 31)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 23)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 45)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 23)) + +declare function outerObj(o: { cb: (x: T) => void; v: T }): void; +>outerObj : Symbol(outerObj, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 58)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 26)) +>o : Symbol(o, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 29)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 33)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 39)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 26)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 53)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 26)) + +declare function outerGen(g: () => Generator<(x: T) => void>, v: T): void; +>outerGen : Symbol(outerGen, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 68)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 26)) +>g : Symbol(g, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 29)) +>Generator : Symbol(Generator, Decl(lib.es2015.generator.d.ts, --, --)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 49)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 26)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 64)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 26)) + +declare function wrap(f: U): U; +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 22)) +>f : Symbol(f, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 25)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 22)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 22)) + +declare function tag(s: TemplateStringsArray, cb: (x: T) => void, v: T): void; +>tag : Symbol(tag, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 34)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 21)) +>s : Symbol(s, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 24)) +>TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.es5.d.ts, --, --)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 48)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 54)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 21)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 68)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 21)) + +declare function tagWrap(s: TemplateStringsArray, f: U): U; +>tagWrap : Symbol(tagWrap, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 81)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 9, 25)) +>s : Symbol(s, Decl(nestedCallContextualTypeCheckOrder.ts, 9, 28)) +>TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.es5.d.ts, --, --)) +>f : Symbol(f, Decl(nestedCallContextualTypeCheckOrder.ts, 9, 52)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 9, 25)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 9, 25)) + +outer(wrap((x) => x.toFixed())!, 1); +>outer : Symbol(outer, Decl(nestedCallContextualTypeCheckOrder.ts, 0, 0)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 11, 12)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 11, 12)) + +outerObj({ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 }); +>outerObj : Symbol(outerObj, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 58)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrder.ts, 12, 15)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 12, 26)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 12, 26)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrder.ts, 12, 47)) + +outer(([wrap((x) => x.toFixed())] as const)[0], 1); +>outer : Symbol(outer, Decl(nestedCallContextualTypeCheckOrder.ts, 0, 0)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 13, 14)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 13, 14)) +>const : Symbol(const) +>0 : Symbol(0) + +tag`${wrap((x) => x.toFixed())}${1}`; +>tag : Symbol(tag, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 34)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 14, 12)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 14, 12)) + +outer(tagWrap`${(x) => x.toFixed()}`, 1); +>outer : Symbol(outer, Decl(nestedCallContextualTypeCheckOrder.ts, 0, 0)) +>tagWrap : Symbol(tagWrap, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 81)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 15, 17)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 15, 17)) + +outerGen(function* () { yield wrap((x) => x.toFixed()); }, 1); +>outerGen : Symbol(outerGen, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 68)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 16, 36)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 16, 36)) + diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..2d6dc49211323 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=default).types @@ -0,0 +1,134 @@ +//// [tests/cases/compiler/nestedCallContextualTypeCheckOrder.ts] //// + +=== nestedCallContextualTypeCheckOrder.ts === +// A generic call whose contextual type comes from an enclosing call is +// resolved after it, whichever is queried first, through every expression +// that passes the contextual type on. + +declare function outer(cb: (x: T) => void, v: T): void; +>outer : (cb: (x: T) => void, v: T) => void +>cb : (x: T) => void +>x : T +>v : T + +declare function outerObj(o: { cb: (x: T) => void; v: T }): void; +>outerObj : (o: { cb: (x: T) => void; v: T; }) => void +>o : { cb: (x: T) => void; v: T; } +>cb : (x: T) => void +>x : T +>v : T + +declare function outerGen(g: () => Generator<(x: T) => void>, v: T): void; +>outerGen : (g: () => Generator<(x: T) => void>, v: T) => void +>g : () => Generator<(x: T) => void> +>x : T +>v : T + +declare function wrap(f: U): U; +>wrap : (f: U) => U +>f : U + +declare function tag(s: TemplateStringsArray, cb: (x: T) => void, v: T): void; +>tag : (s: TemplateStringsArray, cb: (x: T) => void, v: T) => void +>s : TemplateStringsArray +>cb : (x: T) => void +>x : T +>v : T + +declare function tagWrap(s: TemplateStringsArray, f: U): U; +>tagWrap : (s: TemplateStringsArray, f: U) => U +>s : TemplateStringsArray +>f : U + +outer(wrap((x) => x.toFixed())!, 1); +>outer(wrap((x) => x.toFixed())!, 1) : void +>outer : (cb: (x: T) => void, v: T) => void +>wrap((x) => x.toFixed())! : (x: never) => never +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>1 : 1 + +outerObj({ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 }); +>outerObj({ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 }) : void +>outerObj : (o: { cb: (x: T) => void; v: T; }) => void +>{ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 } : { cb: (x: never) => never; v: number; } +>{ cb: wrap((x) => x.toFixed()) } : { cb: (x: never) => never; } +>cb : (x: never) => never +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>v : number +>1 : 1 + +outer(([wrap((x) => x.toFixed())] as const)[0], 1); +>outer(([wrap((x) => x.toFixed())] as const)[0], 1) : void +>outer : (cb: (x: T) => void, v: T) => void +>([wrap((x) => x.toFixed())] as const)[0] : (x: any) => any +>([wrap((x) => x.toFixed())] as const) : readonly [(x: any) => any] +>[wrap((x) => x.toFixed())] as const : readonly [(x: any) => any] +>[wrap((x) => x.toFixed())] : readonly [(x: any) => any] +>wrap((x) => x.toFixed()) : (x: any) => any +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: any) => any +>x : any +>x.toFixed() : any +>x.toFixed : any +>x : any +>toFixed : any +>0 : 0 +>1 : 1 + +tag`${wrap((x) => x.toFixed())}${1}`; +>tag`${wrap((x) => x.toFixed())}${1}` : void +>tag : (s: TemplateStringsArray, cb: (x: T) => void, v: T) => void +>`${wrap((x) => x.toFixed())}${1}` : string +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>1 : 1 + +outer(tagWrap`${(x) => x.toFixed()}`, 1); +>outer(tagWrap`${(x) => x.toFixed()}`, 1) : void +>outer : (cb: (x: T) => void, v: T) => void +>tagWrap`${(x) => x.toFixed()}` : (x: never) => never +>tagWrap : (s: TemplateStringsArray, f: U) => U +>`${(x) => x.toFixed()}` : string +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>1 : 1 + +outerGen(function* () { yield wrap((x) => x.toFixed()); }, 1); +>outerGen(function* () { yield wrap((x) => x.toFixed()); }, 1) : void +>outerGen : (g: () => Generator<(x: T) => void>, v: T) => void +>function* () { yield wrap((x) => x.toFixed()); } : () => Generator<(x: never) => never, void, any> +>yield wrap((x) => x.toFixed()) : any +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>1 : 1 + diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..3d0dd7f90da44 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,75 @@ +nestedCallContextualTypeCheckOrder.ts(12,7): error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. +nestedCallContextualTypeCheckOrder.ts(13,10): error TS2345: Argument of type '{ cb: (x: never) => never; v: number; }' is not assignable to parameter of type '{ cb: (x: number) => void; v: number; }'. + Types of property 'cb' are incompatible. + Type '(x: never) => never' is not assignable to type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. +nestedCallContextualTypeCheckOrder.ts(14,15): error TS7006: Parameter 'x' implicitly has an 'any' type. +nestedCallContextualTypeCheckOrder.ts(15,7): error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. +nestedCallContextualTypeCheckOrder.ts(16,7): error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. +nestedCallContextualTypeCheckOrder.ts(17,10): error TS2345: Argument of type '() => Generator<(x: never) => never, void, any>' is not assignable to parameter of type '() => Generator<(x: number) => void, any, any>'. + Type 'Generator<(x: never) => never, void, any>' is not assignable to type 'Generator<(x: number) => void, any, any>'. + The types returned by 'next(...)' are incompatible between these types. + Type 'IteratorResult<(x: never) => never, void>' is not assignable to type 'IteratorResult<(x: number) => void, any>'. + Type 'IteratorYieldResult<(x: never) => never>' is not assignable to type 'IteratorResult<(x: number) => void, any>'. + Type 'IteratorYieldResult<(x: never) => never>' is not assignable to type 'IteratorYieldResult<(x: number) => void>'. + Type '(x: never) => never' is not assignable to type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. + + +==== nestedCallContextualTypeCheckOrder.ts (6 errors) ==== + // A generic call whose contextual type comes from an enclosing call is + // resolved after it, whichever is queried first, through every expression + // that passes the contextual type on. + + declare function outer(cb: (x: T) => void, v: T): void; + declare function outerObj(o: { cb: (x: T) => void; v: T }): void; + declare function outerGen(g: () => Generator<(x: T) => void>, v: T): void; + declare function wrap(f: U): U; + declare function tag(s: TemplateStringsArray, cb: (x: T) => void, v: T): void; + declare function tagWrap(s: TemplateStringsArray, f: U): U; + + outer(wrap((x) => x.toFixed())!, 1); + ~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. +!!! error TS2345: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'never'. + outerObj({ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 }); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '{ cb: (x: never) => never; v: number; }' is not assignable to parameter of type '{ cb: (x: number) => void; v: number; }'. +!!! error TS2345: Types of property 'cb' are incompatible. +!!! error TS2345: Type '(x: never) => never' is not assignable to type '(x: number) => void'. +!!! error TS2345: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'never'. + outer(([wrap((x) => x.toFixed())] as const)[0], 1); + ~ +!!! error TS7006: Parameter 'x' implicitly has an 'any' type. + tag`${wrap((x) => x.toFixed())}${1}`; + ~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. +!!! error TS2345: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'never'. + outer(tagWrap`${(x) => x.toFixed()}`, 1); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '(x: never) => never' is not assignable to parameter of type '(x: number) => void'. +!!! error TS2345: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'never'. + outerGen(function* () { yield wrap((x) => x.toFixed()); }, 1); + ~~~~~~~~ +!!! error TS2345: Argument of type '() => Generator<(x: never) => never, void, any>' is not assignable to parameter of type '() => Generator<(x: number) => void, any, any>'. +!!! error TS2345: Type 'Generator<(x: never) => never, void, any>' is not assignable to type 'Generator<(x: number) => void, any, any>'. +!!! error TS2345: The types returned by 'next(...)' are incompatible between these types. +!!! error TS2345: Type 'IteratorResult<(x: never) => never, void>' is not assignable to type 'IteratorResult<(x: number) => void, any>'. +!!! error TS2345: Type 'IteratorYieldResult<(x: never) => never>' is not assignable to type 'IteratorResult<(x: number) => void, any>'. +!!! error TS2345: Type 'IteratorYieldResult<(x: never) => never>' is not assignable to type 'IteratorYieldResult<(x: number) => void>'. +!!! error TS2345: Type '(x: never) => never' is not assignable to type '(x: number) => void'. +!!! error TS2345: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2345: Type 'number' is not assignable to type 'never'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..c570d8990f40c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,103 @@ +//// [tests/cases/compiler/nestedCallContextualTypeCheckOrder.ts] //// + +=== nestedCallContextualTypeCheckOrder.ts === +// A generic call whose contextual type comes from an enclosing call is +// resolved after it, whichever is queried first, through every expression +// that passes the contextual type on. + +declare function outer(cb: (x: T) => void, v: T): void; +>outer : Symbol(outer, Decl(nestedCallContextualTypeCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 23)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 26)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 31)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 23)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 45)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 23)) + +declare function outerObj(o: { cb: (x: T) => void; v: T }): void; +>outerObj : Symbol(outerObj, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 58)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 26)) +>o : Symbol(o, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 29)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 33)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 39)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 26)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 53)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 26)) + +declare function outerGen(g: () => Generator<(x: T) => void>, v: T): void; +>outerGen : Symbol(outerGen, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 68)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 26)) +>g : Symbol(g, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 29)) +>Generator : Symbol(Generator, Decl(lib.es2015.generator.d.ts, --, --)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 49)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 26)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 64)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 26)) + +declare function wrap(f: U): U; +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 22)) +>f : Symbol(f, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 25)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 22)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 22)) + +declare function tag(s: TemplateStringsArray, cb: (x: T) => void, v: T): void; +>tag : Symbol(tag, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 34)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 21)) +>s : Symbol(s, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 24)) +>TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.es5.d.ts, --, --)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 48)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 54)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 21)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 68)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 21)) + +declare function tagWrap(s: TemplateStringsArray, f: U): U; +>tagWrap : Symbol(tagWrap, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 81)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 9, 25)) +>s : Symbol(s, Decl(nestedCallContextualTypeCheckOrder.ts, 9, 28)) +>TemplateStringsArray : Symbol(TemplateStringsArray, Decl(lib.es5.d.ts, --, --)) +>f : Symbol(f, Decl(nestedCallContextualTypeCheckOrder.ts, 9, 52)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 9, 25)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrder.ts, 9, 25)) + +outer(wrap((x) => x.toFixed())!, 1); +>outer : Symbol(outer, Decl(nestedCallContextualTypeCheckOrder.ts, 0, 0)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 11, 12)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 11, 12)) + +outerObj({ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 }); +>outerObj : Symbol(outerObj, Decl(nestedCallContextualTypeCheckOrder.ts, 4, 58)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrder.ts, 12, 15)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 12, 26)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 12, 26)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrder.ts, 12, 47)) + +outer(([wrap((x) => x.toFixed())] as const)[0], 1); +>outer : Symbol(outer, Decl(nestedCallContextualTypeCheckOrder.ts, 0, 0)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 13, 14)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 13, 14)) +>const : Symbol(const) +>0 : Symbol(0) + +tag`${wrap((x) => x.toFixed())}${1}`; +>tag : Symbol(tag, Decl(nestedCallContextualTypeCheckOrder.ts, 7, 34)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 14, 12)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 14, 12)) + +outer(tagWrap`${(x) => x.toFixed()}`, 1); +>outer : Symbol(outer, Decl(nestedCallContextualTypeCheckOrder.ts, 0, 0)) +>tagWrap : Symbol(tagWrap, Decl(nestedCallContextualTypeCheckOrder.ts, 8, 81)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 15, 17)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 15, 17)) + +outerGen(function* () { yield wrap((x) => x.toFixed()); }, 1); +>outerGen : Symbol(outerGen, Decl(nestedCallContextualTypeCheckOrder.ts, 5, 68)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrder.ts, 6, 77)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 16, 36)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrder.ts, 16, 36)) + diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..2d6dc49211323 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,134 @@ +//// [tests/cases/compiler/nestedCallContextualTypeCheckOrder.ts] //// + +=== nestedCallContextualTypeCheckOrder.ts === +// A generic call whose contextual type comes from an enclosing call is +// resolved after it, whichever is queried first, through every expression +// that passes the contextual type on. + +declare function outer(cb: (x: T) => void, v: T): void; +>outer : (cb: (x: T) => void, v: T) => void +>cb : (x: T) => void +>x : T +>v : T + +declare function outerObj(o: { cb: (x: T) => void; v: T }): void; +>outerObj : (o: { cb: (x: T) => void; v: T; }) => void +>o : { cb: (x: T) => void; v: T; } +>cb : (x: T) => void +>x : T +>v : T + +declare function outerGen(g: () => Generator<(x: T) => void>, v: T): void; +>outerGen : (g: () => Generator<(x: T) => void>, v: T) => void +>g : () => Generator<(x: T) => void> +>x : T +>v : T + +declare function wrap(f: U): U; +>wrap : (f: U) => U +>f : U + +declare function tag(s: TemplateStringsArray, cb: (x: T) => void, v: T): void; +>tag : (s: TemplateStringsArray, cb: (x: T) => void, v: T) => void +>s : TemplateStringsArray +>cb : (x: T) => void +>x : T +>v : T + +declare function tagWrap(s: TemplateStringsArray, f: U): U; +>tagWrap : (s: TemplateStringsArray, f: U) => U +>s : TemplateStringsArray +>f : U + +outer(wrap((x) => x.toFixed())!, 1); +>outer(wrap((x) => x.toFixed())!, 1) : void +>outer : (cb: (x: T) => void, v: T) => void +>wrap((x) => x.toFixed())! : (x: never) => never +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>1 : 1 + +outerObj({ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 }); +>outerObj({ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 }) : void +>outerObj : (o: { cb: (x: T) => void; v: T; }) => void +>{ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 } : { cb: (x: never) => never; v: number; } +>{ cb: wrap((x) => x.toFixed()) } : { cb: (x: never) => never; } +>cb : (x: never) => never +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>v : number +>1 : 1 + +outer(([wrap((x) => x.toFixed())] as const)[0], 1); +>outer(([wrap((x) => x.toFixed())] as const)[0], 1) : void +>outer : (cb: (x: T) => void, v: T) => void +>([wrap((x) => x.toFixed())] as const)[0] : (x: any) => any +>([wrap((x) => x.toFixed())] as const) : readonly [(x: any) => any] +>[wrap((x) => x.toFixed())] as const : readonly [(x: any) => any] +>[wrap((x) => x.toFixed())] : readonly [(x: any) => any] +>wrap((x) => x.toFixed()) : (x: any) => any +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: any) => any +>x : any +>x.toFixed() : any +>x.toFixed : any +>x : any +>toFixed : any +>0 : 0 +>1 : 1 + +tag`${wrap((x) => x.toFixed())}${1}`; +>tag`${wrap((x) => x.toFixed())}${1}` : void +>tag : (s: TemplateStringsArray, cb: (x: T) => void, v: T) => void +>`${wrap((x) => x.toFixed())}${1}` : string +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>1 : 1 + +outer(tagWrap`${(x) => x.toFixed()}`, 1); +>outer(tagWrap`${(x) => x.toFixed()}`, 1) : void +>outer : (cb: (x: T) => void, v: T) => void +>tagWrap`${(x) => x.toFixed()}` : (x: never) => never +>tagWrap : (s: TemplateStringsArray, f: U) => U +>`${(x) => x.toFixed()}` : string +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>1 : 1 + +outerGen(function* () { yield wrap((x) => x.toFixed()); }, 1); +>outerGen(function* () { yield wrap((x) => x.toFixed()); }, 1) : void +>outerGen : (g: () => Generator<(x: T) => void>, v: T) => void +>function* () { yield wrap((x) => x.toFixed()); } : () => Generator<(x: never) => never, void, any> +>yield wrap((x) => x.toFixed()) : any +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>1 : 1 + diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).errors.txt new file mode 100644 index 0000000000000..c6184fc4a6ce6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).errors.txt @@ -0,0 +1,35 @@ +nestedCallContextualTypeCheckOrderJsx.tsx(11,18): error TS2322: Type '(x: never) => never' is not assignable to type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. +nestedCallContextualTypeCheckOrderJsx.tsx(12,12): error TS2322: Type '{ cb: (x: never) => never; v: number; }' is not assignable to type '{ cb: (x: number) => void; v: number; }'. + Types of property 'cb' are incompatible. + Type '(x: never) => never' is not assignable to type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. + + +==== nestedCallContextualTypeCheckOrderJsx.tsx (2 errors) ==== + // A generic call in a JSX attribute is resolved after the element, whichever + // is queried first. + + declare namespace JSX { + interface Element {} + interface IntrinsicElements {} + } + declare function Outer(props: { cb: (x: T) => void; v: T }): JSX.Element; + declare function wrap(f: U): U; + + const a = x.toFixed())} v={1} />; + ~~ +!!! error TS2322: Type '(x: never) => never' is not assignable to type '(x: number) => void'. +!!! error TS2322: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2322: Type 'number' is not assignable to type 'never'. +!!! related TS6500 nestedCallContextualTypeCheckOrderJsx.tsx:8:36: The expected type comes from property 'cb' which is declared here on type '{ cb: (x: number) => void; v: number; }' + const b = x.toFixed()) }} v={1} />; + ~~~~~ +!!! error TS2322: Type '{ cb: (x: never) => never; v: number; }' is not assignable to type '{ cb: (x: number) => void; v: number; }'. +!!! error TS2322: Types of property 'cb' are incompatible. +!!! error TS2322: Type '(x: never) => never' is not assignable to type '(x: number) => void'. +!!! error TS2322: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2322: Type 'number' is not assignable to type 'never'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).symbols new file mode 100644 index 0000000000000..a6cd6b32cc61a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).symbols @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/nestedCallContextualTypeCheckOrderJsx.tsx] //// + +=== nestedCallContextualTypeCheckOrderJsx.tsx === +// A generic call in a JSX attribute is resolved after the element, whichever +// is queried first. + +declare namespace JSX { +>JSX : Symbol(JSX, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 0, 0)) + + interface Element {} +>Element : Symbol(Element, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 3, 23)) + + interface IntrinsicElements {} +>IntrinsicElements : Symbol(IntrinsicElements, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 4, 24)) +} +declare function Outer(props: { cb: (x: T) => void; v: T }): JSX.Element; +>Outer : Symbol(Outer, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 6, 1)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 23)) +>props : Symbol(props, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 26)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 34)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 40)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 23)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 54)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 23)) +>JSX : Symbol(JSX, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 0, 0)) +>Element : Symbol(JSX.Element, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 3, 23)) + +declare function wrap(f: U): U; +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 76)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 8, 22)) +>f : Symbol(f, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 8, 25)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 8, 22)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 8, 22)) + +const a = x.toFixed())} v={1} />; +>a : Symbol(a, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 10, 5)) +>Outer : Symbol(Outer, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 6, 1)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 10, 16)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 76)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 10, 27)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 10, 27)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 10, 46)) + +const b = x.toFixed()) }} v={1} />; +>b : Symbol(b, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 11, 5)) +>Outer : Symbol(Outer, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 6, 1)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 11, 22)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 76)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 11, 33)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 11, 33)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 11, 54)) + diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).types new file mode 100644 index 0000000000000..2f5dff0329e96 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=default).types @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/nestedCallContextualTypeCheckOrderJsx.tsx] //// + +=== nestedCallContextualTypeCheckOrderJsx.tsx === +// A generic call in a JSX attribute is resolved after the element, whichever +// is queried first. + +declare namespace JSX { + interface Element {} + interface IntrinsicElements {} +} +declare function Outer(props: { cb: (x: T) => void; v: T }): JSX.Element; +>Outer : (props: { cb: (x: T) => void; v: T; }) => JSX.Element +>props : { cb: (x: T) => void; v: T; } +>cb : (x: T) => void +>x : T +>v : T +>JSX : any + +declare function wrap(f: U): U; +>wrap : (f: U) => U +>f : U + +const a = x.toFixed())} v={1} />; +>a : JSX.Element +> x.toFixed())} v={1} /> : JSX.Element +>Outer : (props: { cb: (x: T) => void; v: T; }) => JSX.Element +>cb : (x: never) => never +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>v : number +>1 : 1 + +const b = x.toFixed()) }} v={1} />; +>b : JSX.Element +> x.toFixed()) }} v={1} /> : JSX.Element +>Outer : (props: { cb: (x: T) => void; v: T; }) => JSX.Element +>{ cb: wrap((x) => x.toFixed()) } : { cb: (x: never) => never; } +>cb : (x: never) => never +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>v : number +>1 : 1 + diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..c6184fc4a6ce6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).errors.txt @@ -0,0 +1,35 @@ +nestedCallContextualTypeCheckOrderJsx.tsx(11,18): error TS2322: Type '(x: never) => never' is not assignable to type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. +nestedCallContextualTypeCheckOrderJsx.tsx(12,12): error TS2322: Type '{ cb: (x: never) => never; v: number; }' is not assignable to type '{ cb: (x: number) => void; v: number; }'. + Types of property 'cb' are incompatible. + Type '(x: never) => never' is not assignable to type '(x: number) => void'. + Types of parameters 'x' and 'x' are incompatible. + Type 'number' is not assignable to type 'never'. + + +==== nestedCallContextualTypeCheckOrderJsx.tsx (2 errors) ==== + // A generic call in a JSX attribute is resolved after the element, whichever + // is queried first. + + declare namespace JSX { + interface Element {} + interface IntrinsicElements {} + } + declare function Outer(props: { cb: (x: T) => void; v: T }): JSX.Element; + declare function wrap(f: U): U; + + const a = x.toFixed())} v={1} />; + ~~ +!!! error TS2322: Type '(x: never) => never' is not assignable to type '(x: number) => void'. +!!! error TS2322: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2322: Type 'number' is not assignable to type 'never'. +!!! related TS6500 nestedCallContextualTypeCheckOrderJsx.tsx:8:36: The expected type comes from property 'cb' which is declared here on type '{ cb: (x: number) => void; v: number; }' + const b = x.toFixed()) }} v={1} />; + ~~~~~ +!!! error TS2322: Type '{ cb: (x: never) => never; v: number; }' is not assignable to type '{ cb: (x: number) => void; v: number; }'. +!!! error TS2322: Types of property 'cb' are incompatible. +!!! error TS2322: Type '(x: never) => never' is not assignable to type '(x: number) => void'. +!!! error TS2322: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2322: Type 'number' is not assignable to type 'never'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..a6cd6b32cc61a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).symbols @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/nestedCallContextualTypeCheckOrderJsx.tsx] //// + +=== nestedCallContextualTypeCheckOrderJsx.tsx === +// A generic call in a JSX attribute is resolved after the element, whichever +// is queried first. + +declare namespace JSX { +>JSX : Symbol(JSX, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 0, 0)) + + interface Element {} +>Element : Symbol(Element, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 3, 23)) + + interface IntrinsicElements {} +>IntrinsicElements : Symbol(IntrinsicElements, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 4, 24)) +} +declare function Outer(props: { cb: (x: T) => void; v: T }): JSX.Element; +>Outer : Symbol(Outer, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 6, 1)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 23)) +>props : Symbol(props, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 26)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 34)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 40)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 23)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 54)) +>T : Symbol(T, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 23)) +>JSX : Symbol(JSX, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 0, 0)) +>Element : Symbol(JSX.Element, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 3, 23)) + +declare function wrap(f: U): U; +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 76)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 8, 22)) +>f : Symbol(f, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 8, 25)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 8, 22)) +>U : Symbol(U, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 8, 22)) + +const a = x.toFixed())} v={1} />; +>a : Symbol(a, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 10, 5)) +>Outer : Symbol(Outer, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 6, 1)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 10, 16)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 76)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 10, 27)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 10, 27)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 10, 46)) + +const b = x.toFixed()) }} v={1} />; +>b : Symbol(b, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 11, 5)) +>Outer : Symbol(Outer, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 6, 1)) +>cb : Symbol(cb, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 11, 22)) +>wrap : Symbol(wrap, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 7, 76)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 11, 33)) +>x : Symbol(x, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 11, 33)) +>v : Symbol(v, Decl(nestedCallContextualTypeCheckOrderJsx.tsx, 11, 54)) + diff --git a/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).types new file mode 100644 index 0000000000000..2f5dff0329e96 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedCallContextualTypeCheckOrderJsx(checkorder=typesfirst).types @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/nestedCallContextualTypeCheckOrderJsx.tsx] //// + +=== nestedCallContextualTypeCheckOrderJsx.tsx === +// A generic call in a JSX attribute is resolved after the element, whichever +// is queried first. + +declare namespace JSX { + interface Element {} + interface IntrinsicElements {} +} +declare function Outer(props: { cb: (x: T) => void; v: T }): JSX.Element; +>Outer : (props: { cb: (x: T) => void; v: T; }) => JSX.Element +>props : { cb: (x: T) => void; v: T; } +>cb : (x: T) => void +>x : T +>v : T +>JSX : any + +declare function wrap(f: U): U; +>wrap : (f: U) => U +>f : U + +const a = x.toFixed())} v={1} />; +>a : JSX.Element +> x.toFixed())} v={1} /> : JSX.Element +>Outer : (props: { cb: (x: T) => void; v: T; }) => JSX.Element +>cb : (x: never) => never +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>v : number +>1 : 1 + +const b = x.toFixed()) }} v={1} />; +>b : JSX.Element +> x.toFixed()) }} v={1} /> : JSX.Element +>Outer : (props: { cb: (x: T) => void; v: T; }) => JSX.Element +>{ cb: wrap((x) => x.toFixed()) } : { cb: (x: never) => never; } +>cb : (x: never) => never +>wrap((x) => x.toFixed()) : (x: never) => never +>wrap : (f: U) => U +>(x) => x.toFixed() : (x: never) => never +>x : never +>x.toFixed() : never +>x.toFixed : never +>x : never +>toFixed : never +>v : number +>1 : 1 + diff --git a/tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.errors.txt b/tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.errors.txt new file mode 100644 index 0000000000000..c5f982be59dda --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.errors.txt @@ -0,0 +1,38 @@ +nestedGenericArrayAssignabilityAfterErrors.ts(14,27): error TS2322: Type 'boolean' is not assignable to type 'number'. +nestedGenericArrayAssignabilityAfterErrors.ts(17,17): error TS2322: Type 'boolean' is not assignable to type 'number'. + + +==== nestedGenericArrayAssignabilityAfterErrors.ts (2 errors) ==== + // Assigning DataTypeThree to DataTypeThree, and likewise for + // DataTypeTwo, must be reported whether or not earlier assignments errored. + + type TypeA = number; + type TypeB = boolean; + type DataTypeTwo = { + one: Array<{ two: Array }>; + }; + type DataTypeThree = { + one: Array<{ two: Array<{ three: Array }> }>; + }; + + let testingThreeErr: DataTypeThree = { + one: [{ two: [{ three: [true] }] }] + ~~~~ +!!! error TS2322: Type 'boolean' is not assignable to type 'number'. + }; + let testingTwoErr: DataTypeTwo = { + one: [{ two: [false] }] + ~~~~~ +!!! error TS2322: Type 'boolean' is not assignable to type 'number'. + }; + + let testingThree: DataTypeThree = { + one: [{ two: [{ three: [5] }] }] + }; + let t3a: DataTypeThree = testingThree; + + let testingTwo: DataTypeTwo = { + one: [{ two: [5] }] + }; + let t2a: DataTypeTwo = testingTwo; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.symbols b/tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.symbols new file mode 100644 index 0000000000000..1ff1f70440332 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.symbols @@ -0,0 +1,98 @@ +//// [tests/cases/compiler/nestedGenericArrayAssignabilityAfterErrors.ts] //// + +=== nestedGenericArrayAssignabilityAfterErrors.ts === +// Assigning DataTypeThree to DataTypeThree, and likewise for +// DataTypeTwo, must be reported whether or not earlier assignments errored. + +type TypeA = number; +>TypeA : Symbol(TypeA, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 0, 0)) + +type TypeB = boolean; +>TypeB : Symbol(TypeB, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 3, 20)) + +type DataTypeTwo = { +>DataTypeTwo : Symbol(DataTypeTwo, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 4, 21)) +>T : Symbol(T, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 5, 17)) +>TypeA : Symbol(TypeA, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 0, 0)) +>TypeB : Symbol(TypeB, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 3, 20)) + + one: Array<{ two: Array }>; +>one : Symbol(one, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 5, 45)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>two : Symbol(two, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 6, 14)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>T : Symbol(T, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 5, 17)) + +}; +type DataTypeThree = { +>DataTypeThree : Symbol(DataTypeThree, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 7, 2)) +>T : Symbol(T, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 8, 19)) +>TypeA : Symbol(TypeA, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 0, 0)) +>TypeB : Symbol(TypeB, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 3, 20)) + + one: Array<{ two: Array<{ three: Array }> }>; +>one : Symbol(one, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 8, 47)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>two : Symbol(two, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 9, 14)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>three : Symbol(three, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 9, 27)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>T : Symbol(T, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 8, 19)) + +}; + +let testingThreeErr: DataTypeThree = { +>testingThreeErr : Symbol(testingThreeErr, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 12, 3)) +>DataTypeThree : Symbol(DataTypeThree, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 7, 2)) +>TypeA : Symbol(TypeA, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 0, 0)) + + one: [{ two: [{ three: [true] }] }] +>one : Symbol(one, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 12, 45)) +>two : Symbol(two, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 13, 9)) +>three : Symbol(three, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 13, 17)) + +}; +let testingTwoErr: DataTypeTwo = { +>testingTwoErr : Symbol(testingTwoErr, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 15, 3)) +>DataTypeTwo : Symbol(DataTypeTwo, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 4, 21)) +>TypeA : Symbol(TypeA, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 0, 0)) + + one: [{ two: [false] }] +>one : Symbol(one, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 15, 41)) +>two : Symbol(two, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 16, 9)) + +}; + +let testingThree: DataTypeThree = { +>testingThree : Symbol(testingThree, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 19, 3)) +>DataTypeThree : Symbol(DataTypeThree, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 7, 2)) +>TypeA : Symbol(TypeA, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 0, 0)) + + one: [{ two: [{ three: [5] }] }] +>one : Symbol(one, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 19, 42)) +>two : Symbol(two, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 20, 9)) +>three : Symbol(three, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 20, 17)) + +}; +let t3a: DataTypeThree = testingThree; +>t3a : Symbol(t3a, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 22, 3)) +>DataTypeThree : Symbol(DataTypeThree, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 7, 2)) +>TypeB : Symbol(TypeB, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 3, 20)) +>testingThree : Symbol(testingThree, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 19, 3)) + +let testingTwo: DataTypeTwo = { +>testingTwo : Symbol(testingTwo, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 24, 3)) +>DataTypeTwo : Symbol(DataTypeTwo, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 4, 21)) +>TypeA : Symbol(TypeA, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 0, 0)) + + one: [{ two: [5] }] +>one : Symbol(one, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 24, 38)) +>two : Symbol(two, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 25, 9)) + +}; +let t2a: DataTypeTwo = testingTwo; +>t2a : Symbol(t2a, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 27, 3)) +>DataTypeTwo : Symbol(DataTypeTwo, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 4, 21)) +>TypeB : Symbol(TypeB, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 3, 20)) +>testingTwo : Symbol(testingTwo, Decl(nestedGenericArrayAssignabilityAfterErrors.ts, 24, 3)) + diff --git a/tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.types b/tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.types new file mode 100644 index 0000000000000..387d506bb6a05 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/nestedGenericArrayAssignabilityAfterErrors.types @@ -0,0 +1,97 @@ +//// [tests/cases/compiler/nestedGenericArrayAssignabilityAfterErrors.ts] //// + +=== nestedGenericArrayAssignabilityAfterErrors.ts === +// Assigning DataTypeThree to DataTypeThree, and likewise for +// DataTypeTwo, must be reported whether or not earlier assignments errored. + +type TypeA = number; +>TypeA : number + +type TypeB = boolean; +>TypeB : boolean + +type DataTypeTwo = { +>DataTypeTwo : DataTypeTwo + + one: Array<{ two: Array }>; +>one : { two: Array; }[] +>two : T[] + +}; +type DataTypeThree = { +>DataTypeThree : DataTypeThree + + one: Array<{ two: Array<{ three: Array }> }>; +>one : { two: Array<{ three: Array; }>; }[] +>two : { three: Array; }[] +>three : T[] + +}; + +let testingThreeErr: DataTypeThree = { +>testingThreeErr : DataTypeThree +>{ one: [{ two: [{ three: [true] }] }]} : { one: { two: { three: boolean[]; }[]; }[]; } + + one: [{ two: [{ three: [true] }] }] +>one : { two: { three: boolean[]; }[]; }[] +>[{ two: [{ three: [true] }] }] : { two: { three: boolean[]; }[]; }[] +>{ two: [{ three: [true] }] } : { two: { three: boolean[]; }[]; } +>two : { three: boolean[]; }[] +>[{ three: [true] }] : { three: boolean[]; }[] +>{ three: [true] } : { three: boolean[]; } +>three : boolean[] +>[true] : boolean[] +>true : true + +}; +let testingTwoErr: DataTypeTwo = { +>testingTwoErr : DataTypeTwo +>{ one: [{ two: [false] }]} : { one: { two: boolean[]; }[]; } + + one: [{ two: [false] }] +>one : { two: boolean[]; }[] +>[{ two: [false] }] : { two: boolean[]; }[] +>{ two: [false] } : { two: boolean[]; } +>two : boolean[] +>[false] : boolean[] +>false : false + +}; + +let testingThree: DataTypeThree = { +>testingThree : DataTypeThree +>{ one: [{ two: [{ three: [5] }] }]} : { one: { two: { three: number[]; }[]; }[]; } + + one: [{ two: [{ three: [5] }] }] +>one : { two: { three: number[]; }[]; }[] +>[{ two: [{ three: [5] }] }] : { two: { three: number[]; }[]; }[] +>{ two: [{ three: [5] }] } : { two: { three: number[]; }[]; } +>two : { three: number[]; }[] +>[{ three: [5] }] : { three: number[]; }[] +>{ three: [5] } : { three: number[]; } +>three : number[] +>[5] : number[] +>5 : 5 + +}; +let t3a: DataTypeThree = testingThree; +>t3a : DataTypeThree +>testingThree : DataTypeThree + +let testingTwo: DataTypeTwo = { +>testingTwo : DataTypeTwo +>{ one: [{ two: [5] }]} : { one: { two: number[]; }[]; } + + one: [{ two: [5] }] +>one : { two: number[]; }[] +>[{ two: [5] }] : { two: number[]; }[] +>{ two: [5] } : { two: number[]; } +>two : number[] +>[5] : number[] +>5 : 5 + +}; +let t2a: DataTypeTwo = testingTwo; +>t2a : DataTypeTwo +>testingTwo : DataTypeTwo + diff --git a/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).js new file mode 100644 index 0000000000000..c4a71d9b83c23 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).js @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/objectLiteralRegularAndWidenedCopyOrder.ts] //// + +//// [objectLiteralRegularAndWidenedCopyOrder.ts] +declare const b: boolean; +let x; +x = { a: 1 }; +let arr = []; +arr.push(x); // regular copy of the literal +const y = x; // widened copy of the literal +const z = b ? (b ? arr[0] : y) : { c: 1 }; + + +//// [objectLiteralRegularAndWidenedCopyOrder.js] +"use strict"; +let x; +x = { a: 1 }; +let arr = []; +arr.push(x); // regular copy of the literal +const y = x; // widened copy of the literal +const z = b ? (b ? arr[0] : y) : { c: 1 }; diff --git a/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..4ff568c410bfc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/objectLiteralRegularAndWidenedCopyOrder.ts] //// + +=== objectLiteralRegularAndWidenedCopyOrder.ts === +declare const b: boolean; +>b : Symbol(b, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 0, 13)) + +let x; +>x : Symbol(x, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 1, 3)) + +x = { a: 1 }; +>x : Symbol(x, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 1, 3)) +>a : Symbol(a, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 2, 5)) + +let arr = []; +>arr : Symbol(arr, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 3, 3)) + +arr.push(x); // regular copy of the literal +>arr.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>arr : Symbol(arr, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 3, 3)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 1, 3)) + +const y = x; // widened copy of the literal +>y : Symbol(y, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 5, 5)) +>x : Symbol(x, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 1, 3)) + +const z = b ? (b ? arr[0] : y) : { c: 1 }; +>z : Symbol(z, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 6, 5)) +>b : Symbol(b, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 0, 13)) +>b : Symbol(b, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 0, 13)) +>arr : Symbol(arr, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 3, 3)) +>y : Symbol(y, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 5, 5)) +>c : Symbol(c, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 6, 34)) + diff --git a/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).types new file mode 100644 index 0000000000000..407435a6f1e42 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=default).types @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/objectLiteralRegularAndWidenedCopyOrder.ts] //// + +=== objectLiteralRegularAndWidenedCopyOrder.ts === +declare const b: boolean; +>b : boolean + +let x; +>x : any + +x = { a: 1 }; +>x = { a: 1 } : { a: number; } +>x : any +>{ a: 1 } : { a: number; } +>a : number +>1 : 1 + +let arr = []; +>arr : any[] +>[] : never[] + +arr.push(x); // regular copy of the literal +>arr.push(x) : number +>arr.push : (...items: any[]) => number +>arr : any[] +>push : (...items: any[]) => number +>x : { a: number; } + +const y = x; // widened copy of the literal +>y : { a: number; } +>x : { a: number; } + +const z = b ? (b ? arr[0] : y) : { c: 1 }; +>z : { a: number; c?: undefined; } | { a?: undefined; c: number; } +>b ? (b ? arr[0] : y) : { c: 1 } : { a: number; } | { c: number; } +>b : boolean +>(b ? arr[0] : y) : { a: number; } +>b ? arr[0] : y : { a: number; } +>b : true +>arr[0] : { a: number; } +>arr : { a: number; }[] +>0 : 0 +>y : { a: number; } +>{ c: 1 } : { c: number; } +>c : number +>1 : 1 + diff --git a/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).js new file mode 100644 index 0000000000000..c4a71d9b83c23 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).js @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/objectLiteralRegularAndWidenedCopyOrder.ts] //// + +//// [objectLiteralRegularAndWidenedCopyOrder.ts] +declare const b: boolean; +let x; +x = { a: 1 }; +let arr = []; +arr.push(x); // regular copy of the literal +const y = x; // widened copy of the literal +const z = b ? (b ? arr[0] : y) : { c: 1 }; + + +//// [objectLiteralRegularAndWidenedCopyOrder.js] +"use strict"; +let x; +x = { a: 1 }; +let arr = []; +arr.push(x); // regular copy of the literal +const y = x; // widened copy of the literal +const z = b ? (b ? arr[0] : y) : { c: 1 }; diff --git a/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..4ff568c410bfc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).symbols @@ -0,0 +1,34 @@ +//// [tests/cases/compiler/objectLiteralRegularAndWidenedCopyOrder.ts] //// + +=== objectLiteralRegularAndWidenedCopyOrder.ts === +declare const b: boolean; +>b : Symbol(b, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 0, 13)) + +let x; +>x : Symbol(x, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 1, 3)) + +x = { a: 1 }; +>x : Symbol(x, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 1, 3)) +>a : Symbol(a, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 2, 5)) + +let arr = []; +>arr : Symbol(arr, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 3, 3)) + +arr.push(x); // regular copy of the literal +>arr.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>arr : Symbol(arr, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 3, 3)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 1, 3)) + +const y = x; // widened copy of the literal +>y : Symbol(y, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 5, 5)) +>x : Symbol(x, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 1, 3)) + +const z = b ? (b ? arr[0] : y) : { c: 1 }; +>z : Symbol(z, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 6, 5)) +>b : Symbol(b, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 0, 13)) +>b : Symbol(b, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 0, 13)) +>arr : Symbol(arr, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 3, 3)) +>y : Symbol(y, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 5, 5)) +>c : Symbol(c, Decl(objectLiteralRegularAndWidenedCopyOrder.ts, 6, 34)) + diff --git a/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..c357eab575d5b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/objectLiteralRegularAndWidenedCopyOrder(checkorder=typesfirst).types @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/objectLiteralRegularAndWidenedCopyOrder.ts] //// + +=== objectLiteralRegularAndWidenedCopyOrder.ts === +declare const b: boolean; +>b : boolean + +let x; +>x : any + +x = { a: 1 }; +>x = { a: 1 } : { a: number; } +>x : any +>{ a: 1 } : { a: number; } +>a : number +>1 : 1 + +let arr = []; +>arr : any[] +>[] : never[] + +arr.push(x); // regular copy of the literal +>arr.push(x) : number +>arr.push : (...items: any[]) => number +>arr : any[] +>push : (...items: any[]) => number +>x : { a: number; } + +const y = x; // widened copy of the literal +>y : { a: number; } +>x : { a: number; } + +const z = b ? (b ? arr[0] : y) : { c: 1 }; +>z : { a: number; } | { c: number; } +>b ? (b ? arr[0] : y) : { c: 1 } : { a: number; } | { c: number; } +>b : boolean +>(b ? arr[0] : y) : { a: number; } +>b ? arr[0] : y : { a: number; } +>b : true +>arr[0] : { a: number; } +>arr : { a: number; }[] +>0 : 0 +>y : { a: number; } +>{ c: 1 } : { c: number; } +>c : number +>1 : 1 + diff --git a/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..49bd036214070 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=default).symbols @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/objectRestUnionInstantiationOrder.ts] //// + +=== objectRestUnionInstantiationOrder.ts === +function f(v: { k: "a"; a: T } | { k: "b"; b: number }) { +>f : Symbol(f, Decl(objectRestUnionInstantiationOrder.ts, 0, 0)) +>T : Symbol(T, Decl(objectRestUnionInstantiationOrder.ts, 0, 11)) +>v : Symbol(v, Decl(objectRestUnionInstantiationOrder.ts, 0, 14)) +>k : Symbol(k, Decl(objectRestUnionInstantiationOrder.ts, 0, 18)) +>a : Symbol(a, Decl(objectRestUnionInstantiationOrder.ts, 0, 26)) +>T : Symbol(T, Decl(objectRestUnionInstantiationOrder.ts, 0, 11)) +>k : Symbol(k, Decl(objectRestUnionInstantiationOrder.ts, 0, 37)) +>b : Symbol(b, Decl(objectRestUnionInstantiationOrder.ts, 0, 45)) + + const { k, ...rest } = v; +>k : Symbol(k, Decl(objectRestUnionInstantiationOrder.ts, 1, 11)) +>rest : Symbol(rest, Decl(objectRestUnionInstantiationOrder.ts, 1, 14)) +>v : Symbol(v, Decl(objectRestUnionInstantiationOrder.ts, 0, 14)) + + return { all: rest, onlyB: "b" in rest ? rest : undefined }; +>all : Symbol(all, Decl(objectRestUnionInstantiationOrder.ts, 2, 12)) +>rest : Symbol(rest, Decl(objectRestUnionInstantiationOrder.ts, 1, 14)) +>onlyB : Symbol(onlyB, Decl(objectRestUnionInstantiationOrder.ts, 2, 23)) +>rest : Symbol(rest, Decl(objectRestUnionInstantiationOrder.ts, 1, 14)) +>rest : Symbol(rest, Decl(objectRestUnionInstantiationOrder.ts, 1, 14)) +>undefined : Symbol(undefined) +} +const o = f({ k: "a", a: "s" }); +>o : Symbol(o, Decl(objectRestUnionInstantiationOrder.ts, 4, 5)) +>f : Symbol(f, Decl(objectRestUnionInstantiationOrder.ts, 0, 0)) +>k : Symbol(k, Decl(objectRestUnionInstantiationOrder.ts, 4, 13)) +>a : Symbol(a, Decl(objectRestUnionInstantiationOrder.ts, 4, 21)) + +const all = o.all; +>all : Symbol(all, Decl(objectRestUnionInstantiationOrder.ts, 5, 5)) +>o.all : Symbol(all, Decl(objectRestUnionInstantiationOrder.ts, 2, 12)) +>o : Symbol(o, Decl(objectRestUnionInstantiationOrder.ts, 4, 5)) +>all : Symbol(all, Decl(objectRestUnionInstantiationOrder.ts, 2, 12)) + +const onlyB = o.onlyB; +>onlyB : Symbol(onlyB, Decl(objectRestUnionInstantiationOrder.ts, 6, 5)) +>o.onlyB : Symbol(onlyB, Decl(objectRestUnionInstantiationOrder.ts, 2, 23)) +>o : Symbol(o, Decl(objectRestUnionInstantiationOrder.ts, 4, 5)) +>onlyB : Symbol(onlyB, Decl(objectRestUnionInstantiationOrder.ts, 2, 23)) + diff --git a/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=default).types new file mode 100644 index 0000000000000..b0974642e75b9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=default).types @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/objectRestUnionInstantiationOrder.ts] //// + +=== objectRestUnionInstantiationOrder.ts === +function f(v: { k: "a"; a: T } | { k: "b"; b: number }) { +>f : (v: { k: "a"; a: T; } | { k: "b"; b: number; }) => { all: { a: T; } | { b: number; }; onlyB: { b: number; } | undefined; } +>v : { k: "a"; a: T; } | { k: "b"; b: number; } +>k : "a" +>a : T +>k : "b" +>b : number + + const { k, ...rest } = v; +>k : "a" | "b" +>rest : { a: T; } | { b: number; } +>v : { k: "a"; a: T; } | { k: "b"; b: number; } + + return { all: rest, onlyB: "b" in rest ? rest : undefined }; +>{ all: rest, onlyB: "b" in rest ? rest : undefined } : { all: { a: T; } | { b: number; }; onlyB: { b: number; } | undefined; } +>all : { a: T; } | { b: number; } +>rest : { a: T; } | { b: number; } +>onlyB : { b: number; } | undefined +>"b" in rest ? rest : undefined : { b: number; } | undefined +>"b" in rest : boolean +>"b" : "b" +>rest : { a: T; } | { b: number; } +>rest : { b: number; } +>undefined : undefined +} +const o = f({ k: "a", a: "s" }); +>o : { all: { a: string; } | { b: number; }; onlyB: { b: number; } | undefined; } +>f({ k: "a", a: "s" }) : { all: { a: string; } | { b: number; }; onlyB: { b: number; } | undefined; } +>f : (v: { k: "a"; a: T; } | { k: "b"; b: number; }) => { all: { a: T; } | { b: number; }; onlyB: { b: number; } | undefined; } +>{ k: "a", a: "s" } : { k: "a"; a: string; } +>k : "a" +>"a" : "a" +>a : string +>"s" : "s" + +const all = o.all; +>all : { a: string; } | { b: number; } +>o.all : { a: string; } | { b: number; } +>o : { all: { a: string; } | { b: number; }; onlyB: { b: number; } | undefined; } +>all : { a: string; } | { b: number; } + +const onlyB = o.onlyB; +>onlyB : { b: number; } | undefined +>o.onlyB : { b: number; } | undefined +>o : { all: { a: string; } | { b: number; }; onlyB: { b: number; } | undefined; } +>onlyB : { b: number; } | undefined + diff --git a/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..49bd036214070 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=typesfirst).symbols @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/objectRestUnionInstantiationOrder.ts] //// + +=== objectRestUnionInstantiationOrder.ts === +function f(v: { k: "a"; a: T } | { k: "b"; b: number }) { +>f : Symbol(f, Decl(objectRestUnionInstantiationOrder.ts, 0, 0)) +>T : Symbol(T, Decl(objectRestUnionInstantiationOrder.ts, 0, 11)) +>v : Symbol(v, Decl(objectRestUnionInstantiationOrder.ts, 0, 14)) +>k : Symbol(k, Decl(objectRestUnionInstantiationOrder.ts, 0, 18)) +>a : Symbol(a, Decl(objectRestUnionInstantiationOrder.ts, 0, 26)) +>T : Symbol(T, Decl(objectRestUnionInstantiationOrder.ts, 0, 11)) +>k : Symbol(k, Decl(objectRestUnionInstantiationOrder.ts, 0, 37)) +>b : Symbol(b, Decl(objectRestUnionInstantiationOrder.ts, 0, 45)) + + const { k, ...rest } = v; +>k : Symbol(k, Decl(objectRestUnionInstantiationOrder.ts, 1, 11)) +>rest : Symbol(rest, Decl(objectRestUnionInstantiationOrder.ts, 1, 14)) +>v : Symbol(v, Decl(objectRestUnionInstantiationOrder.ts, 0, 14)) + + return { all: rest, onlyB: "b" in rest ? rest : undefined }; +>all : Symbol(all, Decl(objectRestUnionInstantiationOrder.ts, 2, 12)) +>rest : Symbol(rest, Decl(objectRestUnionInstantiationOrder.ts, 1, 14)) +>onlyB : Symbol(onlyB, Decl(objectRestUnionInstantiationOrder.ts, 2, 23)) +>rest : Symbol(rest, Decl(objectRestUnionInstantiationOrder.ts, 1, 14)) +>rest : Symbol(rest, Decl(objectRestUnionInstantiationOrder.ts, 1, 14)) +>undefined : Symbol(undefined) +} +const o = f({ k: "a", a: "s" }); +>o : Symbol(o, Decl(objectRestUnionInstantiationOrder.ts, 4, 5)) +>f : Symbol(f, Decl(objectRestUnionInstantiationOrder.ts, 0, 0)) +>k : Symbol(k, Decl(objectRestUnionInstantiationOrder.ts, 4, 13)) +>a : Symbol(a, Decl(objectRestUnionInstantiationOrder.ts, 4, 21)) + +const all = o.all; +>all : Symbol(all, Decl(objectRestUnionInstantiationOrder.ts, 5, 5)) +>o.all : Symbol(all, Decl(objectRestUnionInstantiationOrder.ts, 2, 12)) +>o : Symbol(o, Decl(objectRestUnionInstantiationOrder.ts, 4, 5)) +>all : Symbol(all, Decl(objectRestUnionInstantiationOrder.ts, 2, 12)) + +const onlyB = o.onlyB; +>onlyB : Symbol(onlyB, Decl(objectRestUnionInstantiationOrder.ts, 6, 5)) +>o.onlyB : Symbol(onlyB, Decl(objectRestUnionInstantiationOrder.ts, 2, 23)) +>o : Symbol(o, Decl(objectRestUnionInstantiationOrder.ts, 4, 5)) +>onlyB : Symbol(onlyB, Decl(objectRestUnionInstantiationOrder.ts, 2, 23)) + diff --git a/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..858790155480b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/objectRestUnionInstantiationOrder(checkorder=typesfirst).types @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/objectRestUnionInstantiationOrder.ts] //// + +=== objectRestUnionInstantiationOrder.ts === +function f(v: { k: "a"; a: T } | { k: "b"; b: number }) { +>f : (v: { k: "a"; a: T; } | { k: "b"; b: number; }) => { all: { a: T; } | { b: number; }; onlyB: { b: number; } | undefined; } +>v : { k: "a"; a: T; } | { k: "b"; b: number; } +>k : "a" +>a : T +>k : "b" +>b : number + + const { k, ...rest } = v; +>k : "a" | "b" +>rest : { a: T; } | { b: number; } +>v : { k: "a"; a: T; } | { k: "b"; b: number; } + + return { all: rest, onlyB: "b" in rest ? rest : undefined }; +>{ all: rest, onlyB: "b" in rest ? rest : undefined } : { all: { a: T; } | { b: number; }; onlyB: { b: number; } | undefined; } +>all : { a: T; } | { b: number; } +>rest : { a: T; } | { b: number; } +>onlyB : { b: number; } | undefined +>"b" in rest ? rest : undefined : { b: number; } | undefined +>"b" in rest : boolean +>"b" : "b" +>rest : { a: T; } | { b: number; } +>rest : { b: number; } +>undefined : undefined +} +const o = f({ k: "a", a: "s" }); +>o : { all: { b: number; } | { a: string; }; onlyB: { b: number; } | undefined; } +>f({ k: "a", a: "s" }) : { all: { b: number; } | { a: string; }; onlyB: { b: number; } | undefined; } +>f : (v: { k: "a"; a: T; } | { k: "b"; b: number; }) => { all: { a: T; } | { b: number; }; onlyB: { b: number; } | undefined; } +>{ k: "a", a: "s" } : { k: "a"; a: string; } +>k : "a" +>"a" : "a" +>a : string +>"s" : "s" + +const all = o.all; +>all : { b: number; } | { a: string; } +>o.all : { b: number; } | { a: string; } +>o : { all: { b: number; } | { a: string; }; onlyB: { b: number; } | undefined; } +>all : { b: number; } | { a: string; } + +const onlyB = o.onlyB; +>onlyB : { b: number; } | undefined +>o.onlyB : { b: number; } | undefined +>o : { all: { b: number; } | { a: string; }; onlyB: { b: number; } | undefined; } +>onlyB : { b: number; } | undefined + diff --git a/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).errors.txt new file mode 100644 index 0000000000000..47be7df4a2a28 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).errors.txt @@ -0,0 +1,80 @@ +overloadresolutionWithConstraintCheckingDeferred.ts(14,26): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. + Types of parameters 'x' and 'x' are incompatible. + Property 'q' is missing in type 'B' but required in type 'D'. +overloadresolutionWithConstraintCheckingDeferred.ts(14,37): error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +overloadresolutionWithConstraintCheckingDeferred.ts(16,27): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. + Types of parameters 'x' and 'x' are incompatible. + Property 'q' is missing in type 'B' but required in type 'D'. +overloadresolutionWithConstraintCheckingDeferred.ts(16,38): error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +overloadresolutionWithConstraintCheckingDeferred.ts(18,27): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. + Types of parameters 'x' and 'x' are incompatible. + Property 'q' is missing in type 'B' but required in type 'D'. +overloadresolutionWithConstraintCheckingDeferred.ts(19,14): error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +overloadresolutionWithConstraintCheckingDeferred.ts(19,32): error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. + + +==== overloadresolutionWithConstraintCheckingDeferred.ts (7 errors) ==== + interface A { x } + interface B { x; y } + interface C { z } + interface D { q } + + class G { + constructor(x: T) { } + } + + declare function foo(arg: (x: D) => number): string; + declare function foo(arg: (x: C) => any): string; + declare function foo(arg: (x: B) => any): number; + + var result: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. + ~~~~~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. +!!! error TS2769: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2769: Property 'q' is missing in type 'B' but required in type 'D'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:4:15: 'q' is declared here. +!!! related TS2771 overloadresolutionWithConstraintCheckingDeferred.ts:12:18: The last overload is declared here. + ~ +!!! error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:1:15: 'x' is declared here. + + var result2: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. + ~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. +!!! error TS2769: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2769: Property 'q' is missing in type 'B' but required in type 'D'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:4:15: 'q' is declared here. +!!! related TS2771 overloadresolutionWithConstraintCheckingDeferred.ts:12:18: The last overload is declared here. + ~~~~~~~~ +!!! error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:1:15: 'x' is declared here. + + var result3: string = foo(x => { // x has type D + ~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. +!!! error TS2769: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2769: Property 'q' is missing in type 'B' but required in type 'D'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:4:15: 'q' is declared here. +!!! related TS2771 overloadresolutionWithConstraintCheckingDeferred.ts:12:18: The last overload is declared here. + var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error + ~~~~~~~~ +!!! error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:1:15: 'x' is declared here. + ~ +!!! error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:1:15: 'x' is declared here. + return y; + }); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).js new file mode 100644 index 0000000000000..bf035f63927a4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).js @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts] //// + +//// [overloadresolutionWithConstraintCheckingDeferred.ts] +interface A { x } +interface B { x; y } +interface C { z } +interface D { q } + +class G { + constructor(x: T) { } +} + +declare function foo(arg: (x: D) => number): string; +declare function foo(arg: (x: C) => any): string; +declare function foo(arg: (x: B) => any): number; + +var result: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. + +var result2: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. + +var result3: string = foo(x => { // x has type D + var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error + return y; +}); + + +//// [overloadresolutionWithConstraintCheckingDeferred.js] +"use strict"; +class G { + constructor(x) { } +} +var result = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +var result2 = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +var result3 = foo(x => { + var y = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error + return y; +}); diff --git a/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).symbols new file mode 100644 index 0000000000000..c06f37a086801 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).symbols @@ -0,0 +1,80 @@ +//// [tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts] //// + +=== overloadresolutionWithConstraintCheckingDeferred.ts === +interface A { x } +>A : Symbol(A, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 0, 0)) +>x : Symbol(A.x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 0, 13)) + +interface B { x; y } +>B : Symbol(B, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 0, 17)) +>x : Symbol(B.x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 1, 13)) +>y : Symbol(B.y, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 1, 16)) + +interface C { z } +>C : Symbol(C, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 1, 20)) +>z : Symbol(C.z, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 2, 13)) + +interface D { q } +>D : Symbol(D, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 2, 17)) +>q : Symbol(D.q, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 13)) + +class G { +>G : Symbol(G, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 17)) +>T : Symbol(T, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 5, 8)) +>A : Symbol(A, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 0, 0)) + + constructor(x: T) { } +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 6, 16)) +>T : Symbol(T, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 5, 8)) +} + +declare function foo(arg: (x: D) => number): string; +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>arg : Symbol(arg, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 21)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 27)) +>D : Symbol(D, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 2, 17)) + +declare function foo(arg: (x: C) => any): string; +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>arg : Symbol(arg, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 21)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 27)) +>C : Symbol(C, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 1, 20)) + +declare function foo(arg: (x: B) => any): number; +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>arg : Symbol(arg, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 11, 21)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 11, 27)) +>B : Symbol(B, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 0, 17)) + +var result: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +>result : Symbol(result, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 13, 3)) +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 13, 25)) +>G : Symbol(G, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 17)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 13, 25)) + +var result2: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +>result2 : Symbol(result2, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 15, 3)) +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 15, 26)) +>G : Symbol(G, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 17)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 15, 26)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 15, 26)) + +var result3: string = foo(x => { // x has type D +>result3 : Symbol(result3, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 17, 3)) +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 17, 26)) + + var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error +>y : Symbol(y, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 18, 7)) +>G : Symbol(G, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 17)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 17, 26)) +>G : Symbol(G, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 17)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 17, 26)) + + return y; +>y : Symbol(y, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 18, 7)) + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).types new file mode 100644 index 0000000000000..df9ec39e7e837 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=default).types @@ -0,0 +1,78 @@ +//// [tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts] //// + +=== overloadresolutionWithConstraintCheckingDeferred.ts === +interface A { x } +>x : any + +interface B { x; y } +>x : any +>y : any + +interface C { z } +>z : any + +interface D { q } +>q : any + +class G { +>G : G + + constructor(x: T) { } +>x : T +} + +declare function foo(arg: (x: D) => number): string; +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>arg : (x: D) => number +>x : D + +declare function foo(arg: (x: C) => any): string; +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>arg : (x: C) => any +>x : C + +declare function foo(arg: (x: B) => any): number; +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>arg : (x: B) => any +>x : B + +var result: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +>result : number +>foo(x => new G(x)) : never +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>x => new G(x) : (x: D) => G +>x : D +>new G(x) : G +>G : typeof G +>x : D + +var result2: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +>result2 : number +>foo(x => new G(x)) : never +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>x => new G(x) : (x: D) => G +>x : D +>new G(x) : G +>G : typeof G +>x : D +>x : D + +var result3: string = foo(x => { // x has type D +>result3 : string +>foo(x => { // x has type D var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error return y;}) : never +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>x => { // x has type D var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error return y;} : (x: D) => G +>x : D + + var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error +>y : G +>x : D +>new G(x) : G +>G : typeof G +>x : D + + return y; +>y : G + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..e93dbcc6cad6b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).errors.txt @@ -0,0 +1,76 @@ +overloadresolutionWithConstraintCheckingDeferred.ts(14,26): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. + Types of parameters 'x' and 'x' are incompatible. + Property 'q' is missing in type 'B' but required in type 'D'. +overloadresolutionWithConstraintCheckingDeferred.ts(14,37): error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +overloadresolutionWithConstraintCheckingDeferred.ts(16,27): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. + Types of parameters 'x' and 'x' are incompatible. + Property 'q' is missing in type 'B' but required in type 'D'. +overloadresolutionWithConstraintCheckingDeferred.ts(16,38): error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +overloadresolutionWithConstraintCheckingDeferred.ts(18,27): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. + Types of parameters 'x' and 'x' are incompatible. + Property 'q' is missing in type 'B' but required in type 'D'. +overloadresolutionWithConstraintCheckingDeferred.ts(19,32): error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. + + +==== overloadresolutionWithConstraintCheckingDeferred.ts (6 errors) ==== + interface A { x } + interface B { x; y } + interface C { z } + interface D { q } + + class G { + constructor(x: T) { } + } + + declare function foo(arg: (x: D) => number): string; + declare function foo(arg: (x: C) => any): string; + declare function foo(arg: (x: B) => any): number; + + var result: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. + ~~~~~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. +!!! error TS2769: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2769: Property 'q' is missing in type 'B' but required in type 'D'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:4:15: 'q' is declared here. +!!! related TS2771 overloadresolutionWithConstraintCheckingDeferred.ts:12:18: The last overload is declared here. + ~ +!!! error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:1:15: 'x' is declared here. + + var result2: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. + ~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. +!!! error TS2769: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2769: Property 'q' is missing in type 'B' but required in type 'D'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:4:15: 'q' is declared here. +!!! related TS2771 overloadresolutionWithConstraintCheckingDeferred.ts:12:18: The last overload is declared here. + ~~~~~~~~ +!!! error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:1:15: 'x' is declared here. + + var result3: string = foo(x => { // x has type D + ~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Argument of type '(x: D) => G' is not assignable to parameter of type '(x: B) => any'. +!!! error TS2769: Types of parameters 'x' and 'x' are incompatible. +!!! error TS2769: Property 'q' is missing in type 'B' but required in type 'D'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:4:15: 'q' is declared here. +!!! related TS2771 overloadresolutionWithConstraintCheckingDeferred.ts:12:18: The last overload is declared here. + var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error + ~ +!!! error TS2741: Property 'x' is missing in type 'D' but required in type 'A'. +!!! related TS2728 overloadresolutionWithConstraintCheckingDeferred.ts:1:15: 'x' is declared here. + return y; + }); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).js new file mode 100644 index 0000000000000..bf035f63927a4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).js @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts] //// + +//// [overloadresolutionWithConstraintCheckingDeferred.ts] +interface A { x } +interface B { x; y } +interface C { z } +interface D { q } + +class G { + constructor(x: T) { } +} + +declare function foo(arg: (x: D) => number): string; +declare function foo(arg: (x: C) => any): string; +declare function foo(arg: (x: B) => any): number; + +var result: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. + +var result2: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. + +var result3: string = foo(x => { // x has type D + var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error + return y; +}); + + +//// [overloadresolutionWithConstraintCheckingDeferred.js] +"use strict"; +class G { + constructor(x) { } +} +var result = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +var result2 = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +var result3 = foo(x => { + var y = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error + return y; +}); diff --git a/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..c06f37a086801 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).symbols @@ -0,0 +1,80 @@ +//// [tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts] //// + +=== overloadresolutionWithConstraintCheckingDeferred.ts === +interface A { x } +>A : Symbol(A, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 0, 0)) +>x : Symbol(A.x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 0, 13)) + +interface B { x; y } +>B : Symbol(B, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 0, 17)) +>x : Symbol(B.x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 1, 13)) +>y : Symbol(B.y, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 1, 16)) + +interface C { z } +>C : Symbol(C, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 1, 20)) +>z : Symbol(C.z, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 2, 13)) + +interface D { q } +>D : Symbol(D, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 2, 17)) +>q : Symbol(D.q, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 13)) + +class G { +>G : Symbol(G, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 17)) +>T : Symbol(T, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 5, 8)) +>A : Symbol(A, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 0, 0)) + + constructor(x: T) { } +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 6, 16)) +>T : Symbol(T, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 5, 8)) +} + +declare function foo(arg: (x: D) => number): string; +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>arg : Symbol(arg, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 21)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 27)) +>D : Symbol(D, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 2, 17)) + +declare function foo(arg: (x: C) => any): string; +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>arg : Symbol(arg, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 21)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 27)) +>C : Symbol(C, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 1, 20)) + +declare function foo(arg: (x: B) => any): number; +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>arg : Symbol(arg, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 11, 21)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 11, 27)) +>B : Symbol(B, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 0, 17)) + +var result: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +>result : Symbol(result, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 13, 3)) +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 13, 25)) +>G : Symbol(G, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 17)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 13, 25)) + +var result2: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +>result2 : Symbol(result2, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 15, 3)) +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 15, 26)) +>G : Symbol(G, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 17)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 15, 26)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 15, 26)) + +var result3: string = foo(x => { // x has type D +>result3 : Symbol(result3, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 17, 3)) +>foo : Symbol(foo, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 7, 1), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 9, 52), Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 10, 49)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 17, 26)) + + var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error +>y : Symbol(y, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 18, 7)) +>G : Symbol(G, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 17)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 17, 26)) +>G : Symbol(G, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 3, 17)) +>x : Symbol(x, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 17, 26)) + + return y; +>y : Symbol(y, Decl(overloadresolutionWithConstraintCheckingDeferred.ts, 18, 7)) + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).types new file mode 100644 index 0000000000000..7eb08e3ac8acb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/overloadresolutionWithConstraintCheckingDeferred(checkorder=typesfirst).types @@ -0,0 +1,78 @@ +//// [tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts] //// + +=== overloadresolutionWithConstraintCheckingDeferred.ts === +interface A { x } +>x : any + +interface B { x; y } +>x : any +>y : any + +interface C { z } +>z : any + +interface D { q } +>q : any + +class G { +>G : G + + constructor(x: T) { } +>x : T +} + +declare function foo(arg: (x: D) => number): string; +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>arg : (x: D) => number +>x : D + +declare function foo(arg: (x: C) => any): string; +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>arg : (x: C) => any +>x : C + +declare function foo(arg: (x: B) => any): number; +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>arg : (x: B) => any +>x : B + +var result: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +>result : number +>foo(x => new G(x)) : never +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>x => new G(x) : (x: D) => G +>x : D +>new G(x) : G +>G : typeof G +>x : any + +var result2: number = foo(x => new G(x)); // x has type D, new G(x) fails, so first overload is picked. +>result2 : number +>foo(x => new G(x)) : never +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>x => new G(x) : (x: D) => G +>x : D +>new G(x) : G +>G : typeof G +>x : D +>x : any + +var result3: string = foo(x => { // x has type D +>result3 : string +>foo(x => { // x has type D var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error return y;}) : never +>foo : { (arg: (x: D) => number): string; (arg: (x: C) => any): string; (arg: (x: B) => any): number; } +>x => { // x has type D var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error return y;} : (x: D) => G +>x : D + + var y: G = new G(x); // error that D does not satisfy constraint, y is of type G, entire call to foo is an error +>y : G +>x : D +>new G(x) : G +>G : typeof G +>x : D + + return y; +>y : G + +}); + diff --git a/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).errors.txt new file mode 100644 index 0000000000000..fab2d38147e93 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).errors.txt @@ -0,0 +1,34 @@ +parameterBindingDefaultReferencesSiblingThroughCall.ts(11,19): error TS7022: 'a' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +parameterBindingDefaultReferencesSiblingThroughCall.ts(16,11): error TS2322: Type 'unknown' is not assignable to type 'string'. +parameterBindingDefaultReferencesSiblingThroughCall.ts(20,11): error TS2322: Type 'any[]' is not assignable to type 'string'. + + +==== parameterBindingDefaultReferencesSiblingThroughCall.ts (3 errors) ==== + // A default in a destructured parameter that references a sibling element + // makes the sibling's type depend on itself: the type of 'a' comes from the + // parameter initializer '{}', which is padded with the types of the defaults, + // including 'b'. Main reports this cycle (TS7022 on 'a') for 'b = a', but not + // for 'b = id(a)', where the padding reuses the signature resolved while 'a' + // was treated as non-inferrable any during contextual typing of '{}', which + // gives 'b' the type 'unknown' (see tldraw TldrawApp.test.ts). + + declare function id(v: T): T; + + function direct({ a = 1 as number | undefined, b = a } = {}) { + ~ +!!! error TS7022: 'a' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + const n: string = b; + } + + function viaCall({ a = 1 as number | undefined, b = id(a) } = {}) { + const n: string = b; + ~ +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + } + + function viaCallArray({ a = 1 as number | undefined, b = id([a]) } = {}) { + const n: string = b; + ~ +!!! error TS2322: Type 'any[]' is not assignable to type 'string'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).symbols new file mode 100644 index 0000000000000..06dbf91e4f588 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).symbols @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/parameterBindingDefaultReferencesSiblingThroughCall.ts] //// + +=== parameterBindingDefaultReferencesSiblingThroughCall.ts === +// A default in a destructured parameter that references a sibling element +// makes the sibling's type depend on itself: the type of 'a' comes from the +// parameter initializer '{}', which is padded with the types of the defaults, +// including 'b'. Main reports this cycle (TS7022 on 'a') for 'b = a', but not +// for 'b = id(a)', where the padding reuses the signature resolved while 'a' +// was treated as non-inferrable any during contextual typing of '{}', which +// gives 'b' the type 'unknown' (see tldraw TldrawApp.test.ts). + +declare function id(v: T): T; +>id : Symbol(id, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 0, 0)) +>T : Symbol(T, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 8, 20)) +>v : Symbol(v, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 8, 23)) +>T : Symbol(T, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 8, 20)) +>T : Symbol(T, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 8, 20)) + +function direct({ a = 1 as number | undefined, b = a } = {}) { +>direct : Symbol(direct, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 8, 32)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 10, 17)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 10, 46)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 10, 17)) + + const n: string = b; +>n : Symbol(n, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 11, 9)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 10, 46)) +} + +function viaCall({ a = 1 as number | undefined, b = id(a) } = {}) { +>viaCall : Symbol(viaCall, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 12, 1)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 14, 18)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 14, 47)) +>id : Symbol(id, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 0, 0)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 14, 18)) + + const n: string = b; +>n : Symbol(n, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 15, 9)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 14, 47)) +} + +function viaCallArray({ a = 1 as number | undefined, b = id([a]) } = {}) { +>viaCallArray : Symbol(viaCallArray, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 16, 1)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 18, 23)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 18, 52)) +>id : Symbol(id, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 0, 0)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 18, 23)) + + const n: string = b; +>n : Symbol(n, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 19, 9)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 18, 52)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).types new file mode 100644 index 0000000000000..d8b5d78c1e02b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=default).types @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/parameterBindingDefaultReferencesSiblingThroughCall.ts] //// + +=== parameterBindingDefaultReferencesSiblingThroughCall.ts === +// A default in a destructured parameter that references a sibling element +// makes the sibling's type depend on itself: the type of 'a' comes from the +// parameter initializer '{}', which is padded with the types of the defaults, +// including 'b'. Main reports this cycle (TS7022 on 'a') for 'b = a', but not +// for 'b = id(a)', where the padding reuses the signature resolved while 'a' +// was treated as non-inferrable any during contextual typing of '{}', which +// gives 'b' the type 'unknown' (see tldraw TldrawApp.test.ts). + +declare function id(v: T): T; +>id : (v: T) => T +>v : T + +function direct({ a = 1 as number | undefined, b = a } = {}) { +>direct : ({ a, b }?: { a?: number | undefined; b?: any; }) => void +>a : any +>1 as number | undefined : number | undefined +>1 : 1 +>b : any +>a : any +>{} : {} + + const n: string = b; +>n : string +>b : any +} + +function viaCall({ a = 1 as number | undefined, b = id(a) } = {}) { +>viaCall : ({ a, b }?: { a?: number | undefined; b?: unknown; }) => void +>a : number | undefined +>1 as number | undefined : number | undefined +>1 : 1 +>b : unknown +>id(a) : unknown +>id : (v: T) => T +>a : number | undefined +>{} : {} + + const n: string = b; +>n : string +>b : unknown +} + +function viaCallArray({ a = 1 as number | undefined, b = id([a]) } = {}) { +>viaCallArray : ({ a, b }?: { a?: number | undefined; b?: any[] | undefined; }) => void +>a : number | undefined +>1 as number | undefined : number | undefined +>1 : 1 +>b : any[] +>id([a]) : any[] +>id : (v: T) => T +>[a] : (number | undefined)[] +>a : number | undefined +>{} : {} + + const n: string = b; +>n : string +>b : any[] +} + diff --git a/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..fab2d38147e93 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).errors.txt @@ -0,0 +1,34 @@ +parameterBindingDefaultReferencesSiblingThroughCall.ts(11,19): error TS7022: 'a' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +parameterBindingDefaultReferencesSiblingThroughCall.ts(16,11): error TS2322: Type 'unknown' is not assignable to type 'string'. +parameterBindingDefaultReferencesSiblingThroughCall.ts(20,11): error TS2322: Type 'any[]' is not assignable to type 'string'. + + +==== parameterBindingDefaultReferencesSiblingThroughCall.ts (3 errors) ==== + // A default in a destructured parameter that references a sibling element + // makes the sibling's type depend on itself: the type of 'a' comes from the + // parameter initializer '{}', which is padded with the types of the defaults, + // including 'b'. Main reports this cycle (TS7022 on 'a') for 'b = a', but not + // for 'b = id(a)', where the padding reuses the signature resolved while 'a' + // was treated as non-inferrable any during contextual typing of '{}', which + // gives 'b' the type 'unknown' (see tldraw TldrawApp.test.ts). + + declare function id(v: T): T; + + function direct({ a = 1 as number | undefined, b = a } = {}) { + ~ +!!! error TS7022: 'a' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + const n: string = b; + } + + function viaCall({ a = 1 as number | undefined, b = id(a) } = {}) { + const n: string = b; + ~ +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + } + + function viaCallArray({ a = 1 as number | undefined, b = id([a]) } = {}) { + const n: string = b; + ~ +!!! error TS2322: Type 'any[]' is not assignable to type 'string'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..06dbf91e4f588 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).symbols @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/parameterBindingDefaultReferencesSiblingThroughCall.ts] //// + +=== parameterBindingDefaultReferencesSiblingThroughCall.ts === +// A default in a destructured parameter that references a sibling element +// makes the sibling's type depend on itself: the type of 'a' comes from the +// parameter initializer '{}', which is padded with the types of the defaults, +// including 'b'. Main reports this cycle (TS7022 on 'a') for 'b = a', but not +// for 'b = id(a)', where the padding reuses the signature resolved while 'a' +// was treated as non-inferrable any during contextual typing of '{}', which +// gives 'b' the type 'unknown' (see tldraw TldrawApp.test.ts). + +declare function id(v: T): T; +>id : Symbol(id, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 0, 0)) +>T : Symbol(T, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 8, 20)) +>v : Symbol(v, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 8, 23)) +>T : Symbol(T, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 8, 20)) +>T : Symbol(T, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 8, 20)) + +function direct({ a = 1 as number | undefined, b = a } = {}) { +>direct : Symbol(direct, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 8, 32)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 10, 17)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 10, 46)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 10, 17)) + + const n: string = b; +>n : Symbol(n, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 11, 9)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 10, 46)) +} + +function viaCall({ a = 1 as number | undefined, b = id(a) } = {}) { +>viaCall : Symbol(viaCall, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 12, 1)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 14, 18)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 14, 47)) +>id : Symbol(id, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 0, 0)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 14, 18)) + + const n: string = b; +>n : Symbol(n, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 15, 9)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 14, 47)) +} + +function viaCallArray({ a = 1 as number | undefined, b = id([a]) } = {}) { +>viaCallArray : Symbol(viaCallArray, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 16, 1)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 18, 23)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 18, 52)) +>id : Symbol(id, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 0, 0)) +>a : Symbol(a, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 18, 23)) + + const n: string = b; +>n : Symbol(n, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 19, 9)) +>b : Symbol(b, Decl(parameterBindingDefaultReferencesSiblingThroughCall.ts, 18, 52)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).types new file mode 100644 index 0000000000000..d8b5d78c1e02b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/parameterBindingDefaultReferencesSiblingThroughCall(checkorder=typesfirst).types @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/parameterBindingDefaultReferencesSiblingThroughCall.ts] //// + +=== parameterBindingDefaultReferencesSiblingThroughCall.ts === +// A default in a destructured parameter that references a sibling element +// makes the sibling's type depend on itself: the type of 'a' comes from the +// parameter initializer '{}', which is padded with the types of the defaults, +// including 'b'. Main reports this cycle (TS7022 on 'a') for 'b = a', but not +// for 'b = id(a)', where the padding reuses the signature resolved while 'a' +// was treated as non-inferrable any during contextual typing of '{}', which +// gives 'b' the type 'unknown' (see tldraw TldrawApp.test.ts). + +declare function id(v: T): T; +>id : (v: T) => T +>v : T + +function direct({ a = 1 as number | undefined, b = a } = {}) { +>direct : ({ a, b }?: { a?: number | undefined; b?: any; }) => void +>a : any +>1 as number | undefined : number | undefined +>1 : 1 +>b : any +>a : any +>{} : {} + + const n: string = b; +>n : string +>b : any +} + +function viaCall({ a = 1 as number | undefined, b = id(a) } = {}) { +>viaCall : ({ a, b }?: { a?: number | undefined; b?: unknown; }) => void +>a : number | undefined +>1 as number | undefined : number | undefined +>1 : 1 +>b : unknown +>id(a) : unknown +>id : (v: T) => T +>a : number | undefined +>{} : {} + + const n: string = b; +>n : string +>b : unknown +} + +function viaCallArray({ a = 1 as number | undefined, b = id([a]) } = {}) { +>viaCallArray : ({ a, b }?: { a?: number | undefined; b?: any[] | undefined; }) => void +>a : number | undefined +>1 as number | undefined : number | undefined +>1 : 1 +>b : any[] +>id([a]) : any[] +>id : (v: T) => T +>[a] : (number | undefined)[] +>a : number | undefined +>{} : {} + + const n: string = b; +>n : string +>b : any[] +} + diff --git a/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..dd65bf841b787 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=default).symbols @@ -0,0 +1,341 @@ +//// [tests/cases/compiler/pipeCallbackInferenceCheckOrder.ts] //// + +=== pipeCallbackInferenceCheckOrder.ts === +// The callback of a pipe is inferred from the error union of the piped +// effect, also when signature help was requested for the call first +// (62183). + +export interface Pipeable { +>Pipeable : Symbol(Pipeable, Decl(pipeCallbackInferenceCheckOrder.ts, 0, 0)) + + pipe(this: A, ab: (_: A) => B): B; +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 7)) +>B : Symbol(B, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 9)) +>this : Symbol(this, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 21)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 7)) +>ab : Symbol(ab, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 29)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 35)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 7)) +>B : Symbol(B, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 9)) +>B : Symbol(B, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 9)) +} + +type Covariant = (_: never) => A; +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 15)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 21)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 15)) + +interface VarianceStruct { +>VarianceStruct : Symbol(VarianceStruct, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 36)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 25)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 31)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 38)) + + readonly _V: string; +>_V : Symbol(VarianceStruct._V, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 47)) + + readonly _A: Covariant; +>_A : Symbol(VarianceStruct._A, Decl(pipeCallbackInferenceCheckOrder.ts, 11, 22)) +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 25)) + + readonly _E: Covariant; +>_E : Symbol(VarianceStruct._E, Decl(pipeCallbackInferenceCheckOrder.ts, 12, 28)) +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 31)) + + readonly _R: Covariant; +>_R : Symbol(VarianceStruct._R, Decl(pipeCallbackInferenceCheckOrder.ts, 13, 28)) +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 38)) +} + +declare const EffectTypeId: unique symbol; +>EffectTypeId : Symbol(EffectTypeId, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 13)) + +interface Variance { +>Variance : Symbol(Variance, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 42)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 19)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 25)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 32)) + + readonly [EffectTypeId]: VarianceStruct; +>[EffectTypeId] : Symbol(Variance[EffectTypeId], Decl(pipeCallbackInferenceCheckOrder.ts, 19, 41)) +>EffectTypeId : Symbol(EffectTypeId, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 13)) +>VarianceStruct : Symbol(VarianceStruct, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 36)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 19)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 25)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 32)) +} + +interface Effect +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 17)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 23)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 38)) + + extends Variance, +>Variance : Symbol(Variance, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 42)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 17)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 23)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 38)) + + Pipeable {} +>Pipeable : Symbol(Pipeable, Decl(pipeCallbackInferenceCheckOrder.ts, 0, 0)) + +interface Class extends Pipeable { +>Class : Symbol(Class, Decl(pipeCallbackInferenceCheckOrder.ts, 25, 15)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 27, 16)) +>Pipeable : Symbol(Pipeable, Decl(pipeCallbackInferenceCheckOrder.ts, 0, 0)) + + new (): Fields; +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 27, 16)) +} + +interface TaggedErrorClass extends Class { +>TaggedErrorClass : Symbol(TaggedErrorClass, Decl(pipeCallbackInferenceCheckOrder.ts, 29, 1)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 27)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 46)) +>Class : Symbol(Class, Decl(pipeCallbackInferenceCheckOrder.ts, 25, 15)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 46)) + + readonly _tag: Tag; +>_tag : Symbol(TaggedErrorClass._tag, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 78)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 27)) +} + +declare const TaggedError: (identifier?: string) => < +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>identifier : Symbol(identifier, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 28)) + + Tag extends string, +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + + Fields +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 36, 21)) + +>( + tag: Tag, +>tag : Symbol(tag, Decl(pipeCallbackInferenceCheckOrder.ts, 38, 2)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + + fieldsOr: Fields +>fieldsOr : Symbol(fieldsOr, Decl(pipeCallbackInferenceCheckOrder.ts, 39, 11)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 36, 21)) + +) => TaggedErrorClass< +>TaggedErrorClass : Symbol(TaggedErrorClass, Decl(pipeCallbackInferenceCheckOrder.ts, 29, 1)) + + Tag, +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + { + readonly _tag: Tag; +>_tag : Symbol(_tag, Decl(pipeCallbackInferenceCheckOrder.ts, 43, 3)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + } +>; + +declare const log: ( +>log : Symbol(log, Decl(pipeCallbackInferenceCheckOrder.ts, 48, 13)) + + ...message: ReadonlyArray +>message : Symbol(message, Decl(pipeCallbackInferenceCheckOrder.ts, 48, 20)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --) ... and 3 more) + +) => Effect; +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) + +export const categoriesKey = "@effect/error/categories"; +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) + +export declare const withCategory: >( +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 36)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>PropertyKey : Symbol(PropertyKey, Decl(lib.es5.d.ts, --, --)) + + ...categories: Categories +>categories : Symbol(categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 75)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 36)) + +) => , Ret, C extends { new (...args: Args): Ret }>( +>Args : Symbol(Args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 6)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>Ret : Symbol(Ret, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 30)) +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) +>args : Symbol(args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 53)) +>Args : Symbol(Args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 6)) +>Ret : Symbol(Ret, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 30)) + + C: C +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) + +) => C & { +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) + + new (...args: Args): Ret & { +>args : Symbol(args, Decl(pipeCallbackInferenceCheckOrder.ts, 59, 7)) +>Args : Symbol(Args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 6)) +>Ret : Symbol(Ret, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 30)) + + [categoriesKey]: { [Cat in Categories[number]]: true }; +>[categoriesKey] : Symbol([categoriesKey], Decl(pipeCallbackInferenceCheckOrder.ts, 59, 30)) +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) +>Cat : Symbol(Cat, Decl(pipeCallbackInferenceCheckOrder.ts, 60, 24)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 36)) + + }; +}; + +export type AllKeys = E extends { [categoriesKey]: infer Q } +>AllKeys : Symbol(AllKeys, Decl(pipeCallbackInferenceCheckOrder.ts, 62, 2)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 20)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 20)) +>[categoriesKey] : Symbol([categoriesKey], Decl(pipeCallbackInferenceCheckOrder.ts, 64, 36)) +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) +>Q : Symbol(Q, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 59)) + + ? keyof Q +>Q : Symbol(Q, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 59)) + + : never; +export type ExtractAll = Cats extends any +>ExtractAll : Symbol(ExtractAll, Decl(pipeCallbackInferenceCheckOrder.ts, 66, 10)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 23)) +>Cats : Symbol(Cats, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 25)) +>PropertyKey : Symbol(PropertyKey, Decl(lib.es5.d.ts, --, --)) +>Cats : Symbol(Cats, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 25)) + + ? Extract +>Extract : Symbol(Extract, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 23)) +>[categoriesKey] : Symbol([categoriesKey], Decl(pipeCallbackInferenceCheckOrder.ts, 68, 16)) +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) +>K : Symbol(K, Decl(pipeCallbackInferenceCheckOrder.ts, 68, 37)) +>Cats : Symbol(Cats, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 25)) + + : never; + +export declare const catchCategory: < +>catchCategory : Symbol(catchCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 20)) + + E, +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) + + const Categories extends Array>, +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>AllKeys : Symbol(AllKeys, Decl(pipeCallbackInferenceCheckOrder.ts, 62, 2)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) + + A2, +>A2 : Symbol(A2, Decl(pipeCallbackInferenceCheckOrder.ts, 73, 45)) + + E2, +>E2 : Symbol(E2, Decl(pipeCallbackInferenceCheckOrder.ts, 74, 5)) + + R2 +>R2 : Symbol(R2, Decl(pipeCallbackInferenceCheckOrder.ts, 75, 5)) + +>( + ...args: [ +>args : Symbol(args, Decl(pipeCallbackInferenceCheckOrder.ts, 77, 2)) + + ...Categories, +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) + + f: (err: ExtractAll) => Effect +>err : Symbol(err, Decl(pipeCallbackInferenceCheckOrder.ts, 80, 8)) +>ExtractAll : Symbol(ExtractAll, Decl(pipeCallbackInferenceCheckOrder.ts, 66, 10)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A2 : Symbol(A2, Decl(pipeCallbackInferenceCheckOrder.ts, 73, 45)) +>E2 : Symbol(E2, Decl(pipeCallbackInferenceCheckOrder.ts, 74, 5)) +>R2 : Symbol(R2, Decl(pipeCallbackInferenceCheckOrder.ts, 75, 5)) + + ] +) => ( +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 6)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 8)) + + effect: Effect +>effect : Symbol(effect, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 12)) +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 6)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 8)) + +) => Effect>, R | R2>; +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 6)) +>A2 : Symbol(A2, Decl(pipeCallbackInferenceCheckOrder.ts, 73, 45)) +>E2 : Symbol(E2, Decl(pipeCallbackInferenceCheckOrder.ts, 74, 5)) +>Exclude : Symbol(Exclude, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>ExtractAll : Symbol(ExtractAll, Decl(pipeCallbackInferenceCheckOrder.ts, 66, 10)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 8)) +>R2 : Symbol(R2, Decl(pipeCallbackInferenceCheckOrder.ts, 75, 5)) + +class FooError extends TaggedError()("FooError", {}).pipe( +>FooError : Symbol(FooError, Decl(pipeCallbackInferenceCheckOrder.ts, 84, 80)) +>TaggedError()("FooError", {}).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) + + withCategory("domain") +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) + +) {} + +class BarError extends TaggedError()("BarError", {}).pipe( +>BarError : Symbol(BarError, Decl(pipeCallbackInferenceCheckOrder.ts, 88, 4)) +>TaggedError()("BarError", {}).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) + + withCategory("system", "domain") +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) + +) {} + +class BazError extends TaggedError()("BazError", {}).pipe( +>BazError : Symbol(BazError, Decl(pipeCallbackInferenceCheckOrder.ts, 92, 4)) +>TaggedError()("BazError", {}).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) + + withCategory("system") +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) + +) {} + +declare const baz: ( +>baz : Symbol(baz, Decl(pipeCallbackInferenceCheckOrder.ts, 98, 13)) + + x: number +>x : Symbol(x, Decl(pipeCallbackInferenceCheckOrder.ts, 98, 20)) + +) => Effect; +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>FooError : Symbol(FooError, Decl(pipeCallbackInferenceCheckOrder.ts, 84, 80)) +>BarError : Symbol(BarError, Decl(pipeCallbackInferenceCheckOrder.ts, 88, 4)) +>BazError : Symbol(BazError, Decl(pipeCallbackInferenceCheckOrder.ts, 92, 4)) + +export const program = baz(1).pipe(catchCategory("domain", (_) => log(_._tag))); +>program : Symbol(program, Decl(pipeCallbackInferenceCheckOrder.ts, 102, 12)) +>baz(1).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>baz : Symbol(baz, Decl(pipeCallbackInferenceCheckOrder.ts, 98, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>catchCategory : Symbol(catchCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 20)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 102, 60)) +>log : Symbol(log, Decl(pipeCallbackInferenceCheckOrder.ts, 48, 13)) +>_._tag : Symbol(_tag, Decl(pipeCallbackInferenceCheckOrder.ts, 43, 3)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 102, 60)) +>_tag : Symbol(_tag, Decl(pipeCallbackInferenceCheckOrder.ts, 43, 3)) + diff --git a/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..09166c8c289a5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=default).types @@ -0,0 +1,233 @@ +//// [tests/cases/compiler/pipeCallbackInferenceCheckOrder.ts] //// + +=== pipeCallbackInferenceCheckOrder.ts === +// The callback of a pipe is inferred from the error union of the piped +// effect, also when signature help was requested for the call first +// (62183). + +export interface Pipeable { + pipe(this: A, ab: (_: A) => B): B; +>pipe : (this: A, ab: (_: A) => B) => B +>this : A +>ab : (_: A) => B +>_ : A +} + +type Covariant = (_: never) => A; +>Covariant : Covariant +>_ : never + +interface VarianceStruct { + readonly _V: string; +>_V : string + + readonly _A: Covariant; +>_A : Covariant + + readonly _E: Covariant; +>_E : Covariant + + readonly _R: Covariant; +>_R : Covariant +} + +declare const EffectTypeId: unique symbol; +>EffectTypeId : unique symbol + +interface Variance { + readonly [EffectTypeId]: VarianceStruct; +>[EffectTypeId] : VarianceStruct +>EffectTypeId : unique symbol +} + +interface Effect + extends Variance, + Pipeable {} + +interface Class extends Pipeable { + new (): Fields; +} + +interface TaggedErrorClass extends Class { + readonly _tag: Tag; +>_tag : Tag +} + +declare const TaggedError: (identifier?: string) => < +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>identifier : string | undefined + + Tag extends string, + Fields +>( + tag: Tag, +>tag : Tag + + fieldsOr: Fields +>fieldsOr : Fields + +) => TaggedErrorClass< + Tag, + { + readonly _tag: Tag; +>_tag : Tag + } +>; + +declare const log: ( +>log : (...message: ReadonlyArray) => Effect + + ...message: ReadonlyArray +>message : readonly any[] + +) => Effect; + +export const categoriesKey = "@effect/error/categories"; +>categoriesKey : "@effect/error/categories" +>"@effect/error/categories" : "@effect/error/categories" + +export declare const withCategory: >( +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } + + ...categories: Categories +>categories : Categories + +) => , Ret, C extends { new (...args: Args): Ret }>( +>args : Args + + C: C +>C : C + +) => C & { + new (...args: Args): Ret & { +>args : Args + + [categoriesKey]: { [Cat in Categories[number]]: true }; +>[categoriesKey] : { [Cat in Categories[number]]: true; } +>categoriesKey : "@effect/error/categories" +>true : true + + }; +}; + +export type AllKeys = E extends { [categoriesKey]: infer Q } +>AllKeys : AllKeys +>[categoriesKey] : Q +>categoriesKey : "@effect/error/categories" + + ? keyof Q + : never; +export type ExtractAll = Cats extends any +>ExtractAll : ExtractAll + + ? Extract +>[categoriesKey] : { [K in Cats]: any; } +>categoriesKey : "@effect/error/categories" + + : never; + +export declare const catchCategory: < +>catchCategory : >, A2, E2, R2>(...args: [...Categories, f: (err: ExtractAll) => Effect]) => (effect: Effect) => Effect>, R | R2> + + E, + const Categories extends Array>, + A2, + E2, + R2 +>( + ...args: [ +>args : [...Categories, f: (err: ExtractAll) => Effect] + + ...Categories, + f: (err: ExtractAll) => Effect +>err : ExtractAll + + ] +) => ( + effect: Effect +>effect : Effect + +) => Effect>, R | R2>; + +class FooError extends TaggedError()("FooError", {}).pipe( +>FooError : FooError +>TaggedError()("FooError", {}).pipe( withCategory("domain")) : { readonly _tag: "FooError"; } & { "@effect/error/categories": { domain: true; }; } +>TaggedError()("FooError", {}).pipe : (this: A, ab: (_: A) => B) => B +>TaggedError()("FooError", {}) : TaggedErrorClass<"FooError", { readonly _tag: "FooError"; }> +>TaggedError() : (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>"FooError" : "FooError" +>{} : {} +>pipe : (this: A, ab: (_: A) => B) => B + + withCategory("domain") +>withCategory("domain") : , Ret, C_1 extends { new (...args: Args): Ret; }>(C: C_1) => C_1 & (new (...args: Args) => Ret & { "@effect/error/categories": { domain: true; }; }) +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } +>"domain" : "domain" + +) {} + +class BarError extends TaggedError()("BarError", {}).pipe( +>BarError : BarError +>TaggedError()("BarError", {}).pipe( withCategory("system", "domain")) : { readonly _tag: "BarError"; } & { "@effect/error/categories": { domain: true; system: true; }; } +>TaggedError()("BarError", {}).pipe : (this: A, ab: (_: A) => B) => B +>TaggedError()("BarError", {}) : TaggedErrorClass<"BarError", { readonly _tag: "BarError"; }> +>TaggedError() : (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>"BarError" : "BarError" +>{} : {} +>pipe : (this: A, ab: (_: A) => B) => B + + withCategory("system", "domain") +>withCategory("system", "domain") : , Ret, C_1 extends { new (...args: Args): Ret; }>(C: C_1) => C_1 & (new (...args: Args) => Ret & { "@effect/error/categories": { domain: true; system: true; }; }) +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } +>"system" : "system" +>"domain" : "domain" + +) {} + +class BazError extends TaggedError()("BazError", {}).pipe( +>BazError : BazError +>TaggedError()("BazError", {}).pipe( withCategory("system")) : { readonly _tag: "BazError"; } & { "@effect/error/categories": { system: true; }; } +>TaggedError()("BazError", {}).pipe : (this: A, ab: (_: A) => B) => B +>TaggedError()("BazError", {}) : TaggedErrorClass<"BazError", { readonly _tag: "BazError"; }> +>TaggedError() : (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>"BazError" : "BazError" +>{} : {} +>pipe : (this: A, ab: (_: A) => B) => B + + withCategory("system") +>withCategory("system") : , Ret, C_1 extends { new (...args: Args): Ret; }>(C: C_1) => C_1 & (new (...args: Args) => Ret & { "@effect/error/categories": { system: true; }; }) +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } +>"system" : "system" + +) {} + +declare const baz: ( +>baz : (x: number) => Effect + + x: number +>x : number + +) => Effect; + +export const program = baz(1).pipe(catchCategory("domain", (_) => log(_._tag))); +>program : Effect +>baz(1).pipe(catchCategory("domain", (_) => log(_._tag))) : Effect +>baz(1).pipe : (this: A, ab: (_: A) => B) => B +>baz(1) : Effect +>baz : (x: number) => Effect +>1 : 1 +>pipe : (this: A, ab: (_: A) => B) => B +>catchCategory("domain", (_) => log(_._tag)) : (effect: Effect) => Effect +>catchCategory : >, A2, E2, R2>(...args: [...Categories, f: (err: ExtractAll) => Effect]) => (effect: Effect) => Effect>, R | R2> +>"domain" : "domain" +>(_) => log(_._tag) : (_: BarError | FooError) => Effect +>_ : BarError | FooError +>log(_._tag) : Effect +>log : (...message: ReadonlyArray) => Effect +>_._tag : "BarError" | "FooError" +>_ : BarError | FooError +>_tag : "BarError" | "FooError" + diff --git a/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..2ca542cbcd27c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,124 @@ +pipeCallbackInferenceCheckOrder.ts(103,36): error TS2345: Argument of type '(effect: Effect) => Effect' is not assignable to parameter of type '(_: Effect) => Effect'. + Types of parameters 'effect' and '_' are incompatible. + Type 'Effect' is not assignable to type 'Effect'. + Type 'BarError | BazError | FooError' is not assignable to type 'BarError | FooError'. + Type 'BazError' is not assignable to type 'BarError | FooError'. + Type 'BazError' is not assignable to type 'FooError'. + Types of property '_tag' are incompatible. + Type '"BazError"' is not assignable to type '"FooError"'. + + +==== pipeCallbackInferenceCheckOrder.ts (1 errors) ==== + // The callback of a pipe is inferred from the error union of the piped + // effect, also when signature help was requested for the call first + // (62183). + + export interface Pipeable { + pipe(this: A, ab: (_: A) => B): B; + } + + type Covariant = (_: never) => A; + + interface VarianceStruct { + readonly _V: string; + readonly _A: Covariant; + readonly _E: Covariant; + readonly _R: Covariant; + } + + declare const EffectTypeId: unique symbol; + + interface Variance { + readonly [EffectTypeId]: VarianceStruct; + } + + interface Effect + extends Variance, + Pipeable {} + + interface Class extends Pipeable { + new (): Fields; + } + + interface TaggedErrorClass extends Class { + readonly _tag: Tag; + } + + declare const TaggedError: (identifier?: string) => < + Tag extends string, + Fields + >( + tag: Tag, + fieldsOr: Fields + ) => TaggedErrorClass< + Tag, + { + readonly _tag: Tag; + } + >; + + declare const log: ( + ...message: ReadonlyArray + ) => Effect; + + export const categoriesKey = "@effect/error/categories"; + + export declare const withCategory: >( + ...categories: Categories + ) => , Ret, C extends { new (...args: Args): Ret }>( + C: C + ) => C & { + new (...args: Args): Ret & { + [categoriesKey]: { [Cat in Categories[number]]: true }; + }; + }; + + export type AllKeys = E extends { [categoriesKey]: infer Q } + ? keyof Q + : never; + export type ExtractAll = Cats extends any + ? Extract + : never; + + export declare const catchCategory: < + E, + const Categories extends Array>, + A2, + E2, + R2 + >( + ...args: [ + ...Categories, + f: (err: ExtractAll) => Effect + ] + ) => ( + effect: Effect + ) => Effect>, R | R2>; + + class FooError extends TaggedError()("FooError", {}).pipe( + withCategory("domain") + ) {} + + class BarError extends TaggedError()("BarError", {}).pipe( + withCategory("system", "domain") + ) {} + + class BazError extends TaggedError()("BazError", {}).pipe( + withCategory("system") + ) {} + + declare const baz: ( + x: number + ) => Effect; + + export const program = baz(1).pipe(catchCategory("domain", (_) => log(_._tag))); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '(effect: Effect) => Effect' is not assignable to parameter of type '(_: Effect) => Effect'. +!!! error TS2345: Types of parameters 'effect' and '_' are incompatible. +!!! error TS2345: Type 'Effect' is not assignable to type 'Effect'. +!!! error TS2345: Type 'BarError | BazError | FooError' is not assignable to type 'BarError | FooError'. +!!! error TS2345: Type 'BazError' is not assignable to type 'BarError | FooError'. +!!! error TS2345: Type 'BazError' is not assignable to type 'FooError'. +!!! error TS2345: Types of property '_tag' are incompatible. +!!! error TS2345: Type '"BazError"' is not assignable to type '"FooError"'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..dd65bf841b787 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,341 @@ +//// [tests/cases/compiler/pipeCallbackInferenceCheckOrder.ts] //// + +=== pipeCallbackInferenceCheckOrder.ts === +// The callback of a pipe is inferred from the error union of the piped +// effect, also when signature help was requested for the call first +// (62183). + +export interface Pipeable { +>Pipeable : Symbol(Pipeable, Decl(pipeCallbackInferenceCheckOrder.ts, 0, 0)) + + pipe(this: A, ab: (_: A) => B): B; +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 7)) +>B : Symbol(B, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 9)) +>this : Symbol(this, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 21)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 7)) +>ab : Symbol(ab, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 29)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 35)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 7)) +>B : Symbol(B, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 9)) +>B : Symbol(B, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 9)) +} + +type Covariant = (_: never) => A; +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 15)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 21)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 15)) + +interface VarianceStruct { +>VarianceStruct : Symbol(VarianceStruct, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 36)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 25)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 31)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 38)) + + readonly _V: string; +>_V : Symbol(VarianceStruct._V, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 47)) + + readonly _A: Covariant; +>_A : Symbol(VarianceStruct._A, Decl(pipeCallbackInferenceCheckOrder.ts, 11, 22)) +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 25)) + + readonly _E: Covariant; +>_E : Symbol(VarianceStruct._E, Decl(pipeCallbackInferenceCheckOrder.ts, 12, 28)) +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 31)) + + readonly _R: Covariant; +>_R : Symbol(VarianceStruct._R, Decl(pipeCallbackInferenceCheckOrder.ts, 13, 28)) +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 38)) +} + +declare const EffectTypeId: unique symbol; +>EffectTypeId : Symbol(EffectTypeId, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 13)) + +interface Variance { +>Variance : Symbol(Variance, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 42)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 19)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 25)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 32)) + + readonly [EffectTypeId]: VarianceStruct; +>[EffectTypeId] : Symbol(Variance[EffectTypeId], Decl(pipeCallbackInferenceCheckOrder.ts, 19, 41)) +>EffectTypeId : Symbol(EffectTypeId, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 13)) +>VarianceStruct : Symbol(VarianceStruct, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 36)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 19)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 25)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 32)) +} + +interface Effect +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 17)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 23)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 38)) + + extends Variance, +>Variance : Symbol(Variance, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 42)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 17)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 23)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 38)) + + Pipeable {} +>Pipeable : Symbol(Pipeable, Decl(pipeCallbackInferenceCheckOrder.ts, 0, 0)) + +interface Class extends Pipeable { +>Class : Symbol(Class, Decl(pipeCallbackInferenceCheckOrder.ts, 25, 15)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 27, 16)) +>Pipeable : Symbol(Pipeable, Decl(pipeCallbackInferenceCheckOrder.ts, 0, 0)) + + new (): Fields; +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 27, 16)) +} + +interface TaggedErrorClass extends Class { +>TaggedErrorClass : Symbol(TaggedErrorClass, Decl(pipeCallbackInferenceCheckOrder.ts, 29, 1)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 27)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 46)) +>Class : Symbol(Class, Decl(pipeCallbackInferenceCheckOrder.ts, 25, 15)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 46)) + + readonly _tag: Tag; +>_tag : Symbol(TaggedErrorClass._tag, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 78)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 27)) +} + +declare const TaggedError: (identifier?: string) => < +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>identifier : Symbol(identifier, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 28)) + + Tag extends string, +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + + Fields +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 36, 21)) + +>( + tag: Tag, +>tag : Symbol(tag, Decl(pipeCallbackInferenceCheckOrder.ts, 38, 2)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + + fieldsOr: Fields +>fieldsOr : Symbol(fieldsOr, Decl(pipeCallbackInferenceCheckOrder.ts, 39, 11)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 36, 21)) + +) => TaggedErrorClass< +>TaggedErrorClass : Symbol(TaggedErrorClass, Decl(pipeCallbackInferenceCheckOrder.ts, 29, 1)) + + Tag, +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + { + readonly _tag: Tag; +>_tag : Symbol(_tag, Decl(pipeCallbackInferenceCheckOrder.ts, 43, 3)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + } +>; + +declare const log: ( +>log : Symbol(log, Decl(pipeCallbackInferenceCheckOrder.ts, 48, 13)) + + ...message: ReadonlyArray +>message : Symbol(message, Decl(pipeCallbackInferenceCheckOrder.ts, 48, 20)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --) ... and 3 more) + +) => Effect; +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) + +export const categoriesKey = "@effect/error/categories"; +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) + +export declare const withCategory: >( +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 36)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>PropertyKey : Symbol(PropertyKey, Decl(lib.es5.d.ts, --, --)) + + ...categories: Categories +>categories : Symbol(categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 75)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 36)) + +) => , Ret, C extends { new (...args: Args): Ret }>( +>Args : Symbol(Args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 6)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>Ret : Symbol(Ret, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 30)) +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) +>args : Symbol(args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 53)) +>Args : Symbol(Args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 6)) +>Ret : Symbol(Ret, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 30)) + + C: C +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) + +) => C & { +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) + + new (...args: Args): Ret & { +>args : Symbol(args, Decl(pipeCallbackInferenceCheckOrder.ts, 59, 7)) +>Args : Symbol(Args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 6)) +>Ret : Symbol(Ret, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 30)) + + [categoriesKey]: { [Cat in Categories[number]]: true }; +>[categoriesKey] : Symbol([categoriesKey], Decl(pipeCallbackInferenceCheckOrder.ts, 59, 30)) +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) +>Cat : Symbol(Cat, Decl(pipeCallbackInferenceCheckOrder.ts, 60, 24)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 36)) + + }; +}; + +export type AllKeys = E extends { [categoriesKey]: infer Q } +>AllKeys : Symbol(AllKeys, Decl(pipeCallbackInferenceCheckOrder.ts, 62, 2)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 20)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 20)) +>[categoriesKey] : Symbol([categoriesKey], Decl(pipeCallbackInferenceCheckOrder.ts, 64, 36)) +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) +>Q : Symbol(Q, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 59)) + + ? keyof Q +>Q : Symbol(Q, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 59)) + + : never; +export type ExtractAll = Cats extends any +>ExtractAll : Symbol(ExtractAll, Decl(pipeCallbackInferenceCheckOrder.ts, 66, 10)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 23)) +>Cats : Symbol(Cats, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 25)) +>PropertyKey : Symbol(PropertyKey, Decl(lib.es5.d.ts, --, --)) +>Cats : Symbol(Cats, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 25)) + + ? Extract +>Extract : Symbol(Extract, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 23)) +>[categoriesKey] : Symbol([categoriesKey], Decl(pipeCallbackInferenceCheckOrder.ts, 68, 16)) +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) +>K : Symbol(K, Decl(pipeCallbackInferenceCheckOrder.ts, 68, 37)) +>Cats : Symbol(Cats, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 25)) + + : never; + +export declare const catchCategory: < +>catchCategory : Symbol(catchCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 20)) + + E, +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) + + const Categories extends Array>, +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>AllKeys : Symbol(AllKeys, Decl(pipeCallbackInferenceCheckOrder.ts, 62, 2)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) + + A2, +>A2 : Symbol(A2, Decl(pipeCallbackInferenceCheckOrder.ts, 73, 45)) + + E2, +>E2 : Symbol(E2, Decl(pipeCallbackInferenceCheckOrder.ts, 74, 5)) + + R2 +>R2 : Symbol(R2, Decl(pipeCallbackInferenceCheckOrder.ts, 75, 5)) + +>( + ...args: [ +>args : Symbol(args, Decl(pipeCallbackInferenceCheckOrder.ts, 77, 2)) + + ...Categories, +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) + + f: (err: ExtractAll) => Effect +>err : Symbol(err, Decl(pipeCallbackInferenceCheckOrder.ts, 80, 8)) +>ExtractAll : Symbol(ExtractAll, Decl(pipeCallbackInferenceCheckOrder.ts, 66, 10)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A2 : Symbol(A2, Decl(pipeCallbackInferenceCheckOrder.ts, 73, 45)) +>E2 : Symbol(E2, Decl(pipeCallbackInferenceCheckOrder.ts, 74, 5)) +>R2 : Symbol(R2, Decl(pipeCallbackInferenceCheckOrder.ts, 75, 5)) + + ] +) => ( +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 6)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 8)) + + effect: Effect +>effect : Symbol(effect, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 12)) +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 6)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 8)) + +) => Effect>, R | R2>; +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 6)) +>A2 : Symbol(A2, Decl(pipeCallbackInferenceCheckOrder.ts, 73, 45)) +>E2 : Symbol(E2, Decl(pipeCallbackInferenceCheckOrder.ts, 74, 5)) +>Exclude : Symbol(Exclude, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>ExtractAll : Symbol(ExtractAll, Decl(pipeCallbackInferenceCheckOrder.ts, 66, 10)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 8)) +>R2 : Symbol(R2, Decl(pipeCallbackInferenceCheckOrder.ts, 75, 5)) + +class FooError extends TaggedError()("FooError", {}).pipe( +>FooError : Symbol(FooError, Decl(pipeCallbackInferenceCheckOrder.ts, 84, 80)) +>TaggedError()("FooError", {}).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) + + withCategory("domain") +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) + +) {} + +class BarError extends TaggedError()("BarError", {}).pipe( +>BarError : Symbol(BarError, Decl(pipeCallbackInferenceCheckOrder.ts, 88, 4)) +>TaggedError()("BarError", {}).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) + + withCategory("system", "domain") +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) + +) {} + +class BazError extends TaggedError()("BazError", {}).pipe( +>BazError : Symbol(BazError, Decl(pipeCallbackInferenceCheckOrder.ts, 92, 4)) +>TaggedError()("BazError", {}).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) + + withCategory("system") +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) + +) {} + +declare const baz: ( +>baz : Symbol(baz, Decl(pipeCallbackInferenceCheckOrder.ts, 98, 13)) + + x: number +>x : Symbol(x, Decl(pipeCallbackInferenceCheckOrder.ts, 98, 20)) + +) => Effect; +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>FooError : Symbol(FooError, Decl(pipeCallbackInferenceCheckOrder.ts, 84, 80)) +>BarError : Symbol(BarError, Decl(pipeCallbackInferenceCheckOrder.ts, 88, 4)) +>BazError : Symbol(BazError, Decl(pipeCallbackInferenceCheckOrder.ts, 92, 4)) + +export const program = baz(1).pipe(catchCategory("domain", (_) => log(_._tag))); +>program : Symbol(program, Decl(pipeCallbackInferenceCheckOrder.ts, 102, 12)) +>baz(1).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>baz : Symbol(baz, Decl(pipeCallbackInferenceCheckOrder.ts, 98, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>catchCategory : Symbol(catchCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 20)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 102, 60)) +>log : Symbol(log, Decl(pipeCallbackInferenceCheckOrder.ts, 48, 13)) +>_._tag : Symbol(_tag, Decl(pipeCallbackInferenceCheckOrder.ts, 43, 3)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 102, 60)) +>_tag : Symbol(_tag, Decl(pipeCallbackInferenceCheckOrder.ts, 43, 3)) + diff --git a/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..ed24113ba5e80 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,233 @@ +//// [tests/cases/compiler/pipeCallbackInferenceCheckOrder.ts] //// + +=== pipeCallbackInferenceCheckOrder.ts === +// The callback of a pipe is inferred from the error union of the piped +// effect, also when signature help was requested for the call first +// (62183). + +export interface Pipeable { + pipe(this: A, ab: (_: A) => B): B; +>pipe : (this: A, ab: (_: A) => B) => B +>this : A +>ab : (_: A) => B +>_ : A +} + +type Covariant = (_: never) => A; +>Covariant : Covariant +>_ : never + +interface VarianceStruct { + readonly _V: string; +>_V : string + + readonly _A: Covariant; +>_A : Covariant + + readonly _E: Covariant; +>_E : Covariant + + readonly _R: Covariant; +>_R : Covariant +} + +declare const EffectTypeId: unique symbol; +>EffectTypeId : unique symbol + +interface Variance { + readonly [EffectTypeId]: VarianceStruct; +>[EffectTypeId] : VarianceStruct +>EffectTypeId : unique symbol +} + +interface Effect + extends Variance, + Pipeable {} + +interface Class extends Pipeable { + new (): Fields; +} + +interface TaggedErrorClass extends Class { + readonly _tag: Tag; +>_tag : Tag +} + +declare const TaggedError: (identifier?: string) => < +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>identifier : string | undefined + + Tag extends string, + Fields +>( + tag: Tag, +>tag : Tag + + fieldsOr: Fields +>fieldsOr : Fields + +) => TaggedErrorClass< + Tag, + { + readonly _tag: Tag; +>_tag : Tag + } +>; + +declare const log: ( +>log : (...message: ReadonlyArray) => Effect + + ...message: ReadonlyArray +>message : readonly any[] + +) => Effect; + +export const categoriesKey = "@effect/error/categories"; +>categoriesKey : "@effect/error/categories" +>"@effect/error/categories" : "@effect/error/categories" + +export declare const withCategory: >( +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } + + ...categories: Categories +>categories : Categories + +) => , Ret, C extends { new (...args: Args): Ret }>( +>args : Args + + C: C +>C : C + +) => C & { + new (...args: Args): Ret & { +>args : Args + + [categoriesKey]: { [Cat in Categories[number]]: true }; +>[categoriesKey] : { [Cat in Categories[number]]: true; } +>categoriesKey : "@effect/error/categories" +>true : true + + }; +}; + +export type AllKeys = E extends { [categoriesKey]: infer Q } +>AllKeys : AllKeys +>[categoriesKey] : Q +>categoriesKey : "@effect/error/categories" + + ? keyof Q + : never; +export type ExtractAll = Cats extends any +>ExtractAll : ExtractAll + + ? Extract +>[categoriesKey] : { [K in Cats]: any; } +>categoriesKey : "@effect/error/categories" + + : never; + +export declare const catchCategory: < +>catchCategory : >, A2, E2, R2>(...args: [...Categories, f: (err: ExtractAll) => Effect]) => (effect: Effect) => Effect>, R | R2> + + E, + const Categories extends Array>, + A2, + E2, + R2 +>( + ...args: [ +>args : [...Categories, f: (err: ExtractAll) => Effect] + + ...Categories, + f: (err: ExtractAll) => Effect +>err : ExtractAll + + ] +) => ( + effect: Effect +>effect : Effect + +) => Effect>, R | R2>; + +class FooError extends TaggedError()("FooError", {}).pipe( +>FooError : FooError +>TaggedError()("FooError", {}).pipe( withCategory("domain")) : { readonly _tag: "FooError"; } & { "@effect/error/categories": { domain: true; }; } +>TaggedError()("FooError", {}).pipe : (this: A, ab: (_: A) => B) => B +>TaggedError()("FooError", {}) : TaggedErrorClass<"FooError", { readonly _tag: "FooError"; }> +>TaggedError() : (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>"FooError" : "FooError" +>{} : {} +>pipe : (this: A, ab: (_: A) => B) => B + + withCategory("domain") +>withCategory("domain") : , Ret, C_1 extends { new (...args: Args): Ret; }>(C: C_1) => C_1 & (new (...args: Args) => Ret & { "@effect/error/categories": { domain: true; }; }) +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } +>"domain" : "domain" + +) {} + +class BarError extends TaggedError()("BarError", {}).pipe( +>BarError : BarError +>TaggedError()("BarError", {}).pipe( withCategory("system", "domain")) : { readonly _tag: "BarError"; } & { "@effect/error/categories": { domain: true; system: true; }; } +>TaggedError()("BarError", {}).pipe : (this: A, ab: (_: A) => B) => B +>TaggedError()("BarError", {}) : TaggedErrorClass<"BarError", { readonly _tag: "BarError"; }> +>TaggedError() : (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>"BarError" : "BarError" +>{} : {} +>pipe : (this: A, ab: (_: A) => B) => B + + withCategory("system", "domain") +>withCategory("system", "domain") : , Ret, C_1 extends { new (...args: Args): Ret; }>(C: C_1) => C_1 & (new (...args: Args) => Ret & { "@effect/error/categories": { domain: true; system: true; }; }) +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } +>"system" : "system" +>"domain" : "domain" + +) {} + +class BazError extends TaggedError()("BazError", {}).pipe( +>BazError : BazError +>TaggedError()("BazError", {}).pipe( withCategory("system")) : { readonly _tag: "BazError"; } & { "@effect/error/categories": { system: true; }; } +>TaggedError()("BazError", {}).pipe : (this: A, ab: (_: A) => B) => B +>TaggedError()("BazError", {}) : TaggedErrorClass<"BazError", { readonly _tag: "BazError"; }> +>TaggedError() : (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>"BazError" : "BazError" +>{} : {} +>pipe : (this: A, ab: (_: A) => B) => B + + withCategory("system") +>withCategory("system") : , Ret, C_1 extends { new (...args: Args): Ret; }>(C: C_1) => C_1 & (new (...args: Args) => Ret & { "@effect/error/categories": { system: true; }; }) +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } +>"system" : "system" + +) {} + +declare const baz: ( +>baz : (x: number) => Effect + + x: number +>x : number + +) => Effect; + +export const program = baz(1).pipe(catchCategory("domain", (_) => log(_._tag))); +>program : never +>baz(1).pipe(catchCategory("domain", (_) => log(_._tag))) : never +>baz(1).pipe : (this: A, ab: (_: A) => B) => B +>baz(1) : Effect +>baz : (x: number) => Effect +>1 : 1 +>pipe : (this: A, ab: (_: A) => B) => B +>catchCategory("domain", (_) => log(_._tag)) : (effect: Effect) => Effect +>catchCategory : >, A2, E2, R2>(...args: [...Categories, f: (err: ExtractAll) => Effect]) => (effect: Effect) => Effect>, R | R2> +>"domain" : "domain" +>(_) => log(_._tag) : (_: BarError | FooError) => Effect +>_ : BarError | FooError +>log(_._tag) : Effect +>log : (...message: ReadonlyArray) => Effect +>_._tag : "BarError" | "FooError" +>_ : BarError | FooError +>_tag : "BarError" | "FooError" + diff --git a/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..dd65bf841b787 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,341 @@ +//// [tests/cases/compiler/pipeCallbackInferenceCheckOrder.ts] //// + +=== pipeCallbackInferenceCheckOrder.ts === +// The callback of a pipe is inferred from the error union of the piped +// effect, also when signature help was requested for the call first +// (62183). + +export interface Pipeable { +>Pipeable : Symbol(Pipeable, Decl(pipeCallbackInferenceCheckOrder.ts, 0, 0)) + + pipe(this: A, ab: (_: A) => B): B; +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 7)) +>B : Symbol(B, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 9)) +>this : Symbol(this, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 21)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 7)) +>ab : Symbol(ab, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 29)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 35)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 7)) +>B : Symbol(B, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 9)) +>B : Symbol(B, Decl(pipeCallbackInferenceCheckOrder.ts, 5, 9)) +} + +type Covariant = (_: never) => A; +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 15)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 21)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 15)) + +interface VarianceStruct { +>VarianceStruct : Symbol(VarianceStruct, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 36)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 25)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 31)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 38)) + + readonly _V: string; +>_V : Symbol(VarianceStruct._V, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 47)) + + readonly _A: Covariant; +>_A : Symbol(VarianceStruct._A, Decl(pipeCallbackInferenceCheckOrder.ts, 11, 22)) +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 25)) + + readonly _E: Covariant; +>_E : Symbol(VarianceStruct._E, Decl(pipeCallbackInferenceCheckOrder.ts, 12, 28)) +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 31)) + + readonly _R: Covariant; +>_R : Symbol(VarianceStruct._R, Decl(pipeCallbackInferenceCheckOrder.ts, 13, 28)) +>Covariant : Symbol(Covariant, Decl(pipeCallbackInferenceCheckOrder.ts, 6, 1)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 10, 38)) +} + +declare const EffectTypeId: unique symbol; +>EffectTypeId : Symbol(EffectTypeId, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 13)) + +interface Variance { +>Variance : Symbol(Variance, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 42)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 19)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 25)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 32)) + + readonly [EffectTypeId]: VarianceStruct; +>[EffectTypeId] : Symbol(Variance[EffectTypeId], Decl(pipeCallbackInferenceCheckOrder.ts, 19, 41)) +>EffectTypeId : Symbol(EffectTypeId, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 13)) +>VarianceStruct : Symbol(VarianceStruct, Decl(pipeCallbackInferenceCheckOrder.ts, 8, 36)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 19)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 25)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 19, 32)) +} + +interface Effect +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 17)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 23)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 38)) + + extends Variance, +>Variance : Symbol(Variance, Decl(pipeCallbackInferenceCheckOrder.ts, 17, 42)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 17)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 23)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 23, 38)) + + Pipeable {} +>Pipeable : Symbol(Pipeable, Decl(pipeCallbackInferenceCheckOrder.ts, 0, 0)) + +interface Class extends Pipeable { +>Class : Symbol(Class, Decl(pipeCallbackInferenceCheckOrder.ts, 25, 15)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 27, 16)) +>Pipeable : Symbol(Pipeable, Decl(pipeCallbackInferenceCheckOrder.ts, 0, 0)) + + new (): Fields; +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 27, 16)) +} + +interface TaggedErrorClass extends Class { +>TaggedErrorClass : Symbol(TaggedErrorClass, Decl(pipeCallbackInferenceCheckOrder.ts, 29, 1)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 27)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 46)) +>Class : Symbol(Class, Decl(pipeCallbackInferenceCheckOrder.ts, 25, 15)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 46)) + + readonly _tag: Tag; +>_tag : Symbol(TaggedErrorClass._tag, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 78)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 31, 27)) +} + +declare const TaggedError: (identifier?: string) => < +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>identifier : Symbol(identifier, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 28)) + + Tag extends string, +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + + Fields +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 36, 21)) + +>( + tag: Tag, +>tag : Symbol(tag, Decl(pipeCallbackInferenceCheckOrder.ts, 38, 2)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + + fieldsOr: Fields +>fieldsOr : Symbol(fieldsOr, Decl(pipeCallbackInferenceCheckOrder.ts, 39, 11)) +>Fields : Symbol(Fields, Decl(pipeCallbackInferenceCheckOrder.ts, 36, 21)) + +) => TaggedErrorClass< +>TaggedErrorClass : Symbol(TaggedErrorClass, Decl(pipeCallbackInferenceCheckOrder.ts, 29, 1)) + + Tag, +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + { + readonly _tag: Tag; +>_tag : Symbol(_tag, Decl(pipeCallbackInferenceCheckOrder.ts, 43, 3)) +>Tag : Symbol(Tag, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 53)) + } +>; + +declare const log: ( +>log : Symbol(log, Decl(pipeCallbackInferenceCheckOrder.ts, 48, 13)) + + ...message: ReadonlyArray +>message : Symbol(message, Decl(pipeCallbackInferenceCheckOrder.ts, 48, 20)) +>ReadonlyArray : Symbol(ReadonlyArray, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2016.array.include.d.ts, --, --) ... and 3 more) + +) => Effect; +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) + +export const categoriesKey = "@effect/error/categories"; +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) + +export declare const withCategory: >( +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 36)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>PropertyKey : Symbol(PropertyKey, Decl(lib.es5.d.ts, --, --)) + + ...categories: Categories +>categories : Symbol(categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 75)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 36)) + +) => , Ret, C extends { new (...args: Args): Ret }>( +>Args : Symbol(Args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 6)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>Ret : Symbol(Ret, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 30)) +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) +>args : Symbol(args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 53)) +>Args : Symbol(Args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 6)) +>Ret : Symbol(Ret, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 30)) + + C: C +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) + +) => C & { +>C : Symbol(C, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 35), Decl(pipeCallbackInferenceCheckOrder.ts, 56, 76)) + + new (...args: Args): Ret & { +>args : Symbol(args, Decl(pipeCallbackInferenceCheckOrder.ts, 59, 7)) +>Args : Symbol(Args, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 6)) +>Ret : Symbol(Ret, Decl(pipeCallbackInferenceCheckOrder.ts, 56, 30)) + + [categoriesKey]: { [Cat in Categories[number]]: true }; +>[categoriesKey] : Symbol([categoriesKey], Decl(pipeCallbackInferenceCheckOrder.ts, 59, 30)) +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) +>Cat : Symbol(Cat, Decl(pipeCallbackInferenceCheckOrder.ts, 60, 24)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 36)) + + }; +}; + +export type AllKeys = E extends { [categoriesKey]: infer Q } +>AllKeys : Symbol(AllKeys, Decl(pipeCallbackInferenceCheckOrder.ts, 62, 2)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 20)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 20)) +>[categoriesKey] : Symbol([categoriesKey], Decl(pipeCallbackInferenceCheckOrder.ts, 64, 36)) +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) +>Q : Symbol(Q, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 59)) + + ? keyof Q +>Q : Symbol(Q, Decl(pipeCallbackInferenceCheckOrder.ts, 64, 59)) + + : never; +export type ExtractAll = Cats extends any +>ExtractAll : Symbol(ExtractAll, Decl(pipeCallbackInferenceCheckOrder.ts, 66, 10)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 23)) +>Cats : Symbol(Cats, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 25)) +>PropertyKey : Symbol(PropertyKey, Decl(lib.es5.d.ts, --, --)) +>Cats : Symbol(Cats, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 25)) + + ? Extract +>Extract : Symbol(Extract, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 23)) +>[categoriesKey] : Symbol([categoriesKey], Decl(pipeCallbackInferenceCheckOrder.ts, 68, 16)) +>categoriesKey : Symbol(categoriesKey, Decl(pipeCallbackInferenceCheckOrder.ts, 52, 12)) +>K : Symbol(K, Decl(pipeCallbackInferenceCheckOrder.ts, 68, 37)) +>Cats : Symbol(Cats, Decl(pipeCallbackInferenceCheckOrder.ts, 67, 25)) + + : never; + +export declare const catchCategory: < +>catchCategory : Symbol(catchCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 20)) + + E, +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) + + const Categories extends Array>, +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>AllKeys : Symbol(AllKeys, Decl(pipeCallbackInferenceCheckOrder.ts, 62, 2)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) + + A2, +>A2 : Symbol(A2, Decl(pipeCallbackInferenceCheckOrder.ts, 73, 45)) + + E2, +>E2 : Symbol(E2, Decl(pipeCallbackInferenceCheckOrder.ts, 74, 5)) + + R2 +>R2 : Symbol(R2, Decl(pipeCallbackInferenceCheckOrder.ts, 75, 5)) + +>( + ...args: [ +>args : Symbol(args, Decl(pipeCallbackInferenceCheckOrder.ts, 77, 2)) + + ...Categories, +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) + + f: (err: ExtractAll) => Effect +>err : Symbol(err, Decl(pipeCallbackInferenceCheckOrder.ts, 80, 8)) +>ExtractAll : Symbol(ExtractAll, Decl(pipeCallbackInferenceCheckOrder.ts, 66, 10)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A2 : Symbol(A2, Decl(pipeCallbackInferenceCheckOrder.ts, 73, 45)) +>E2 : Symbol(E2, Decl(pipeCallbackInferenceCheckOrder.ts, 74, 5)) +>R2 : Symbol(R2, Decl(pipeCallbackInferenceCheckOrder.ts, 75, 5)) + + ] +) => ( +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 6)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 8)) + + effect: Effect +>effect : Symbol(effect, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 12)) +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 6)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 8)) + +) => Effect>, R | R2>; +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>A : Symbol(A, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 6)) +>A2 : Symbol(A2, Decl(pipeCallbackInferenceCheckOrder.ts, 73, 45)) +>E2 : Symbol(E2, Decl(pipeCallbackInferenceCheckOrder.ts, 74, 5)) +>Exclude : Symbol(Exclude, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>ExtractAll : Symbol(ExtractAll, Decl(pipeCallbackInferenceCheckOrder.ts, 66, 10)) +>E : Symbol(E, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 37)) +>Categories : Symbol(Categories, Decl(pipeCallbackInferenceCheckOrder.ts, 72, 4)) +>R : Symbol(R, Decl(pipeCallbackInferenceCheckOrder.ts, 82, 8)) +>R2 : Symbol(R2, Decl(pipeCallbackInferenceCheckOrder.ts, 75, 5)) + +class FooError extends TaggedError()("FooError", {}).pipe( +>FooError : Symbol(FooError, Decl(pipeCallbackInferenceCheckOrder.ts, 84, 80)) +>TaggedError()("FooError", {}).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) + + withCategory("domain") +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) + +) {} + +class BarError extends TaggedError()("BarError", {}).pipe( +>BarError : Symbol(BarError, Decl(pipeCallbackInferenceCheckOrder.ts, 88, 4)) +>TaggedError()("BarError", {}).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) + + withCategory("system", "domain") +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) + +) {} + +class BazError extends TaggedError()("BazError", {}).pipe( +>BazError : Symbol(BazError, Decl(pipeCallbackInferenceCheckOrder.ts, 92, 4)) +>TaggedError()("BazError", {}).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>TaggedError : Symbol(TaggedError, Decl(pipeCallbackInferenceCheckOrder.ts, 35, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) + + withCategory("system") +>withCategory : Symbol(withCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 54, 20)) + +) {} + +declare const baz: ( +>baz : Symbol(baz, Decl(pipeCallbackInferenceCheckOrder.ts, 98, 13)) + + x: number +>x : Symbol(x, Decl(pipeCallbackInferenceCheckOrder.ts, 98, 20)) + +) => Effect; +>Effect : Symbol(Effect, Decl(pipeCallbackInferenceCheckOrder.ts, 21, 1)) +>FooError : Symbol(FooError, Decl(pipeCallbackInferenceCheckOrder.ts, 84, 80)) +>BarError : Symbol(BarError, Decl(pipeCallbackInferenceCheckOrder.ts, 88, 4)) +>BazError : Symbol(BazError, Decl(pipeCallbackInferenceCheckOrder.ts, 92, 4)) + +export const program = baz(1).pipe(catchCategory("domain", (_) => log(_._tag))); +>program : Symbol(program, Decl(pipeCallbackInferenceCheckOrder.ts, 102, 12)) +>baz(1).pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>baz : Symbol(baz, Decl(pipeCallbackInferenceCheckOrder.ts, 98, 13)) +>pipe : Symbol(Pipeable.pipe, Decl(pipeCallbackInferenceCheckOrder.ts, 4, 27)) +>catchCategory : Symbol(catchCategory, Decl(pipeCallbackInferenceCheckOrder.ts, 71, 20)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 102, 60)) +>log : Symbol(log, Decl(pipeCallbackInferenceCheckOrder.ts, 48, 13)) +>_._tag : Symbol(_tag, Decl(pipeCallbackInferenceCheckOrder.ts, 43, 3)) +>_ : Symbol(_, Decl(pipeCallbackInferenceCheckOrder.ts, 102, 60)) +>_tag : Symbol(_tag, Decl(pipeCallbackInferenceCheckOrder.ts, 43, 3)) + diff --git a/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..09166c8c289a5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/pipeCallbackInferenceCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,233 @@ +//// [tests/cases/compiler/pipeCallbackInferenceCheckOrder.ts] //// + +=== pipeCallbackInferenceCheckOrder.ts === +// The callback of a pipe is inferred from the error union of the piped +// effect, also when signature help was requested for the call first +// (62183). + +export interface Pipeable { + pipe(this: A, ab: (_: A) => B): B; +>pipe : (this: A, ab: (_: A) => B) => B +>this : A +>ab : (_: A) => B +>_ : A +} + +type Covariant = (_: never) => A; +>Covariant : Covariant +>_ : never + +interface VarianceStruct { + readonly _V: string; +>_V : string + + readonly _A: Covariant; +>_A : Covariant + + readonly _E: Covariant; +>_E : Covariant + + readonly _R: Covariant; +>_R : Covariant +} + +declare const EffectTypeId: unique symbol; +>EffectTypeId : unique symbol + +interface Variance { + readonly [EffectTypeId]: VarianceStruct; +>[EffectTypeId] : VarianceStruct +>EffectTypeId : unique symbol +} + +interface Effect + extends Variance, + Pipeable {} + +interface Class extends Pipeable { + new (): Fields; +} + +interface TaggedErrorClass extends Class { + readonly _tag: Tag; +>_tag : Tag +} + +declare const TaggedError: (identifier?: string) => < +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>identifier : string | undefined + + Tag extends string, + Fields +>( + tag: Tag, +>tag : Tag + + fieldsOr: Fields +>fieldsOr : Fields + +) => TaggedErrorClass< + Tag, + { + readonly _tag: Tag; +>_tag : Tag + } +>; + +declare const log: ( +>log : (...message: ReadonlyArray) => Effect + + ...message: ReadonlyArray +>message : readonly any[] + +) => Effect; + +export const categoriesKey = "@effect/error/categories"; +>categoriesKey : "@effect/error/categories" +>"@effect/error/categories" : "@effect/error/categories" + +export declare const withCategory: >( +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } + + ...categories: Categories +>categories : Categories + +) => , Ret, C extends { new (...args: Args): Ret }>( +>args : Args + + C: C +>C : C + +) => C & { + new (...args: Args): Ret & { +>args : Args + + [categoriesKey]: { [Cat in Categories[number]]: true }; +>[categoriesKey] : { [Cat in Categories[number]]: true; } +>categoriesKey : "@effect/error/categories" +>true : true + + }; +}; + +export type AllKeys = E extends { [categoriesKey]: infer Q } +>AllKeys : AllKeys +>[categoriesKey] : Q +>categoriesKey : "@effect/error/categories" + + ? keyof Q + : never; +export type ExtractAll = Cats extends any +>ExtractAll : ExtractAll + + ? Extract +>[categoriesKey] : { [K in Cats]: any; } +>categoriesKey : "@effect/error/categories" + + : never; + +export declare const catchCategory: < +>catchCategory : >, A2, E2, R2>(...args: [...Categories, f: (err: ExtractAll) => Effect]) => (effect: Effect) => Effect>, R | R2> + + E, + const Categories extends Array>, + A2, + E2, + R2 +>( + ...args: [ +>args : [...Categories, f: (err: ExtractAll) => Effect] + + ...Categories, + f: (err: ExtractAll) => Effect +>err : ExtractAll + + ] +) => ( + effect: Effect +>effect : Effect + +) => Effect>, R | R2>; + +class FooError extends TaggedError()("FooError", {}).pipe( +>FooError : FooError +>TaggedError()("FooError", {}).pipe( withCategory("domain")) : { readonly _tag: "FooError"; } & { "@effect/error/categories": { domain: true; }; } +>TaggedError()("FooError", {}).pipe : (this: A, ab: (_: A) => B) => B +>TaggedError()("FooError", {}) : TaggedErrorClass<"FooError", { readonly _tag: "FooError"; }> +>TaggedError() : (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>"FooError" : "FooError" +>{} : {} +>pipe : (this: A, ab: (_: A) => B) => B + + withCategory("domain") +>withCategory("domain") : , Ret, C_1 extends { new (...args: Args): Ret; }>(C: C_1) => C_1 & (new (...args: Args) => Ret & { "@effect/error/categories": { domain: true; }; }) +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } +>"domain" : "domain" + +) {} + +class BarError extends TaggedError()("BarError", {}).pipe( +>BarError : BarError +>TaggedError()("BarError", {}).pipe( withCategory("system", "domain")) : { readonly _tag: "BarError"; } & { "@effect/error/categories": { domain: true; system: true; }; } +>TaggedError()("BarError", {}).pipe : (this: A, ab: (_: A) => B) => B +>TaggedError()("BarError", {}) : TaggedErrorClass<"BarError", { readonly _tag: "BarError"; }> +>TaggedError() : (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>"BarError" : "BarError" +>{} : {} +>pipe : (this: A, ab: (_: A) => B) => B + + withCategory("system", "domain") +>withCategory("system", "domain") : , Ret, C_1 extends { new (...args: Args): Ret; }>(C: C_1) => C_1 & (new (...args: Args) => Ret & { "@effect/error/categories": { domain: true; system: true; }; }) +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } +>"system" : "system" +>"domain" : "domain" + +) {} + +class BazError extends TaggedError()("BazError", {}).pipe( +>BazError : BazError +>TaggedError()("BazError", {}).pipe( withCategory("system")) : { readonly _tag: "BazError"; } & { "@effect/error/categories": { system: true; }; } +>TaggedError()("BazError", {}).pipe : (this: A, ab: (_: A) => B) => B +>TaggedError()("BazError", {}) : TaggedErrorClass<"BazError", { readonly _tag: "BazError"; }> +>TaggedError() : (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>TaggedError : (identifier?: string) => (tag: Tag, fieldsOr: Fields) => TaggedErrorClass +>"BazError" : "BazError" +>{} : {} +>pipe : (this: A, ab: (_: A) => B) => B + + withCategory("system") +>withCategory("system") : , Ret, C_1 extends { new (...args: Args): Ret; }>(C: C_1) => C_1 & (new (...args: Args) => Ret & { "@effect/error/categories": { system: true; }; }) +>withCategory : >(...categories: Categories) => , Ret, C extends { new (...args: Args): Ret; }>(C: C) => C & { new (...args: Args): Ret & { [categoriesKey]: { [Cat in Categories[number]]: true; }; }; } +>"system" : "system" + +) {} + +declare const baz: ( +>baz : (x: number) => Effect + + x: number +>x : number + +) => Effect; + +export const program = baz(1).pipe(catchCategory("domain", (_) => log(_._tag))); +>program : Effect +>baz(1).pipe(catchCategory("domain", (_) => log(_._tag))) : Effect +>baz(1).pipe : (this: A, ab: (_: A) => B) => B +>baz(1) : Effect +>baz : (x: number) => Effect +>1 : 1 +>pipe : (this: A, ab: (_: A) => B) => B +>catchCategory("domain", (_) => log(_._tag)) : (effect: Effect) => Effect +>catchCategory : >, A2, E2, R2>(...args: [...Categories, f: (err: ExtractAll) => Effect]) => (effect: Effect) => Effect>, R | R2> +>"domain" : "domain" +>(_) => log(_._tag) : (_: BarError | FooError) => Effect +>_ : BarError | FooError +>log(_._tag) : Effect +>log : (...message: ReadonlyArray) => Effect +>_._tag : "BarError" | "FooError" +>_ : BarError | FooError +>_tag : "BarError" | "FooError" + diff --git a/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..9377a11b042da --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,16 @@ +qualifiedNameCycleErrorCheckOrder.ts(5,15): error TS2502: 'n' is referenced directly or indirectly in its own type annotation. +qualifiedNameCycleErrorCheckOrder.ts(5,20): error TS2694: Namespace 'n' has no exported member 'T'. + + +==== qualifiedNameCycleErrorCheckOrder.ts (2 errors) ==== + // Resolving n.T looks for a value n to suggest typeof, which needs the type of + // n, which is n.T. The missing member must be reported whichever is + // resolved first. + + declare const n: n.T; + ~ +!!! error TS2502: 'n' is referenced directly or indirectly in its own type annotation. + ~ +!!! error TS2694: Namespace 'n' has no exported member 'T'. + declare namespace n {} + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).js new file mode 100644 index 0000000000000..9ca975f52c7c4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/qualifiedNameCycleErrorCheckOrder.ts] //// + +//// [qualifiedNameCycleErrorCheckOrder.ts] +// Resolving n.T looks for a value n to suggest typeof, which needs the type of +// n, which is n.T. The missing member must be reported whichever is +// resolved first. + +declare const n: n.T; +declare namespace n {} + + +//// [qualifiedNameCycleErrorCheckOrder.js] +"use strict"; +// Resolving n.T looks for a value n to suggest typeof, which needs the type of +// n, which is n.T. The missing member must be reported whichever is +// resolved first. diff --git a/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..3540b50c66446 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/qualifiedNameCycleErrorCheckOrder.ts] //// + +=== qualifiedNameCycleErrorCheckOrder.ts === +// Resolving n.T looks for a value n to suggest typeof, which needs the type of +// n, which is n.T. The missing member must be reported whichever is +// resolved first. + +declare const n: n.T; +>n : Symbol(n, Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 13), Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 21)) +>n : Symbol(n, Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 13), Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 21)) +>T : Symbol(n.T) + +declare namespace n {} +>n : Symbol(n, Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 13), Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 21)) + diff --git a/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..0aaabb289b6a6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=default).types @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/qualifiedNameCycleErrorCheckOrder.ts] //// + +=== qualifiedNameCycleErrorCheckOrder.ts === +// Resolving n.T looks for a value n to suggest typeof, which needs the type of +// n, which is n.T. The missing member must be reported whichever is +// resolved first. + +declare const n: n.T; +>n : any +>n : any + +declare namespace n {} + diff --git a/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..9377a11b042da --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,16 @@ +qualifiedNameCycleErrorCheckOrder.ts(5,15): error TS2502: 'n' is referenced directly or indirectly in its own type annotation. +qualifiedNameCycleErrorCheckOrder.ts(5,20): error TS2694: Namespace 'n' has no exported member 'T'. + + +==== qualifiedNameCycleErrorCheckOrder.ts (2 errors) ==== + // Resolving n.T looks for a value n to suggest typeof, which needs the type of + // n, which is n.T. The missing member must be reported whichever is + // resolved first. + + declare const n: n.T; + ~ +!!! error TS2502: 'n' is referenced directly or indirectly in its own type annotation. + ~ +!!! error TS2694: Namespace 'n' has no exported member 'T'. + declare namespace n {} + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).js new file mode 100644 index 0000000000000..9ca975f52c7c4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/qualifiedNameCycleErrorCheckOrder.ts] //// + +//// [qualifiedNameCycleErrorCheckOrder.ts] +// Resolving n.T looks for a value n to suggest typeof, which needs the type of +// n, which is n.T. The missing member must be reported whichever is +// resolved first. + +declare const n: n.T; +declare namespace n {} + + +//// [qualifiedNameCycleErrorCheckOrder.js] +"use strict"; +// Resolving n.T looks for a value n to suggest typeof, which needs the type of +// n, which is n.T. The missing member must be reported whichever is +// resolved first. diff --git a/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..3540b50c66446 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/qualifiedNameCycleErrorCheckOrder.ts] //// + +=== qualifiedNameCycleErrorCheckOrder.ts === +// Resolving n.T looks for a value n to suggest typeof, which needs the type of +// n, which is n.T. The missing member must be reported whichever is +// resolved first. + +declare const n: n.T; +>n : Symbol(n, Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 13), Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 21)) +>n : Symbol(n, Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 13), Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 21)) +>T : Symbol(n.T) + +declare namespace n {} +>n : Symbol(n, Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 13), Decl(qualifiedNameCycleErrorCheckOrder.ts, 4, 21)) + diff --git a/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..0aaabb289b6a6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/qualifiedNameCycleErrorCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,13 @@ +//// [tests/cases/compiler/qualifiedNameCycleErrorCheckOrder.ts] //// + +=== qualifiedNameCycleErrorCheckOrder.ts === +// Resolving n.T looks for a value n to suggest typeof, which needs the type of +// n, which is n.T. The missing member must be reported whichever is +// resolved first. + +declare const n: n.T; +>n : any +>n : any + +declare namespace n {} + diff --git a/tsc/testdata/baselines/reference/compiler/recursiveGenericInterfaceDeclarationOrder.symbols b/tsc/testdata/baselines/reference/compiler/recursiveGenericInterfaceDeclarationOrder.symbols new file mode 100644 index 0000000000000..90c083e029559 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/recursiveGenericInterfaceDeclarationOrder.symbols @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/recursiveGenericInterfaceDeclarationOrder.ts] //// + +=== recursiveGenericInterfaceDeclarationOrder.ts === +// The assignment is valid, as method parameters are compared bivariantly, and +// must be accepted whichever of the interfaces is declared first. + +type M = { kind: "m" }; +>M : Symbol(M, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 0, 0)) +>kind : Symbol(kind, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 3, 10)) + +type Filtered = { [K in keyof T as T[K] extends M ? K : never]: T[K] }; +>Filtered : Symbol(Filtered, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 3, 23)) +>T : Symbol(T, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 4, 14)) +>K : Symbol(K, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 4, 22)) +>T : Symbol(T, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 4, 14)) +>T : Symbol(T, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 4, 14)) +>K : Symbol(K, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 4, 22)) +>M : Symbol(M, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 0, 0)) +>K : Symbol(K, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 4, 22)) +>T : Symbol(T, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 4, 14)) +>K : Symbol(K, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 4, 22)) + +interface Config { measure: keyof T } +>Config : Symbol(Config, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 4, 74)) +>T : Symbol(T, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 5, 17)) +>measure : Symbol(Config.measure, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 5, 21)) +>T : Symbol(T, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 5, 17)) + +interface Ref { dataset: DS, N> } +>Ref : Symbol(Ref, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 5, 40)) +>N : Symbol(N, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 6, 14)) +>dataset : Symbol(Ref.dataset, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 6, 18)) +>DS : Symbol(DS, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 6, 54)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>M : Symbol(M, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 0, 0)) +>N : Symbol(N, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 6, 14)) + +interface DS { +>DS : Symbol(DS, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 6, 54)) +>T : Symbol(T, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 7, 13)) +>N : Symbol(N, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 7, 15)) + + a(config: Config>): void; +>a : Symbol(DS.a, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 7, 20)) +>config : Symbol(config, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 8, 4)) +>Config : Symbol(Config, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 4, 74)) +>Filtered : Symbol(Filtered, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 3, 23)) +>T : Symbol(T, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 7, 13)) + + b: Ref; +>b : Symbol(DS.b, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 8, 39)) +>Ref : Symbol(Ref, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 5, 40)) +>N : Symbol(N, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 7, 15)) +} +declare const x: DS<{ total: M }, string>; +>x : Symbol(x, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 11, 13)) +>DS : Symbol(DS, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 6, 54)) +>total : Symbol(total, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 11, 21)) +>M : Symbol(M, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 0, 0)) + +export const y: DS, string> = x; +>y : Symbol(y, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 12, 12)) +>DS : Symbol(DS, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 6, 54)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>M : Symbol(M, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 0, 0)) +>x : Symbol(x, Decl(recursiveGenericInterfaceDeclarationOrder.ts, 11, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/recursiveGenericInterfaceDeclarationOrder.types b/tsc/testdata/baselines/reference/compiler/recursiveGenericInterfaceDeclarationOrder.types new file mode 100644 index 0000000000000..5bdcbb5101541 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/recursiveGenericInterfaceDeclarationOrder.types @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/recursiveGenericInterfaceDeclarationOrder.ts] //// + +=== recursiveGenericInterfaceDeclarationOrder.ts === +// The assignment is valid, as method parameters are compared bivariantly, and +// must be accepted whichever of the interfaces is declared first. + +type M = { kind: "m" }; +>M : M +>kind : "m" + +type Filtered = { [K in keyof T as T[K] extends M ? K : never]: T[K] }; +>Filtered : Filtered + +interface Config { measure: keyof T } +>measure : keyof T + +interface Ref { dataset: DS, N> } +>dataset : DS, N> + +interface DS { + a(config: Config>): void; +>a : (config: Config>) => void +>config : Config> + + b: Ref; +>b : Ref +} +declare const x: DS<{ total: M }, string>; +>x : DS<{ total: M; }, string> +>total : M + +export const y: DS, string> = x; +>y : DS, string> +>x : DS<{ total: M; }, string> + diff --git a/tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.errors.txt b/tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.errors.txt new file mode 100644 index 0000000000000..1b54f45a5c6a5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.errors.txt @@ -0,0 +1,227 @@ +annotations.ts(18,1): error TS2322: Type 'AnnotatedTree' is not assignable to type 'AnnotatedTree'. + Type 'unknown' is not assignable to type 'string'. +annotations.ts(19,1): error TS2322: Type 'AnnotatedStore' is not assignable to type 'AnnotatedStore'. + Types of property 'listener' are incompatible. + Type '(batch: AnnotatedStore) => void' is not assignable to type '(batch: AnnotatedStore) => void'. + Types of parameters 'batch' and 'batch' are incompatible. + Type 'AnnotatedStore' is not assignable to type 'AnnotatedStore'. + Types of property 'value' are incompatible. + Type 'unknown[]' is not assignable to type 'string[]'. + Type 'unknown' is not assignable to type 'string'. +annotations.ts(20,1): error TS2322: Type 'AnnotatedStore' is not assignable to type 'AnnotatedStore'. + Types of property 'value' are incompatible. + Type 'unknown' is not assignable to type 'string'. +columnDefFirst.ts(14,1): error TS2322: Type 'ColumnDef<{ name: string; }, string>' is not assignable to type 'ColumnDef<{ name: string; }, unknown>'. + Type 'unknown' is not assignable to type 'string'. +listenerFirst.ts(14,1): error TS2322: Type 'Listener' is not assignable to type 'Listener'. + Type 'unknown' is not assignable to type 'string'. +nestedComposition.ts(14,1): error TS2322: Type 'Outer' is not assignable to type 'Outer'. + Types of property 'next' are incompatible. + Type 'Inner>' is not assignable to type 'Inner>'. + Type 'Outer' is not assignable to type 'Outer'. + Types of property 'value' are incompatible. + Type 'unknown' is not assignable to type 'string'. +nestedComposition.ts(15,1): error TS2322: Type 'Outer' is not assignable to type 'Outer'. + Types of property 'value' are incompatible. + Type 'unknown' is not assignable to type 'string'. +positiveRecursion.ts(18,1): error TS2322: Type 'Tree' is not assignable to type 'Tree'. + Type 'unknown' is not assignable to type 'string'. +structuralMeasurement.ts(23,1): error TS2322: Type 'GenericMethod' is not assignable to type 'GenericMethod'. + Type 'unknown' is not assignable to type 'string'. + + +==== storeFirst.ts (0 errors) ==== + export {}; + + interface Store { + value: T; + listener: Listener; + } + type Listener = (batch: Store) => void; + + declare let strings: Store; + declare let unknowns: Store; + declare let stringListener: Listener; + declare let unknownListener: Listener; + + unknowns = strings; // Error + unknownListener = stringListener; // Error + +==== listenerFirst.ts (1 errors) ==== + export {}; + + type Listener = (batch: Store) => void; + interface Store { + listener: Listener; + value: T; + } + + declare let strings: Store; + declare let unknowns: Store; + declare let stringListener: Listener; + declare let unknownListener: Listener; + + unknownListener = stringListener; // Error + ~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'Listener' is not assignable to type 'Listener'. +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + unknowns = strings; // Error + +==== columnDefFirst.ts (1 errors) ==== + export {}; + + interface ColumnDef { + cell?: (column: Column) => void; + } + interface Column { + accessorFn?: (row: Row) => Value; + columnDef: ColumnDef; + } + + declare let stringColumn: ColumnDef<{ name: string }, string>; + declare let unknownColumn: ColumnDef<{ name: string }, unknown>; + + unknownColumn = stringColumn; // Error + ~~~~~~~~~~~~~ +!!! error TS2322: Type 'ColumnDef<{ name: string; }, string>' is not assignable to type 'ColumnDef<{ name: string; }, unknown>'. +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + stringColumn = unknownColumn; // Error + +==== columnFirst.ts (0 errors) ==== + export {}; + + interface Column { + columnDef: ColumnDef; + accessorFn?: (row: Row) => Value; + } + interface ColumnDef { + cell?: (column: Column) => void; + } + + declare let stringColumn: ColumnDef<{ name: string }, string>; + declare let unknownColumn: ColumnDef<{ name: string }, unknown>; + + unknownColumn = stringColumn; // Error + stringColumn = unknownColumn; // Error + +==== positiveRecursion.ts (1 errors) ==== + export {}; + + interface Tree { + readonly value: T; + readonly children: readonly Tree[]; + readonly metadata: Map; + } + interface Phantom { + next: Phantom; + } + + declare let stringTree: Tree; + declare let unknownTree: Tree; + declare let stringPhantom: Phantom; + declare let numberPhantom: Phantom; + + unknownTree = stringTree; + stringTree = unknownTree; // Error + ~~~~~~~~~~ +!!! error TS2322: Type 'Tree' is not assignable to type 'Tree'. +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + stringPhantom = numberPhantom; + numberPhantom = stringPhantom; + +==== nestedComposition.ts (2 errors) ==== + export {}; + + interface Outer { + value: T; + next: Inner>; + } + interface Inner { + consume: (value: T) => void; + } + + declare let strings: Outer; + declare let unknowns: Outer; + + unknowns = strings; // Error + ~~~~~~~~ +!!! error TS2322: Type 'Outer' is not assignable to type 'Outer'. +!!! error TS2322: Types of property 'next' are incompatible. +!!! error TS2322: Type 'Inner>' is not assignable to type 'Inner>'. +!!! error TS2322: Type 'Outer' is not assignable to type 'Outer'. +!!! error TS2322: Types of property 'value' are incompatible. +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + strings = unknowns; // Error + ~~~~~~~ +!!! error TS2322: Type 'Outer' is not assignable to type 'Outer'. +!!! error TS2322: Types of property 'value' are incompatible. +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + +==== annotations.ts (3 errors) ==== + export {}; + + interface AnnotatedTree { + readonly value: T; + readonly children: AnnotatedTree[]; + } + interface AnnotatedStore { + value: T; + listener: (batch: AnnotatedStore) => void; + } + + declare let stringTree: AnnotatedTree; + declare let unknownTree: AnnotatedTree; + declare let stringStore: AnnotatedStore; + declare let unknownStore: AnnotatedStore; + + unknownTree = stringTree; + stringTree = unknownTree; // Error + ~~~~~~~~~~ +!!! error TS2322: Type 'AnnotatedTree' is not assignable to type 'AnnotatedTree'. +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + unknownStore = stringStore; // Error + ~~~~~~~~~~~~ +!!! error TS2322: Type 'AnnotatedStore' is not assignable to type 'AnnotatedStore'. +!!! error TS2322: Types of property 'listener' are incompatible. +!!! error TS2322: Type '(batch: AnnotatedStore) => void' is not assignable to type '(batch: AnnotatedStore) => void'. +!!! error TS2322: Types of parameters 'batch' and 'batch' are incompatible. +!!! error TS2322: Type 'AnnotatedStore' is not assignable to type 'AnnotatedStore'. +!!! error TS2322: Types of property 'value' are incompatible. +!!! error TS2322: Type 'unknown[]' is not assignable to type 'string[]'. +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + stringStore = unknownStore; // Error + ~~~~~~~~~~~ +!!! error TS2322: Type 'AnnotatedStore' is not assignable to type 'AnnotatedStore'. +!!! error TS2322: Types of property 'value' are incompatible. +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + +==== structuralMeasurement.ts (1 errors) ==== + export {}; + + interface GenericMethod { + value: T; + next: (value: U) => GenericMethod; + } + interface Projected { + value: T["value"]; + next: Projected; + } + interface Method { + value: T; + accept(value: Method): void; + } + + declare let strings: GenericMethod; + declare let unknowns: GenericMethod; + declare let stringMethod: Method; + declare let unknownMethod: Method; + declare let projected: Projected<{ value: string; extra: number }>; + + unknowns = strings; + strings = unknowns; // Error + ~~~~~~~ +!!! error TS2322: Type 'GenericMethod' is not assignable to type 'GenericMethod'. +!!! error TS2322: Type 'unknown' is not assignable to type 'string'. + unknownMethod = stringMethod; + const widened: Projected<{ value: string }> = projected; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.symbols b/tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.symbols new file mode 100644 index 0000000000000..5609297b7b09a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.symbols @@ -0,0 +1,455 @@ +//// [tests/cases/compiler/recursiveVarianceFixedPoint.ts] //// + +=== storeFirst.ts === +export {}; + +interface Store { +>Store : Symbol(Store, Decl(storeFirst.ts, 0, 10)) +>T : Symbol(T, Decl(storeFirst.ts, 2, 16)) + + value: T; +>value : Symbol(Store.value, Decl(storeFirst.ts, 2, 20)) +>T : Symbol(T, Decl(storeFirst.ts, 2, 16)) + + listener: Listener; +>listener : Symbol(Store.listener, Decl(storeFirst.ts, 3, 13)) +>Listener : Symbol(Listener, Decl(storeFirst.ts, 5, 1)) +>T : Symbol(T, Decl(storeFirst.ts, 2, 16)) +} +type Listener = (batch: Store) => void; +>Listener : Symbol(Listener, Decl(storeFirst.ts, 5, 1)) +>T : Symbol(T, Decl(storeFirst.ts, 6, 14)) +>batch : Symbol(batch, Decl(storeFirst.ts, 6, 20)) +>Store : Symbol(Store, Decl(storeFirst.ts, 0, 10)) +>T : Symbol(T, Decl(storeFirst.ts, 6, 14)) + +declare let strings: Store; +>strings : Symbol(strings, Decl(storeFirst.ts, 8, 11)) +>Store : Symbol(Store, Decl(storeFirst.ts, 0, 10)) + +declare let unknowns: Store; +>unknowns : Symbol(unknowns, Decl(storeFirst.ts, 9, 11)) +>Store : Symbol(Store, Decl(storeFirst.ts, 0, 10)) + +declare let stringListener: Listener; +>stringListener : Symbol(stringListener, Decl(storeFirst.ts, 10, 11)) +>Listener : Symbol(Listener, Decl(storeFirst.ts, 5, 1)) + +declare let unknownListener: Listener; +>unknownListener : Symbol(unknownListener, Decl(storeFirst.ts, 11, 11)) +>Listener : Symbol(Listener, Decl(storeFirst.ts, 5, 1)) + +unknowns = strings; // Error +>unknowns : Symbol(unknowns, Decl(storeFirst.ts, 9, 11)) +>strings : Symbol(strings, Decl(storeFirst.ts, 8, 11)) + +unknownListener = stringListener; // Error +>unknownListener : Symbol(unknownListener, Decl(storeFirst.ts, 11, 11)) +>stringListener : Symbol(stringListener, Decl(storeFirst.ts, 10, 11)) + +=== listenerFirst.ts === +export {}; + +type Listener = (batch: Store) => void; +>Listener : Symbol(Listener, Decl(listenerFirst.ts, 0, 10)) +>T : Symbol(T, Decl(listenerFirst.ts, 2, 14)) +>batch : Symbol(batch, Decl(listenerFirst.ts, 2, 20)) +>Store : Symbol(Store, Decl(listenerFirst.ts, 2, 47)) +>T : Symbol(T, Decl(listenerFirst.ts, 2, 14)) + +interface Store { +>Store : Symbol(Store, Decl(listenerFirst.ts, 2, 47)) +>T : Symbol(T, Decl(listenerFirst.ts, 3, 16)) + + listener: Listener; +>listener : Symbol(Store.listener, Decl(listenerFirst.ts, 3, 20)) +>Listener : Symbol(Listener, Decl(listenerFirst.ts, 0, 10)) +>T : Symbol(T, Decl(listenerFirst.ts, 3, 16)) + + value: T; +>value : Symbol(Store.value, Decl(listenerFirst.ts, 4, 26)) +>T : Symbol(T, Decl(listenerFirst.ts, 3, 16)) +} + +declare let strings: Store; +>strings : Symbol(strings, Decl(listenerFirst.ts, 8, 11)) +>Store : Symbol(Store, Decl(listenerFirst.ts, 2, 47)) + +declare let unknowns: Store; +>unknowns : Symbol(unknowns, Decl(listenerFirst.ts, 9, 11)) +>Store : Symbol(Store, Decl(listenerFirst.ts, 2, 47)) + +declare let stringListener: Listener; +>stringListener : Symbol(stringListener, Decl(listenerFirst.ts, 10, 11)) +>Listener : Symbol(Listener, Decl(listenerFirst.ts, 0, 10)) + +declare let unknownListener: Listener; +>unknownListener : Symbol(unknownListener, Decl(listenerFirst.ts, 11, 11)) +>Listener : Symbol(Listener, Decl(listenerFirst.ts, 0, 10)) + +unknownListener = stringListener; // Error +>unknownListener : Symbol(unknownListener, Decl(listenerFirst.ts, 11, 11)) +>stringListener : Symbol(stringListener, Decl(listenerFirst.ts, 10, 11)) + +unknowns = strings; // Error +>unknowns : Symbol(unknowns, Decl(listenerFirst.ts, 9, 11)) +>strings : Symbol(strings, Decl(listenerFirst.ts, 8, 11)) + +=== columnDefFirst.ts === +export {}; + +interface ColumnDef { +>ColumnDef : Symbol(ColumnDef, Decl(columnDefFirst.ts, 0, 10)) +>Row : Symbol(Row, Decl(columnDefFirst.ts, 2, 20)) +>Value : Symbol(Value, Decl(columnDefFirst.ts, 2, 24)) + + cell?: (column: Column) => void; +>cell : Symbol(ColumnDef.cell, Decl(columnDefFirst.ts, 2, 43)) +>column : Symbol(column, Decl(columnDefFirst.ts, 3, 12)) +>Column : Symbol(Column, Decl(columnDefFirst.ts, 4, 1)) +>Row : Symbol(Row, Decl(columnDefFirst.ts, 2, 20)) +>Value : Symbol(Value, Decl(columnDefFirst.ts, 2, 24)) +} +interface Column { +>Column : Symbol(Column, Decl(columnDefFirst.ts, 4, 1)) +>Row : Symbol(Row, Decl(columnDefFirst.ts, 5, 17)) +>Value : Symbol(Value, Decl(columnDefFirst.ts, 5, 21)) + + accessorFn?: (row: Row) => Value; +>accessorFn : Symbol(Column.accessorFn, Decl(columnDefFirst.ts, 5, 40)) +>row : Symbol(row, Decl(columnDefFirst.ts, 6, 18)) +>Row : Symbol(Row, Decl(columnDefFirst.ts, 5, 17)) +>Value : Symbol(Value, Decl(columnDefFirst.ts, 5, 21)) + + columnDef: ColumnDef; +>columnDef : Symbol(Column.columnDef, Decl(columnDefFirst.ts, 6, 37)) +>ColumnDef : Symbol(ColumnDef, Decl(columnDefFirst.ts, 0, 10)) +>Row : Symbol(Row, Decl(columnDefFirst.ts, 5, 17)) +>Value : Symbol(Value, Decl(columnDefFirst.ts, 5, 21)) +} + +declare let stringColumn: ColumnDef<{ name: string }, string>; +>stringColumn : Symbol(stringColumn, Decl(columnDefFirst.ts, 10, 11)) +>ColumnDef : Symbol(ColumnDef, Decl(columnDefFirst.ts, 0, 10)) +>name : Symbol(name, Decl(columnDefFirst.ts, 10, 37)) + +declare let unknownColumn: ColumnDef<{ name: string }, unknown>; +>unknownColumn : Symbol(unknownColumn, Decl(columnDefFirst.ts, 11, 11)) +>ColumnDef : Symbol(ColumnDef, Decl(columnDefFirst.ts, 0, 10)) +>name : Symbol(name, Decl(columnDefFirst.ts, 11, 38)) + +unknownColumn = stringColumn; // Error +>unknownColumn : Symbol(unknownColumn, Decl(columnDefFirst.ts, 11, 11)) +>stringColumn : Symbol(stringColumn, Decl(columnDefFirst.ts, 10, 11)) + +stringColumn = unknownColumn; // Error +>stringColumn : Symbol(stringColumn, Decl(columnDefFirst.ts, 10, 11)) +>unknownColumn : Symbol(unknownColumn, Decl(columnDefFirst.ts, 11, 11)) + +=== columnFirst.ts === +export {}; + +interface Column { +>Column : Symbol(Column, Decl(columnFirst.ts, 0, 10)) +>Row : Symbol(Row, Decl(columnFirst.ts, 2, 17)) +>Value : Symbol(Value, Decl(columnFirst.ts, 2, 21)) + + columnDef: ColumnDef; +>columnDef : Symbol(Column.columnDef, Decl(columnFirst.ts, 2, 40)) +>ColumnDef : Symbol(ColumnDef, Decl(columnFirst.ts, 5, 1)) +>Row : Symbol(Row, Decl(columnFirst.ts, 2, 17)) +>Value : Symbol(Value, Decl(columnFirst.ts, 2, 21)) + + accessorFn?: (row: Row) => Value; +>accessorFn : Symbol(Column.accessorFn, Decl(columnFirst.ts, 3, 37)) +>row : Symbol(row, Decl(columnFirst.ts, 4, 18)) +>Row : Symbol(Row, Decl(columnFirst.ts, 2, 17)) +>Value : Symbol(Value, Decl(columnFirst.ts, 2, 21)) +} +interface ColumnDef { +>ColumnDef : Symbol(ColumnDef, Decl(columnFirst.ts, 5, 1)) +>Row : Symbol(Row, Decl(columnFirst.ts, 6, 20)) +>Value : Symbol(Value, Decl(columnFirst.ts, 6, 24)) + + cell?: (column: Column) => void; +>cell : Symbol(ColumnDef.cell, Decl(columnFirst.ts, 6, 43)) +>column : Symbol(column, Decl(columnFirst.ts, 7, 12)) +>Column : Symbol(Column, Decl(columnFirst.ts, 0, 10)) +>Row : Symbol(Row, Decl(columnFirst.ts, 6, 20)) +>Value : Symbol(Value, Decl(columnFirst.ts, 6, 24)) +} + +declare let stringColumn: ColumnDef<{ name: string }, string>; +>stringColumn : Symbol(stringColumn, Decl(columnFirst.ts, 10, 11)) +>ColumnDef : Symbol(ColumnDef, Decl(columnFirst.ts, 5, 1)) +>name : Symbol(name, Decl(columnFirst.ts, 10, 37)) + +declare let unknownColumn: ColumnDef<{ name: string }, unknown>; +>unknownColumn : Symbol(unknownColumn, Decl(columnFirst.ts, 11, 11)) +>ColumnDef : Symbol(ColumnDef, Decl(columnFirst.ts, 5, 1)) +>name : Symbol(name, Decl(columnFirst.ts, 11, 38)) + +unknownColumn = stringColumn; // Error +>unknownColumn : Symbol(unknownColumn, Decl(columnFirst.ts, 11, 11)) +>stringColumn : Symbol(stringColumn, Decl(columnFirst.ts, 10, 11)) + +stringColumn = unknownColumn; // Error +>stringColumn : Symbol(stringColumn, Decl(columnFirst.ts, 10, 11)) +>unknownColumn : Symbol(unknownColumn, Decl(columnFirst.ts, 11, 11)) + +=== positiveRecursion.ts === +export {}; + +interface Tree { +>Tree : Symbol(Tree, Decl(positiveRecursion.ts, 0, 10)) +>T : Symbol(T, Decl(positiveRecursion.ts, 2, 15)) + + readonly value: T; +>value : Symbol(Tree.value, Decl(positiveRecursion.ts, 2, 19)) +>T : Symbol(T, Decl(positiveRecursion.ts, 2, 15)) + + readonly children: readonly Tree[]; +>children : Symbol(Tree.children, Decl(positiveRecursion.ts, 3, 22)) +>Tree : Symbol(Tree, Decl(positiveRecursion.ts, 0, 10)) +>T : Symbol(T, Decl(positiveRecursion.ts, 2, 15)) + + readonly metadata: Map; +>metadata : Symbol(Tree.metadata, Decl(positiveRecursion.ts, 4, 42)) +>Map : Symbol(Map, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +} +interface Phantom { +>Phantom : Symbol(Phantom, Decl(positiveRecursion.ts, 6, 1)) +>T : Symbol(T, Decl(positiveRecursion.ts, 7, 18)) + + next: Phantom; +>next : Symbol(Phantom.next, Decl(positiveRecursion.ts, 7, 22)) +>Phantom : Symbol(Phantom, Decl(positiveRecursion.ts, 6, 1)) +>T : Symbol(T, Decl(positiveRecursion.ts, 7, 18)) +} + +declare let stringTree: Tree; +>stringTree : Symbol(stringTree, Decl(positiveRecursion.ts, 11, 11)) +>Tree : Symbol(Tree, Decl(positiveRecursion.ts, 0, 10)) + +declare let unknownTree: Tree; +>unknownTree : Symbol(unknownTree, Decl(positiveRecursion.ts, 12, 11)) +>Tree : Symbol(Tree, Decl(positiveRecursion.ts, 0, 10)) + +declare let stringPhantom: Phantom; +>stringPhantom : Symbol(stringPhantom, Decl(positiveRecursion.ts, 13, 11)) +>Phantom : Symbol(Phantom, Decl(positiveRecursion.ts, 6, 1)) + +declare let numberPhantom: Phantom; +>numberPhantom : Symbol(numberPhantom, Decl(positiveRecursion.ts, 14, 11)) +>Phantom : Symbol(Phantom, Decl(positiveRecursion.ts, 6, 1)) + +unknownTree = stringTree; +>unknownTree : Symbol(unknownTree, Decl(positiveRecursion.ts, 12, 11)) +>stringTree : Symbol(stringTree, Decl(positiveRecursion.ts, 11, 11)) + +stringTree = unknownTree; // Error +>stringTree : Symbol(stringTree, Decl(positiveRecursion.ts, 11, 11)) +>unknownTree : Symbol(unknownTree, Decl(positiveRecursion.ts, 12, 11)) + +stringPhantom = numberPhantom; +>stringPhantom : Symbol(stringPhantom, Decl(positiveRecursion.ts, 13, 11)) +>numberPhantom : Symbol(numberPhantom, Decl(positiveRecursion.ts, 14, 11)) + +numberPhantom = stringPhantom; +>numberPhantom : Symbol(numberPhantom, Decl(positiveRecursion.ts, 14, 11)) +>stringPhantom : Symbol(stringPhantom, Decl(positiveRecursion.ts, 13, 11)) + +=== nestedComposition.ts === +export {}; + +interface Outer { +>Outer : Symbol(Outer, Decl(nestedComposition.ts, 0, 10)) +>T : Symbol(T, Decl(nestedComposition.ts, 2, 16)) + + value: T; +>value : Symbol(Outer.value, Decl(nestedComposition.ts, 2, 20)) +>T : Symbol(T, Decl(nestedComposition.ts, 2, 16)) + + next: Inner>; +>next : Symbol(Outer.next, Decl(nestedComposition.ts, 3, 13)) +>Inner : Symbol(Inner, Decl(nestedComposition.ts, 5, 1)) +>Outer : Symbol(Outer, Decl(nestedComposition.ts, 0, 10)) +>T : Symbol(T, Decl(nestedComposition.ts, 2, 16)) +} +interface Inner { +>Inner : Symbol(Inner, Decl(nestedComposition.ts, 5, 1)) +>T : Symbol(T, Decl(nestedComposition.ts, 6, 16)) + + consume: (value: T) => void; +>consume : Symbol(Inner.consume, Decl(nestedComposition.ts, 6, 20)) +>value : Symbol(value, Decl(nestedComposition.ts, 7, 14)) +>T : Symbol(T, Decl(nestedComposition.ts, 6, 16)) +} + +declare let strings: Outer; +>strings : Symbol(strings, Decl(nestedComposition.ts, 10, 11)) +>Outer : Symbol(Outer, Decl(nestedComposition.ts, 0, 10)) + +declare let unknowns: Outer; +>unknowns : Symbol(unknowns, Decl(nestedComposition.ts, 11, 11)) +>Outer : Symbol(Outer, Decl(nestedComposition.ts, 0, 10)) + +unknowns = strings; // Error +>unknowns : Symbol(unknowns, Decl(nestedComposition.ts, 11, 11)) +>strings : Symbol(strings, Decl(nestedComposition.ts, 10, 11)) + +strings = unknowns; // Error +>strings : Symbol(strings, Decl(nestedComposition.ts, 10, 11)) +>unknowns : Symbol(unknowns, Decl(nestedComposition.ts, 11, 11)) + +=== annotations.ts === +export {}; + +interface AnnotatedTree { +>AnnotatedTree : Symbol(AnnotatedTree, Decl(annotations.ts, 0, 10)) +>T : Symbol(T, Decl(annotations.ts, 2, 24)) + + readonly value: T; +>value : Symbol(AnnotatedTree.value, Decl(annotations.ts, 2, 32)) +>T : Symbol(T, Decl(annotations.ts, 2, 24)) + + readonly children: AnnotatedTree[]; +>children : Symbol(AnnotatedTree.children, Decl(annotations.ts, 3, 22)) +>AnnotatedTree : Symbol(AnnotatedTree, Decl(annotations.ts, 0, 10)) +>T : Symbol(T, Decl(annotations.ts, 2, 24)) +} +interface AnnotatedStore { +>AnnotatedStore : Symbol(AnnotatedStore, Decl(annotations.ts, 5, 1)) +>T : Symbol(T, Decl(annotations.ts, 6, 25)) + + value: T; +>value : Symbol(AnnotatedStore.value, Decl(annotations.ts, 6, 36)) +>T : Symbol(T, Decl(annotations.ts, 6, 25)) + + listener: (batch: AnnotatedStore) => void; +>listener : Symbol(AnnotatedStore.listener, Decl(annotations.ts, 7, 13)) +>batch : Symbol(batch, Decl(annotations.ts, 8, 15)) +>AnnotatedStore : Symbol(AnnotatedStore, Decl(annotations.ts, 5, 1)) +>T : Symbol(T, Decl(annotations.ts, 6, 25)) +} + +declare let stringTree: AnnotatedTree; +>stringTree : Symbol(stringTree, Decl(annotations.ts, 11, 11)) +>AnnotatedTree : Symbol(AnnotatedTree, Decl(annotations.ts, 0, 10)) + +declare let unknownTree: AnnotatedTree; +>unknownTree : Symbol(unknownTree, Decl(annotations.ts, 12, 11)) +>AnnotatedTree : Symbol(AnnotatedTree, Decl(annotations.ts, 0, 10)) + +declare let stringStore: AnnotatedStore; +>stringStore : Symbol(stringStore, Decl(annotations.ts, 13, 11)) +>AnnotatedStore : Symbol(AnnotatedStore, Decl(annotations.ts, 5, 1)) + +declare let unknownStore: AnnotatedStore; +>unknownStore : Symbol(unknownStore, Decl(annotations.ts, 14, 11)) +>AnnotatedStore : Symbol(AnnotatedStore, Decl(annotations.ts, 5, 1)) + +unknownTree = stringTree; +>unknownTree : Symbol(unknownTree, Decl(annotations.ts, 12, 11)) +>stringTree : Symbol(stringTree, Decl(annotations.ts, 11, 11)) + +stringTree = unknownTree; // Error +>stringTree : Symbol(stringTree, Decl(annotations.ts, 11, 11)) +>unknownTree : Symbol(unknownTree, Decl(annotations.ts, 12, 11)) + +unknownStore = stringStore; // Error +>unknownStore : Symbol(unknownStore, Decl(annotations.ts, 14, 11)) +>stringStore : Symbol(stringStore, Decl(annotations.ts, 13, 11)) + +stringStore = unknownStore; // Error +>stringStore : Symbol(stringStore, Decl(annotations.ts, 13, 11)) +>unknownStore : Symbol(unknownStore, Decl(annotations.ts, 14, 11)) + +=== structuralMeasurement.ts === +export {}; + +interface GenericMethod { +>GenericMethod : Symbol(GenericMethod, Decl(structuralMeasurement.ts, 0, 10)) +>T : Symbol(T, Decl(structuralMeasurement.ts, 2, 24)) + + value: T; +>value : Symbol(GenericMethod.value, Decl(structuralMeasurement.ts, 2, 28)) +>T : Symbol(T, Decl(structuralMeasurement.ts, 2, 24)) + + next: (value: U) => GenericMethod; +>next : Symbol(GenericMethod.next, Decl(structuralMeasurement.ts, 3, 13)) +>U : Symbol(U, Decl(structuralMeasurement.ts, 4, 11)) +>value : Symbol(value, Decl(structuralMeasurement.ts, 4, 14)) +>U : Symbol(U, Decl(structuralMeasurement.ts, 4, 11)) +>GenericMethod : Symbol(GenericMethod, Decl(structuralMeasurement.ts, 0, 10)) +>T : Symbol(T, Decl(structuralMeasurement.ts, 2, 24)) +} +interface Projected { +>Projected : Symbol(Projected, Decl(structuralMeasurement.ts, 5, 1)) +>T : Symbol(T, Decl(structuralMeasurement.ts, 6, 20)) +>value : Symbol(value, Decl(structuralMeasurement.ts, 6, 31)) + + value: T["value"]; +>value : Symbol(Projected.value, Decl(structuralMeasurement.ts, 6, 51)) +>T : Symbol(T, Decl(structuralMeasurement.ts, 6, 20)) + + next: Projected; +>next : Symbol(Projected.next, Decl(structuralMeasurement.ts, 7, 22)) +>Projected : Symbol(Projected, Decl(structuralMeasurement.ts, 5, 1)) +>T : Symbol(T, Decl(structuralMeasurement.ts, 6, 20)) +} +interface Method { +>Method : Symbol(Method, Decl(structuralMeasurement.ts, 9, 1)) +>T : Symbol(T, Decl(structuralMeasurement.ts, 10, 17)) + + value: T; +>value : Symbol(Method.value, Decl(structuralMeasurement.ts, 10, 21)) +>T : Symbol(T, Decl(structuralMeasurement.ts, 10, 17)) + + accept(value: Method): void; +>accept : Symbol(Method.accept, Decl(structuralMeasurement.ts, 11, 13)) +>value : Symbol(value, Decl(structuralMeasurement.ts, 12, 11)) +>Method : Symbol(Method, Decl(structuralMeasurement.ts, 9, 1)) +>T : Symbol(T, Decl(structuralMeasurement.ts, 10, 17)) +} + +declare let strings: GenericMethod; +>strings : Symbol(strings, Decl(structuralMeasurement.ts, 15, 11)) +>GenericMethod : Symbol(GenericMethod, Decl(structuralMeasurement.ts, 0, 10)) + +declare let unknowns: GenericMethod; +>unknowns : Symbol(unknowns, Decl(structuralMeasurement.ts, 16, 11)) +>GenericMethod : Symbol(GenericMethod, Decl(structuralMeasurement.ts, 0, 10)) + +declare let stringMethod: Method; +>stringMethod : Symbol(stringMethod, Decl(structuralMeasurement.ts, 17, 11)) +>Method : Symbol(Method, Decl(structuralMeasurement.ts, 9, 1)) + +declare let unknownMethod: Method; +>unknownMethod : Symbol(unknownMethod, Decl(structuralMeasurement.ts, 18, 11)) +>Method : Symbol(Method, Decl(structuralMeasurement.ts, 9, 1)) + +declare let projected: Projected<{ value: string; extra: number }>; +>projected : Symbol(projected, Decl(structuralMeasurement.ts, 19, 11)) +>Projected : Symbol(Projected, Decl(structuralMeasurement.ts, 5, 1)) +>value : Symbol(value, Decl(structuralMeasurement.ts, 19, 34)) +>extra : Symbol(extra, Decl(structuralMeasurement.ts, 19, 49)) + +unknowns = strings; +>unknowns : Symbol(unknowns, Decl(structuralMeasurement.ts, 16, 11)) +>strings : Symbol(strings, Decl(structuralMeasurement.ts, 15, 11)) + +strings = unknowns; // Error +>strings : Symbol(strings, Decl(structuralMeasurement.ts, 15, 11)) +>unknowns : Symbol(unknowns, Decl(structuralMeasurement.ts, 16, 11)) + +unknownMethod = stringMethod; +>unknownMethod : Symbol(unknownMethod, Decl(structuralMeasurement.ts, 18, 11)) +>stringMethod : Symbol(stringMethod, Decl(structuralMeasurement.ts, 17, 11)) + +const widened: Projected<{ value: string }> = projected; +>widened : Symbol(widened, Decl(structuralMeasurement.ts, 24, 5)) +>Projected : Symbol(Projected, Decl(structuralMeasurement.ts, 5, 1)) +>value : Symbol(value, Decl(structuralMeasurement.ts, 24, 26)) +>projected : Symbol(projected, Decl(structuralMeasurement.ts, 19, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.types b/tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.types new file mode 100644 index 0000000000000..e26d435575c06 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/recursiveVarianceFixedPoint.types @@ -0,0 +1,344 @@ +//// [tests/cases/compiler/recursiveVarianceFixedPoint.ts] //// + +=== storeFirst.ts === +export {}; + +interface Store { + value: T; +>value : T + + listener: Listener; +>listener : Listener +} +type Listener = (batch: Store) => void; +>Listener : Listener +>batch : Store + +declare let strings: Store; +>strings : Store + +declare let unknowns: Store; +>unknowns : Store + +declare let stringListener: Listener; +>stringListener : Listener + +declare let unknownListener: Listener; +>unknownListener : Listener + +unknowns = strings; // Error +>unknowns = strings : Store +>unknowns : Store +>strings : Store + +unknownListener = stringListener; // Error +>unknownListener = stringListener : Listener +>unknownListener : Listener +>stringListener : Listener + +=== listenerFirst.ts === +export {}; + +type Listener = (batch: Store) => void; +>Listener : Listener +>batch : Store + +interface Store { + listener: Listener; +>listener : Listener + + value: T; +>value : T +} + +declare let strings: Store; +>strings : Store + +declare let unknowns: Store; +>unknowns : Store + +declare let stringListener: Listener; +>stringListener : Listener + +declare let unknownListener: Listener; +>unknownListener : Listener + +unknownListener = stringListener; // Error +>unknownListener = stringListener : Listener +>unknownListener : Listener +>stringListener : Listener + +unknowns = strings; // Error +>unknowns = strings : Store +>unknowns : Store +>strings : Store + +=== columnDefFirst.ts === +export {}; + +interface ColumnDef { + cell?: (column: Column) => void; +>cell : ((column: Column) => void) | undefined +>column : Column +} +interface Column { + accessorFn?: (row: Row) => Value; +>accessorFn : ((row: Row) => Value) | undefined +>row : Row + + columnDef: ColumnDef; +>columnDef : ColumnDef +} + +declare let stringColumn: ColumnDef<{ name: string }, string>; +>stringColumn : ColumnDef<{ name: string; }, string> +>name : string + +declare let unknownColumn: ColumnDef<{ name: string }, unknown>; +>unknownColumn : ColumnDef<{ name: string; }, unknown> +>name : string + +unknownColumn = stringColumn; // Error +>unknownColumn = stringColumn : ColumnDef<{ name: string; }, string> +>unknownColumn : ColumnDef<{ name: string; }, unknown> +>stringColumn : ColumnDef<{ name: string; }, string> + +stringColumn = unknownColumn; // Error +>stringColumn = unknownColumn : ColumnDef<{ name: string; }, unknown> +>stringColumn : ColumnDef<{ name: string; }, string> +>unknownColumn : ColumnDef<{ name: string; }, unknown> + +=== columnFirst.ts === +export {}; + +interface Column { + columnDef: ColumnDef; +>columnDef : ColumnDef + + accessorFn?: (row: Row) => Value; +>accessorFn : ((row: Row) => Value) | undefined +>row : Row +} +interface ColumnDef { + cell?: (column: Column) => void; +>cell : ((column: Column) => void) | undefined +>column : Column +} + +declare let stringColumn: ColumnDef<{ name: string }, string>; +>stringColumn : ColumnDef<{ name: string; }, string> +>name : string + +declare let unknownColumn: ColumnDef<{ name: string }, unknown>; +>unknownColumn : ColumnDef<{ name: string; }, unknown> +>name : string + +unknownColumn = stringColumn; // Error +>unknownColumn = stringColumn : ColumnDef<{ name: string; }, string> +>unknownColumn : ColumnDef<{ name: string; }, unknown> +>stringColumn : ColumnDef<{ name: string; }, string> + +stringColumn = unknownColumn; // Error +>stringColumn = unknownColumn : ColumnDef<{ name: string; }, unknown> +>stringColumn : ColumnDef<{ name: string; }, string> +>unknownColumn : ColumnDef<{ name: string; }, unknown> + +=== positiveRecursion.ts === +export {}; + +interface Tree { + readonly value: T; +>value : T + + readonly children: readonly Tree[]; +>children : readonly Tree[] + + readonly metadata: Map; +>metadata : Map +} +interface Phantom { + next: Phantom; +>next : Phantom +} + +declare let stringTree: Tree; +>stringTree : Tree + +declare let unknownTree: Tree; +>unknownTree : Tree + +declare let stringPhantom: Phantom; +>stringPhantom : Phantom + +declare let numberPhantom: Phantom; +>numberPhantom : Phantom + +unknownTree = stringTree; +>unknownTree = stringTree : Tree +>unknownTree : Tree +>stringTree : Tree + +stringTree = unknownTree; // Error +>stringTree = unknownTree : Tree +>stringTree : Tree +>unknownTree : Tree + +stringPhantom = numberPhantom; +>stringPhantom = numberPhantom : Phantom +>stringPhantom : Phantom +>numberPhantom : Phantom + +numberPhantom = stringPhantom; +>numberPhantom = stringPhantom : Phantom +>numberPhantom : Phantom +>stringPhantom : Phantom + +=== nestedComposition.ts === +export {}; + +interface Outer { + value: T; +>value : T + + next: Inner>; +>next : Inner> +} +interface Inner { + consume: (value: T) => void; +>consume : (value: T) => void +>value : T +} + +declare let strings: Outer; +>strings : Outer + +declare let unknowns: Outer; +>unknowns : Outer + +unknowns = strings; // Error +>unknowns = strings : Outer +>unknowns : Outer +>strings : Outer + +strings = unknowns; // Error +>strings = unknowns : Outer +>strings : Outer +>unknowns : Outer + +=== annotations.ts === +export {}; + +interface AnnotatedTree { + readonly value: T; +>value : T + + readonly children: AnnotatedTree[]; +>children : AnnotatedTree[] +} +interface AnnotatedStore { + value: T; +>value : T + + listener: (batch: AnnotatedStore) => void; +>listener : (batch: AnnotatedStore) => void +>batch : AnnotatedStore +} + +declare let stringTree: AnnotatedTree; +>stringTree : AnnotatedTree + +declare let unknownTree: AnnotatedTree; +>unknownTree : AnnotatedTree + +declare let stringStore: AnnotatedStore; +>stringStore : AnnotatedStore + +declare let unknownStore: AnnotatedStore; +>unknownStore : AnnotatedStore + +unknownTree = stringTree; +>unknownTree = stringTree : AnnotatedTree +>unknownTree : AnnotatedTree +>stringTree : AnnotatedTree + +stringTree = unknownTree; // Error +>stringTree = unknownTree : AnnotatedTree +>stringTree : AnnotatedTree +>unknownTree : AnnotatedTree + +unknownStore = stringStore; // Error +>unknownStore = stringStore : AnnotatedStore +>unknownStore : AnnotatedStore +>stringStore : AnnotatedStore + +stringStore = unknownStore; // Error +>stringStore = unknownStore : AnnotatedStore +>stringStore : AnnotatedStore +>unknownStore : AnnotatedStore + +=== structuralMeasurement.ts === +export {}; + +interface GenericMethod { + value: T; +>value : T + + next: (value: U) => GenericMethod; +>next : (value: U) => GenericMethod +>value : U +} +interface Projected { +>value : unknown + + value: T["value"]; +>value : T["value"] + + next: Projected; +>next : Projected +} +interface Method { + value: T; +>value : T + + accept(value: Method): void; +>accept : (value: Method) => void +>value : Method +} + +declare let strings: GenericMethod; +>strings : GenericMethod + +declare let unknowns: GenericMethod; +>unknowns : GenericMethod + +declare let stringMethod: Method; +>stringMethod : Method + +declare let unknownMethod: Method; +>unknownMethod : Method + +declare let projected: Projected<{ value: string; extra: number }>; +>projected : Projected<{ value: string; extra: number; }> +>value : string +>extra : number + +unknowns = strings; +>unknowns = strings : GenericMethod +>unknowns : GenericMethod +>strings : GenericMethod + +strings = unknowns; // Error +>strings = unknowns : GenericMethod +>strings : GenericMethod +>unknowns : GenericMethod + +unknownMethod = stringMethod; +>unknownMethod = stringMethod : Method +>unknownMethod : Method +>stringMethod : Method + +const widened: Projected<{ value: string }> = projected; +>widened : Projected<{ value: string; }> +>value : string +>projected : Projected<{ value: string; extra: number; }> + diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).errors.txt new file mode 100644 index 0000000000000..e8f947ec283b1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).errors.txt @@ -0,0 +1,50 @@ +relationComplexityError.ts(10,5): error TS2859: Excessive complexity comparing types '{ p: T1 & T2; }' and '{ p: T1 | null; }'. +relationComplexityError.ts(10,5): error TS2859: Excessive complexity comparing types '{ p: T1 & T2; }' and '{ p: T1 | null; }'. +relationComplexityError.ts(18,5): error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. +relationComplexityError.ts(22,5): error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. +relationComplexityError.ts(26,5): error TS2322: Type '{ p: T1 & T2; }' is not assignable to type '{ p: T1 | null; }'. + Types of property 'p' are incompatible. + Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + + +==== relationComplexityError.ts (5 errors) ==== + // Repro from #55630 + // Every comparison that needs a comparison that is too complex is too complex + // itself, whether or not that comparison happened before. + + type Digits = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'; + type T1 = `${Digits}${Digits}${Digits}${Digits}` | undefined; + type T2 = { a: string } | { b: number }; + + function f0(x: { p: T1 | null }, y: { p: T1 & T2 }) { + x = y; // Complexity error + ~ +!!! error TS2859: Excessive complexity comparing types '{ p: T1 & T2; }' and '{ p: T1 | null; }'. + ~~~~~ +!!! error TS2859: Excessive complexity comparing types '{ p: T1 & T2; }' and '{ p: T1 | null; }'. + } + + function f1(x: T1, y: T1 & T2) { + x = y; + } + + function f2(x: T1 | null, y: T1 & T2) { + x = y; // Complexity error + ~ +!!! error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + } + + function f3(x: T1 | null, y: T1 & T2) { + x = y; // Complexity error + ~ +!!! error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + } + + function f4(x: { p: T1 | null }, y: { p: T1 & T2 }) { + x = y; // Complexity error + ~ +!!! error TS2322: Type '{ p: T1 & T2; }' is not assignable to type '{ p: T1 | null; }'. +!!! error TS2322: Types of property 'p' are incompatible. +!!! error TS2322: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).symbols new file mode 100644 index 0000000000000..ea9543f81e755 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).symbols @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/relationComplexityError.ts] //// + +=== relationComplexityError.ts === +// Repro from #55630 +// Every comparison that needs a comparison that is too complex is too complex +// itself, whether or not that comparison happened before. + +type Digits = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'; +>Digits : Symbol(Digits, Decl(relationComplexityError.ts, 0, 0)) + +type T1 = `${Digits}${Digits}${Digits}${Digits}` | undefined; +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>Digits : Symbol(Digits, Decl(relationComplexityError.ts, 0, 0)) +>Digits : Symbol(Digits, Decl(relationComplexityError.ts, 0, 0)) +>Digits : Symbol(Digits, Decl(relationComplexityError.ts, 0, 0)) +>Digits : Symbol(Digits, Decl(relationComplexityError.ts, 0, 0)) + +type T2 = { a: string } | { b: number }; +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) +>a : Symbol(a, Decl(relationComplexityError.ts, 6, 11)) +>b : Symbol(b, Decl(relationComplexityError.ts, 6, 27)) + +function f0(x: { p: T1 | null }, y: { p: T1 & T2 }) { +>f0 : Symbol(f0, Decl(relationComplexityError.ts, 6, 40)) +>x : Symbol(x, Decl(relationComplexityError.ts, 8, 12)) +>p : Symbol(p, Decl(relationComplexityError.ts, 8, 16)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>y : Symbol(y, Decl(relationComplexityError.ts, 8, 32)) +>p : Symbol(p, Decl(relationComplexityError.ts, 8, 37)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) + + x = y; // Complexity error +>x : Symbol(x, Decl(relationComplexityError.ts, 8, 12)) +>y : Symbol(y, Decl(relationComplexityError.ts, 8, 32)) +} + +function f1(x: T1, y: T1 & T2) { +>f1 : Symbol(f1, Decl(relationComplexityError.ts, 10, 1)) +>x : Symbol(x, Decl(relationComplexityError.ts, 12, 12)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>y : Symbol(y, Decl(relationComplexityError.ts, 12, 18)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) + + x = y; +>x : Symbol(x, Decl(relationComplexityError.ts, 12, 12)) +>y : Symbol(y, Decl(relationComplexityError.ts, 12, 18)) +} + +function f2(x: T1 | null, y: T1 & T2) { +>f2 : Symbol(f2, Decl(relationComplexityError.ts, 14, 1)) +>x : Symbol(x, Decl(relationComplexityError.ts, 16, 12)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>y : Symbol(y, Decl(relationComplexityError.ts, 16, 25)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) + + x = y; // Complexity error +>x : Symbol(x, Decl(relationComplexityError.ts, 16, 12)) +>y : Symbol(y, Decl(relationComplexityError.ts, 16, 25)) +} + +function f3(x: T1 | null, y: T1 & T2) { +>f3 : Symbol(f3, Decl(relationComplexityError.ts, 18, 1)) +>x : Symbol(x, Decl(relationComplexityError.ts, 20, 12)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>y : Symbol(y, Decl(relationComplexityError.ts, 20, 25)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) + + x = y; // Complexity error +>x : Symbol(x, Decl(relationComplexityError.ts, 20, 12)) +>y : Symbol(y, Decl(relationComplexityError.ts, 20, 25)) +} + +function f4(x: { p: T1 | null }, y: { p: T1 & T2 }) { +>f4 : Symbol(f4, Decl(relationComplexityError.ts, 22, 1)) +>x : Symbol(x, Decl(relationComplexityError.ts, 24, 12)) +>p : Symbol(p, Decl(relationComplexityError.ts, 24, 16)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>y : Symbol(y, Decl(relationComplexityError.ts, 24, 32)) +>p : Symbol(p, Decl(relationComplexityError.ts, 24, 37)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) + + x = y; // Complexity error +>x : Symbol(x, Decl(relationComplexityError.ts, 24, 12)) +>y : Symbol(y, Decl(relationComplexityError.ts, 24, 32)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).types new file mode 100644 index 0000000000000..a6085a90e7675 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=default).types @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/relationComplexityError.ts] //// + +=== relationComplexityError.ts === +// Repro from #55630 +// Every comparison that needs a comparison that is too complex is too complex +// itself, whether or not that comparison happened before. + +type Digits = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'; +>Digits : Digits + +type T1 = `${Digits}${Digits}${Digits}${Digits}` | undefined; +>T1 : T1 + +type T2 = { a: string } | { b: number }; +>T2 : T2 +>a : string +>b : number + +function f0(x: { p: T1 | null }, y: { p: T1 & T2 }) { +>f0 : (x: { p: T1 | null; }, y: { p: T1 & T2; }) => void +>x : { p: T1 | null; } +>p : T1 | null +>y : { p: T1 & T2; } +>p : T1 & T2 + + x = y; // Complexity error +>x = y : { p: T1 & T2; } +>x : { p: T1 | null; } +>y : { p: T1 & T2; } +} + +function f1(x: T1, y: T1 & T2) { +>f1 : (x: T1, y: T1 & T2) => void +>x : T1 +>y : T1 & T2 + + x = y; +>x = y : T1 & T2 +>x : T1 +>y : T1 & T2 +} + +function f2(x: T1 | null, y: T1 & T2) { +>f2 : (x: T1 | null, y: T1 & T2) => void +>x : T1 | null +>y : T1 & T2 + + x = y; // Complexity error +>x = y : T1 & T2 +>x : T1 | null +>y : T1 & T2 +} + +function f3(x: T1 | null, y: T1 & T2) { +>f3 : (x: T1 | null, y: T1 & T2) => void +>x : T1 | null +>y : T1 & T2 + + x = y; // Complexity error +>x = y : T1 & T2 +>x : T1 | null +>y : T1 & T2 +} + +function f4(x: { p: T1 | null }, y: { p: T1 & T2 }) { +>f4 : (x: { p: T1 | null; }, y: { p: T1 & T2; }) => void +>x : { p: T1 | null; } +>p : T1 | null +>y : { p: T1 & T2; } +>p : T1 & T2 + + x = y; // Complexity error +>x = y : { p: T1 & T2; } +>x : { p: T1 | null; } +>y : { p: T1 & T2; } +} + diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..8a92179def8a5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).errors.txt @@ -0,0 +1,50 @@ +relationComplexityError.ts(10,5): error TS2322: Type '{ p: T1 & T2; }' is not assignable to type '{ p: T1 | null; }'. + Types of property 'p' are incompatible. + Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. +relationComplexityError.ts(18,5): error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. +relationComplexityError.ts(22,5): error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. +relationComplexityError.ts(26,5): error TS2859: Excessive complexity comparing types '{ p: T1 & T2; }' and '{ p: T1 | null; }'. +relationComplexityError.ts(26,5): error TS2859: Excessive complexity comparing types '{ p: T1 & T2; }' and '{ p: T1 | null; }'. + + +==== relationComplexityError.ts (5 errors) ==== + // Repro from #55630 + // Every comparison that needs a comparison that is too complex is too complex + // itself, whether or not that comparison happened before. + + type Digits = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'; + type T1 = `${Digits}${Digits}${Digits}${Digits}` | undefined; + type T2 = { a: string } | { b: number }; + + function f0(x: { p: T1 | null }, y: { p: T1 & T2 }) { + x = y; // Complexity error + ~ +!!! error TS2322: Type '{ p: T1 & T2; }' is not assignable to type '{ p: T1 | null; }'. +!!! error TS2322: Types of property 'p' are incompatible. +!!! error TS2322: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + } + + function f1(x: T1, y: T1 & T2) { + x = y; + } + + function f2(x: T1 | null, y: T1 & T2) { + x = y; // Complexity error + ~ +!!! error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + } + + function f3(x: T1 | null, y: T1 & T2) { + x = y; // Complexity error + ~ +!!! error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + } + + function f4(x: { p: T1 | null }, y: { p: T1 & T2 }) { + x = y; // Complexity error + ~ +!!! error TS2859: Excessive complexity comparing types '{ p: T1 & T2; }' and '{ p: T1 | null; }'. + ~~~~~ +!!! error TS2859: Excessive complexity comparing types '{ p: T1 & T2; }' and '{ p: T1 | null; }'. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..ea9543f81e755 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).symbols @@ -0,0 +1,91 @@ +//// [tests/cases/compiler/relationComplexityError.ts] //// + +=== relationComplexityError.ts === +// Repro from #55630 +// Every comparison that needs a comparison that is too complex is too complex +// itself, whether or not that comparison happened before. + +type Digits = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'; +>Digits : Symbol(Digits, Decl(relationComplexityError.ts, 0, 0)) + +type T1 = `${Digits}${Digits}${Digits}${Digits}` | undefined; +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>Digits : Symbol(Digits, Decl(relationComplexityError.ts, 0, 0)) +>Digits : Symbol(Digits, Decl(relationComplexityError.ts, 0, 0)) +>Digits : Symbol(Digits, Decl(relationComplexityError.ts, 0, 0)) +>Digits : Symbol(Digits, Decl(relationComplexityError.ts, 0, 0)) + +type T2 = { a: string } | { b: number }; +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) +>a : Symbol(a, Decl(relationComplexityError.ts, 6, 11)) +>b : Symbol(b, Decl(relationComplexityError.ts, 6, 27)) + +function f0(x: { p: T1 | null }, y: { p: T1 & T2 }) { +>f0 : Symbol(f0, Decl(relationComplexityError.ts, 6, 40)) +>x : Symbol(x, Decl(relationComplexityError.ts, 8, 12)) +>p : Symbol(p, Decl(relationComplexityError.ts, 8, 16)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>y : Symbol(y, Decl(relationComplexityError.ts, 8, 32)) +>p : Symbol(p, Decl(relationComplexityError.ts, 8, 37)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) + + x = y; // Complexity error +>x : Symbol(x, Decl(relationComplexityError.ts, 8, 12)) +>y : Symbol(y, Decl(relationComplexityError.ts, 8, 32)) +} + +function f1(x: T1, y: T1 & T2) { +>f1 : Symbol(f1, Decl(relationComplexityError.ts, 10, 1)) +>x : Symbol(x, Decl(relationComplexityError.ts, 12, 12)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>y : Symbol(y, Decl(relationComplexityError.ts, 12, 18)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) + + x = y; +>x : Symbol(x, Decl(relationComplexityError.ts, 12, 12)) +>y : Symbol(y, Decl(relationComplexityError.ts, 12, 18)) +} + +function f2(x: T1 | null, y: T1 & T2) { +>f2 : Symbol(f2, Decl(relationComplexityError.ts, 14, 1)) +>x : Symbol(x, Decl(relationComplexityError.ts, 16, 12)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>y : Symbol(y, Decl(relationComplexityError.ts, 16, 25)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) + + x = y; // Complexity error +>x : Symbol(x, Decl(relationComplexityError.ts, 16, 12)) +>y : Symbol(y, Decl(relationComplexityError.ts, 16, 25)) +} + +function f3(x: T1 | null, y: T1 & T2) { +>f3 : Symbol(f3, Decl(relationComplexityError.ts, 18, 1)) +>x : Symbol(x, Decl(relationComplexityError.ts, 20, 12)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>y : Symbol(y, Decl(relationComplexityError.ts, 20, 25)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) + + x = y; // Complexity error +>x : Symbol(x, Decl(relationComplexityError.ts, 20, 12)) +>y : Symbol(y, Decl(relationComplexityError.ts, 20, 25)) +} + +function f4(x: { p: T1 | null }, y: { p: T1 & T2 }) { +>f4 : Symbol(f4, Decl(relationComplexityError.ts, 22, 1)) +>x : Symbol(x, Decl(relationComplexityError.ts, 24, 12)) +>p : Symbol(p, Decl(relationComplexityError.ts, 24, 16)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>y : Symbol(y, Decl(relationComplexityError.ts, 24, 32)) +>p : Symbol(p, Decl(relationComplexityError.ts, 24, 37)) +>T1 : Symbol(T1, Decl(relationComplexityError.ts, 4, 60)) +>T2 : Symbol(T2, Decl(relationComplexityError.ts, 5, 61)) + + x = y; // Complexity error +>x : Symbol(x, Decl(relationComplexityError.ts, 24, 12)) +>y : Symbol(y, Decl(relationComplexityError.ts, 24, 32)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).types new file mode 100644 index 0000000000000..a6085a90e7675 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexityError(checkorder=typesfirst).types @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/relationComplexityError.ts] //// + +=== relationComplexityError.ts === +// Repro from #55630 +// Every comparison that needs a comparison that is too complex is too complex +// itself, whether or not that comparison happened before. + +type Digits = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'; +>Digits : Digits + +type T1 = `${Digits}${Digits}${Digits}${Digits}` | undefined; +>T1 : T1 + +type T2 = { a: string } | { b: number }; +>T2 : T2 +>a : string +>b : number + +function f0(x: { p: T1 | null }, y: { p: T1 & T2 }) { +>f0 : (x: { p: T1 | null; }, y: { p: T1 & T2; }) => void +>x : { p: T1 | null; } +>p : T1 | null +>y : { p: T1 & T2; } +>p : T1 & T2 + + x = y; // Complexity error +>x = y : { p: T1 & T2; } +>x : { p: T1 | null; } +>y : { p: T1 & T2; } +} + +function f1(x: T1, y: T1 & T2) { +>f1 : (x: T1, y: T1 & T2) => void +>x : T1 +>y : T1 & T2 + + x = y; +>x = y : T1 & T2 +>x : T1 +>y : T1 & T2 +} + +function f2(x: T1 | null, y: T1 & T2) { +>f2 : (x: T1 | null, y: T1 & T2) => void +>x : T1 | null +>y : T1 & T2 + + x = y; // Complexity error +>x = y : T1 & T2 +>x : T1 | null +>y : T1 & T2 +} + +function f3(x: T1 | null, y: T1 & T2) { +>f3 : (x: T1 | null, y: T1 & T2) => void +>x : T1 | null +>y : T1 & T2 + + x = y; // Complexity error +>x = y : T1 & T2 +>x : T1 | null +>y : T1 & T2 +} + +function f4(x: { p: T1 | null }, y: { p: T1 & T2 }) { +>f4 : (x: { p: T1 | null; }, y: { p: T1 & T2; }) => void +>x : { p: T1 | null; } +>p : T1 | null +>y : { p: T1 & T2; } +>p : T1 & T2 + + x = y; // Complexity error +>x = y : { p: T1 & T2; } +>x : { p: T1 | null; } +>y : { p: T1 & T2; } +} + diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..e9850a7764ef6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,32 @@ +relationComplexitySharedCheckOrder.ts(22,1): error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. +relationComplexitySharedCheckOrder.ts(22,1): error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + + +==== relationComplexitySharedCheckOrder.ts (2 errors) ==== + // Relating y to x fresh caches too many comparisons. In program order the + // comparisons before it have cached all but a seventh of them. Whether + // relating y is too complex must not depend on which comes first. + + type D = '0' | '1' | '2' | '3' | '4' | '5' | '6'; + type T1 = `${D}${D}${D}${D}` | undefined; + type T2 = { a: string } | { b: number }; + declare let x: T1 | null; + declare const y1: (`${'0'}${D}${D}${D}` | undefined) & T2; + x = y1; + declare const y2: (`${'0' | '1'}${D}${D}${D}` | undefined) & T2; + x = y2; + declare const y3: (`${'0' | '1' | '2'}${D}${D}${D}` | undefined) & T2; + x = y3; + declare const y4: (`${'0' | '1' | '2' | '3'}${D}${D}${D}` | undefined) & T2; + x = y4; + declare const y5: (`${'0' | '1' | '2' | '3' | '4'}${D}${D}${D}` | undefined) & T2; + x = y5; + declare const y6: (`${'0' | '1' | '2' | '3' | '4' | '5'}${D}${D}${D}` | undefined) & T2; + x = y6; + declare const y: T1 & T2; + x = y; + ~ +!!! error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + ~~~~~ +!!! error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..af652dc727d64 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).symbols @@ -0,0 +1,101 @@ +//// [tests/cases/compiler/relationComplexitySharedCheckOrder.ts] //// + +=== relationComplexitySharedCheckOrder.ts === +// Relating y to x fresh caches too many comparisons. In program order the +// comparisons before it have cached all but a seventh of them. Whether +// relating y is too complex must not depend on which comes first. + +type D = '0' | '1' | '2' | '3' | '4' | '5' | '6'; +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) + +type T1 = `${D}${D}${D}${D}` | undefined; +>T1 : Symbol(T1, Decl(relationComplexitySharedCheckOrder.ts, 4, 49)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) + +type T2 = { a: string } | { b: number }; +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) +>a : Symbol(a, Decl(relationComplexitySharedCheckOrder.ts, 6, 11)) +>b : Symbol(b, Decl(relationComplexitySharedCheckOrder.ts, 6, 27)) + +declare let x: T1 | null; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>T1 : Symbol(T1, Decl(relationComplexitySharedCheckOrder.ts, 4, 49)) + +declare const y1: (`${'0'}${D}${D}${D}` | undefined) & T2; +>y1 : Symbol(y1, Decl(relationComplexitySharedCheckOrder.ts, 8, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y1; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y1 : Symbol(y1, Decl(relationComplexitySharedCheckOrder.ts, 8, 13)) + +declare const y2: (`${'0' | '1'}${D}${D}${D}` | undefined) & T2; +>y2 : Symbol(y2, Decl(relationComplexitySharedCheckOrder.ts, 10, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y2; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y2 : Symbol(y2, Decl(relationComplexitySharedCheckOrder.ts, 10, 13)) + +declare const y3: (`${'0' | '1' | '2'}${D}${D}${D}` | undefined) & T2; +>y3 : Symbol(y3, Decl(relationComplexitySharedCheckOrder.ts, 12, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y3; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y3 : Symbol(y3, Decl(relationComplexitySharedCheckOrder.ts, 12, 13)) + +declare const y4: (`${'0' | '1' | '2' | '3'}${D}${D}${D}` | undefined) & T2; +>y4 : Symbol(y4, Decl(relationComplexitySharedCheckOrder.ts, 14, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y4; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y4 : Symbol(y4, Decl(relationComplexitySharedCheckOrder.ts, 14, 13)) + +declare const y5: (`${'0' | '1' | '2' | '3' | '4'}${D}${D}${D}` | undefined) & T2; +>y5 : Symbol(y5, Decl(relationComplexitySharedCheckOrder.ts, 16, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y5; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y5 : Symbol(y5, Decl(relationComplexitySharedCheckOrder.ts, 16, 13)) + +declare const y6: (`${'0' | '1' | '2' | '3' | '4' | '5'}${D}${D}${D}` | undefined) & T2; +>y6 : Symbol(y6, Decl(relationComplexitySharedCheckOrder.ts, 18, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y6; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y6 : Symbol(y6, Decl(relationComplexitySharedCheckOrder.ts, 18, 13)) + +declare const y: T1 & T2; +>y : Symbol(y, Decl(relationComplexitySharedCheckOrder.ts, 20, 13)) +>T1 : Symbol(T1, Decl(relationComplexitySharedCheckOrder.ts, 4, 49)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y : Symbol(y, Decl(relationComplexitySharedCheckOrder.ts, 20, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..1a678796e4afb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=default).types @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/relationComplexitySharedCheckOrder.ts] //// + +=== relationComplexitySharedCheckOrder.ts === +// Relating y to x fresh caches too many comparisons. In program order the +// comparisons before it have cached all but a seventh of them. Whether +// relating y is too complex must not depend on which comes first. + +type D = '0' | '1' | '2' | '3' | '4' | '5' | '6'; +>D : D + +type T1 = `${D}${D}${D}${D}` | undefined; +>T1 : T1 + +type T2 = { a: string } | { b: number }; +>T2 : T2 +>a : string +>b : number + +declare let x: T1 | null; +>x : T1 | null + +declare const y1: (`${'0'}${D}${D}${D}` | undefined) & T2; +>y1 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | undefined) & T2 + +x = y1; +>x = y1 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | undefined) & T2 +>x : T1 | null +>y1 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | undefined) & T2 + +declare const y2: (`${'0' | '1'}${D}${D}${D}` | undefined) & T2; +>y2 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | undefined) & T2 + +x = y2; +>x = y2 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | undefined) & T2 +>x : T1 | null +>y2 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | undefined) & T2 + +declare const y3: (`${'0' | '1' | '2'}${D}${D}${D}` | undefined) & T2; +>y3 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | undefined) & T2 + +x = y3; +>x = y3 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | undefined) & T2 +>x : T1 | null +>y3 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | undefined) & T2 + +declare const y4: (`${'0' | '1' | '2' | '3'}${D}${D}${D}` | undefined) & T2; +>y4 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | undefined) & T2 + +x = y4; +>x = y4 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | undefined) & T2 +>x : T1 | null +>y4 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | undefined) & T2 + +declare const y5: (`${'0' | '1' | '2' | '3' | '4'}${D}${D}${D}` | undefined) & T2; +>y5 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | undefined) & T2 + +x = y5; +>x = y5 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | undefined) & T2 +>x : T1 | null +>y5 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | undefined) & T2 + +declare const y6: (`${'0' | '1' | '2' | '3' | '4' | '5'}${D}${D}${D}` | undefined) & T2; +>y6 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | "5000" | "5001" | "5002" | "5003" | "5004" | "5005" | "5006" | "5010" | "5011" | "5012" | "5013" | "5014" | "5015" | "5016" | "5020" | "5021" | "5022" | "5023" | "5024" | "5025" | "5026" | "5030" | "5031" | "5032" | "5033" | "5034" | "5035" | "5036" | "5040" | "5041" | "5042" | "5043" | "5044" | "5045" | "5046" | "5050" | "5051" | "5052" | "5053" | "5054" | "5055" | "5056" | "5060" | "5061" | "5062" | "5063" | "5064" | "5065" | "5066" | "5100" | "5101" | "5102" | "5103" | "5104" | "5105" | "5106" | "5110" | "5111" | "5112" | "5113" | "5114" | "5115" | "5116" | "5120" | "5121" | "5122" | "5123" | "5124" | "5125" | "5126" | "5130" | "5131" | "5132" | "5133" | "5134" | "5135" | "5136" | "5140" | "5141" | "5142" | "5143" | "5144" | "5145" | "5146" | "5150" | "5151" | "5152" | "5153" | "5154" | "5155" | "5156" | "5160" | "5161" | "5162" | "5163" | "5164" | "5165" | "5166" | "5200" | "5201" | "5202" | "5203" | "5204" | "5205" | "5206" | "5210" | "5211" | "5212" | "5213" | "5214" | "5215" | "5216" | "5220" | "5221" | "5222" | "5223" | "5224" | "5225" | "5226" | "5230" | "5231" | "5232" | "5233" | "5234" | "5235" | "5236" | "5240" | "5241" | "5242" | "5243" | "5244" | "5245" | "5246" | "5250" | "5251" | "5252" | "5253" | "5254" | "5255" | "5256" | "5260" | "5261" | "5262" | "5263" | "5264" | "5265" | "5266" | "5300" | "5301" | "5302" | "5303" | "5304" | "5305" | "5306" | "5310" | "5311" | "5312" | "5313" | "5314" | "5315" | "5316" | "5320" | "5321" | "5322" | "5323" | "5324" | "5325" | "5326" | "5330" | "5331" | "5332" | "5333" | "5334" | "5335" | "5336" | "5340" | "5341" | "5342" | "5343" | "5344" | "5345" | "5346" | "5350" | "5351" | "5352" | "5353" | "5354" | "5355" | "5356" | "5360" | "5361" | "5362" | "5363" | "5364" | "5365" | "5366" | "5400" | "5401" | "5402" | "5403" | "5404" | "5405" | "5406" | "5410" | "5411" | "5412" | "5413" | "5414" | "5415" | "5416" | "5420" | "5421" | "5422" | "5423" | "5424" | "5425" | "5426" | "5430" | "5431" | "5432" | "5433" | "5434" | "5435" | "5436" | "5440" | "5441" | "5442" | "5443" | "5444" | "5445" | "5446" | "5450" | "5451" | "5452" | "5453" | "5454" | "5455" | "5456" | "5460" | "5461" | "5462" | "5463" | "5464" | "5465" | "5466" | "5500" | "5501" | "5502" | "5503" | "5504" | "5505" | "5506" | "5510" | "5511" | "5512" | "5513" | "5514" | "5515" | "5516" | "5520" | "5521" | "5522" | "5523" | "5524" | "5525" | "5526" | "5530" | "5531" | "5532" | "5533" | "5534" | "5535" | "5536" | "5540" | "5541" | "5542" | "5543" | "5544" | "5545" | "5546" | "5550" | "5551" | "5552" | "5553" | "5554" | "5555" | "5556" | "5560" | "5561" | "5562" | "5563" | "5564" | "5565" | "5566" | "5600" | "5601" | "5602" | "5603" | "5604" | "5605" | "5606" | "5610" | "5611" | "5612" | "5613" | "5614" | "5615" | "5616" | "5620" | "5621" | "5622" | "5623" | "5624" | "5625" | "5626" | "5630" | "5631" | "5632" | "5633" | "5634" | "5635" | "5636" | "5640" | "5641" | "5642" | "5643" | "5644" | "5645" | "5646" | "5650" | "5651" | "5652" | "5653" | "5654" | "5655" | "5656" | "5660" | "5661" | "5662" | "5663" | "5664" | "5665" | "5666" | undefined) & T2 + +x = y6; +>x = y6 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | "5000" | "5001" | "5002" | "5003" | "5004" | "5005" | "5006" | "5010" | "5011" | "5012" | "5013" | "5014" | "5015" | "5016" | "5020" | "5021" | "5022" | "5023" | "5024" | "5025" | "5026" | "5030" | "5031" | "5032" | "5033" | "5034" | "5035" | "5036" | "5040" | "5041" | "5042" | "5043" | "5044" | "5045" | "5046" | "5050" | "5051" | "5052" | "5053" | "5054" | "5055" | "5056" | "5060" | "5061" | "5062" | "5063" | "5064" | "5065" | "5066" | "5100" | "5101" | "5102" | "5103" | "5104" | "5105" | "5106" | "5110" | "5111" | "5112" | "5113" | "5114" | "5115" | "5116" | "5120" | "5121" | "5122" | "5123" | "5124" | "5125" | "5126" | "5130" | "5131" | "5132" | "5133" | "5134" | "5135" | "5136" | "5140" | "5141" | "5142" | "5143" | "5144" | "5145" | "5146" | "5150" | "5151" | "5152" | "5153" | "5154" | "5155" | "5156" | "5160" | "5161" | "5162" | "5163" | "5164" | "5165" | "5166" | "5200" | "5201" | "5202" | "5203" | "5204" | "5205" | "5206" | "5210" | "5211" | "5212" | "5213" | "5214" | "5215" | "5216" | "5220" | "5221" | "5222" | "5223" | "5224" | "5225" | "5226" | "5230" | "5231" | "5232" | "5233" | "5234" | "5235" | "5236" | "5240" | "5241" | "5242" | "5243" | "5244" | "5245" | "5246" | "5250" | "5251" | "5252" | "5253" | "5254" | "5255" | "5256" | "5260" | "5261" | "5262" | "5263" | "5264" | "5265" | "5266" | "5300" | "5301" | "5302" | "5303" | "5304" | "5305" | "5306" | "5310" | "5311" | "5312" | "5313" | "5314" | "5315" | "5316" | "5320" | "5321" | "5322" | "5323" | "5324" | "5325" | "5326" | "5330" | "5331" | "5332" | "5333" | "5334" | "5335" | "5336" | "5340" | "5341" | "5342" | "5343" | "5344" | "5345" | "5346" | "5350" | "5351" | "5352" | "5353" | "5354" | "5355" | "5356" | "5360" | "5361" | "5362" | "5363" | "5364" | "5365" | "5366" | "5400" | "5401" | "5402" | "5403" | "5404" | "5405" | "5406" | "5410" | "5411" | "5412" | "5413" | "5414" | "5415" | "5416" | "5420" | "5421" | "5422" | "5423" | "5424" | "5425" | "5426" | "5430" | "5431" | "5432" | "5433" | "5434" | "5435" | "5436" | "5440" | "5441" | "5442" | "5443" | "5444" | "5445" | "5446" | "5450" | "5451" | "5452" | "5453" | "5454" | "5455" | "5456" | "5460" | "5461" | "5462" | "5463" | "5464" | "5465" | "5466" | "5500" | "5501" | "5502" | "5503" | "5504" | "5505" | "5506" | "5510" | "5511" | "5512" | "5513" | "5514" | "5515" | "5516" | "5520" | "5521" | "5522" | "5523" | "5524" | "5525" | "5526" | "5530" | "5531" | "5532" | "5533" | "5534" | "5535" | "5536" | "5540" | "5541" | "5542" | "5543" | "5544" | "5545" | "5546" | "5550" | "5551" | "5552" | "5553" | "5554" | "5555" | "5556" | "5560" | "5561" | "5562" | "5563" | "5564" | "5565" | "5566" | "5600" | "5601" | "5602" | "5603" | "5604" | "5605" | "5606" | "5610" | "5611" | "5612" | "5613" | "5614" | "5615" | "5616" | "5620" | "5621" | "5622" | "5623" | "5624" | "5625" | "5626" | "5630" | "5631" | "5632" | "5633" | "5634" | "5635" | "5636" | "5640" | "5641" | "5642" | "5643" | "5644" | "5645" | "5646" | "5650" | "5651" | "5652" | "5653" | "5654" | "5655" | "5656" | "5660" | "5661" | "5662" | "5663" | "5664" | "5665" | "5666" | undefined) & T2 +>x : T1 | null +>y6 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | "5000" | "5001" | "5002" | "5003" | "5004" | "5005" | "5006" | "5010" | "5011" | "5012" | "5013" | "5014" | "5015" | "5016" | "5020" | "5021" | "5022" | "5023" | "5024" | "5025" | "5026" | "5030" | "5031" | "5032" | "5033" | "5034" | "5035" | "5036" | "5040" | "5041" | "5042" | "5043" | "5044" | "5045" | "5046" | "5050" | "5051" | "5052" | "5053" | "5054" | "5055" | "5056" | "5060" | "5061" | "5062" | "5063" | "5064" | "5065" | "5066" | "5100" | "5101" | "5102" | "5103" | "5104" | "5105" | "5106" | "5110" | "5111" | "5112" | "5113" | "5114" | "5115" | "5116" | "5120" | "5121" | "5122" | "5123" | "5124" | "5125" | "5126" | "5130" | "5131" | "5132" | "5133" | "5134" | "5135" | "5136" | "5140" | "5141" | "5142" | "5143" | "5144" | "5145" | "5146" | "5150" | "5151" | "5152" | "5153" | "5154" | "5155" | "5156" | "5160" | "5161" | "5162" | "5163" | "5164" | "5165" | "5166" | "5200" | "5201" | "5202" | "5203" | "5204" | "5205" | "5206" | "5210" | "5211" | "5212" | "5213" | "5214" | "5215" | "5216" | "5220" | "5221" | "5222" | "5223" | "5224" | "5225" | "5226" | "5230" | "5231" | "5232" | "5233" | "5234" | "5235" | "5236" | "5240" | "5241" | "5242" | "5243" | "5244" | "5245" | "5246" | "5250" | "5251" | "5252" | "5253" | "5254" | "5255" | "5256" | "5260" | "5261" | "5262" | "5263" | "5264" | "5265" | "5266" | "5300" | "5301" | "5302" | "5303" | "5304" | "5305" | "5306" | "5310" | "5311" | "5312" | "5313" | "5314" | "5315" | "5316" | "5320" | "5321" | "5322" | "5323" | "5324" | "5325" | "5326" | "5330" | "5331" | "5332" | "5333" | "5334" | "5335" | "5336" | "5340" | "5341" | "5342" | "5343" | "5344" | "5345" | "5346" | "5350" | "5351" | "5352" | "5353" | "5354" | "5355" | "5356" | "5360" | "5361" | "5362" | "5363" | "5364" | "5365" | "5366" | "5400" | "5401" | "5402" | "5403" | "5404" | "5405" | "5406" | "5410" | "5411" | "5412" | "5413" | "5414" | "5415" | "5416" | "5420" | "5421" | "5422" | "5423" | "5424" | "5425" | "5426" | "5430" | "5431" | "5432" | "5433" | "5434" | "5435" | "5436" | "5440" | "5441" | "5442" | "5443" | "5444" | "5445" | "5446" | "5450" | "5451" | "5452" | "5453" | "5454" | "5455" | "5456" | "5460" | "5461" | "5462" | "5463" | "5464" | "5465" | "5466" | "5500" | "5501" | "5502" | "5503" | "5504" | "5505" | "5506" | "5510" | "5511" | "5512" | "5513" | "5514" | "5515" | "5516" | "5520" | "5521" | "5522" | "5523" | "5524" | "5525" | "5526" | "5530" | "5531" | "5532" | "5533" | "5534" | "5535" | "5536" | "5540" | "5541" | "5542" | "5543" | "5544" | "5545" | "5546" | "5550" | "5551" | "5552" | "5553" | "5554" | "5555" | "5556" | "5560" | "5561" | "5562" | "5563" | "5564" | "5565" | "5566" | "5600" | "5601" | "5602" | "5603" | "5604" | "5605" | "5606" | "5610" | "5611" | "5612" | "5613" | "5614" | "5615" | "5616" | "5620" | "5621" | "5622" | "5623" | "5624" | "5625" | "5626" | "5630" | "5631" | "5632" | "5633" | "5634" | "5635" | "5636" | "5640" | "5641" | "5642" | "5643" | "5644" | "5645" | "5646" | "5650" | "5651" | "5652" | "5653" | "5654" | "5655" | "5656" | "5660" | "5661" | "5662" | "5663" | "5664" | "5665" | "5666" | undefined) & T2 + +declare const y: T1 & T2; +>y : T1 & T2 + +x = y; +>x = y : T1 & T2 +>x : T1 | null +>y : T1 & T2 + diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..814b4254058e7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,35 @@ +relationComplexitySharedCheckOrder.ts(20,1): error TS2859: Excessive complexity comparing types '("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | "5000" | "5001" | "5002" | "5003" | "5004" | "5005" | "5006" | "5010" | "5011" | "5012" | "5013" | "5014" | "5015" | "5016" | "5020" | "5021" | "5022" | "5023" | "5024" | "5025" | "5026" | "5030" | "5031" | "5032" | "5033" | "5034" | "5035" | "5036" | "5040" | "5041" | "5042" | "5043" | "5044" | "5045" | "5046" | "5050" | "5051" | "5052" | "5053" | "5054" | "5055" | "5056" | "5060" | "5061" | "5062" | "5063" | "5064" | "5065" | "5066" | "5100" | "5101" | "5102" | "5103" | "5104" | "5105" | "5106" | "5110" | "5111" | "5112" | "5113" | "5114" | "5115" | "5116" | "5120" | "5121" | "5122" | "5123" | "5124" | "5125" | "5126" | "5130" | "5131" | "5132" | "5133" | "5134" | "5135" | "5136" | "5140" | "5141" | "5142" | "5143" | "5144" | "5145" | "5146" | "5150" | "5151" | "5152" | "5153" | "5154" | "5155" | "5156" | "5160" | "5161" | "5162" | "5163" | "5164" | "5165" | "5166" | "5200" | "5201" | "5202" | "5203" | "5204" | "5205" | "5206" | "5210" | "5211" | "5212" | "5213" | "5214" | "5215" | "5216" | "5220" | "5221" | "5222" | "5223" | "5224" | "5225" | "5226" | "5230" | "5231" | "5232" | "5233" | "5234" | "5235" | "5236" | "5240" | "5241" | "5242" | "5243" | "5244" | "5245" | "5246" | "5250" | "5251" | "5252" | "5253" | "5254" | "5255" | "5256" | "5260" | "5261" | "5262" | "5263" | "5264" | "5265" | "5266" | "5300" | "5301" | "5302" | "5303" | "5304" | "5305" | "5306" | "5310" | "5311" | "5312" | "5313" | "5314" | "5315" | "5316" | "5320" | "5321" | "5322" | "5323" | "5324" | "5325" | "5326" | "5330" | "5331" | "5332" | "5333" | "5334" | "5335" | "5336" | "5340" | "5341" | "5342" | "5343" | "5344" | "5345" | "5346" | "5350" | "5351" | "5352" | "5353" | "5354" | "5355" | "5356" | "5360" | "5361" | "5362" | "5363" | "5364" | "5365" | "5366" | "5400" | "5401" | "5402" | "5403" | "5404" | "5405" | "5406" | "5410" | "5411" | "5412" | "5413" | "5414" | "5415" | "5416" | "5420" | "5421" | "5422" | "5423" | "5424" | "5425" | "5426" | "5430" | "5431" | "5432" | "5433" | "5434" | "5435" | "5436" | "5440" | "5441" | "5442" | "5443" | "5444" | "5445" | "5446" | "5450" | "5451" | "5452" | "5453" | "5454" | "5455" | "5456" | "5460" | "5461" | "5462" | "5463" | "5464" | "5465" | "5466" | "5500" | "5501" | "5502" | "5503" | "5504" | "5505" | "5506" | "5510" | "5511" | "5512" | "5513" | "5514" | "5515" | "5516" | "5520" | "5521" | "5522" | "5523" | "5524" | "5525" | "5526" | "5530" | "5531" | "5532" | "5533" | "5534" | "5535" | "5536" | "5540" | "5541" | "5542" | "5543" | "5544" | "5545" | "5546" | "5550" | "5551" | "5552" | "5553" | "5554" | "5555" | "5556" | "5560" | "5561" | "5562" | "5563" | "5564" | "5565" | "5566" | "5600" | "5601" | "5602" | "5603" | "5604" | "5605" | "5606" | "5610" | "5611" | "5612" | "5613" | "5614" | "5615" | "5616" | "5620" | "5621" | "5622" | "5623" | "5624" | "5625" | "5626" | "5630" | "5631" | "5632" | "5633" | "5634" | "5635" | "5636" | "5640" | "5641" | "5642" | "5643" | "5644" | "5645" | "5646" | "5650" | "5651" | "5652" | "5653" | "5654" | "5655" | "5656" | "5660" | "5661" | "5662" | "5663" | "5664" | "5665" | "5666" | undefined) & T2' and 'T1 | null'. +relationComplexitySharedCheckOrder.ts(22,1): error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. +relationComplexitySharedCheckOrder.ts(22,1): error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + + +==== relationComplexitySharedCheckOrder.ts (3 errors) ==== + // Relating y to x fresh caches too many comparisons. In program order the + // comparisons before it have cached all but a seventh of them. Whether + // relating y is too complex must not depend on which comes first. + + type D = '0' | '1' | '2' | '3' | '4' | '5' | '6'; + type T1 = `${D}${D}${D}${D}` | undefined; + type T2 = { a: string } | { b: number }; + declare let x: T1 | null; + declare const y1: (`${'0'}${D}${D}${D}` | undefined) & T2; + x = y1; + declare const y2: (`${'0' | '1'}${D}${D}${D}` | undefined) & T2; + x = y2; + declare const y3: (`${'0' | '1' | '2'}${D}${D}${D}` | undefined) & T2; + x = y3; + declare const y4: (`${'0' | '1' | '2' | '3'}${D}${D}${D}` | undefined) & T2; + x = y4; + declare const y5: (`${'0' | '1' | '2' | '3' | '4'}${D}${D}${D}` | undefined) & T2; + x = y5; + declare const y6: (`${'0' | '1' | '2' | '3' | '4' | '5'}${D}${D}${D}` | undefined) & T2; + x = y6; + ~ +!!! error TS2859: Excessive complexity comparing types '("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | "5000" | "5001" | "5002" | "5003" | "5004" | "5005" | "5006" | "5010" | "5011" | "5012" | "5013" | "5014" | "5015" | "5016" | "5020" | "5021" | "5022" | "5023" | "5024" | "5025" | "5026" | "5030" | "5031" | "5032" | "5033" | "5034" | "5035" | "5036" | "5040" | "5041" | "5042" | "5043" | "5044" | "5045" | "5046" | "5050" | "5051" | "5052" | "5053" | "5054" | "5055" | "5056" | "5060" | "5061" | "5062" | "5063" | "5064" | "5065" | "5066" | "5100" | "5101" | "5102" | "5103" | "5104" | "5105" | "5106" | "5110" | "5111" | "5112" | "5113" | "5114" | "5115" | "5116" | "5120" | "5121" | "5122" | "5123" | "5124" | "5125" | "5126" | "5130" | "5131" | "5132" | "5133" | "5134" | "5135" | "5136" | "5140" | "5141" | "5142" | "5143" | "5144" | "5145" | "5146" | "5150" | "5151" | "5152" | "5153" | "5154" | "5155" | "5156" | "5160" | "5161" | "5162" | "5163" | "5164" | "5165" | "5166" | "5200" | "5201" | "5202" | "5203" | "5204" | "5205" | "5206" | "5210" | "5211" | "5212" | "5213" | "5214" | "5215" | "5216" | "5220" | "5221" | "5222" | "5223" | "5224" | "5225" | "5226" | "5230" | "5231" | "5232" | "5233" | "5234" | "5235" | "5236" | "5240" | "5241" | "5242" | "5243" | "5244" | "5245" | "5246" | "5250" | "5251" | "5252" | "5253" | "5254" | "5255" | "5256" | "5260" | "5261" | "5262" | "5263" | "5264" | "5265" | "5266" | "5300" | "5301" | "5302" | "5303" | "5304" | "5305" | "5306" | "5310" | "5311" | "5312" | "5313" | "5314" | "5315" | "5316" | "5320" | "5321" | "5322" | "5323" | "5324" | "5325" | "5326" | "5330" | "5331" | "5332" | "5333" | "5334" | "5335" | "5336" | "5340" | "5341" | "5342" | "5343" | "5344" | "5345" | "5346" | "5350" | "5351" | "5352" | "5353" | "5354" | "5355" | "5356" | "5360" | "5361" | "5362" | "5363" | "5364" | "5365" | "5366" | "5400" | "5401" | "5402" | "5403" | "5404" | "5405" | "5406" | "5410" | "5411" | "5412" | "5413" | "5414" | "5415" | "5416" | "5420" | "5421" | "5422" | "5423" | "5424" | "5425" | "5426" | "5430" | "5431" | "5432" | "5433" | "5434" | "5435" | "5436" | "5440" | "5441" | "5442" | "5443" | "5444" | "5445" | "5446" | "5450" | "5451" | "5452" | "5453" | "5454" | "5455" | "5456" | "5460" | "5461" | "5462" | "5463" | "5464" | "5465" | "5466" | "5500" | "5501" | "5502" | "5503" | "5504" | "5505" | "5506" | "5510" | "5511" | "5512" | "5513" | "5514" | "5515" | "5516" | "5520" | "5521" | "5522" | "5523" | "5524" | "5525" | "5526" | "5530" | "5531" | "5532" | "5533" | "5534" | "5535" | "5536" | "5540" | "5541" | "5542" | "5543" | "5544" | "5545" | "5546" | "5550" | "5551" | "5552" | "5553" | "5554" | "5555" | "5556" | "5560" | "5561" | "5562" | "5563" | "5564" | "5565" | "5566" | "5600" | "5601" | "5602" | "5603" | "5604" | "5605" | "5606" | "5610" | "5611" | "5612" | "5613" | "5614" | "5615" | "5616" | "5620" | "5621" | "5622" | "5623" | "5624" | "5625" | "5626" | "5630" | "5631" | "5632" | "5633" | "5634" | "5635" | "5636" | "5640" | "5641" | "5642" | "5643" | "5644" | "5645" | "5646" | "5650" | "5651" | "5652" | "5653" | "5654" | "5655" | "5656" | "5660" | "5661" | "5662" | "5663" | "5664" | "5665" | "5666" | undefined) & T2' and 'T1 | null'. + declare const y: T1 & T2; + x = y; + ~ +!!! error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + ~~~~~ +!!! error TS2859: Excessive complexity comparing types 'T1 & T2' and 'T1 | null'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..af652dc727d64 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,101 @@ +//// [tests/cases/compiler/relationComplexitySharedCheckOrder.ts] //// + +=== relationComplexitySharedCheckOrder.ts === +// Relating y to x fresh caches too many comparisons. In program order the +// comparisons before it have cached all but a seventh of them. Whether +// relating y is too complex must not depend on which comes first. + +type D = '0' | '1' | '2' | '3' | '4' | '5' | '6'; +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) + +type T1 = `${D}${D}${D}${D}` | undefined; +>T1 : Symbol(T1, Decl(relationComplexitySharedCheckOrder.ts, 4, 49)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) + +type T2 = { a: string } | { b: number }; +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) +>a : Symbol(a, Decl(relationComplexitySharedCheckOrder.ts, 6, 11)) +>b : Symbol(b, Decl(relationComplexitySharedCheckOrder.ts, 6, 27)) + +declare let x: T1 | null; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>T1 : Symbol(T1, Decl(relationComplexitySharedCheckOrder.ts, 4, 49)) + +declare const y1: (`${'0'}${D}${D}${D}` | undefined) & T2; +>y1 : Symbol(y1, Decl(relationComplexitySharedCheckOrder.ts, 8, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y1; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y1 : Symbol(y1, Decl(relationComplexitySharedCheckOrder.ts, 8, 13)) + +declare const y2: (`${'0' | '1'}${D}${D}${D}` | undefined) & T2; +>y2 : Symbol(y2, Decl(relationComplexitySharedCheckOrder.ts, 10, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y2; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y2 : Symbol(y2, Decl(relationComplexitySharedCheckOrder.ts, 10, 13)) + +declare const y3: (`${'0' | '1' | '2'}${D}${D}${D}` | undefined) & T2; +>y3 : Symbol(y3, Decl(relationComplexitySharedCheckOrder.ts, 12, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y3; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y3 : Symbol(y3, Decl(relationComplexitySharedCheckOrder.ts, 12, 13)) + +declare const y4: (`${'0' | '1' | '2' | '3'}${D}${D}${D}` | undefined) & T2; +>y4 : Symbol(y4, Decl(relationComplexitySharedCheckOrder.ts, 14, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y4; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y4 : Symbol(y4, Decl(relationComplexitySharedCheckOrder.ts, 14, 13)) + +declare const y5: (`${'0' | '1' | '2' | '3' | '4'}${D}${D}${D}` | undefined) & T2; +>y5 : Symbol(y5, Decl(relationComplexitySharedCheckOrder.ts, 16, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y5; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y5 : Symbol(y5, Decl(relationComplexitySharedCheckOrder.ts, 16, 13)) + +declare const y6: (`${'0' | '1' | '2' | '3' | '4' | '5'}${D}${D}${D}` | undefined) & T2; +>y6 : Symbol(y6, Decl(relationComplexitySharedCheckOrder.ts, 18, 13)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>D : Symbol(D, Decl(relationComplexitySharedCheckOrder.ts, 0, 0)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y6; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y6 : Symbol(y6, Decl(relationComplexitySharedCheckOrder.ts, 18, 13)) + +declare const y: T1 & T2; +>y : Symbol(y, Decl(relationComplexitySharedCheckOrder.ts, 20, 13)) +>T1 : Symbol(T1, Decl(relationComplexitySharedCheckOrder.ts, 4, 49)) +>T2 : Symbol(T2, Decl(relationComplexitySharedCheckOrder.ts, 5, 41)) + +x = y; +>x : Symbol(x, Decl(relationComplexitySharedCheckOrder.ts, 7, 11)) +>y : Symbol(y, Decl(relationComplexitySharedCheckOrder.ts, 20, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..1a678796e4afb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationComplexitySharedCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/relationComplexitySharedCheckOrder.ts] //// + +=== relationComplexitySharedCheckOrder.ts === +// Relating y to x fresh caches too many comparisons. In program order the +// comparisons before it have cached all but a seventh of them. Whether +// relating y is too complex must not depend on which comes first. + +type D = '0' | '1' | '2' | '3' | '4' | '5' | '6'; +>D : D + +type T1 = `${D}${D}${D}${D}` | undefined; +>T1 : T1 + +type T2 = { a: string } | { b: number }; +>T2 : T2 +>a : string +>b : number + +declare let x: T1 | null; +>x : T1 | null + +declare const y1: (`${'0'}${D}${D}${D}` | undefined) & T2; +>y1 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | undefined) & T2 + +x = y1; +>x = y1 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | undefined) & T2 +>x : T1 | null +>y1 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | undefined) & T2 + +declare const y2: (`${'0' | '1'}${D}${D}${D}` | undefined) & T2; +>y2 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | undefined) & T2 + +x = y2; +>x = y2 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | undefined) & T2 +>x : T1 | null +>y2 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | undefined) & T2 + +declare const y3: (`${'0' | '1' | '2'}${D}${D}${D}` | undefined) & T2; +>y3 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | undefined) & T2 + +x = y3; +>x = y3 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | undefined) & T2 +>x : T1 | null +>y3 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | undefined) & T2 + +declare const y4: (`${'0' | '1' | '2' | '3'}${D}${D}${D}` | undefined) & T2; +>y4 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | undefined) & T2 + +x = y4; +>x = y4 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | undefined) & T2 +>x : T1 | null +>y4 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | undefined) & T2 + +declare const y5: (`${'0' | '1' | '2' | '3' | '4'}${D}${D}${D}` | undefined) & T2; +>y5 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | undefined) & T2 + +x = y5; +>x = y5 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | undefined) & T2 +>x : T1 | null +>y5 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | undefined) & T2 + +declare const y6: (`${'0' | '1' | '2' | '3' | '4' | '5'}${D}${D}${D}` | undefined) & T2; +>y6 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | "5000" | "5001" | "5002" | "5003" | "5004" | "5005" | "5006" | "5010" | "5011" | "5012" | "5013" | "5014" | "5015" | "5016" | "5020" | "5021" | "5022" | "5023" | "5024" | "5025" | "5026" | "5030" | "5031" | "5032" | "5033" | "5034" | "5035" | "5036" | "5040" | "5041" | "5042" | "5043" | "5044" | "5045" | "5046" | "5050" | "5051" | "5052" | "5053" | "5054" | "5055" | "5056" | "5060" | "5061" | "5062" | "5063" | "5064" | "5065" | "5066" | "5100" | "5101" | "5102" | "5103" | "5104" | "5105" | "5106" | "5110" | "5111" | "5112" | "5113" | "5114" | "5115" | "5116" | "5120" | "5121" | "5122" | "5123" | "5124" | "5125" | "5126" | "5130" | "5131" | "5132" | "5133" | "5134" | "5135" | "5136" | "5140" | "5141" | "5142" | "5143" | "5144" | "5145" | "5146" | "5150" | "5151" | "5152" | "5153" | "5154" | "5155" | "5156" | "5160" | "5161" | "5162" | "5163" | "5164" | "5165" | "5166" | "5200" | "5201" | "5202" | "5203" | "5204" | "5205" | "5206" | "5210" | "5211" | "5212" | "5213" | "5214" | "5215" | "5216" | "5220" | "5221" | "5222" | "5223" | "5224" | "5225" | "5226" | "5230" | "5231" | "5232" | "5233" | "5234" | "5235" | "5236" | "5240" | "5241" | "5242" | "5243" | "5244" | "5245" | "5246" | "5250" | "5251" | "5252" | "5253" | "5254" | "5255" | "5256" | "5260" | "5261" | "5262" | "5263" | "5264" | "5265" | "5266" | "5300" | "5301" | "5302" | "5303" | "5304" | "5305" | "5306" | "5310" | "5311" | "5312" | "5313" | "5314" | "5315" | "5316" | "5320" | "5321" | "5322" | "5323" | "5324" | "5325" | "5326" | "5330" | "5331" | "5332" | "5333" | "5334" | "5335" | "5336" | "5340" | "5341" | "5342" | "5343" | "5344" | "5345" | "5346" | "5350" | "5351" | "5352" | "5353" | "5354" | "5355" | "5356" | "5360" | "5361" | "5362" | "5363" | "5364" | "5365" | "5366" | "5400" | "5401" | "5402" | "5403" | "5404" | "5405" | "5406" | "5410" | "5411" | "5412" | "5413" | "5414" | "5415" | "5416" | "5420" | "5421" | "5422" | "5423" | "5424" | "5425" | "5426" | "5430" | "5431" | "5432" | "5433" | "5434" | "5435" | "5436" | "5440" | "5441" | "5442" | "5443" | "5444" | "5445" | "5446" | "5450" | "5451" | "5452" | "5453" | "5454" | "5455" | "5456" | "5460" | "5461" | "5462" | "5463" | "5464" | "5465" | "5466" | "5500" | "5501" | "5502" | "5503" | "5504" | "5505" | "5506" | "5510" | "5511" | "5512" | "5513" | "5514" | "5515" | "5516" | "5520" | "5521" | "5522" | "5523" | "5524" | "5525" | "5526" | "5530" | "5531" | "5532" | "5533" | "5534" | "5535" | "5536" | "5540" | "5541" | "5542" | "5543" | "5544" | "5545" | "5546" | "5550" | "5551" | "5552" | "5553" | "5554" | "5555" | "5556" | "5560" | "5561" | "5562" | "5563" | "5564" | "5565" | "5566" | "5600" | "5601" | "5602" | "5603" | "5604" | "5605" | "5606" | "5610" | "5611" | "5612" | "5613" | "5614" | "5615" | "5616" | "5620" | "5621" | "5622" | "5623" | "5624" | "5625" | "5626" | "5630" | "5631" | "5632" | "5633" | "5634" | "5635" | "5636" | "5640" | "5641" | "5642" | "5643" | "5644" | "5645" | "5646" | "5650" | "5651" | "5652" | "5653" | "5654" | "5655" | "5656" | "5660" | "5661" | "5662" | "5663" | "5664" | "5665" | "5666" | undefined) & T2 + +x = y6; +>x = y6 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | "5000" | "5001" | "5002" | "5003" | "5004" | "5005" | "5006" | "5010" | "5011" | "5012" | "5013" | "5014" | "5015" | "5016" | "5020" | "5021" | "5022" | "5023" | "5024" | "5025" | "5026" | "5030" | "5031" | "5032" | "5033" | "5034" | "5035" | "5036" | "5040" | "5041" | "5042" | "5043" | "5044" | "5045" | "5046" | "5050" | "5051" | "5052" | "5053" | "5054" | "5055" | "5056" | "5060" | "5061" | "5062" | "5063" | "5064" | "5065" | "5066" | "5100" | "5101" | "5102" | "5103" | "5104" | "5105" | "5106" | "5110" | "5111" | "5112" | "5113" | "5114" | "5115" | "5116" | "5120" | "5121" | "5122" | "5123" | "5124" | "5125" | "5126" | "5130" | "5131" | "5132" | "5133" | "5134" | "5135" | "5136" | "5140" | "5141" | "5142" | "5143" | "5144" | "5145" | "5146" | "5150" | "5151" | "5152" | "5153" | "5154" | "5155" | "5156" | "5160" | "5161" | "5162" | "5163" | "5164" | "5165" | "5166" | "5200" | "5201" | "5202" | "5203" | "5204" | "5205" | "5206" | "5210" | "5211" | "5212" | "5213" | "5214" | "5215" | "5216" | "5220" | "5221" | "5222" | "5223" | "5224" | "5225" | "5226" | "5230" | "5231" | "5232" | "5233" | "5234" | "5235" | "5236" | "5240" | "5241" | "5242" | "5243" | "5244" | "5245" | "5246" | "5250" | "5251" | "5252" | "5253" | "5254" | "5255" | "5256" | "5260" | "5261" | "5262" | "5263" | "5264" | "5265" | "5266" | "5300" | "5301" | "5302" | "5303" | "5304" | "5305" | "5306" | "5310" | "5311" | "5312" | "5313" | "5314" | "5315" | "5316" | "5320" | "5321" | "5322" | "5323" | "5324" | "5325" | "5326" | "5330" | "5331" | "5332" | "5333" | "5334" | "5335" | "5336" | "5340" | "5341" | "5342" | "5343" | "5344" | "5345" | "5346" | "5350" | "5351" | "5352" | "5353" | "5354" | "5355" | "5356" | "5360" | "5361" | "5362" | "5363" | "5364" | "5365" | "5366" | "5400" | "5401" | "5402" | "5403" | "5404" | "5405" | "5406" | "5410" | "5411" | "5412" | "5413" | "5414" | "5415" | "5416" | "5420" | "5421" | "5422" | "5423" | "5424" | "5425" | "5426" | "5430" | "5431" | "5432" | "5433" | "5434" | "5435" | "5436" | "5440" | "5441" | "5442" | "5443" | "5444" | "5445" | "5446" | "5450" | "5451" | "5452" | "5453" | "5454" | "5455" | "5456" | "5460" | "5461" | "5462" | "5463" | "5464" | "5465" | "5466" | "5500" | "5501" | "5502" | "5503" | "5504" | "5505" | "5506" | "5510" | "5511" | "5512" | "5513" | "5514" | "5515" | "5516" | "5520" | "5521" | "5522" | "5523" | "5524" | "5525" | "5526" | "5530" | "5531" | "5532" | "5533" | "5534" | "5535" | "5536" | "5540" | "5541" | "5542" | "5543" | "5544" | "5545" | "5546" | "5550" | "5551" | "5552" | "5553" | "5554" | "5555" | "5556" | "5560" | "5561" | "5562" | "5563" | "5564" | "5565" | "5566" | "5600" | "5601" | "5602" | "5603" | "5604" | "5605" | "5606" | "5610" | "5611" | "5612" | "5613" | "5614" | "5615" | "5616" | "5620" | "5621" | "5622" | "5623" | "5624" | "5625" | "5626" | "5630" | "5631" | "5632" | "5633" | "5634" | "5635" | "5636" | "5640" | "5641" | "5642" | "5643" | "5644" | "5645" | "5646" | "5650" | "5651" | "5652" | "5653" | "5654" | "5655" | "5656" | "5660" | "5661" | "5662" | "5663" | "5664" | "5665" | "5666" | undefined) & T2 +>x : T1 | null +>y6 : ("0000" | "0001" | "0002" | "0003" | "0004" | "0005" | "0006" | "0010" | "0011" | "0012" | "0013" | "0014" | "0015" | "0016" | "0020" | "0021" | "0022" | "0023" | "0024" | "0025" | "0026" | "0030" | "0031" | "0032" | "0033" | "0034" | "0035" | "0036" | "0040" | "0041" | "0042" | "0043" | "0044" | "0045" | "0046" | "0050" | "0051" | "0052" | "0053" | "0054" | "0055" | "0056" | "0060" | "0061" | "0062" | "0063" | "0064" | "0065" | "0066" | "0100" | "0101" | "0102" | "0103" | "0104" | "0105" | "0106" | "0110" | "0111" | "0112" | "0113" | "0114" | "0115" | "0116" | "0120" | "0121" | "0122" | "0123" | "0124" | "0125" | "0126" | "0130" | "0131" | "0132" | "0133" | "0134" | "0135" | "0136" | "0140" | "0141" | "0142" | "0143" | "0144" | "0145" | "0146" | "0150" | "0151" | "0152" | "0153" | "0154" | "0155" | "0156" | "0160" | "0161" | "0162" | "0163" | "0164" | "0165" | "0166" | "0200" | "0201" | "0202" | "0203" | "0204" | "0205" | "0206" | "0210" | "0211" | "0212" | "0213" | "0214" | "0215" | "0216" | "0220" | "0221" | "0222" | "0223" | "0224" | "0225" | "0226" | "0230" | "0231" | "0232" | "0233" | "0234" | "0235" | "0236" | "0240" | "0241" | "0242" | "0243" | "0244" | "0245" | "0246" | "0250" | "0251" | "0252" | "0253" | "0254" | "0255" | "0256" | "0260" | "0261" | "0262" | "0263" | "0264" | "0265" | "0266" | "0300" | "0301" | "0302" | "0303" | "0304" | "0305" | "0306" | "0310" | "0311" | "0312" | "0313" | "0314" | "0315" | "0316" | "0320" | "0321" | "0322" | "0323" | "0324" | "0325" | "0326" | "0330" | "0331" | "0332" | "0333" | "0334" | "0335" | "0336" | "0340" | "0341" | "0342" | "0343" | "0344" | "0345" | "0346" | "0350" | "0351" | "0352" | "0353" | "0354" | "0355" | "0356" | "0360" | "0361" | "0362" | "0363" | "0364" | "0365" | "0366" | "0400" | "0401" | "0402" | "0403" | "0404" | "0405" | "0406" | "0410" | "0411" | "0412" | "0413" | "0414" | "0415" | "0416" | "0420" | "0421" | "0422" | "0423" | "0424" | "0425" | "0426" | "0430" | "0431" | "0432" | "0433" | "0434" | "0435" | "0436" | "0440" | "0441" | "0442" | "0443" | "0444" | "0445" | "0446" | "0450" | "0451" | "0452" | "0453" | "0454" | "0455" | "0456" | "0460" | "0461" | "0462" | "0463" | "0464" | "0465" | "0466" | "0500" | "0501" | "0502" | "0503" | "0504" | "0505" | "0506" | "0510" | "0511" | "0512" | "0513" | "0514" | "0515" | "0516" | "0520" | "0521" | "0522" | "0523" | "0524" | "0525" | "0526" | "0530" | "0531" | "0532" | "0533" | "0534" | "0535" | "0536" | "0540" | "0541" | "0542" | "0543" | "0544" | "0545" | "0546" | "0550" | "0551" | "0552" | "0553" | "0554" | "0555" | "0556" | "0560" | "0561" | "0562" | "0563" | "0564" | "0565" | "0566" | "0600" | "0601" | "0602" | "0603" | "0604" | "0605" | "0606" | "0610" | "0611" | "0612" | "0613" | "0614" | "0615" | "0616" | "0620" | "0621" | "0622" | "0623" | "0624" | "0625" | "0626" | "0630" | "0631" | "0632" | "0633" | "0634" | "0635" | "0636" | "0640" | "0641" | "0642" | "0643" | "0644" | "0645" | "0646" | "0650" | "0651" | "0652" | "0653" | "0654" | "0655" | "0656" | "0660" | "0661" | "0662" | "0663" | "0664" | "0665" | "0666" | "1000" | "1001" | "1002" | "1003" | "1004" | "1005" | "1006" | "1010" | "1011" | "1012" | "1013" | "1014" | "1015" | "1016" | "1020" | "1021" | "1022" | "1023" | "1024" | "1025" | "1026" | "1030" | "1031" | "1032" | "1033" | "1034" | "1035" | "1036" | "1040" | "1041" | "1042" | "1043" | "1044" | "1045" | "1046" | "1050" | "1051" | "1052" | "1053" | "1054" | "1055" | "1056" | "1060" | "1061" | "1062" | "1063" | "1064" | "1065" | "1066" | "1100" | "1101" | "1102" | "1103" | "1104" | "1105" | "1106" | "1110" | "1111" | "1112" | "1113" | "1114" | "1115" | "1116" | "1120" | "1121" | "1122" | "1123" | "1124" | "1125" | "1126" | "1130" | "1131" | "1132" | "1133" | "1134" | "1135" | "1136" | "1140" | "1141" | "1142" | "1143" | "1144" | "1145" | "1146" | "1150" | "1151" | "1152" | "1153" | "1154" | "1155" | "1156" | "1160" | "1161" | "1162" | "1163" | "1164" | "1165" | "1166" | "1200" | "1201" | "1202" | "1203" | "1204" | "1205" | "1206" | "1210" | "1211" | "1212" | "1213" | "1214" | "1215" | "1216" | "1220" | "1221" | "1222" | "1223" | "1224" | "1225" | "1226" | "1230" | "1231" | "1232" | "1233" | "1234" | "1235" | "1236" | "1240" | "1241" | "1242" | "1243" | "1244" | "1245" | "1246" | "1250" | "1251" | "1252" | "1253" | "1254" | "1255" | "1256" | "1260" | "1261" | "1262" | "1263" | "1264" | "1265" | "1266" | "1300" | "1301" | "1302" | "1303" | "1304" | "1305" | "1306" | "1310" | "1311" | "1312" | "1313" | "1314" | "1315" | "1316" | "1320" | "1321" | "1322" | "1323" | "1324" | "1325" | "1326" | "1330" | "1331" | "1332" | "1333" | "1334" | "1335" | "1336" | "1340" | "1341" | "1342" | "1343" | "1344" | "1345" | "1346" | "1350" | "1351" | "1352" | "1353" | "1354" | "1355" | "1356" | "1360" | "1361" | "1362" | "1363" | "1364" | "1365" | "1366" | "1400" | "1401" | "1402" | "1403" | "1404" | "1405" | "1406" | "1410" | "1411" | "1412" | "1413" | "1414" | "1415" | "1416" | "1420" | "1421" | "1422" | "1423" | "1424" | "1425" | "1426" | "1430" | "1431" | "1432" | "1433" | "1434" | "1435" | "1436" | "1440" | "1441" | "1442" | "1443" | "1444" | "1445" | "1446" | "1450" | "1451" | "1452" | "1453" | "1454" | "1455" | "1456" | "1460" | "1461" | "1462" | "1463" | "1464" | "1465" | "1466" | "1500" | "1501" | "1502" | "1503" | "1504" | "1505" | "1506" | "1510" | "1511" | "1512" | "1513" | "1514" | "1515" | "1516" | "1520" | "1521" | "1522" | "1523" | "1524" | "1525" | "1526" | "1530" | "1531" | "1532" | "1533" | "1534" | "1535" | "1536" | "1540" | "1541" | "1542" | "1543" | "1544" | "1545" | "1546" | "1550" | "1551" | "1552" | "1553" | "1554" | "1555" | "1556" | "1560" | "1561" | "1562" | "1563" | "1564" | "1565" | "1566" | "1600" | "1601" | "1602" | "1603" | "1604" | "1605" | "1606" | "1610" | "1611" | "1612" | "1613" | "1614" | "1615" | "1616" | "1620" | "1621" | "1622" | "1623" | "1624" | "1625" | "1626" | "1630" | "1631" | "1632" | "1633" | "1634" | "1635" | "1636" | "1640" | "1641" | "1642" | "1643" | "1644" | "1645" | "1646" | "1650" | "1651" | "1652" | "1653" | "1654" | "1655" | "1656" | "1660" | "1661" | "1662" | "1663" | "1664" | "1665" | "1666" | "2000" | "2001" | "2002" | "2003" | "2004" | "2005" | "2006" | "2010" | "2011" | "2012" | "2013" | "2014" | "2015" | "2016" | "2020" | "2021" | "2022" | "2023" | "2024" | "2025" | "2026" | "2030" | "2031" | "2032" | "2033" | "2034" | "2035" | "2036" | "2040" | "2041" | "2042" | "2043" | "2044" | "2045" | "2046" | "2050" | "2051" | "2052" | "2053" | "2054" | "2055" | "2056" | "2060" | "2061" | "2062" | "2063" | "2064" | "2065" | "2066" | "2100" | "2101" | "2102" | "2103" | "2104" | "2105" | "2106" | "2110" | "2111" | "2112" | "2113" | "2114" | "2115" | "2116" | "2120" | "2121" | "2122" | "2123" | "2124" | "2125" | "2126" | "2130" | "2131" | "2132" | "2133" | "2134" | "2135" | "2136" | "2140" | "2141" | "2142" | "2143" | "2144" | "2145" | "2146" | "2150" | "2151" | "2152" | "2153" | "2154" | "2155" | "2156" | "2160" | "2161" | "2162" | "2163" | "2164" | "2165" | "2166" | "2200" | "2201" | "2202" | "2203" | "2204" | "2205" | "2206" | "2210" | "2211" | "2212" | "2213" | "2214" | "2215" | "2216" | "2220" | "2221" | "2222" | "2223" | "2224" | "2225" | "2226" | "2230" | "2231" | "2232" | "2233" | "2234" | "2235" | "2236" | "2240" | "2241" | "2242" | "2243" | "2244" | "2245" | "2246" | "2250" | "2251" | "2252" | "2253" | "2254" | "2255" | "2256" | "2260" | "2261" | "2262" | "2263" | "2264" | "2265" | "2266" | "2300" | "2301" | "2302" | "2303" | "2304" | "2305" | "2306" | "2310" | "2311" | "2312" | "2313" | "2314" | "2315" | "2316" | "2320" | "2321" | "2322" | "2323" | "2324" | "2325" | "2326" | "2330" | "2331" | "2332" | "2333" | "2334" | "2335" | "2336" | "2340" | "2341" | "2342" | "2343" | "2344" | "2345" | "2346" | "2350" | "2351" | "2352" | "2353" | "2354" | "2355" | "2356" | "2360" | "2361" | "2362" | "2363" | "2364" | "2365" | "2366" | "2400" | "2401" | "2402" | "2403" | "2404" | "2405" | "2406" | "2410" | "2411" | "2412" | "2413" | "2414" | "2415" | "2416" | "2420" | "2421" | "2422" | "2423" | "2424" | "2425" | "2426" | "2430" | "2431" | "2432" | "2433" | "2434" | "2435" | "2436" | "2440" | "2441" | "2442" | "2443" | "2444" | "2445" | "2446" | "2450" | "2451" | "2452" | "2453" | "2454" | "2455" | "2456" | "2460" | "2461" | "2462" | "2463" | "2464" | "2465" | "2466" | "2500" | "2501" | "2502" | "2503" | "2504" | "2505" | "2506" | "2510" | "2511" | "2512" | "2513" | "2514" | "2515" | "2516" | "2520" | "2521" | "2522" | "2523" | "2524" | "2525" | "2526" | "2530" | "2531" | "2532" | "2533" | "2534" | "2535" | "2536" | "2540" | "2541" | "2542" | "2543" | "2544" | "2545" | "2546" | "2550" | "2551" | "2552" | "2553" | "2554" | "2555" | "2556" | "2560" | "2561" | "2562" | "2563" | "2564" | "2565" | "2566" | "2600" | "2601" | "2602" | "2603" | "2604" | "2605" | "2606" | "2610" | "2611" | "2612" | "2613" | "2614" | "2615" | "2616" | "2620" | "2621" | "2622" | "2623" | "2624" | "2625" | "2626" | "2630" | "2631" | "2632" | "2633" | "2634" | "2635" | "2636" | "2640" | "2641" | "2642" | "2643" | "2644" | "2645" | "2646" | "2650" | "2651" | "2652" | "2653" | "2654" | "2655" | "2656" | "2660" | "2661" | "2662" | "2663" | "2664" | "2665" | "2666" | "3000" | "3001" | "3002" | "3003" | "3004" | "3005" | "3006" | "3010" | "3011" | "3012" | "3013" | "3014" | "3015" | "3016" | "3020" | "3021" | "3022" | "3023" | "3024" | "3025" | "3026" | "3030" | "3031" | "3032" | "3033" | "3034" | "3035" | "3036" | "3040" | "3041" | "3042" | "3043" | "3044" | "3045" | "3046" | "3050" | "3051" | "3052" | "3053" | "3054" | "3055" | "3056" | "3060" | "3061" | "3062" | "3063" | "3064" | "3065" | "3066" | "3100" | "3101" | "3102" | "3103" | "3104" | "3105" | "3106" | "3110" | "3111" | "3112" | "3113" | "3114" | "3115" | "3116" | "3120" | "3121" | "3122" | "3123" | "3124" | "3125" | "3126" | "3130" | "3131" | "3132" | "3133" | "3134" | "3135" | "3136" | "3140" | "3141" | "3142" | "3143" | "3144" | "3145" | "3146" | "3150" | "3151" | "3152" | "3153" | "3154" | "3155" | "3156" | "3160" | "3161" | "3162" | "3163" | "3164" | "3165" | "3166" | "3200" | "3201" | "3202" | "3203" | "3204" | "3205" | "3206" | "3210" | "3211" | "3212" | "3213" | "3214" | "3215" | "3216" | "3220" | "3221" | "3222" | "3223" | "3224" | "3225" | "3226" | "3230" | "3231" | "3232" | "3233" | "3234" | "3235" | "3236" | "3240" | "3241" | "3242" | "3243" | "3244" | "3245" | "3246" | "3250" | "3251" | "3252" | "3253" | "3254" | "3255" | "3256" | "3260" | "3261" | "3262" | "3263" | "3264" | "3265" | "3266" | "3300" | "3301" | "3302" | "3303" | "3304" | "3305" | "3306" | "3310" | "3311" | "3312" | "3313" | "3314" | "3315" | "3316" | "3320" | "3321" | "3322" | "3323" | "3324" | "3325" | "3326" | "3330" | "3331" | "3332" | "3333" | "3334" | "3335" | "3336" | "3340" | "3341" | "3342" | "3343" | "3344" | "3345" | "3346" | "3350" | "3351" | "3352" | "3353" | "3354" | "3355" | "3356" | "3360" | "3361" | "3362" | "3363" | "3364" | "3365" | "3366" | "3400" | "3401" | "3402" | "3403" | "3404" | "3405" | "3406" | "3410" | "3411" | "3412" | "3413" | "3414" | "3415" | "3416" | "3420" | "3421" | "3422" | "3423" | "3424" | "3425" | "3426" | "3430" | "3431" | "3432" | "3433" | "3434" | "3435" | "3436" | "3440" | "3441" | "3442" | "3443" | "3444" | "3445" | "3446" | "3450" | "3451" | "3452" | "3453" | "3454" | "3455" | "3456" | "3460" | "3461" | "3462" | "3463" | "3464" | "3465" | "3466" | "3500" | "3501" | "3502" | "3503" | "3504" | "3505" | "3506" | "3510" | "3511" | "3512" | "3513" | "3514" | "3515" | "3516" | "3520" | "3521" | "3522" | "3523" | "3524" | "3525" | "3526" | "3530" | "3531" | "3532" | "3533" | "3534" | "3535" | "3536" | "3540" | "3541" | "3542" | "3543" | "3544" | "3545" | "3546" | "3550" | "3551" | "3552" | "3553" | "3554" | "3555" | "3556" | "3560" | "3561" | "3562" | "3563" | "3564" | "3565" | "3566" | "3600" | "3601" | "3602" | "3603" | "3604" | "3605" | "3606" | "3610" | "3611" | "3612" | "3613" | "3614" | "3615" | "3616" | "3620" | "3621" | "3622" | "3623" | "3624" | "3625" | "3626" | "3630" | "3631" | "3632" | "3633" | "3634" | "3635" | "3636" | "3640" | "3641" | "3642" | "3643" | "3644" | "3645" | "3646" | "3650" | "3651" | "3652" | "3653" | "3654" | "3655" | "3656" | "3660" | "3661" | "3662" | "3663" | "3664" | "3665" | "3666" | "4000" | "4001" | "4002" | "4003" | "4004" | "4005" | "4006" | "4010" | "4011" | "4012" | "4013" | "4014" | "4015" | "4016" | "4020" | "4021" | "4022" | "4023" | "4024" | "4025" | "4026" | "4030" | "4031" | "4032" | "4033" | "4034" | "4035" | "4036" | "4040" | "4041" | "4042" | "4043" | "4044" | "4045" | "4046" | "4050" | "4051" | "4052" | "4053" | "4054" | "4055" | "4056" | "4060" | "4061" | "4062" | "4063" | "4064" | "4065" | "4066" | "4100" | "4101" | "4102" | "4103" | "4104" | "4105" | "4106" | "4110" | "4111" | "4112" | "4113" | "4114" | "4115" | "4116" | "4120" | "4121" | "4122" | "4123" | "4124" | "4125" | "4126" | "4130" | "4131" | "4132" | "4133" | "4134" | "4135" | "4136" | "4140" | "4141" | "4142" | "4143" | "4144" | "4145" | "4146" | "4150" | "4151" | "4152" | "4153" | "4154" | "4155" | "4156" | "4160" | "4161" | "4162" | "4163" | "4164" | "4165" | "4166" | "4200" | "4201" | "4202" | "4203" | "4204" | "4205" | "4206" | "4210" | "4211" | "4212" | "4213" | "4214" | "4215" | "4216" | "4220" | "4221" | "4222" | "4223" | "4224" | "4225" | "4226" | "4230" | "4231" | "4232" | "4233" | "4234" | "4235" | "4236" | "4240" | "4241" | "4242" | "4243" | "4244" | "4245" | "4246" | "4250" | "4251" | "4252" | "4253" | "4254" | "4255" | "4256" | "4260" | "4261" | "4262" | "4263" | "4264" | "4265" | "4266" | "4300" | "4301" | "4302" | "4303" | "4304" | "4305" | "4306" | "4310" | "4311" | "4312" | "4313" | "4314" | "4315" | "4316" | "4320" | "4321" | "4322" | "4323" | "4324" | "4325" | "4326" | "4330" | "4331" | "4332" | "4333" | "4334" | "4335" | "4336" | "4340" | "4341" | "4342" | "4343" | "4344" | "4345" | "4346" | "4350" | "4351" | "4352" | "4353" | "4354" | "4355" | "4356" | "4360" | "4361" | "4362" | "4363" | "4364" | "4365" | "4366" | "4400" | "4401" | "4402" | "4403" | "4404" | "4405" | "4406" | "4410" | "4411" | "4412" | "4413" | "4414" | "4415" | "4416" | "4420" | "4421" | "4422" | "4423" | "4424" | "4425" | "4426" | "4430" | "4431" | "4432" | "4433" | "4434" | "4435" | "4436" | "4440" | "4441" | "4442" | "4443" | "4444" | "4445" | "4446" | "4450" | "4451" | "4452" | "4453" | "4454" | "4455" | "4456" | "4460" | "4461" | "4462" | "4463" | "4464" | "4465" | "4466" | "4500" | "4501" | "4502" | "4503" | "4504" | "4505" | "4506" | "4510" | "4511" | "4512" | "4513" | "4514" | "4515" | "4516" | "4520" | "4521" | "4522" | "4523" | "4524" | "4525" | "4526" | "4530" | "4531" | "4532" | "4533" | "4534" | "4535" | "4536" | "4540" | "4541" | "4542" | "4543" | "4544" | "4545" | "4546" | "4550" | "4551" | "4552" | "4553" | "4554" | "4555" | "4556" | "4560" | "4561" | "4562" | "4563" | "4564" | "4565" | "4566" | "4600" | "4601" | "4602" | "4603" | "4604" | "4605" | "4606" | "4610" | "4611" | "4612" | "4613" | "4614" | "4615" | "4616" | "4620" | "4621" | "4622" | "4623" | "4624" | "4625" | "4626" | "4630" | "4631" | "4632" | "4633" | "4634" | "4635" | "4636" | "4640" | "4641" | "4642" | "4643" | "4644" | "4645" | "4646" | "4650" | "4651" | "4652" | "4653" | "4654" | "4655" | "4656" | "4660" | "4661" | "4662" | "4663" | "4664" | "4665" | "4666" | "5000" | "5001" | "5002" | "5003" | "5004" | "5005" | "5006" | "5010" | "5011" | "5012" | "5013" | "5014" | "5015" | "5016" | "5020" | "5021" | "5022" | "5023" | "5024" | "5025" | "5026" | "5030" | "5031" | "5032" | "5033" | "5034" | "5035" | "5036" | "5040" | "5041" | "5042" | "5043" | "5044" | "5045" | "5046" | "5050" | "5051" | "5052" | "5053" | "5054" | "5055" | "5056" | "5060" | "5061" | "5062" | "5063" | "5064" | "5065" | "5066" | "5100" | "5101" | "5102" | "5103" | "5104" | "5105" | "5106" | "5110" | "5111" | "5112" | "5113" | "5114" | "5115" | "5116" | "5120" | "5121" | "5122" | "5123" | "5124" | "5125" | "5126" | "5130" | "5131" | "5132" | "5133" | "5134" | "5135" | "5136" | "5140" | "5141" | "5142" | "5143" | "5144" | "5145" | "5146" | "5150" | "5151" | "5152" | "5153" | "5154" | "5155" | "5156" | "5160" | "5161" | "5162" | "5163" | "5164" | "5165" | "5166" | "5200" | "5201" | "5202" | "5203" | "5204" | "5205" | "5206" | "5210" | "5211" | "5212" | "5213" | "5214" | "5215" | "5216" | "5220" | "5221" | "5222" | "5223" | "5224" | "5225" | "5226" | "5230" | "5231" | "5232" | "5233" | "5234" | "5235" | "5236" | "5240" | "5241" | "5242" | "5243" | "5244" | "5245" | "5246" | "5250" | "5251" | "5252" | "5253" | "5254" | "5255" | "5256" | "5260" | "5261" | "5262" | "5263" | "5264" | "5265" | "5266" | "5300" | "5301" | "5302" | "5303" | "5304" | "5305" | "5306" | "5310" | "5311" | "5312" | "5313" | "5314" | "5315" | "5316" | "5320" | "5321" | "5322" | "5323" | "5324" | "5325" | "5326" | "5330" | "5331" | "5332" | "5333" | "5334" | "5335" | "5336" | "5340" | "5341" | "5342" | "5343" | "5344" | "5345" | "5346" | "5350" | "5351" | "5352" | "5353" | "5354" | "5355" | "5356" | "5360" | "5361" | "5362" | "5363" | "5364" | "5365" | "5366" | "5400" | "5401" | "5402" | "5403" | "5404" | "5405" | "5406" | "5410" | "5411" | "5412" | "5413" | "5414" | "5415" | "5416" | "5420" | "5421" | "5422" | "5423" | "5424" | "5425" | "5426" | "5430" | "5431" | "5432" | "5433" | "5434" | "5435" | "5436" | "5440" | "5441" | "5442" | "5443" | "5444" | "5445" | "5446" | "5450" | "5451" | "5452" | "5453" | "5454" | "5455" | "5456" | "5460" | "5461" | "5462" | "5463" | "5464" | "5465" | "5466" | "5500" | "5501" | "5502" | "5503" | "5504" | "5505" | "5506" | "5510" | "5511" | "5512" | "5513" | "5514" | "5515" | "5516" | "5520" | "5521" | "5522" | "5523" | "5524" | "5525" | "5526" | "5530" | "5531" | "5532" | "5533" | "5534" | "5535" | "5536" | "5540" | "5541" | "5542" | "5543" | "5544" | "5545" | "5546" | "5550" | "5551" | "5552" | "5553" | "5554" | "5555" | "5556" | "5560" | "5561" | "5562" | "5563" | "5564" | "5565" | "5566" | "5600" | "5601" | "5602" | "5603" | "5604" | "5605" | "5606" | "5610" | "5611" | "5612" | "5613" | "5614" | "5615" | "5616" | "5620" | "5621" | "5622" | "5623" | "5624" | "5625" | "5626" | "5630" | "5631" | "5632" | "5633" | "5634" | "5635" | "5636" | "5640" | "5641" | "5642" | "5643" | "5644" | "5645" | "5646" | "5650" | "5651" | "5652" | "5653" | "5654" | "5655" | "5656" | "5660" | "5661" | "5662" | "5663" | "5664" | "5665" | "5666" | undefined) & T2 + +declare const y: T1 & T2; +>y : T1 & T2 + +x = y; +>x = y : T1 & T2 +>x : T1 | null +>y : T1 & T2 + diff --git a/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..e733a24979f0e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,104 @@ +relationCycleNonMonotoneCheckOrder.ts(43,9): error TS2322: Type 'S2' is not assignable to type 'G2'. + Type '"d" | undefined' is not assignable to type '"d" | G1'. + Type 'undefined' is not assignable to type '"d" | G1'. + + +==== relationCycleNonMonotoneCheckOrder.ts (1 errors) ==== + // 'S' relates to 'G' only if inferring 'T' from 'A' fails the constraint + // 'C', so that 'T' falls back to 'C'. Relating 'A' to 'C' compares 'S' to + // 'G' again, but 'A' fails 'C' on 'z' regardless. 'S' must relate to 'G' + // whether or not 'A' was compared to 'C' first. + namespace inferenceConstraint { + type A = { k?: "c"; f: S | G; z: number }; + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; + type S = (x: T) => T["k"]; + type G = (x: A) => "c" | G | number; + + declare let r1: S extends G ? true : false; + declare let r2: A extends C ? true : false; + } + + // As above, with method signatures, which are compared bivariantly. + namespace inferenceConstraintMethod { + type A = { k?: "c"; f: S | G; z: number }; + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; + type S = { m(x: T): T["k"] }; + type G = { m(x: A): "c" | G | number }; + + declare let r1: S extends G ? true : false; + declare let r2: A extends C ? true : false; + } + + // 'S1' relates to 'G1' only if 'S2' does not relate to 'G2', and the + // reverse, so no answer is consistent for both. Each is answered as if + // compared first, assuming itself while relating the other, regardless + // of which assignment is checked first. + namespace inferenceConstraintMutual { + type A1 = { k?: "c"; f: S2 | G2 }; + type C1 = { [s: string]: "c" | G2; f: G2 }; + type S1 = (x: T) => T["k"]; + type G1 = (x: A1) => "c" | G2; + type A2 = { k?: "d"; f: S1 | G1 }; + type C2 = { [s: string]: "d" | G1; f: G1 }; + type S2 = (x: T) => T["k"]; + type G2 = (x: A2) => "d" | G1; + + declare let s1: S1; + declare let s2: S2; + let g1: G1 = s1; + let g2: G2 = s2; + ~~ +!!! error TS2322: Type 'S2' is not assignable to type 'G2'. +!!! error TS2322: Type '"d" | undefined' is not assignable to type '"d" | G1'. +!!! error TS2322: Type 'undefined' is not assignable to type '"d" | G1'. + declare let r1: S1 extends G1 ? true : false; + declare let r2: S2 extends G2 ? true : false; + } + + // 'Src' relates to the union 'Tgt' by discriminating on 'd'. The member + // '{ d: Y; y: number }' matches 'd: X' only if 'X' relates to 'Y', and + // relating 'X' to 'Y' compares 'Src' to 'Tgt' again before failing on + // 'q'. 'Src' must relate to 'Tgt' whether or not 'X' was compared to 'Y' + // first. + namespace discriminated { + interface X { p: Src; q: number } + interface Y { p: Tgt; q: 1 } + type Src = { d: "a" | X; y: string }; + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; + + declare let r1: Src extends Tgt ? true : false; + declare let r2: X extends Y ? true : false; + } + + // The excess property check of the object literal keeps the members of + // 'Outer' whose 'e' the literal's 'e' relates to, so 'w' is known only + // if 'Src' relates to 'Tgt' as above. + namespace excessPropertyDiscriminant { + interface X { p: Src; q: number } + interface Y { p: Tgt; q: 1 } + type Src = { d: "a" | X; y: string }; + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; + type Outer = { e: "z" } | { e: Tgt; w: number } | { e: Src }; + + declare let src: Src; + let o: Outer = { e: src, w: 1 }; + declare let r2: X extends Y ? true : false; + } + + // Subtype reduction drops 'F' if it is a strict subtype of 'G'. Its + // optional parameter relates only if 'P' is not a strict subtype of 'Q', + // and relating 'P' to 'Q' compares 'F' to 'G' again before failing on + // 'z'. 'F' must be dropped whether or not 'P' was compared to 'Q' first. + namespace strictArity { + type P = { f: F | G; z: number }; + type Q = { f: G; z: 1 }; + type F = (x?: P) => 1; + type G = (x: Q | undefined) => number; + type WP = { a: P; b: string }; + type WQ = { a: Q }; + + declare let f: F, g: G, wp: WP, wq: WQ; + let a1 = [f, g]; + let a2 = [wp, wq]; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..3bc451c9c78bc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).symbols @@ -0,0 +1,361 @@ +//// [tests/cases/compiler/relationCycleNonMonotoneCheckOrder.ts] //// + +=== relationCycleNonMonotoneCheckOrder.ts === +// 'S' relates to 'G' only if inferring 'T' from 'A' fails the constraint +// 'C', so that 'T' falls back to 'C'. Relating 'A' to 'C' compares 'S' to +// 'G' again, but 'A' fails 'C' on 'z' regardless. 'S' must relate to 'G' +// whether or not 'A' was compared to 'C' first. +namespace inferenceConstraint { +>inferenceConstraint : Symbol(inferenceConstraint, Decl(relationCycleNonMonotoneCheckOrder.ts, 0, 0)) + + type A = { k?: "c"; f: S | G; z: number }; +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 4, 31)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 14)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 23)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 33)) + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 46)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 16)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 45)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 51)) + + type S = (x: T) => T["k"]; +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 59)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 14)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 46)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 27)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 14)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 14)) + + type G = (x: A) => "c" | G | number; +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 8, 14)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 4, 31)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) + + declare let r1: S extends G ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 10, 15)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) + + declare let r2: A extends C ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 11, 15)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 4, 31)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 46)) +} + +// As above, with method signatures, which are compared bivariantly. +namespace inferenceConstraintMethod { +>inferenceConstraintMethod : Symbol(inferenceConstraintMethod, Decl(relationCycleNonMonotoneCheckOrder.ts, 12, 1)) + + type A = { k?: "c"; f: S | G; z: number }; +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 15, 37)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 14)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 23)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 33)) + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 46)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 16)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 45)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 51)) + + type S = { m(x: T): T["k"] }; +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 59)) +>m : Symbol(m, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 14)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 17)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 46)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 30)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 17)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 17)) + + type G = { m(x: A): "c" | G | number }; +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>m : Symbol(m, Decl(relationCycleNonMonotoneCheckOrder.ts, 19, 14)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 19, 17)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 15, 37)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) + + declare let r1: S extends G ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 21, 15)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) + + declare let r2: A extends C ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 22, 15)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 15, 37)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 46)) +} + +// 'S1' relates to 'G1' only if 'S2' does not relate to 'G2', and the +// reverse, so no answer is consistent for both. Each is answered as if +// compared first, assuming itself while relating the other, regardless +// of which assignment is checked first. +namespace inferenceConstraintMutual { +>inferenceConstraintMutual : Symbol(inferenceConstraintMutual, Decl(relationCycleNonMonotoneCheckOrder.ts, 23, 1)) + + type A1 = { k?: "c"; f: S2 | G2 }; +>A1 : Symbol(A1, Decl(relationCycleNonMonotoneCheckOrder.ts, 29, 37)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 15)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 24)) +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) + + type C1 = { [s: string]: "c" | G2; f: G2 }; +>C1 : Symbol(C1, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 38)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 17)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 38)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) + + type S1 = (x: T) => T["k"]; +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 15)) +>C1 : Symbol(C1, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 38)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 29)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 15)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 15)) + + type G1 = (x: A1) => "c" | G2; +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 33, 15)) +>A1 : Symbol(A1, Decl(relationCycleNonMonotoneCheckOrder.ts, 29, 37)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) + + type A2 = { k?: "d"; f: S1 | G1 }; +>A2 : Symbol(A2, Decl(relationCycleNonMonotoneCheckOrder.ts, 33, 34)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 15)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 24)) +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + type C2 = { [s: string]: "d" | G1; f: G1 }; +>C2 : Symbol(C2, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 38)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 17)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 38)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + type S2 = (x: T) => T["k"]; +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 15)) +>C2 : Symbol(C2, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 38)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 29)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 15)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 15)) + + type G2 = (x: A2) => "d" | G1; +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 37, 15)) +>A2 : Symbol(A2, Decl(relationCycleNonMonotoneCheckOrder.ts, 33, 34)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + declare let s1: S1; +>s1 : Symbol(s1, Decl(relationCycleNonMonotoneCheckOrder.ts, 39, 15)) +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) + + declare let s2: S2; +>s2 : Symbol(s2, Decl(relationCycleNonMonotoneCheckOrder.ts, 40, 15)) +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) + + let g1: G1 = s1; +>g1 : Symbol(g1, Decl(relationCycleNonMonotoneCheckOrder.ts, 41, 7)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) +>s1 : Symbol(s1, Decl(relationCycleNonMonotoneCheckOrder.ts, 39, 15)) + + let g2: G2 = s2; +>g2 : Symbol(g2, Decl(relationCycleNonMonotoneCheckOrder.ts, 42, 7)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +>s2 : Symbol(s2, Decl(relationCycleNonMonotoneCheckOrder.ts, 40, 15)) + + declare let r1: S1 extends G1 ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 43, 15)) +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + declare let r2: S2 extends G2 ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 44, 15)) +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +} + +// 'Src' relates to the union 'Tgt' by discriminating on 'd'. The member +// '{ d: Y; y: number }' matches 'd: X' only if 'X' relates to 'Y', and +// relating 'X' to 'Y' compares 'Src' to 'Tgt' again before failing on +// 'q'. 'Src' must relate to 'Tgt' whether or not 'X' was compared to 'Y' +// first. +namespace discriminated { +>discriminated : Symbol(discriminated, Decl(relationCycleNonMonotoneCheckOrder.ts, 45, 1)) + + interface X { p: Src; q: number } +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>p : Symbol(X.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 17)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 32)) +>q : Symbol(X.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 25)) + + interface Y { p: Tgt; q: 1 } +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 37)) +>p : Symbol(Y.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 17)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 41)) +>q : Symbol(Y.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 25)) + + type Src = { d: "a" | X; y: string }; +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 32)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 16)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 28)) + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 41)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 16)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 24)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 40)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 46)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 62)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 37)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 68)) + + declare let r1: Src extends Tgt ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 58, 15)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 32)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 41)) + + declare let r2: X extends Y ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 59, 15)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 37)) +} + +// The excess property check of the object literal keeps the members of +// 'Outer' whose 'e' the literal's 'e' relates to, so 'w' is known only +// if 'Src' relates to 'Tgt' as above. +namespace excessPropertyDiscriminant { +>excessPropertyDiscriminant : Symbol(excessPropertyDiscriminant, Decl(relationCycleNonMonotoneCheckOrder.ts, 60, 1)) + + interface X { p: Src; q: number } +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>p : Symbol(X.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 17)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) +>q : Symbol(X.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 25)) + + interface Y { p: Tgt; q: 1 } +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 37)) +>p : Symbol(Y.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 17)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 41)) +>q : Symbol(Y.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 25)) + + type Src = { d: "a" | X; y: string }; +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 16)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 28)) + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 41)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 16)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 24)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 40)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 46)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 62)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 37)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 68)) + + type Outer = { e: "z" } | { e: Tgt; w: number } | { e: Src }; +>Outer : Symbol(Outer, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 81)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 18)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 31)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 41)) +>w : Symbol(w, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 39)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 55)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) + + declare let src: Src; +>src : Symbol(src, Decl(relationCycleNonMonotoneCheckOrder.ts, 72, 15)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) + + let o: Outer = { e: src, w: 1 }; +>o : Symbol(o, Decl(relationCycleNonMonotoneCheckOrder.ts, 73, 7)) +>Outer : Symbol(Outer, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 81)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 73, 20)) +>src : Symbol(src, Decl(relationCycleNonMonotoneCheckOrder.ts, 72, 15)) +>w : Symbol(w, Decl(relationCycleNonMonotoneCheckOrder.ts, 73, 28)) + + declare let r2: X extends Y ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 74, 15)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 37)) +} + +// Subtype reduction drops 'F' if it is a strict subtype of 'G'. Its +// optional parameter relates only if 'P' is not a strict subtype of 'Q', +// and relating 'P' to 'Q' compares 'F' to 'G' again before failing on +// 'z'. 'F' must be dropped whether or not 'P' was compared to 'Q' first. +namespace strictArity { +>strictArity : Symbol(strictArity, Decl(relationCycleNonMonotoneCheckOrder.ts, 75, 1)) + + type P = { f: F | G; z: number }; +>P : Symbol(P, Decl(relationCycleNonMonotoneCheckOrder.ts, 81, 23)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 14)) +>F : Symbol(F, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 28)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 24)) + + type Q = { f: G; z: 1 }; +>Q : Symbol(Q, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 37)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 14)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 20)) + + type F = (x?: P) => 1; +>F : Symbol(F, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 28)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 14)) +>P : Symbol(P, Decl(relationCycleNonMonotoneCheckOrder.ts, 81, 23)) + + type G = (x: Q | undefined) => number; +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 85, 14)) +>Q : Symbol(Q, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 37)) + + type WP = { a: P; b: string }; +>WP : Symbol(WP, Decl(relationCycleNonMonotoneCheckOrder.ts, 85, 42)) +>a : Symbol(a, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 15)) +>P : Symbol(P, Decl(relationCycleNonMonotoneCheckOrder.ts, 81, 23)) +>b : Symbol(b, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 21)) + + type WQ = { a: Q }; +>WQ : Symbol(WQ, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 34)) +>a : Symbol(a, Decl(relationCycleNonMonotoneCheckOrder.ts, 87, 15)) +>Q : Symbol(Q, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 37)) + + declare let f: F, g: G, wp: WP, wq: WQ; +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 15)) +>F : Symbol(F, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 28)) +>g : Symbol(g, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 21)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>wp : Symbol(wp, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 27)) +>WP : Symbol(WP, Decl(relationCycleNonMonotoneCheckOrder.ts, 85, 42)) +>wq : Symbol(wq, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 35)) +>WQ : Symbol(WQ, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 34)) + + let a1 = [f, g]; +>a1 : Symbol(a1, Decl(relationCycleNonMonotoneCheckOrder.ts, 90, 7)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 15)) +>g : Symbol(g, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 21)) + + let a2 = [wp, wq]; +>a2 : Symbol(a2, Decl(relationCycleNonMonotoneCheckOrder.ts, 91, 7)) +>wp : Symbol(wp, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 27)) +>wq : Symbol(wq, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 35)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..ae7cfe7fe54a9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=default).types @@ -0,0 +1,292 @@ +//// [tests/cases/compiler/relationCycleNonMonotoneCheckOrder.ts] //// + +=== relationCycleNonMonotoneCheckOrder.ts === +// 'S' relates to 'G' only if inferring 'T' from 'A' fails the constraint +// 'C', so that 'T' falls back to 'C'. Relating 'A' to 'C' compares 'S' to +// 'G' again, but 'A' fails 'C' on 'z' regardless. 'S' must relate to 'G' +// whether or not 'A' was compared to 'C' first. +namespace inferenceConstraint { +>inferenceConstraint : typeof inferenceConstraint + + type A = { k?: "c"; f: S | G; z: number }; +>A : A +>k : "c" | undefined +>f : G | S +>z : number + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : C +>s : string +>f : G +>z : 1 + + type S = (x: T) => T["k"]; +>S : S +>x : T + + type G = (x: A) => "c" | G | number; +>G : G +>x : A + + declare let r1: S extends G ? true : false; +>r1 : true +>true : true +>false : false + + declare let r2: A extends C ? true : false; +>r2 : false +>true : true +>false : false +} + +// As above, with method signatures, which are compared bivariantly. +namespace inferenceConstraintMethod { +>inferenceConstraintMethod : typeof inferenceConstraintMethod + + type A = { k?: "c"; f: S | G; z: number }; +>A : A +>k : "c" | undefined +>f : G | S +>z : number + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : C +>s : string +>f : G +>z : 1 + + type S = { m(x: T): T["k"] }; +>S : S +>m : (x: T) => T["k"] +>x : T + + type G = { m(x: A): "c" | G | number }; +>G : G +>m : (x: A) => "c" | G | number +>x : A + + declare let r1: S extends G ? true : false; +>r1 : true +>true : true +>false : false + + declare let r2: A extends C ? true : false; +>r2 : false +>true : true +>false : false +} + +// 'S1' relates to 'G1' only if 'S2' does not relate to 'G2', and the +// reverse, so no answer is consistent for both. Each is answered as if +// compared first, assuming itself while relating the other, regardless +// of which assignment is checked first. +namespace inferenceConstraintMutual { +>inferenceConstraintMutual : typeof inferenceConstraintMutual + + type A1 = { k?: "c"; f: S2 | G2 }; +>A1 : A1 +>k : "c" | undefined +>f : G2 | S2 + + type C1 = { [s: string]: "c" | G2; f: G2 }; +>C1 : C1 +>s : string +>f : G2 + + type S1 = (x: T) => T["k"]; +>S1 : S1 +>x : T + + type G1 = (x: A1) => "c" | G2; +>G1 : G1 +>x : A1 + + type A2 = { k?: "d"; f: S1 | G1 }; +>A2 : A2 +>k : "d" | undefined +>f : G1 | S1 + + type C2 = { [s: string]: "d" | G1; f: G1 }; +>C2 : C2 +>s : string +>f : G1 + + type S2 = (x: T) => T["k"]; +>S2 : S2 +>x : T + + type G2 = (x: A2) => "d" | G1; +>G2 : G2 +>x : A2 + + declare let s1: S1; +>s1 : S1 + + declare let s2: S2; +>s2 : S2 + + let g1: G1 = s1; +>g1 : G1 +>s1 : S1 + + let g2: G2 = s2; +>g2 : G2 +>s2 : S2 + + declare let r1: S1 extends G1 ? true : false; +>r1 : true +>true : true +>false : false + + declare let r2: S2 extends G2 ? true : false; +>r2 : false +>true : true +>false : false +} + +// 'Src' relates to the union 'Tgt' by discriminating on 'd'. The member +// '{ d: Y; y: number }' matches 'd: X' only if 'X' relates to 'Y', and +// relating 'X' to 'Y' compares 'Src' to 'Tgt' again before failing on +// 'q'. 'Src' must relate to 'Tgt' whether or not 'X' was compared to 'Y' +// first. +namespace discriminated { +>discriminated : typeof discriminated + + interface X { p: Src; q: number } +>p : Src +>q : number + + interface Y { p: Tgt; q: 1 } +>p : Tgt +>q : 1 + + type Src = { d: "a" | X; y: string }; +>Src : Src +>d : "a" | X +>y : string + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Tgt +>d : "a" +>y : string +>d : X +>y : string +>d : Y +>y : number + + declare let r1: Src extends Tgt ? true : false; +>r1 : true +>true : true +>false : false + + declare let r2: X extends Y ? true : false; +>r2 : false +>true : true +>false : false +} + +// The excess property check of the object literal keeps the members of +// 'Outer' whose 'e' the literal's 'e' relates to, so 'w' is known only +// if 'Src' relates to 'Tgt' as above. +namespace excessPropertyDiscriminant { +>excessPropertyDiscriminant : typeof excessPropertyDiscriminant + + interface X { p: Src; q: number } +>p : Src +>q : number + + interface Y { p: Tgt; q: 1 } +>p : Tgt +>q : 1 + + type Src = { d: "a" | X; y: string }; +>Src : Src +>d : "a" | X +>y : string + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Tgt +>d : "a" +>y : string +>d : X +>y : string +>d : Y +>y : number + + type Outer = { e: "z" } | { e: Tgt; w: number } | { e: Src }; +>Outer : Outer +>e : "z" +>e : Tgt +>w : number +>e : Src + + declare let src: Src; +>src : Src + + let o: Outer = { e: src, w: 1 }; +>o : Outer +>{ e: src, w: 1 } : { e: Src; w: number; } +>e : Src +>src : Src +>w : number +>1 : 1 + + declare let r2: X extends Y ? true : false; +>r2 : false +>true : true +>false : false +} + +// Subtype reduction drops 'F' if it is a strict subtype of 'G'. Its +// optional parameter relates only if 'P' is not a strict subtype of 'Q', +// and relating 'P' to 'Q' compares 'F' to 'G' again before failing on +// 'z'. 'F' must be dropped whether or not 'P' was compared to 'Q' first. +namespace strictArity { +>strictArity : typeof strictArity + + type P = { f: F | G; z: number }; +>P : P +>f : F | G +>z : number + + type Q = { f: G; z: 1 }; +>Q : Q +>f : G +>z : 1 + + type F = (x?: P) => 1; +>F : F +>x : P | undefined + + type G = (x: Q | undefined) => number; +>G : G +>x : Q | undefined + + type WP = { a: P; b: string }; +>WP : WP +>a : P +>b : string + + type WQ = { a: Q }; +>WQ : WQ +>a : Q + + declare let f: F, g: G, wp: WP, wq: WQ; +>f : F +>g : G +>wp : WP +>wq : WQ + + let a1 = [f, g]; +>a1 : G[] +>[f, g] : G[] +>f : F +>g : G + + let a2 = [wp, wq]; +>a2 : (WP | WQ)[] +>[wp, wq] : (WP | WQ)[] +>wp : WP +>wq : WQ +} + diff --git a/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..286101cc10b43 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,107 @@ +relationCycleNonMonotoneCheckOrder.ts(42,9): error TS2322: Type 'S1' is not assignable to type 'G1'. + Type '"c" | undefined' is not assignable to type '"c" | G2'. + Type 'undefined' is not assignable to type '"c" | G2'. +relationCycleNonMonotoneCheckOrder.ts(74,30): error TS2353: Object literal may only specify known properties, and 'w' does not exist in type '{ e: Src; }'. + + +==== relationCycleNonMonotoneCheckOrder.ts (2 errors) ==== + // 'S' relates to 'G' only if inferring 'T' from 'A' fails the constraint + // 'C', so that 'T' falls back to 'C'. Relating 'A' to 'C' compares 'S' to + // 'G' again, but 'A' fails 'C' on 'z' regardless. 'S' must relate to 'G' + // whether or not 'A' was compared to 'C' first. + namespace inferenceConstraint { + type A = { k?: "c"; f: S | G; z: number }; + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; + type S = (x: T) => T["k"]; + type G = (x: A) => "c" | G | number; + + declare let r1: S extends G ? true : false; + declare let r2: A extends C ? true : false; + } + + // As above, with method signatures, which are compared bivariantly. + namespace inferenceConstraintMethod { + type A = { k?: "c"; f: S | G; z: number }; + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; + type S = { m(x: T): T["k"] }; + type G = { m(x: A): "c" | G | number }; + + declare let r1: S extends G ? true : false; + declare let r2: A extends C ? true : false; + } + + // 'S1' relates to 'G1' only if 'S2' does not relate to 'G2', and the + // reverse, so no answer is consistent for both. Each is answered as if + // compared first, assuming itself while relating the other, regardless + // of which assignment is checked first. + namespace inferenceConstraintMutual { + type A1 = { k?: "c"; f: S2 | G2 }; + type C1 = { [s: string]: "c" | G2; f: G2 }; + type S1 = (x: T) => T["k"]; + type G1 = (x: A1) => "c" | G2; + type A2 = { k?: "d"; f: S1 | G1 }; + type C2 = { [s: string]: "d" | G1; f: G1 }; + type S2 = (x: T) => T["k"]; + type G2 = (x: A2) => "d" | G1; + + declare let s1: S1; + declare let s2: S2; + let g1: G1 = s1; + ~~ +!!! error TS2322: Type 'S1' is not assignable to type 'G1'. +!!! error TS2322: Type '"c" | undefined' is not assignable to type '"c" | G2'. +!!! error TS2322: Type 'undefined' is not assignable to type '"c" | G2'. + let g2: G2 = s2; + declare let r1: S1 extends G1 ? true : false; + declare let r2: S2 extends G2 ? true : false; + } + + // 'Src' relates to the union 'Tgt' by discriminating on 'd'. The member + // '{ d: Y; y: number }' matches 'd: X' only if 'X' relates to 'Y', and + // relating 'X' to 'Y' compares 'Src' to 'Tgt' again before failing on + // 'q'. 'Src' must relate to 'Tgt' whether or not 'X' was compared to 'Y' + // first. + namespace discriminated { + interface X { p: Src; q: number } + interface Y { p: Tgt; q: 1 } + type Src = { d: "a" | X; y: string }; + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; + + declare let r1: Src extends Tgt ? true : false; + declare let r2: X extends Y ? true : false; + } + + // The excess property check of the object literal keeps the members of + // 'Outer' whose 'e' the literal's 'e' relates to, so 'w' is known only + // if 'Src' relates to 'Tgt' as above. + namespace excessPropertyDiscriminant { + interface X { p: Src; q: number } + interface Y { p: Tgt; q: 1 } + type Src = { d: "a" | X; y: string }; + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; + type Outer = { e: "z" } | { e: Tgt; w: number } | { e: Src }; + + declare let src: Src; + let o: Outer = { e: src, w: 1 }; + ~ +!!! error TS2353: Object literal may only specify known properties, and 'w' does not exist in type '{ e: Src; }'. + declare let r2: X extends Y ? true : false; + } + + // Subtype reduction drops 'F' if it is a strict subtype of 'G'. Its + // optional parameter relates only if 'P' is not a strict subtype of 'Q', + // and relating 'P' to 'Q' compares 'F' to 'G' again before failing on + // 'z'. 'F' must be dropped whether or not 'P' was compared to 'Q' first. + namespace strictArity { + type P = { f: F | G; z: number }; + type Q = { f: G; z: 1 }; + type F = (x?: P) => 1; + type G = (x: Q | undefined) => number; + type WP = { a: P; b: string }; + type WQ = { a: Q }; + + declare let f: F, g: G, wp: WP, wq: WQ; + let a1 = [f, g]; + let a2 = [wp, wq]; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..3bc451c9c78bc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,361 @@ +//// [tests/cases/compiler/relationCycleNonMonotoneCheckOrder.ts] //// + +=== relationCycleNonMonotoneCheckOrder.ts === +// 'S' relates to 'G' only if inferring 'T' from 'A' fails the constraint +// 'C', so that 'T' falls back to 'C'. Relating 'A' to 'C' compares 'S' to +// 'G' again, but 'A' fails 'C' on 'z' regardless. 'S' must relate to 'G' +// whether or not 'A' was compared to 'C' first. +namespace inferenceConstraint { +>inferenceConstraint : Symbol(inferenceConstraint, Decl(relationCycleNonMonotoneCheckOrder.ts, 0, 0)) + + type A = { k?: "c"; f: S | G; z: number }; +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 4, 31)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 14)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 23)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 33)) + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 46)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 16)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 45)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 51)) + + type S = (x: T) => T["k"]; +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 59)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 14)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 46)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 27)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 14)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 14)) + + type G = (x: A) => "c" | G | number; +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 8, 14)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 4, 31)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) + + declare let r1: S extends G ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 10, 15)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) + + declare let r2: A extends C ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 11, 15)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 4, 31)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 46)) +} + +// As above, with method signatures, which are compared bivariantly. +namespace inferenceConstraintMethod { +>inferenceConstraintMethod : Symbol(inferenceConstraintMethod, Decl(relationCycleNonMonotoneCheckOrder.ts, 12, 1)) + + type A = { k?: "c"; f: S | G; z: number }; +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 15, 37)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 14)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 23)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 33)) + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 46)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 16)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 45)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 51)) + + type S = { m(x: T): T["k"] }; +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 59)) +>m : Symbol(m, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 14)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 17)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 46)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 30)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 17)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 17)) + + type G = { m(x: A): "c" | G | number }; +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>m : Symbol(m, Decl(relationCycleNonMonotoneCheckOrder.ts, 19, 14)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 19, 17)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 15, 37)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) + + declare let r1: S extends G ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 21, 15)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) + + declare let r2: A extends C ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 22, 15)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 15, 37)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 46)) +} + +// 'S1' relates to 'G1' only if 'S2' does not relate to 'G2', and the +// reverse, so no answer is consistent for both. Each is answered as if +// compared first, assuming itself while relating the other, regardless +// of which assignment is checked first. +namespace inferenceConstraintMutual { +>inferenceConstraintMutual : Symbol(inferenceConstraintMutual, Decl(relationCycleNonMonotoneCheckOrder.ts, 23, 1)) + + type A1 = { k?: "c"; f: S2 | G2 }; +>A1 : Symbol(A1, Decl(relationCycleNonMonotoneCheckOrder.ts, 29, 37)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 15)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 24)) +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) + + type C1 = { [s: string]: "c" | G2; f: G2 }; +>C1 : Symbol(C1, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 38)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 17)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 38)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) + + type S1 = (x: T) => T["k"]; +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 15)) +>C1 : Symbol(C1, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 38)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 29)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 15)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 15)) + + type G1 = (x: A1) => "c" | G2; +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 33, 15)) +>A1 : Symbol(A1, Decl(relationCycleNonMonotoneCheckOrder.ts, 29, 37)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) + + type A2 = { k?: "d"; f: S1 | G1 }; +>A2 : Symbol(A2, Decl(relationCycleNonMonotoneCheckOrder.ts, 33, 34)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 15)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 24)) +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + type C2 = { [s: string]: "d" | G1; f: G1 }; +>C2 : Symbol(C2, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 38)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 17)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 38)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + type S2 = (x: T) => T["k"]; +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 15)) +>C2 : Symbol(C2, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 38)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 29)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 15)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 15)) + + type G2 = (x: A2) => "d" | G1; +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 37, 15)) +>A2 : Symbol(A2, Decl(relationCycleNonMonotoneCheckOrder.ts, 33, 34)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + declare let s1: S1; +>s1 : Symbol(s1, Decl(relationCycleNonMonotoneCheckOrder.ts, 39, 15)) +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) + + declare let s2: S2; +>s2 : Symbol(s2, Decl(relationCycleNonMonotoneCheckOrder.ts, 40, 15)) +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) + + let g1: G1 = s1; +>g1 : Symbol(g1, Decl(relationCycleNonMonotoneCheckOrder.ts, 41, 7)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) +>s1 : Symbol(s1, Decl(relationCycleNonMonotoneCheckOrder.ts, 39, 15)) + + let g2: G2 = s2; +>g2 : Symbol(g2, Decl(relationCycleNonMonotoneCheckOrder.ts, 42, 7)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +>s2 : Symbol(s2, Decl(relationCycleNonMonotoneCheckOrder.ts, 40, 15)) + + declare let r1: S1 extends G1 ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 43, 15)) +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + declare let r2: S2 extends G2 ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 44, 15)) +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +} + +// 'Src' relates to the union 'Tgt' by discriminating on 'd'. The member +// '{ d: Y; y: number }' matches 'd: X' only if 'X' relates to 'Y', and +// relating 'X' to 'Y' compares 'Src' to 'Tgt' again before failing on +// 'q'. 'Src' must relate to 'Tgt' whether or not 'X' was compared to 'Y' +// first. +namespace discriminated { +>discriminated : Symbol(discriminated, Decl(relationCycleNonMonotoneCheckOrder.ts, 45, 1)) + + interface X { p: Src; q: number } +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>p : Symbol(X.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 17)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 32)) +>q : Symbol(X.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 25)) + + interface Y { p: Tgt; q: 1 } +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 37)) +>p : Symbol(Y.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 17)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 41)) +>q : Symbol(Y.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 25)) + + type Src = { d: "a" | X; y: string }; +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 32)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 16)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 28)) + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 41)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 16)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 24)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 40)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 46)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 62)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 37)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 68)) + + declare let r1: Src extends Tgt ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 58, 15)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 32)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 41)) + + declare let r2: X extends Y ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 59, 15)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 37)) +} + +// The excess property check of the object literal keeps the members of +// 'Outer' whose 'e' the literal's 'e' relates to, so 'w' is known only +// if 'Src' relates to 'Tgt' as above. +namespace excessPropertyDiscriminant { +>excessPropertyDiscriminant : Symbol(excessPropertyDiscriminant, Decl(relationCycleNonMonotoneCheckOrder.ts, 60, 1)) + + interface X { p: Src; q: number } +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>p : Symbol(X.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 17)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) +>q : Symbol(X.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 25)) + + interface Y { p: Tgt; q: 1 } +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 37)) +>p : Symbol(Y.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 17)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 41)) +>q : Symbol(Y.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 25)) + + type Src = { d: "a" | X; y: string }; +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 16)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 28)) + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 41)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 16)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 24)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 40)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 46)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 62)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 37)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 68)) + + type Outer = { e: "z" } | { e: Tgt; w: number } | { e: Src }; +>Outer : Symbol(Outer, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 81)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 18)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 31)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 41)) +>w : Symbol(w, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 39)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 55)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) + + declare let src: Src; +>src : Symbol(src, Decl(relationCycleNonMonotoneCheckOrder.ts, 72, 15)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) + + let o: Outer = { e: src, w: 1 }; +>o : Symbol(o, Decl(relationCycleNonMonotoneCheckOrder.ts, 73, 7)) +>Outer : Symbol(Outer, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 81)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 73, 20)) +>src : Symbol(src, Decl(relationCycleNonMonotoneCheckOrder.ts, 72, 15)) +>w : Symbol(w, Decl(relationCycleNonMonotoneCheckOrder.ts, 73, 28)) + + declare let r2: X extends Y ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 74, 15)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 37)) +} + +// Subtype reduction drops 'F' if it is a strict subtype of 'G'. Its +// optional parameter relates only if 'P' is not a strict subtype of 'Q', +// and relating 'P' to 'Q' compares 'F' to 'G' again before failing on +// 'z'. 'F' must be dropped whether or not 'P' was compared to 'Q' first. +namespace strictArity { +>strictArity : Symbol(strictArity, Decl(relationCycleNonMonotoneCheckOrder.ts, 75, 1)) + + type P = { f: F | G; z: number }; +>P : Symbol(P, Decl(relationCycleNonMonotoneCheckOrder.ts, 81, 23)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 14)) +>F : Symbol(F, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 28)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 24)) + + type Q = { f: G; z: 1 }; +>Q : Symbol(Q, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 37)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 14)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 20)) + + type F = (x?: P) => 1; +>F : Symbol(F, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 28)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 14)) +>P : Symbol(P, Decl(relationCycleNonMonotoneCheckOrder.ts, 81, 23)) + + type G = (x: Q | undefined) => number; +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 85, 14)) +>Q : Symbol(Q, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 37)) + + type WP = { a: P; b: string }; +>WP : Symbol(WP, Decl(relationCycleNonMonotoneCheckOrder.ts, 85, 42)) +>a : Symbol(a, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 15)) +>P : Symbol(P, Decl(relationCycleNonMonotoneCheckOrder.ts, 81, 23)) +>b : Symbol(b, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 21)) + + type WQ = { a: Q }; +>WQ : Symbol(WQ, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 34)) +>a : Symbol(a, Decl(relationCycleNonMonotoneCheckOrder.ts, 87, 15)) +>Q : Symbol(Q, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 37)) + + declare let f: F, g: G, wp: WP, wq: WQ; +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 15)) +>F : Symbol(F, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 28)) +>g : Symbol(g, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 21)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>wp : Symbol(wp, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 27)) +>WP : Symbol(WP, Decl(relationCycleNonMonotoneCheckOrder.ts, 85, 42)) +>wq : Symbol(wq, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 35)) +>WQ : Symbol(WQ, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 34)) + + let a1 = [f, g]; +>a1 : Symbol(a1, Decl(relationCycleNonMonotoneCheckOrder.ts, 90, 7)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 15)) +>g : Symbol(g, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 21)) + + let a2 = [wp, wq]; +>a2 : Symbol(a2, Decl(relationCycleNonMonotoneCheckOrder.ts, 91, 7)) +>wp : Symbol(wp, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 27)) +>wq : Symbol(wq, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 35)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..41b84c9efc3b0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,292 @@ +//// [tests/cases/compiler/relationCycleNonMonotoneCheckOrder.ts] //// + +=== relationCycleNonMonotoneCheckOrder.ts === +// 'S' relates to 'G' only if inferring 'T' from 'A' fails the constraint +// 'C', so that 'T' falls back to 'C'. Relating 'A' to 'C' compares 'S' to +// 'G' again, but 'A' fails 'C' on 'z' regardless. 'S' must relate to 'G' +// whether or not 'A' was compared to 'C' first. +namespace inferenceConstraint { +>inferenceConstraint : typeof inferenceConstraint + + type A = { k?: "c"; f: S | G; z: number }; +>A : A +>k : "c" | undefined +>f : G | S +>z : number + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : C +>s : string +>f : G +>z : 1 + + type S = (x: T) => T["k"]; +>S : S +>x : T + + type G = (x: A) => "c" | G | number; +>G : G +>x : A + + declare let r1: S extends G ? true : false; +>r1 : false +>true : true +>false : false + + declare let r2: A extends C ? true : false; +>r2 : false +>true : true +>false : false +} + +// As above, with method signatures, which are compared bivariantly. +namespace inferenceConstraintMethod { +>inferenceConstraintMethod : typeof inferenceConstraintMethod + + type A = { k?: "c"; f: S | G; z: number }; +>A : A +>k : "c" | undefined +>f : G | S +>z : number + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : C +>s : string +>f : G +>z : 1 + + type S = { m(x: T): T["k"] }; +>S : S +>m : (x: T) => T["k"] +>x : T + + type G = { m(x: A): "c" | G | number }; +>G : G +>m : (x: A) => "c" | G | number +>x : A + + declare let r1: S extends G ? true : false; +>r1 : false +>true : true +>false : false + + declare let r2: A extends C ? true : false; +>r2 : false +>true : true +>false : false +} + +// 'S1' relates to 'G1' only if 'S2' does not relate to 'G2', and the +// reverse, so no answer is consistent for both. Each is answered as if +// compared first, assuming itself while relating the other, regardless +// of which assignment is checked first. +namespace inferenceConstraintMutual { +>inferenceConstraintMutual : typeof inferenceConstraintMutual + + type A1 = { k?: "c"; f: S2 | G2 }; +>A1 : A1 +>k : "c" | undefined +>f : G2 | S2 + + type C1 = { [s: string]: "c" | G2; f: G2 }; +>C1 : C1 +>s : string +>f : G2 + + type S1 = (x: T) => T["k"]; +>S1 : S1 +>x : T + + type G1 = (x: A1) => "c" | G2; +>G1 : G1 +>x : A1 + + type A2 = { k?: "d"; f: S1 | G1 }; +>A2 : A2 +>k : "d" | undefined +>f : G1 | S1 + + type C2 = { [s: string]: "d" | G1; f: G1 }; +>C2 : C2 +>s : string +>f : G1 + + type S2 = (x: T) => T["k"]; +>S2 : S2 +>x : T + + type G2 = (x: A2) => "d" | G1; +>G2 : G2 +>x : A2 + + declare let s1: S1; +>s1 : S1 + + declare let s2: S2; +>s2 : S2 + + let g1: G1 = s1; +>g1 : G1 +>s1 : S1 + + let g2: G2 = s2; +>g2 : G2 +>s2 : S2 + + declare let r1: S1 extends G1 ? true : false; +>r1 : false +>true : true +>false : false + + declare let r2: S2 extends G2 ? true : false; +>r2 : true +>true : true +>false : false +} + +// 'Src' relates to the union 'Tgt' by discriminating on 'd'. The member +// '{ d: Y; y: number }' matches 'd: X' only if 'X' relates to 'Y', and +// relating 'X' to 'Y' compares 'Src' to 'Tgt' again before failing on +// 'q'. 'Src' must relate to 'Tgt' whether or not 'X' was compared to 'Y' +// first. +namespace discriminated { +>discriminated : typeof discriminated + + interface X { p: Src; q: number } +>p : Src +>q : number + + interface Y { p: Tgt; q: 1 } +>p : Tgt +>q : 1 + + type Src = { d: "a" | X; y: string }; +>Src : Src +>d : "a" | X +>y : string + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Tgt +>d : "a" +>y : string +>d : X +>y : string +>d : Y +>y : number + + declare let r1: Src extends Tgt ? true : false; +>r1 : false +>true : true +>false : false + + declare let r2: X extends Y ? true : false; +>r2 : false +>true : true +>false : false +} + +// The excess property check of the object literal keeps the members of +// 'Outer' whose 'e' the literal's 'e' relates to, so 'w' is known only +// if 'Src' relates to 'Tgt' as above. +namespace excessPropertyDiscriminant { +>excessPropertyDiscriminant : typeof excessPropertyDiscriminant + + interface X { p: Src; q: number } +>p : Src +>q : number + + interface Y { p: Tgt; q: 1 } +>p : Tgt +>q : 1 + + type Src = { d: "a" | X; y: string }; +>Src : Src +>d : "a" | X +>y : string + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Tgt +>d : "a" +>y : string +>d : X +>y : string +>d : Y +>y : number + + type Outer = { e: "z" } | { e: Tgt; w: number } | { e: Src }; +>Outer : Outer +>e : "z" +>e : Tgt +>w : number +>e : Src + + declare let src: Src; +>src : Src + + let o: Outer = { e: src, w: 1 }; +>o : Outer +>{ e: src, w: 1 } : { e: Src; w: number; } +>e : Src +>src : Src +>w : number +>1 : 1 + + declare let r2: X extends Y ? true : false; +>r2 : false +>true : true +>false : false +} + +// Subtype reduction drops 'F' if it is a strict subtype of 'G'. Its +// optional parameter relates only if 'P' is not a strict subtype of 'Q', +// and relating 'P' to 'Q' compares 'F' to 'G' again before failing on +// 'z'. 'F' must be dropped whether or not 'P' was compared to 'Q' first. +namespace strictArity { +>strictArity : typeof strictArity + + type P = { f: F | G; z: number }; +>P : P +>f : F | G +>z : number + + type Q = { f: G; z: 1 }; +>Q : Q +>f : G +>z : 1 + + type F = (x?: P) => 1; +>F : F +>x : P | undefined + + type G = (x: Q | undefined) => number; +>G : G +>x : Q | undefined + + type WP = { a: P; b: string }; +>WP : WP +>a : P +>b : string + + type WQ = { a: Q }; +>WQ : WQ +>a : Q + + declare let f: F, g: G, wp: WP, wq: WQ; +>f : F +>g : G +>wp : WP +>wq : WQ + + let a1 = [f, g]; +>a1 : G[] +>[f, g] : G[] +>f : F +>g : G + + let a2 = [wp, wq]; +>a2 : (WP | WQ)[] +>[wp, wq] : (WP | WQ)[] +>wp : WP +>wq : WQ +} + diff --git a/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..286101cc10b43 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,107 @@ +relationCycleNonMonotoneCheckOrder.ts(42,9): error TS2322: Type 'S1' is not assignable to type 'G1'. + Type '"c" | undefined' is not assignable to type '"c" | G2'. + Type 'undefined' is not assignable to type '"c" | G2'. +relationCycleNonMonotoneCheckOrder.ts(74,30): error TS2353: Object literal may only specify known properties, and 'w' does not exist in type '{ e: Src; }'. + + +==== relationCycleNonMonotoneCheckOrder.ts (2 errors) ==== + // 'S' relates to 'G' only if inferring 'T' from 'A' fails the constraint + // 'C', so that 'T' falls back to 'C'. Relating 'A' to 'C' compares 'S' to + // 'G' again, but 'A' fails 'C' on 'z' regardless. 'S' must relate to 'G' + // whether or not 'A' was compared to 'C' first. + namespace inferenceConstraint { + type A = { k?: "c"; f: S | G; z: number }; + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; + type S = (x: T) => T["k"]; + type G = (x: A) => "c" | G | number; + + declare let r1: S extends G ? true : false; + declare let r2: A extends C ? true : false; + } + + // As above, with method signatures, which are compared bivariantly. + namespace inferenceConstraintMethod { + type A = { k?: "c"; f: S | G; z: number }; + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; + type S = { m(x: T): T["k"] }; + type G = { m(x: A): "c" | G | number }; + + declare let r1: S extends G ? true : false; + declare let r2: A extends C ? true : false; + } + + // 'S1' relates to 'G1' only if 'S2' does not relate to 'G2', and the + // reverse, so no answer is consistent for both. Each is answered as if + // compared first, assuming itself while relating the other, regardless + // of which assignment is checked first. + namespace inferenceConstraintMutual { + type A1 = { k?: "c"; f: S2 | G2 }; + type C1 = { [s: string]: "c" | G2; f: G2 }; + type S1 = (x: T) => T["k"]; + type G1 = (x: A1) => "c" | G2; + type A2 = { k?: "d"; f: S1 | G1 }; + type C2 = { [s: string]: "d" | G1; f: G1 }; + type S2 = (x: T) => T["k"]; + type G2 = (x: A2) => "d" | G1; + + declare let s1: S1; + declare let s2: S2; + let g1: G1 = s1; + ~~ +!!! error TS2322: Type 'S1' is not assignable to type 'G1'. +!!! error TS2322: Type '"c" | undefined' is not assignable to type '"c" | G2'. +!!! error TS2322: Type 'undefined' is not assignable to type '"c" | G2'. + let g2: G2 = s2; + declare let r1: S1 extends G1 ? true : false; + declare let r2: S2 extends G2 ? true : false; + } + + // 'Src' relates to the union 'Tgt' by discriminating on 'd'. The member + // '{ d: Y; y: number }' matches 'd: X' only if 'X' relates to 'Y', and + // relating 'X' to 'Y' compares 'Src' to 'Tgt' again before failing on + // 'q'. 'Src' must relate to 'Tgt' whether or not 'X' was compared to 'Y' + // first. + namespace discriminated { + interface X { p: Src; q: number } + interface Y { p: Tgt; q: 1 } + type Src = { d: "a" | X; y: string }; + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; + + declare let r1: Src extends Tgt ? true : false; + declare let r2: X extends Y ? true : false; + } + + // The excess property check of the object literal keeps the members of + // 'Outer' whose 'e' the literal's 'e' relates to, so 'w' is known only + // if 'Src' relates to 'Tgt' as above. + namespace excessPropertyDiscriminant { + interface X { p: Src; q: number } + interface Y { p: Tgt; q: 1 } + type Src = { d: "a" | X; y: string }; + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; + type Outer = { e: "z" } | { e: Tgt; w: number } | { e: Src }; + + declare let src: Src; + let o: Outer = { e: src, w: 1 }; + ~ +!!! error TS2353: Object literal may only specify known properties, and 'w' does not exist in type '{ e: Src; }'. + declare let r2: X extends Y ? true : false; + } + + // Subtype reduction drops 'F' if it is a strict subtype of 'G'. Its + // optional parameter relates only if 'P' is not a strict subtype of 'Q', + // and relating 'P' to 'Q' compares 'F' to 'G' again before failing on + // 'z'. 'F' must be dropped whether or not 'P' was compared to 'Q' first. + namespace strictArity { + type P = { f: F | G; z: number }; + type Q = { f: G; z: 1 }; + type F = (x?: P) => 1; + type G = (x: Q | undefined) => number; + type WP = { a: P; b: string }; + type WQ = { a: Q }; + + declare let f: F, g: G, wp: WP, wq: WQ; + let a1 = [f, g]; + let a2 = [wp, wq]; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..3bc451c9c78bc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,361 @@ +//// [tests/cases/compiler/relationCycleNonMonotoneCheckOrder.ts] //// + +=== relationCycleNonMonotoneCheckOrder.ts === +// 'S' relates to 'G' only if inferring 'T' from 'A' fails the constraint +// 'C', so that 'T' falls back to 'C'. Relating 'A' to 'C' compares 'S' to +// 'G' again, but 'A' fails 'C' on 'z' regardless. 'S' must relate to 'G' +// whether or not 'A' was compared to 'C' first. +namespace inferenceConstraint { +>inferenceConstraint : Symbol(inferenceConstraint, Decl(relationCycleNonMonotoneCheckOrder.ts, 0, 0)) + + type A = { k?: "c"; f: S | G; z: number }; +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 4, 31)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 14)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 23)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 33)) + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 46)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 16)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 45)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 51)) + + type S = (x: T) => T["k"]; +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 59)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 14)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 46)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 27)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 14)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 14)) + + type G = (x: A) => "c" | G | number; +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 8, 14)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 4, 31)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) + + declare let r1: S extends G ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 10, 15)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 6, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 7, 43)) + + declare let r2: A extends C ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 11, 15)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 4, 31)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 5, 46)) +} + +// As above, with method signatures, which are compared bivariantly. +namespace inferenceConstraintMethod { +>inferenceConstraintMethod : Symbol(inferenceConstraintMethod, Decl(relationCycleNonMonotoneCheckOrder.ts, 12, 1)) + + type A = { k?: "c"; f: S | G; z: number }; +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 15, 37)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 14)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 23)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 33)) + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 46)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 16)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 45)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 51)) + + type S = { m(x: T): T["k"] }; +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 59)) +>m : Symbol(m, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 14)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 17)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 46)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 30)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 17)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 17)) + + type G = { m(x: A): "c" | G | number }; +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) +>m : Symbol(m, Decl(relationCycleNonMonotoneCheckOrder.ts, 19, 14)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 19, 17)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 15, 37)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) + + declare let r1: S extends G ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 21, 15)) +>S : Symbol(S, Decl(relationCycleNonMonotoneCheckOrder.ts, 17, 59)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 18, 46)) + + declare let r2: A extends C ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 22, 15)) +>A : Symbol(A, Decl(relationCycleNonMonotoneCheckOrder.ts, 15, 37)) +>C : Symbol(C, Decl(relationCycleNonMonotoneCheckOrder.ts, 16, 46)) +} + +// 'S1' relates to 'G1' only if 'S2' does not relate to 'G2', and the +// reverse, so no answer is consistent for both. Each is answered as if +// compared first, assuming itself while relating the other, regardless +// of which assignment is checked first. +namespace inferenceConstraintMutual { +>inferenceConstraintMutual : Symbol(inferenceConstraintMutual, Decl(relationCycleNonMonotoneCheckOrder.ts, 23, 1)) + + type A1 = { k?: "c"; f: S2 | G2 }; +>A1 : Symbol(A1, Decl(relationCycleNonMonotoneCheckOrder.ts, 29, 37)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 15)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 24)) +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) + + type C1 = { [s: string]: "c" | G2; f: G2 }; +>C1 : Symbol(C1, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 38)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 17)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 38)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) + + type S1 = (x: T) => T["k"]; +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 15)) +>C1 : Symbol(C1, Decl(relationCycleNonMonotoneCheckOrder.ts, 30, 38)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 29)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 15)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 15)) + + type G1 = (x: A1) => "c" | G2; +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 33, 15)) +>A1 : Symbol(A1, Decl(relationCycleNonMonotoneCheckOrder.ts, 29, 37)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) + + type A2 = { k?: "d"; f: S1 | G1 }; +>A2 : Symbol(A2, Decl(relationCycleNonMonotoneCheckOrder.ts, 33, 34)) +>k : Symbol(k, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 15)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 24)) +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + type C2 = { [s: string]: "d" | G1; f: G1 }; +>C2 : Symbol(C2, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 38)) +>s : Symbol(s, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 17)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 38)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + type S2 = (x: T) => T["k"]; +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 15)) +>C2 : Symbol(C2, Decl(relationCycleNonMonotoneCheckOrder.ts, 34, 38)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 29)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 15)) +>T : Symbol(T, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 15)) + + type G2 = (x: A2) => "d" | G1; +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 37, 15)) +>A2 : Symbol(A2, Decl(relationCycleNonMonotoneCheckOrder.ts, 33, 34)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + declare let s1: S1; +>s1 : Symbol(s1, Decl(relationCycleNonMonotoneCheckOrder.ts, 39, 15)) +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) + + declare let s2: S2; +>s2 : Symbol(s2, Decl(relationCycleNonMonotoneCheckOrder.ts, 40, 15)) +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) + + let g1: G1 = s1; +>g1 : Symbol(g1, Decl(relationCycleNonMonotoneCheckOrder.ts, 41, 7)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) +>s1 : Symbol(s1, Decl(relationCycleNonMonotoneCheckOrder.ts, 39, 15)) + + let g2: G2 = s2; +>g2 : Symbol(g2, Decl(relationCycleNonMonotoneCheckOrder.ts, 42, 7)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +>s2 : Symbol(s2, Decl(relationCycleNonMonotoneCheckOrder.ts, 40, 15)) + + declare let r1: S1 extends G1 ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 43, 15)) +>S1 : Symbol(S1, Decl(relationCycleNonMonotoneCheckOrder.ts, 31, 47)) +>G1 : Symbol(G1, Decl(relationCycleNonMonotoneCheckOrder.ts, 32, 45)) + + declare let r2: S2 extends G2 ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 44, 15)) +>S2 : Symbol(S2, Decl(relationCycleNonMonotoneCheckOrder.ts, 35, 47)) +>G2 : Symbol(G2, Decl(relationCycleNonMonotoneCheckOrder.ts, 36, 45)) +} + +// 'Src' relates to the union 'Tgt' by discriminating on 'd'. The member +// '{ d: Y; y: number }' matches 'd: X' only if 'X' relates to 'Y', and +// relating 'X' to 'Y' compares 'Src' to 'Tgt' again before failing on +// 'q'. 'Src' must relate to 'Tgt' whether or not 'X' was compared to 'Y' +// first. +namespace discriminated { +>discriminated : Symbol(discriminated, Decl(relationCycleNonMonotoneCheckOrder.ts, 45, 1)) + + interface X { p: Src; q: number } +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>p : Symbol(X.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 17)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 32)) +>q : Symbol(X.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 25)) + + interface Y { p: Tgt; q: 1 } +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 37)) +>p : Symbol(Y.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 17)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 41)) +>q : Symbol(Y.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 25)) + + type Src = { d: "a" | X; y: string }; +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 32)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 16)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 28)) + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 41)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 16)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 24)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 40)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 46)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 62)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 37)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 56, 68)) + + declare let r1: Src extends Tgt ? true : false; +>r1 : Symbol(r1, Decl(relationCycleNonMonotoneCheckOrder.ts, 58, 15)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 54, 32)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 55, 41)) + + declare let r2: X extends Y ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 59, 15)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 52, 25)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 53, 37)) +} + +// The excess property check of the object literal keeps the members of +// 'Outer' whose 'e' the literal's 'e' relates to, so 'w' is known only +// if 'Src' relates to 'Tgt' as above. +namespace excessPropertyDiscriminant { +>excessPropertyDiscriminant : Symbol(excessPropertyDiscriminant, Decl(relationCycleNonMonotoneCheckOrder.ts, 60, 1)) + + interface X { p: Src; q: number } +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>p : Symbol(X.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 17)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) +>q : Symbol(X.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 25)) + + interface Y { p: Tgt; q: 1 } +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 37)) +>p : Symbol(Y.p, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 17)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 41)) +>q : Symbol(Y.q, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 25)) + + type Src = { d: "a" | X; y: string }; +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 16)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 28)) + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 41)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 16)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 24)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 40)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 46)) +>d : Symbol(d, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 62)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 37)) +>y : Symbol(y, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 68)) + + type Outer = { e: "z" } | { e: Tgt; w: number } | { e: Src }; +>Outer : Symbol(Outer, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 81)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 18)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 31)) +>Tgt : Symbol(Tgt, Decl(relationCycleNonMonotoneCheckOrder.ts, 68, 41)) +>w : Symbol(w, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 39)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 70, 55)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) + + declare let src: Src; +>src : Symbol(src, Decl(relationCycleNonMonotoneCheckOrder.ts, 72, 15)) +>Src : Symbol(Src, Decl(relationCycleNonMonotoneCheckOrder.ts, 67, 32)) + + let o: Outer = { e: src, w: 1 }; +>o : Symbol(o, Decl(relationCycleNonMonotoneCheckOrder.ts, 73, 7)) +>Outer : Symbol(Outer, Decl(relationCycleNonMonotoneCheckOrder.ts, 69, 81)) +>e : Symbol(e, Decl(relationCycleNonMonotoneCheckOrder.ts, 73, 20)) +>src : Symbol(src, Decl(relationCycleNonMonotoneCheckOrder.ts, 72, 15)) +>w : Symbol(w, Decl(relationCycleNonMonotoneCheckOrder.ts, 73, 28)) + + declare let r2: X extends Y ? true : false; +>r2 : Symbol(r2, Decl(relationCycleNonMonotoneCheckOrder.ts, 74, 15)) +>X : Symbol(X, Decl(relationCycleNonMonotoneCheckOrder.ts, 65, 38)) +>Y : Symbol(Y, Decl(relationCycleNonMonotoneCheckOrder.ts, 66, 37)) +} + +// Subtype reduction drops 'F' if it is a strict subtype of 'G'. Its +// optional parameter relates only if 'P' is not a strict subtype of 'Q', +// and relating 'P' to 'Q' compares 'F' to 'G' again before failing on +// 'z'. 'F' must be dropped whether or not 'P' was compared to 'Q' first. +namespace strictArity { +>strictArity : Symbol(strictArity, Decl(relationCycleNonMonotoneCheckOrder.ts, 75, 1)) + + type P = { f: F | G; z: number }; +>P : Symbol(P, Decl(relationCycleNonMonotoneCheckOrder.ts, 81, 23)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 14)) +>F : Symbol(F, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 28)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 24)) + + type Q = { f: G; z: 1 }; +>Q : Symbol(Q, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 37)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 14)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>z : Symbol(z, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 20)) + + type F = (x?: P) => 1; +>F : Symbol(F, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 28)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 14)) +>P : Symbol(P, Decl(relationCycleNonMonotoneCheckOrder.ts, 81, 23)) + + type G = (x: Q | undefined) => number; +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>x : Symbol(x, Decl(relationCycleNonMonotoneCheckOrder.ts, 85, 14)) +>Q : Symbol(Q, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 37)) + + type WP = { a: P; b: string }; +>WP : Symbol(WP, Decl(relationCycleNonMonotoneCheckOrder.ts, 85, 42)) +>a : Symbol(a, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 15)) +>P : Symbol(P, Decl(relationCycleNonMonotoneCheckOrder.ts, 81, 23)) +>b : Symbol(b, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 21)) + + type WQ = { a: Q }; +>WQ : Symbol(WQ, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 34)) +>a : Symbol(a, Decl(relationCycleNonMonotoneCheckOrder.ts, 87, 15)) +>Q : Symbol(Q, Decl(relationCycleNonMonotoneCheckOrder.ts, 82, 37)) + + declare let f: F, g: G, wp: WP, wq: WQ; +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 15)) +>F : Symbol(F, Decl(relationCycleNonMonotoneCheckOrder.ts, 83, 28)) +>g : Symbol(g, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 21)) +>G : Symbol(G, Decl(relationCycleNonMonotoneCheckOrder.ts, 84, 26)) +>wp : Symbol(wp, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 27)) +>WP : Symbol(WP, Decl(relationCycleNonMonotoneCheckOrder.ts, 85, 42)) +>wq : Symbol(wq, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 35)) +>WQ : Symbol(WQ, Decl(relationCycleNonMonotoneCheckOrder.ts, 86, 34)) + + let a1 = [f, g]; +>a1 : Symbol(a1, Decl(relationCycleNonMonotoneCheckOrder.ts, 90, 7)) +>f : Symbol(f, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 15)) +>g : Symbol(g, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 21)) + + let a2 = [wp, wq]; +>a2 : Symbol(a2, Decl(relationCycleNonMonotoneCheckOrder.ts, 91, 7)) +>wp : Symbol(wp, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 27)) +>wq : Symbol(wq, Decl(relationCycleNonMonotoneCheckOrder.ts, 89, 35)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..55c0f3952ae35 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationCycleNonMonotoneCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,292 @@ +//// [tests/cases/compiler/relationCycleNonMonotoneCheckOrder.ts] //// + +=== relationCycleNonMonotoneCheckOrder.ts === +// 'S' relates to 'G' only if inferring 'T' from 'A' fails the constraint +// 'C', so that 'T' falls back to 'C'. Relating 'A' to 'C' compares 'S' to +// 'G' again, but 'A' fails 'C' on 'z' regardless. 'S' must relate to 'G' +// whether or not 'A' was compared to 'C' first. +namespace inferenceConstraint { +>inferenceConstraint : typeof inferenceConstraint + + type A = { k?: "c"; f: S | G; z: number }; +>A : A +>k : "c" | undefined +>f : G | S +>z : number + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : C +>s : string +>f : G +>z : 1 + + type S = (x: T) => T["k"]; +>S : S +>x : T + + type G = (x: A) => "c" | G | number; +>G : G +>x : A + + declare let r1: S extends G ? true : false; +>r1 : false +>true : true +>false : false + + declare let r2: A extends C ? true : false; +>r2 : false +>true : true +>false : false +} + +// As above, with method signatures, which are compared bivariantly. +namespace inferenceConstraintMethod { +>inferenceConstraintMethod : typeof inferenceConstraintMethod + + type A = { k?: "c"; f: S | G; z: number }; +>A : A +>k : "c" | undefined +>f : G | S +>z : number + + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; +>C : C +>s : string +>f : G +>z : 1 + + type S = { m(x: T): T["k"] }; +>S : S +>m : (x: T) => T["k"] +>x : T + + type G = { m(x: A): "c" | G | number }; +>G : G +>m : (x: A) => "c" | G | number +>x : A + + declare let r1: S extends G ? true : false; +>r1 : false +>true : true +>false : false + + declare let r2: A extends C ? true : false; +>r2 : false +>true : true +>false : false +} + +// 'S1' relates to 'G1' only if 'S2' does not relate to 'G2', and the +// reverse, so no answer is consistent for both. Each is answered as if +// compared first, assuming itself while relating the other, regardless +// of which assignment is checked first. +namespace inferenceConstraintMutual { +>inferenceConstraintMutual : typeof inferenceConstraintMutual + + type A1 = { k?: "c"; f: S2 | G2 }; +>A1 : A1 +>k : "c" | undefined +>f : G2 | S2 + + type C1 = { [s: string]: "c" | G2; f: G2 }; +>C1 : C1 +>s : string +>f : G2 + + type S1 = (x: T) => T["k"]; +>S1 : S1 +>x : T + + type G1 = (x: A1) => "c" | G2; +>G1 : G1 +>x : A1 + + type A2 = { k?: "d"; f: S1 | G1 }; +>A2 : A2 +>k : "d" | undefined +>f : G1 | S1 + + type C2 = { [s: string]: "d" | G1; f: G1 }; +>C2 : C2 +>s : string +>f : G1 + + type S2 = (x: T) => T["k"]; +>S2 : S2 +>x : T + + type G2 = (x: A2) => "d" | G1; +>G2 : G2 +>x : A2 + + declare let s1: S1; +>s1 : S1 + + declare let s2: S2; +>s2 : S2 + + let g1: G1 = s1; +>g1 : G1 +>s1 : S1 + + let g2: G2 = s2; +>g2 : G2 +>s2 : S2 + + declare let r1: S1 extends G1 ? true : false; +>r1 : false +>true : true +>false : false + + declare let r2: S2 extends G2 ? true : false; +>r2 : true +>true : true +>false : false +} + +// 'Src' relates to the union 'Tgt' by discriminating on 'd'. The member +// '{ d: Y; y: number }' matches 'd: X' only if 'X' relates to 'Y', and +// relating 'X' to 'Y' compares 'Src' to 'Tgt' again before failing on +// 'q'. 'Src' must relate to 'Tgt' whether or not 'X' was compared to 'Y' +// first. +namespace discriminated { +>discriminated : typeof discriminated + + interface X { p: Src; q: number } +>p : Src +>q : number + + interface Y { p: Tgt; q: 1 } +>p : Tgt +>q : 1 + + type Src = { d: "a" | X; y: string }; +>Src : Src +>d : "a" | X +>y : string + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Tgt +>d : "a" +>y : string +>d : X +>y : string +>d : Y +>y : number + + declare let r1: Src extends Tgt ? true : false; +>r1 : false +>true : true +>false : false + + declare let r2: X extends Y ? true : false; +>r2 : false +>true : true +>false : false +} + +// The excess property check of the object literal keeps the members of +// 'Outer' whose 'e' the literal's 'e' relates to, so 'w' is known only +// if 'Src' relates to 'Tgt' as above. +namespace excessPropertyDiscriminant { +>excessPropertyDiscriminant : typeof excessPropertyDiscriminant + + interface X { p: Src; q: number } +>p : Src +>q : number + + interface Y { p: Tgt; q: 1 } +>p : Tgt +>q : 1 + + type Src = { d: "a" | X; y: string }; +>Src : Src +>d : "a" | X +>y : string + + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; +>Tgt : Tgt +>d : "a" +>y : string +>d : X +>y : string +>d : Y +>y : number + + type Outer = { e: "z" } | { e: Tgt; w: number } | { e: Src }; +>Outer : Outer +>e : "z" +>e : Tgt +>w : number +>e : Src + + declare let src: Src; +>src : Src + + let o: Outer = { e: src, w: 1 }; +>o : Outer +>{ e: src, w: 1 } : { e: Src; w: number; } +>e : Src +>src : Src +>w : number +>1 : 1 + + declare let r2: X extends Y ? true : false; +>r2 : false +>true : true +>false : false +} + +// Subtype reduction drops 'F' if it is a strict subtype of 'G'. Its +// optional parameter relates only if 'P' is not a strict subtype of 'Q', +// and relating 'P' to 'Q' compares 'F' to 'G' again before failing on +// 'z'. 'F' must be dropped whether or not 'P' was compared to 'Q' first. +namespace strictArity { +>strictArity : typeof strictArity + + type P = { f: F | G; z: number }; +>P : P +>f : F | G +>z : number + + type Q = { f: G; z: 1 }; +>Q : Q +>f : G +>z : 1 + + type F = (x?: P) => 1; +>F : F +>x : P | undefined + + type G = (x: Q | undefined) => number; +>G : G +>x : Q | undefined + + type WP = { a: P; b: string }; +>WP : WP +>a : P +>b : string + + type WQ = { a: Q }; +>WQ : WQ +>a : Q + + declare let f: F, g: G, wp: WP, wq: WQ; +>f : F +>g : G +>wp : WP +>wq : WQ + + let a1 = [f, g]; +>a1 : (F | G)[] +>[f, g] : (F | G)[] +>f : F +>g : G + + let a2 = [wp, wq]; +>a2 : (WP | WQ)[] +>[wp, wq] : (WP | WQ)[] +>wp : WP +>wq : WQ +} + diff --git a/tsc/testdata/baselines/reference/compiler/relationDeeplyNestedCheckOrder.symbols b/tsc/testdata/baselines/reference/compiler/relationDeeplyNestedCheckOrder.symbols new file mode 100644 index 0000000000000..cdf23cc04d684 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationDeeplyNestedCheckOrder.symbols @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/relationDeeplyNestedCheckOrder.ts] //// + +=== relationDeeplyNestedCheckOrder.ts === +// Relating 'B<{ a: string }>' to 'B<{ a: "lit" }>' eventually relates 'string' +// to '"lit"' through 'm0.m1.a.m0.m1', but only after measuring the variances +// of 'A', which gives up on deeply nested types. TypeScript reports an error +// for the 'B' assignment only when it is checked before the 'A' assignment; +// the result must not depend on which is checked first. + +type A = { m0: (x: B) => void; m1: { [K in keyof T]: B } }; +>A : Symbol(A, Decl(relationDeeplyNestedCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(relationDeeplyNestedCheckOrder.ts, 6, 7)) +>m0 : Symbol(m0, Decl(relationDeeplyNestedCheckOrder.ts, 6, 13)) +>x : Symbol(x, Decl(relationDeeplyNestedCheckOrder.ts, 6, 19)) +>B : Symbol(B, Decl(relationDeeplyNestedCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationDeeplyNestedCheckOrder.ts, 6, 7)) +>m1 : Symbol(m1, Decl(relationDeeplyNestedCheckOrder.ts, 6, 36)) +>K : Symbol(K, Decl(relationDeeplyNestedCheckOrder.ts, 6, 44)) +>T : Symbol(T, Decl(relationDeeplyNestedCheckOrder.ts, 6, 7)) +>B : Symbol(B, Decl(relationDeeplyNestedCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationDeeplyNestedCheckOrder.ts, 6, 7)) +>K : Symbol(K, Decl(relationDeeplyNestedCheckOrder.ts, 6, 44)) + +type B = { m0: A }; +>B : Symbol(B, Decl(relationDeeplyNestedCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationDeeplyNestedCheckOrder.ts, 7, 7)) +>m0 : Symbol(m0, Decl(relationDeeplyNestedCheckOrder.ts, 7, 13)) +>A : Symbol(A, Decl(relationDeeplyNestedCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(relationDeeplyNestedCheckOrder.ts, 7, 7)) + +declare let a1: A<{ a: string }>, a2: A<{ a: "lit" }>; +>a1 : Symbol(a1, Decl(relationDeeplyNestedCheckOrder.ts, 9, 11)) +>A : Symbol(A, Decl(relationDeeplyNestedCheckOrder.ts, 0, 0)) +>a : Symbol(a, Decl(relationDeeplyNestedCheckOrder.ts, 9, 19)) +>a2 : Symbol(a2, Decl(relationDeeplyNestedCheckOrder.ts, 9, 33)) +>A : Symbol(A, Decl(relationDeeplyNestedCheckOrder.ts, 0, 0)) +>a : Symbol(a, Decl(relationDeeplyNestedCheckOrder.ts, 9, 41)) + +declare let b1: B<{ a: string }>, b2: B<{ a: "lit" }>; +>b1 : Symbol(b1, Decl(relationDeeplyNestedCheckOrder.ts, 10, 11)) +>B : Symbol(B, Decl(relationDeeplyNestedCheckOrder.ts, 6, 71)) +>a : Symbol(a, Decl(relationDeeplyNestedCheckOrder.ts, 10, 19)) +>b2 : Symbol(b2, Decl(relationDeeplyNestedCheckOrder.ts, 10, 33)) +>B : Symbol(B, Decl(relationDeeplyNestedCheckOrder.ts, 6, 71)) +>a : Symbol(a, Decl(relationDeeplyNestedCheckOrder.ts, 10, 41)) + +a2 = a1; +>a2 : Symbol(a2, Decl(relationDeeplyNestedCheckOrder.ts, 9, 33)) +>a1 : Symbol(a1, Decl(relationDeeplyNestedCheckOrder.ts, 9, 11)) + +b2 = b1; +>b2 : Symbol(b2, Decl(relationDeeplyNestedCheckOrder.ts, 10, 33)) +>b1 : Symbol(b1, Decl(relationDeeplyNestedCheckOrder.ts, 10, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/relationDeeplyNestedCheckOrder.types b/tsc/testdata/baselines/reference/compiler/relationDeeplyNestedCheckOrder.types new file mode 100644 index 0000000000000..fedd3a84c64f9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationDeeplyNestedCheckOrder.types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/relationDeeplyNestedCheckOrder.ts] //// + +=== relationDeeplyNestedCheckOrder.ts === +// Relating 'B<{ a: string }>' to 'B<{ a: "lit" }>' eventually relates 'string' +// to '"lit"' through 'm0.m1.a.m0.m1', but only after measuring the variances +// of 'A', which gives up on deeply nested types. TypeScript reports an error +// for the 'B' assignment only when it is checked before the 'A' assignment; +// the result must not depend on which is checked first. + +type A = { m0: (x: B) => void; m1: { [K in keyof T]: B } }; +>A : A +>m0 : (x: B) => void +>x : B +>m1 : { [K in keyof T]: B; } + +type B = { m0: A }; +>B : B +>m0 : A + +declare let a1: A<{ a: string }>, a2: A<{ a: "lit" }>; +>a1 : A<{ a: string; }> +>a : string +>a2 : A<{ a: "lit"; }> +>a : "lit" + +declare let b1: B<{ a: string }>, b2: B<{ a: "lit" }>; +>b1 : B<{ a: string; }> +>a : string +>b2 : B<{ a: "lit"; }> +>a : "lit" + +a2 = a1; +>a2 = a1 : A<{ a: string; }> +>a2 : A<{ a: "lit"; }> +>a1 : A<{ a: string; }> + +b2 = b1; +>b2 = b1 : B<{ a: string; }> +>b2 : B<{ a: "lit"; }> +>b1 : B<{ a: string; }> + diff --git a/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..89aebb5fd9f9a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=default).symbols @@ -0,0 +1,1217 @@ +//// [tests/cases/compiler/relationDepthSharedCheckOrder.ts] //// + +=== relationDepthSharedCheckOrder.ts === +// Relating I0 to J0 fresh nests a comparison 100 levels deep, where it is +// cut short and so succeeds. In program order Mid has already found that +// I60 is not related to J60. Whether I0 is related to J0 must not depend +// on which comes first. Conditional types relate without reporting errors, +// which would compute the comparison again. + +interface I0 { next: I1 } +>I0 : Symbol(I0, Decl(relationDepthSharedCheckOrder.ts, 0, 0)) +>next : Symbol(I0.next, Decl(relationDepthSharedCheckOrder.ts, 6, 14)) +>I1 : Symbol(I1, Decl(relationDepthSharedCheckOrder.ts, 7, 25)) + +interface J0 { next: J1 } +>J0 : Symbol(J0, Decl(relationDepthSharedCheckOrder.ts, 6, 25)) +>next : Symbol(J0.next, Decl(relationDepthSharedCheckOrder.ts, 7, 14)) +>J1 : Symbol(J1, Decl(relationDepthSharedCheckOrder.ts, 8, 25)) + +interface I1 { next: I2 } +>I1 : Symbol(I1, Decl(relationDepthSharedCheckOrder.ts, 7, 25)) +>next : Symbol(I1.next, Decl(relationDepthSharedCheckOrder.ts, 8, 14)) +>I2 : Symbol(I2, Decl(relationDepthSharedCheckOrder.ts, 9, 25)) + +interface J1 { next: J2 } +>J1 : Symbol(J1, Decl(relationDepthSharedCheckOrder.ts, 8, 25)) +>next : Symbol(J1.next, Decl(relationDepthSharedCheckOrder.ts, 9, 14)) +>J2 : Symbol(J2, Decl(relationDepthSharedCheckOrder.ts, 10, 25)) + +interface I2 { next: I3 } +>I2 : Symbol(I2, Decl(relationDepthSharedCheckOrder.ts, 9, 25)) +>next : Symbol(I2.next, Decl(relationDepthSharedCheckOrder.ts, 10, 14)) +>I3 : Symbol(I3, Decl(relationDepthSharedCheckOrder.ts, 11, 25)) + +interface J2 { next: J3 } +>J2 : Symbol(J2, Decl(relationDepthSharedCheckOrder.ts, 10, 25)) +>next : Symbol(J2.next, Decl(relationDepthSharedCheckOrder.ts, 11, 14)) +>J3 : Symbol(J3, Decl(relationDepthSharedCheckOrder.ts, 12, 25)) + +interface I3 { next: I4 } +>I3 : Symbol(I3, Decl(relationDepthSharedCheckOrder.ts, 11, 25)) +>next : Symbol(I3.next, Decl(relationDepthSharedCheckOrder.ts, 12, 14)) +>I4 : Symbol(I4, Decl(relationDepthSharedCheckOrder.ts, 13, 25)) + +interface J3 { next: J4 } +>J3 : Symbol(J3, Decl(relationDepthSharedCheckOrder.ts, 12, 25)) +>next : Symbol(J3.next, Decl(relationDepthSharedCheckOrder.ts, 13, 14)) +>J4 : Symbol(J4, Decl(relationDepthSharedCheckOrder.ts, 14, 25)) + +interface I4 { next: I5 } +>I4 : Symbol(I4, Decl(relationDepthSharedCheckOrder.ts, 13, 25)) +>next : Symbol(I4.next, Decl(relationDepthSharedCheckOrder.ts, 14, 14)) +>I5 : Symbol(I5, Decl(relationDepthSharedCheckOrder.ts, 15, 25)) + +interface J4 { next: J5 } +>J4 : Symbol(J4, Decl(relationDepthSharedCheckOrder.ts, 14, 25)) +>next : Symbol(J4.next, Decl(relationDepthSharedCheckOrder.ts, 15, 14)) +>J5 : Symbol(J5, Decl(relationDepthSharedCheckOrder.ts, 16, 25)) + +interface I5 { next: I6 } +>I5 : Symbol(I5, Decl(relationDepthSharedCheckOrder.ts, 15, 25)) +>next : Symbol(I5.next, Decl(relationDepthSharedCheckOrder.ts, 16, 14)) +>I6 : Symbol(I6, Decl(relationDepthSharedCheckOrder.ts, 17, 25)) + +interface J5 { next: J6 } +>J5 : Symbol(J5, Decl(relationDepthSharedCheckOrder.ts, 16, 25)) +>next : Symbol(J5.next, Decl(relationDepthSharedCheckOrder.ts, 17, 14)) +>J6 : Symbol(J6, Decl(relationDepthSharedCheckOrder.ts, 18, 25)) + +interface I6 { next: I7 } +>I6 : Symbol(I6, Decl(relationDepthSharedCheckOrder.ts, 17, 25)) +>next : Symbol(I6.next, Decl(relationDepthSharedCheckOrder.ts, 18, 14)) +>I7 : Symbol(I7, Decl(relationDepthSharedCheckOrder.ts, 19, 25)) + +interface J6 { next: J7 } +>J6 : Symbol(J6, Decl(relationDepthSharedCheckOrder.ts, 18, 25)) +>next : Symbol(J6.next, Decl(relationDepthSharedCheckOrder.ts, 19, 14)) +>J7 : Symbol(J7, Decl(relationDepthSharedCheckOrder.ts, 20, 25)) + +interface I7 { next: I8 } +>I7 : Symbol(I7, Decl(relationDepthSharedCheckOrder.ts, 19, 25)) +>next : Symbol(I7.next, Decl(relationDepthSharedCheckOrder.ts, 20, 14)) +>I8 : Symbol(I8, Decl(relationDepthSharedCheckOrder.ts, 21, 25)) + +interface J7 { next: J8 } +>J7 : Symbol(J7, Decl(relationDepthSharedCheckOrder.ts, 20, 25)) +>next : Symbol(J7.next, Decl(relationDepthSharedCheckOrder.ts, 21, 14)) +>J8 : Symbol(J8, Decl(relationDepthSharedCheckOrder.ts, 22, 25)) + +interface I8 { next: I9 } +>I8 : Symbol(I8, Decl(relationDepthSharedCheckOrder.ts, 21, 25)) +>next : Symbol(I8.next, Decl(relationDepthSharedCheckOrder.ts, 22, 14)) +>I9 : Symbol(I9, Decl(relationDepthSharedCheckOrder.ts, 23, 25)) + +interface J8 { next: J9 } +>J8 : Symbol(J8, Decl(relationDepthSharedCheckOrder.ts, 22, 25)) +>next : Symbol(J8.next, Decl(relationDepthSharedCheckOrder.ts, 23, 14)) +>J9 : Symbol(J9, Decl(relationDepthSharedCheckOrder.ts, 24, 26)) + +interface I9 { next: I10 } +>I9 : Symbol(I9, Decl(relationDepthSharedCheckOrder.ts, 23, 25)) +>next : Symbol(I9.next, Decl(relationDepthSharedCheckOrder.ts, 24, 14)) +>I10 : Symbol(I10, Decl(relationDepthSharedCheckOrder.ts, 25, 26)) + +interface J9 { next: J10 } +>J9 : Symbol(J9, Decl(relationDepthSharedCheckOrder.ts, 24, 26)) +>next : Symbol(J9.next, Decl(relationDepthSharedCheckOrder.ts, 25, 14)) +>J10 : Symbol(J10, Decl(relationDepthSharedCheckOrder.ts, 26, 27)) + +interface I10 { next: I11 } +>I10 : Symbol(I10, Decl(relationDepthSharedCheckOrder.ts, 25, 26)) +>next : Symbol(I10.next, Decl(relationDepthSharedCheckOrder.ts, 26, 15)) +>I11 : Symbol(I11, Decl(relationDepthSharedCheckOrder.ts, 27, 27)) + +interface J10 { next: J11 } +>J10 : Symbol(J10, Decl(relationDepthSharedCheckOrder.ts, 26, 27)) +>next : Symbol(J10.next, Decl(relationDepthSharedCheckOrder.ts, 27, 15)) +>J11 : Symbol(J11, Decl(relationDepthSharedCheckOrder.ts, 28, 27)) + +interface I11 { next: I12 } +>I11 : Symbol(I11, Decl(relationDepthSharedCheckOrder.ts, 27, 27)) +>next : Symbol(I11.next, Decl(relationDepthSharedCheckOrder.ts, 28, 15)) +>I12 : Symbol(I12, Decl(relationDepthSharedCheckOrder.ts, 29, 27)) + +interface J11 { next: J12 } +>J11 : Symbol(J11, Decl(relationDepthSharedCheckOrder.ts, 28, 27)) +>next : Symbol(J11.next, Decl(relationDepthSharedCheckOrder.ts, 29, 15)) +>J12 : Symbol(J12, Decl(relationDepthSharedCheckOrder.ts, 30, 27)) + +interface I12 { next: I13 } +>I12 : Symbol(I12, Decl(relationDepthSharedCheckOrder.ts, 29, 27)) +>next : Symbol(I12.next, Decl(relationDepthSharedCheckOrder.ts, 30, 15)) +>I13 : Symbol(I13, Decl(relationDepthSharedCheckOrder.ts, 31, 27)) + +interface J12 { next: J13 } +>J12 : Symbol(J12, Decl(relationDepthSharedCheckOrder.ts, 30, 27)) +>next : Symbol(J12.next, Decl(relationDepthSharedCheckOrder.ts, 31, 15)) +>J13 : Symbol(J13, Decl(relationDepthSharedCheckOrder.ts, 32, 27)) + +interface I13 { next: I14 } +>I13 : Symbol(I13, Decl(relationDepthSharedCheckOrder.ts, 31, 27)) +>next : Symbol(I13.next, Decl(relationDepthSharedCheckOrder.ts, 32, 15)) +>I14 : Symbol(I14, Decl(relationDepthSharedCheckOrder.ts, 33, 27)) + +interface J13 { next: J14 } +>J13 : Symbol(J13, Decl(relationDepthSharedCheckOrder.ts, 32, 27)) +>next : Symbol(J13.next, Decl(relationDepthSharedCheckOrder.ts, 33, 15)) +>J14 : Symbol(J14, Decl(relationDepthSharedCheckOrder.ts, 34, 27)) + +interface I14 { next: I15 } +>I14 : Symbol(I14, Decl(relationDepthSharedCheckOrder.ts, 33, 27)) +>next : Symbol(I14.next, Decl(relationDepthSharedCheckOrder.ts, 34, 15)) +>I15 : Symbol(I15, Decl(relationDepthSharedCheckOrder.ts, 35, 27)) + +interface J14 { next: J15 } +>J14 : Symbol(J14, Decl(relationDepthSharedCheckOrder.ts, 34, 27)) +>next : Symbol(J14.next, Decl(relationDepthSharedCheckOrder.ts, 35, 15)) +>J15 : Symbol(J15, Decl(relationDepthSharedCheckOrder.ts, 36, 27)) + +interface I15 { next: I16 } +>I15 : Symbol(I15, Decl(relationDepthSharedCheckOrder.ts, 35, 27)) +>next : Symbol(I15.next, Decl(relationDepthSharedCheckOrder.ts, 36, 15)) +>I16 : Symbol(I16, Decl(relationDepthSharedCheckOrder.ts, 37, 27)) + +interface J15 { next: J16 } +>J15 : Symbol(J15, Decl(relationDepthSharedCheckOrder.ts, 36, 27)) +>next : Symbol(J15.next, Decl(relationDepthSharedCheckOrder.ts, 37, 15)) +>J16 : Symbol(J16, Decl(relationDepthSharedCheckOrder.ts, 38, 27)) + +interface I16 { next: I17 } +>I16 : Symbol(I16, Decl(relationDepthSharedCheckOrder.ts, 37, 27)) +>next : Symbol(I16.next, Decl(relationDepthSharedCheckOrder.ts, 38, 15)) +>I17 : Symbol(I17, Decl(relationDepthSharedCheckOrder.ts, 39, 27)) + +interface J16 { next: J17 } +>J16 : Symbol(J16, Decl(relationDepthSharedCheckOrder.ts, 38, 27)) +>next : Symbol(J16.next, Decl(relationDepthSharedCheckOrder.ts, 39, 15)) +>J17 : Symbol(J17, Decl(relationDepthSharedCheckOrder.ts, 40, 27)) + +interface I17 { next: I18 } +>I17 : Symbol(I17, Decl(relationDepthSharedCheckOrder.ts, 39, 27)) +>next : Symbol(I17.next, Decl(relationDepthSharedCheckOrder.ts, 40, 15)) +>I18 : Symbol(I18, Decl(relationDepthSharedCheckOrder.ts, 41, 27)) + +interface J17 { next: J18 } +>J17 : Symbol(J17, Decl(relationDepthSharedCheckOrder.ts, 40, 27)) +>next : Symbol(J17.next, Decl(relationDepthSharedCheckOrder.ts, 41, 15)) +>J18 : Symbol(J18, Decl(relationDepthSharedCheckOrder.ts, 42, 27)) + +interface I18 { next: I19 } +>I18 : Symbol(I18, Decl(relationDepthSharedCheckOrder.ts, 41, 27)) +>next : Symbol(I18.next, Decl(relationDepthSharedCheckOrder.ts, 42, 15)) +>I19 : Symbol(I19, Decl(relationDepthSharedCheckOrder.ts, 43, 27)) + +interface J18 { next: J19 } +>J18 : Symbol(J18, Decl(relationDepthSharedCheckOrder.ts, 42, 27)) +>next : Symbol(J18.next, Decl(relationDepthSharedCheckOrder.ts, 43, 15)) +>J19 : Symbol(J19, Decl(relationDepthSharedCheckOrder.ts, 44, 27)) + +interface I19 { next: I20 } +>I19 : Symbol(I19, Decl(relationDepthSharedCheckOrder.ts, 43, 27)) +>next : Symbol(I19.next, Decl(relationDepthSharedCheckOrder.ts, 44, 15)) +>I20 : Symbol(I20, Decl(relationDepthSharedCheckOrder.ts, 45, 27)) + +interface J19 { next: J20 } +>J19 : Symbol(J19, Decl(relationDepthSharedCheckOrder.ts, 44, 27)) +>next : Symbol(J19.next, Decl(relationDepthSharedCheckOrder.ts, 45, 15)) +>J20 : Symbol(J20, Decl(relationDepthSharedCheckOrder.ts, 46, 27)) + +interface I20 { next: I21 } +>I20 : Symbol(I20, Decl(relationDepthSharedCheckOrder.ts, 45, 27)) +>next : Symbol(I20.next, Decl(relationDepthSharedCheckOrder.ts, 46, 15)) +>I21 : Symbol(I21, Decl(relationDepthSharedCheckOrder.ts, 47, 27)) + +interface J20 { next: J21 } +>J20 : Symbol(J20, Decl(relationDepthSharedCheckOrder.ts, 46, 27)) +>next : Symbol(J20.next, Decl(relationDepthSharedCheckOrder.ts, 47, 15)) +>J21 : Symbol(J21, Decl(relationDepthSharedCheckOrder.ts, 48, 27)) + +interface I21 { next: I22 } +>I21 : Symbol(I21, Decl(relationDepthSharedCheckOrder.ts, 47, 27)) +>next : Symbol(I21.next, Decl(relationDepthSharedCheckOrder.ts, 48, 15)) +>I22 : Symbol(I22, Decl(relationDepthSharedCheckOrder.ts, 49, 27)) + +interface J21 { next: J22 } +>J21 : Symbol(J21, Decl(relationDepthSharedCheckOrder.ts, 48, 27)) +>next : Symbol(J21.next, Decl(relationDepthSharedCheckOrder.ts, 49, 15)) +>J22 : Symbol(J22, Decl(relationDepthSharedCheckOrder.ts, 50, 27)) + +interface I22 { next: I23 } +>I22 : Symbol(I22, Decl(relationDepthSharedCheckOrder.ts, 49, 27)) +>next : Symbol(I22.next, Decl(relationDepthSharedCheckOrder.ts, 50, 15)) +>I23 : Symbol(I23, Decl(relationDepthSharedCheckOrder.ts, 51, 27)) + +interface J22 { next: J23 } +>J22 : Symbol(J22, Decl(relationDepthSharedCheckOrder.ts, 50, 27)) +>next : Symbol(J22.next, Decl(relationDepthSharedCheckOrder.ts, 51, 15)) +>J23 : Symbol(J23, Decl(relationDepthSharedCheckOrder.ts, 52, 27)) + +interface I23 { next: I24 } +>I23 : Symbol(I23, Decl(relationDepthSharedCheckOrder.ts, 51, 27)) +>next : Symbol(I23.next, Decl(relationDepthSharedCheckOrder.ts, 52, 15)) +>I24 : Symbol(I24, Decl(relationDepthSharedCheckOrder.ts, 53, 27)) + +interface J23 { next: J24 } +>J23 : Symbol(J23, Decl(relationDepthSharedCheckOrder.ts, 52, 27)) +>next : Symbol(J23.next, Decl(relationDepthSharedCheckOrder.ts, 53, 15)) +>J24 : Symbol(J24, Decl(relationDepthSharedCheckOrder.ts, 54, 27)) + +interface I24 { next: I25 } +>I24 : Symbol(I24, Decl(relationDepthSharedCheckOrder.ts, 53, 27)) +>next : Symbol(I24.next, Decl(relationDepthSharedCheckOrder.ts, 54, 15)) +>I25 : Symbol(I25, Decl(relationDepthSharedCheckOrder.ts, 55, 27)) + +interface J24 { next: J25 } +>J24 : Symbol(J24, Decl(relationDepthSharedCheckOrder.ts, 54, 27)) +>next : Symbol(J24.next, Decl(relationDepthSharedCheckOrder.ts, 55, 15)) +>J25 : Symbol(J25, Decl(relationDepthSharedCheckOrder.ts, 56, 27)) + +interface I25 { next: I26 } +>I25 : Symbol(I25, Decl(relationDepthSharedCheckOrder.ts, 55, 27)) +>next : Symbol(I25.next, Decl(relationDepthSharedCheckOrder.ts, 56, 15)) +>I26 : Symbol(I26, Decl(relationDepthSharedCheckOrder.ts, 57, 27)) + +interface J25 { next: J26 } +>J25 : Symbol(J25, Decl(relationDepthSharedCheckOrder.ts, 56, 27)) +>next : Symbol(J25.next, Decl(relationDepthSharedCheckOrder.ts, 57, 15)) +>J26 : Symbol(J26, Decl(relationDepthSharedCheckOrder.ts, 58, 27)) + +interface I26 { next: I27 } +>I26 : Symbol(I26, Decl(relationDepthSharedCheckOrder.ts, 57, 27)) +>next : Symbol(I26.next, Decl(relationDepthSharedCheckOrder.ts, 58, 15)) +>I27 : Symbol(I27, Decl(relationDepthSharedCheckOrder.ts, 59, 27)) + +interface J26 { next: J27 } +>J26 : Symbol(J26, Decl(relationDepthSharedCheckOrder.ts, 58, 27)) +>next : Symbol(J26.next, Decl(relationDepthSharedCheckOrder.ts, 59, 15)) +>J27 : Symbol(J27, Decl(relationDepthSharedCheckOrder.ts, 60, 27)) + +interface I27 { next: I28 } +>I27 : Symbol(I27, Decl(relationDepthSharedCheckOrder.ts, 59, 27)) +>next : Symbol(I27.next, Decl(relationDepthSharedCheckOrder.ts, 60, 15)) +>I28 : Symbol(I28, Decl(relationDepthSharedCheckOrder.ts, 61, 27)) + +interface J27 { next: J28 } +>J27 : Symbol(J27, Decl(relationDepthSharedCheckOrder.ts, 60, 27)) +>next : Symbol(J27.next, Decl(relationDepthSharedCheckOrder.ts, 61, 15)) +>J28 : Symbol(J28, Decl(relationDepthSharedCheckOrder.ts, 62, 27)) + +interface I28 { next: I29 } +>I28 : Symbol(I28, Decl(relationDepthSharedCheckOrder.ts, 61, 27)) +>next : Symbol(I28.next, Decl(relationDepthSharedCheckOrder.ts, 62, 15)) +>I29 : Symbol(I29, Decl(relationDepthSharedCheckOrder.ts, 63, 27)) + +interface J28 { next: J29 } +>J28 : Symbol(J28, Decl(relationDepthSharedCheckOrder.ts, 62, 27)) +>next : Symbol(J28.next, Decl(relationDepthSharedCheckOrder.ts, 63, 15)) +>J29 : Symbol(J29, Decl(relationDepthSharedCheckOrder.ts, 64, 27)) + +interface I29 { next: I30 } +>I29 : Symbol(I29, Decl(relationDepthSharedCheckOrder.ts, 63, 27)) +>next : Symbol(I29.next, Decl(relationDepthSharedCheckOrder.ts, 64, 15)) +>I30 : Symbol(I30, Decl(relationDepthSharedCheckOrder.ts, 65, 27)) + +interface J29 { next: J30 } +>J29 : Symbol(J29, Decl(relationDepthSharedCheckOrder.ts, 64, 27)) +>next : Symbol(J29.next, Decl(relationDepthSharedCheckOrder.ts, 65, 15)) +>J30 : Symbol(J30, Decl(relationDepthSharedCheckOrder.ts, 66, 27)) + +interface I30 { next: I31 } +>I30 : Symbol(I30, Decl(relationDepthSharedCheckOrder.ts, 65, 27)) +>next : Symbol(I30.next, Decl(relationDepthSharedCheckOrder.ts, 66, 15)) +>I31 : Symbol(I31, Decl(relationDepthSharedCheckOrder.ts, 67, 27)) + +interface J30 { next: J31 } +>J30 : Symbol(J30, Decl(relationDepthSharedCheckOrder.ts, 66, 27)) +>next : Symbol(J30.next, Decl(relationDepthSharedCheckOrder.ts, 67, 15)) +>J31 : Symbol(J31, Decl(relationDepthSharedCheckOrder.ts, 68, 27)) + +interface I31 { next: I32 } +>I31 : Symbol(I31, Decl(relationDepthSharedCheckOrder.ts, 67, 27)) +>next : Symbol(I31.next, Decl(relationDepthSharedCheckOrder.ts, 68, 15)) +>I32 : Symbol(I32, Decl(relationDepthSharedCheckOrder.ts, 69, 27)) + +interface J31 { next: J32 } +>J31 : Symbol(J31, Decl(relationDepthSharedCheckOrder.ts, 68, 27)) +>next : Symbol(J31.next, Decl(relationDepthSharedCheckOrder.ts, 69, 15)) +>J32 : Symbol(J32, Decl(relationDepthSharedCheckOrder.ts, 70, 27)) + +interface I32 { next: I33 } +>I32 : Symbol(I32, Decl(relationDepthSharedCheckOrder.ts, 69, 27)) +>next : Symbol(I32.next, Decl(relationDepthSharedCheckOrder.ts, 70, 15)) +>I33 : Symbol(I33, Decl(relationDepthSharedCheckOrder.ts, 71, 27)) + +interface J32 { next: J33 } +>J32 : Symbol(J32, Decl(relationDepthSharedCheckOrder.ts, 70, 27)) +>next : Symbol(J32.next, Decl(relationDepthSharedCheckOrder.ts, 71, 15)) +>J33 : Symbol(J33, Decl(relationDepthSharedCheckOrder.ts, 72, 27)) + +interface I33 { next: I34 } +>I33 : Symbol(I33, Decl(relationDepthSharedCheckOrder.ts, 71, 27)) +>next : Symbol(I33.next, Decl(relationDepthSharedCheckOrder.ts, 72, 15)) +>I34 : Symbol(I34, Decl(relationDepthSharedCheckOrder.ts, 73, 27)) + +interface J33 { next: J34 } +>J33 : Symbol(J33, Decl(relationDepthSharedCheckOrder.ts, 72, 27)) +>next : Symbol(J33.next, Decl(relationDepthSharedCheckOrder.ts, 73, 15)) +>J34 : Symbol(J34, Decl(relationDepthSharedCheckOrder.ts, 74, 27)) + +interface I34 { next: I35 } +>I34 : Symbol(I34, Decl(relationDepthSharedCheckOrder.ts, 73, 27)) +>next : Symbol(I34.next, Decl(relationDepthSharedCheckOrder.ts, 74, 15)) +>I35 : Symbol(I35, Decl(relationDepthSharedCheckOrder.ts, 75, 27)) + +interface J34 { next: J35 } +>J34 : Symbol(J34, Decl(relationDepthSharedCheckOrder.ts, 74, 27)) +>next : Symbol(J34.next, Decl(relationDepthSharedCheckOrder.ts, 75, 15)) +>J35 : Symbol(J35, Decl(relationDepthSharedCheckOrder.ts, 76, 27)) + +interface I35 { next: I36 } +>I35 : Symbol(I35, Decl(relationDepthSharedCheckOrder.ts, 75, 27)) +>next : Symbol(I35.next, Decl(relationDepthSharedCheckOrder.ts, 76, 15)) +>I36 : Symbol(I36, Decl(relationDepthSharedCheckOrder.ts, 77, 27)) + +interface J35 { next: J36 } +>J35 : Symbol(J35, Decl(relationDepthSharedCheckOrder.ts, 76, 27)) +>next : Symbol(J35.next, Decl(relationDepthSharedCheckOrder.ts, 77, 15)) +>J36 : Symbol(J36, Decl(relationDepthSharedCheckOrder.ts, 78, 27)) + +interface I36 { next: I37 } +>I36 : Symbol(I36, Decl(relationDepthSharedCheckOrder.ts, 77, 27)) +>next : Symbol(I36.next, Decl(relationDepthSharedCheckOrder.ts, 78, 15)) +>I37 : Symbol(I37, Decl(relationDepthSharedCheckOrder.ts, 79, 27)) + +interface J36 { next: J37 } +>J36 : Symbol(J36, Decl(relationDepthSharedCheckOrder.ts, 78, 27)) +>next : Symbol(J36.next, Decl(relationDepthSharedCheckOrder.ts, 79, 15)) +>J37 : Symbol(J37, Decl(relationDepthSharedCheckOrder.ts, 80, 27)) + +interface I37 { next: I38 } +>I37 : Symbol(I37, Decl(relationDepthSharedCheckOrder.ts, 79, 27)) +>next : Symbol(I37.next, Decl(relationDepthSharedCheckOrder.ts, 80, 15)) +>I38 : Symbol(I38, Decl(relationDepthSharedCheckOrder.ts, 81, 27)) + +interface J37 { next: J38 } +>J37 : Symbol(J37, Decl(relationDepthSharedCheckOrder.ts, 80, 27)) +>next : Symbol(J37.next, Decl(relationDepthSharedCheckOrder.ts, 81, 15)) +>J38 : Symbol(J38, Decl(relationDepthSharedCheckOrder.ts, 82, 27)) + +interface I38 { next: I39 } +>I38 : Symbol(I38, Decl(relationDepthSharedCheckOrder.ts, 81, 27)) +>next : Symbol(I38.next, Decl(relationDepthSharedCheckOrder.ts, 82, 15)) +>I39 : Symbol(I39, Decl(relationDepthSharedCheckOrder.ts, 83, 27)) + +interface J38 { next: J39 } +>J38 : Symbol(J38, Decl(relationDepthSharedCheckOrder.ts, 82, 27)) +>next : Symbol(J38.next, Decl(relationDepthSharedCheckOrder.ts, 83, 15)) +>J39 : Symbol(J39, Decl(relationDepthSharedCheckOrder.ts, 84, 27)) + +interface I39 { next: I40 } +>I39 : Symbol(I39, Decl(relationDepthSharedCheckOrder.ts, 83, 27)) +>next : Symbol(I39.next, Decl(relationDepthSharedCheckOrder.ts, 84, 15)) +>I40 : Symbol(I40, Decl(relationDepthSharedCheckOrder.ts, 85, 27)) + +interface J39 { next: J40 } +>J39 : Symbol(J39, Decl(relationDepthSharedCheckOrder.ts, 84, 27)) +>next : Symbol(J39.next, Decl(relationDepthSharedCheckOrder.ts, 85, 15)) +>J40 : Symbol(J40, Decl(relationDepthSharedCheckOrder.ts, 86, 27)) + +interface I40 { next: I41 } +>I40 : Symbol(I40, Decl(relationDepthSharedCheckOrder.ts, 85, 27)) +>next : Symbol(I40.next, Decl(relationDepthSharedCheckOrder.ts, 86, 15)) +>I41 : Symbol(I41, Decl(relationDepthSharedCheckOrder.ts, 87, 27)) + +interface J40 { next: J41 } +>J40 : Symbol(J40, Decl(relationDepthSharedCheckOrder.ts, 86, 27)) +>next : Symbol(J40.next, Decl(relationDepthSharedCheckOrder.ts, 87, 15)) +>J41 : Symbol(J41, Decl(relationDepthSharedCheckOrder.ts, 88, 27)) + +interface I41 { next: I42 } +>I41 : Symbol(I41, Decl(relationDepthSharedCheckOrder.ts, 87, 27)) +>next : Symbol(I41.next, Decl(relationDepthSharedCheckOrder.ts, 88, 15)) +>I42 : Symbol(I42, Decl(relationDepthSharedCheckOrder.ts, 89, 27)) + +interface J41 { next: J42 } +>J41 : Symbol(J41, Decl(relationDepthSharedCheckOrder.ts, 88, 27)) +>next : Symbol(J41.next, Decl(relationDepthSharedCheckOrder.ts, 89, 15)) +>J42 : Symbol(J42, Decl(relationDepthSharedCheckOrder.ts, 90, 27)) + +interface I42 { next: I43 } +>I42 : Symbol(I42, Decl(relationDepthSharedCheckOrder.ts, 89, 27)) +>next : Symbol(I42.next, Decl(relationDepthSharedCheckOrder.ts, 90, 15)) +>I43 : Symbol(I43, Decl(relationDepthSharedCheckOrder.ts, 91, 27)) + +interface J42 { next: J43 } +>J42 : Symbol(J42, Decl(relationDepthSharedCheckOrder.ts, 90, 27)) +>next : Symbol(J42.next, Decl(relationDepthSharedCheckOrder.ts, 91, 15)) +>J43 : Symbol(J43, Decl(relationDepthSharedCheckOrder.ts, 92, 27)) + +interface I43 { next: I44 } +>I43 : Symbol(I43, Decl(relationDepthSharedCheckOrder.ts, 91, 27)) +>next : Symbol(I43.next, Decl(relationDepthSharedCheckOrder.ts, 92, 15)) +>I44 : Symbol(I44, Decl(relationDepthSharedCheckOrder.ts, 93, 27)) + +interface J43 { next: J44 } +>J43 : Symbol(J43, Decl(relationDepthSharedCheckOrder.ts, 92, 27)) +>next : Symbol(J43.next, Decl(relationDepthSharedCheckOrder.ts, 93, 15)) +>J44 : Symbol(J44, Decl(relationDepthSharedCheckOrder.ts, 94, 27)) + +interface I44 { next: I45 } +>I44 : Symbol(I44, Decl(relationDepthSharedCheckOrder.ts, 93, 27)) +>next : Symbol(I44.next, Decl(relationDepthSharedCheckOrder.ts, 94, 15)) +>I45 : Symbol(I45, Decl(relationDepthSharedCheckOrder.ts, 95, 27)) + +interface J44 { next: J45 } +>J44 : Symbol(J44, Decl(relationDepthSharedCheckOrder.ts, 94, 27)) +>next : Symbol(J44.next, Decl(relationDepthSharedCheckOrder.ts, 95, 15)) +>J45 : Symbol(J45, Decl(relationDepthSharedCheckOrder.ts, 96, 27)) + +interface I45 { next: I46 } +>I45 : Symbol(I45, Decl(relationDepthSharedCheckOrder.ts, 95, 27)) +>next : Symbol(I45.next, Decl(relationDepthSharedCheckOrder.ts, 96, 15)) +>I46 : Symbol(I46, Decl(relationDepthSharedCheckOrder.ts, 97, 27)) + +interface J45 { next: J46 } +>J45 : Symbol(J45, Decl(relationDepthSharedCheckOrder.ts, 96, 27)) +>next : Symbol(J45.next, Decl(relationDepthSharedCheckOrder.ts, 97, 15)) +>J46 : Symbol(J46, Decl(relationDepthSharedCheckOrder.ts, 98, 27)) + +interface I46 { next: I47 } +>I46 : Symbol(I46, Decl(relationDepthSharedCheckOrder.ts, 97, 27)) +>next : Symbol(I46.next, Decl(relationDepthSharedCheckOrder.ts, 98, 15)) +>I47 : Symbol(I47, Decl(relationDepthSharedCheckOrder.ts, 99, 27)) + +interface J46 { next: J47 } +>J46 : Symbol(J46, Decl(relationDepthSharedCheckOrder.ts, 98, 27)) +>next : Symbol(J46.next, Decl(relationDepthSharedCheckOrder.ts, 99, 15)) +>J47 : Symbol(J47, Decl(relationDepthSharedCheckOrder.ts, 100, 27)) + +interface I47 { next: I48 } +>I47 : Symbol(I47, Decl(relationDepthSharedCheckOrder.ts, 99, 27)) +>next : Symbol(I47.next, Decl(relationDepthSharedCheckOrder.ts, 100, 15)) +>I48 : Symbol(I48, Decl(relationDepthSharedCheckOrder.ts, 101, 27)) + +interface J47 { next: J48 } +>J47 : Symbol(J47, Decl(relationDepthSharedCheckOrder.ts, 100, 27)) +>next : Symbol(J47.next, Decl(relationDepthSharedCheckOrder.ts, 101, 15)) +>J48 : Symbol(J48, Decl(relationDepthSharedCheckOrder.ts, 102, 27)) + +interface I48 { next: I49 } +>I48 : Symbol(I48, Decl(relationDepthSharedCheckOrder.ts, 101, 27)) +>next : Symbol(I48.next, Decl(relationDepthSharedCheckOrder.ts, 102, 15)) +>I49 : Symbol(I49, Decl(relationDepthSharedCheckOrder.ts, 103, 27)) + +interface J48 { next: J49 } +>J48 : Symbol(J48, Decl(relationDepthSharedCheckOrder.ts, 102, 27)) +>next : Symbol(J48.next, Decl(relationDepthSharedCheckOrder.ts, 103, 15)) +>J49 : Symbol(J49, Decl(relationDepthSharedCheckOrder.ts, 104, 27)) + +interface I49 { next: I50 } +>I49 : Symbol(I49, Decl(relationDepthSharedCheckOrder.ts, 103, 27)) +>next : Symbol(I49.next, Decl(relationDepthSharedCheckOrder.ts, 104, 15)) +>I50 : Symbol(I50, Decl(relationDepthSharedCheckOrder.ts, 105, 27)) + +interface J49 { next: J50 } +>J49 : Symbol(J49, Decl(relationDepthSharedCheckOrder.ts, 104, 27)) +>next : Symbol(J49.next, Decl(relationDepthSharedCheckOrder.ts, 105, 15)) +>J50 : Symbol(J50, Decl(relationDepthSharedCheckOrder.ts, 106, 27)) + +interface I50 { next: I51 } +>I50 : Symbol(I50, Decl(relationDepthSharedCheckOrder.ts, 105, 27)) +>next : Symbol(I50.next, Decl(relationDepthSharedCheckOrder.ts, 106, 15)) +>I51 : Symbol(I51, Decl(relationDepthSharedCheckOrder.ts, 107, 27)) + +interface J50 { next: J51 } +>J50 : Symbol(J50, Decl(relationDepthSharedCheckOrder.ts, 106, 27)) +>next : Symbol(J50.next, Decl(relationDepthSharedCheckOrder.ts, 107, 15)) +>J51 : Symbol(J51, Decl(relationDepthSharedCheckOrder.ts, 108, 27)) + +interface I51 { next: I52 } +>I51 : Symbol(I51, Decl(relationDepthSharedCheckOrder.ts, 107, 27)) +>next : Symbol(I51.next, Decl(relationDepthSharedCheckOrder.ts, 108, 15)) +>I52 : Symbol(I52, Decl(relationDepthSharedCheckOrder.ts, 109, 27)) + +interface J51 { next: J52 } +>J51 : Symbol(J51, Decl(relationDepthSharedCheckOrder.ts, 108, 27)) +>next : Symbol(J51.next, Decl(relationDepthSharedCheckOrder.ts, 109, 15)) +>J52 : Symbol(J52, Decl(relationDepthSharedCheckOrder.ts, 110, 27)) + +interface I52 { next: I53 } +>I52 : Symbol(I52, Decl(relationDepthSharedCheckOrder.ts, 109, 27)) +>next : Symbol(I52.next, Decl(relationDepthSharedCheckOrder.ts, 110, 15)) +>I53 : Symbol(I53, Decl(relationDepthSharedCheckOrder.ts, 111, 27)) + +interface J52 { next: J53 } +>J52 : Symbol(J52, Decl(relationDepthSharedCheckOrder.ts, 110, 27)) +>next : Symbol(J52.next, Decl(relationDepthSharedCheckOrder.ts, 111, 15)) +>J53 : Symbol(J53, Decl(relationDepthSharedCheckOrder.ts, 112, 27)) + +interface I53 { next: I54 } +>I53 : Symbol(I53, Decl(relationDepthSharedCheckOrder.ts, 111, 27)) +>next : Symbol(I53.next, Decl(relationDepthSharedCheckOrder.ts, 112, 15)) +>I54 : Symbol(I54, Decl(relationDepthSharedCheckOrder.ts, 113, 27)) + +interface J53 { next: J54 } +>J53 : Symbol(J53, Decl(relationDepthSharedCheckOrder.ts, 112, 27)) +>next : Symbol(J53.next, Decl(relationDepthSharedCheckOrder.ts, 113, 15)) +>J54 : Symbol(J54, Decl(relationDepthSharedCheckOrder.ts, 114, 27)) + +interface I54 { next: I55 } +>I54 : Symbol(I54, Decl(relationDepthSharedCheckOrder.ts, 113, 27)) +>next : Symbol(I54.next, Decl(relationDepthSharedCheckOrder.ts, 114, 15)) +>I55 : Symbol(I55, Decl(relationDepthSharedCheckOrder.ts, 115, 27)) + +interface J54 { next: J55 } +>J54 : Symbol(J54, Decl(relationDepthSharedCheckOrder.ts, 114, 27)) +>next : Symbol(J54.next, Decl(relationDepthSharedCheckOrder.ts, 115, 15)) +>J55 : Symbol(J55, Decl(relationDepthSharedCheckOrder.ts, 116, 27)) + +interface I55 { next: I56 } +>I55 : Symbol(I55, Decl(relationDepthSharedCheckOrder.ts, 115, 27)) +>next : Symbol(I55.next, Decl(relationDepthSharedCheckOrder.ts, 116, 15)) +>I56 : Symbol(I56, Decl(relationDepthSharedCheckOrder.ts, 117, 27)) + +interface J55 { next: J56 } +>J55 : Symbol(J55, Decl(relationDepthSharedCheckOrder.ts, 116, 27)) +>next : Symbol(J55.next, Decl(relationDepthSharedCheckOrder.ts, 117, 15)) +>J56 : Symbol(J56, Decl(relationDepthSharedCheckOrder.ts, 118, 27)) + +interface I56 { next: I57 } +>I56 : Symbol(I56, Decl(relationDepthSharedCheckOrder.ts, 117, 27)) +>next : Symbol(I56.next, Decl(relationDepthSharedCheckOrder.ts, 118, 15)) +>I57 : Symbol(I57, Decl(relationDepthSharedCheckOrder.ts, 119, 27)) + +interface J56 { next: J57 } +>J56 : Symbol(J56, Decl(relationDepthSharedCheckOrder.ts, 118, 27)) +>next : Symbol(J56.next, Decl(relationDepthSharedCheckOrder.ts, 119, 15)) +>J57 : Symbol(J57, Decl(relationDepthSharedCheckOrder.ts, 120, 27)) + +interface I57 { next: I58 } +>I57 : Symbol(I57, Decl(relationDepthSharedCheckOrder.ts, 119, 27)) +>next : Symbol(I57.next, Decl(relationDepthSharedCheckOrder.ts, 120, 15)) +>I58 : Symbol(I58, Decl(relationDepthSharedCheckOrder.ts, 121, 27)) + +interface J57 { next: J58 } +>J57 : Symbol(J57, Decl(relationDepthSharedCheckOrder.ts, 120, 27)) +>next : Symbol(J57.next, Decl(relationDepthSharedCheckOrder.ts, 121, 15)) +>J58 : Symbol(J58, Decl(relationDepthSharedCheckOrder.ts, 122, 27)) + +interface I58 { next: I59 } +>I58 : Symbol(I58, Decl(relationDepthSharedCheckOrder.ts, 121, 27)) +>next : Symbol(I58.next, Decl(relationDepthSharedCheckOrder.ts, 122, 15)) +>I59 : Symbol(I59, Decl(relationDepthSharedCheckOrder.ts, 123, 27)) + +interface J58 { next: J59 } +>J58 : Symbol(J58, Decl(relationDepthSharedCheckOrder.ts, 122, 27)) +>next : Symbol(J58.next, Decl(relationDepthSharedCheckOrder.ts, 123, 15)) +>J59 : Symbol(J59, Decl(relationDepthSharedCheckOrder.ts, 124, 27)) + +interface I59 { next: I60 } +>I59 : Symbol(I59, Decl(relationDepthSharedCheckOrder.ts, 123, 27)) +>next : Symbol(I59.next, Decl(relationDepthSharedCheckOrder.ts, 124, 15)) +>I60 : Symbol(I60, Decl(relationDepthSharedCheckOrder.ts, 125, 27)) + +interface J59 { next: J60 } +>J59 : Symbol(J59, Decl(relationDepthSharedCheckOrder.ts, 124, 27)) +>next : Symbol(J59.next, Decl(relationDepthSharedCheckOrder.ts, 125, 15)) +>J60 : Symbol(J60, Decl(relationDepthSharedCheckOrder.ts, 126, 27)) + +interface I60 { next: I61 } +>I60 : Symbol(I60, Decl(relationDepthSharedCheckOrder.ts, 125, 27)) +>next : Symbol(I60.next, Decl(relationDepthSharedCheckOrder.ts, 126, 15)) +>I61 : Symbol(I61, Decl(relationDepthSharedCheckOrder.ts, 127, 27)) + +interface J60 { next: J61 } +>J60 : Symbol(J60, Decl(relationDepthSharedCheckOrder.ts, 126, 27)) +>next : Symbol(J60.next, Decl(relationDepthSharedCheckOrder.ts, 127, 15)) +>J61 : Symbol(J61, Decl(relationDepthSharedCheckOrder.ts, 128, 27)) + +interface I61 { next: I62 } +>I61 : Symbol(I61, Decl(relationDepthSharedCheckOrder.ts, 127, 27)) +>next : Symbol(I61.next, Decl(relationDepthSharedCheckOrder.ts, 128, 15)) +>I62 : Symbol(I62, Decl(relationDepthSharedCheckOrder.ts, 129, 27)) + +interface J61 { next: J62 } +>J61 : Symbol(J61, Decl(relationDepthSharedCheckOrder.ts, 128, 27)) +>next : Symbol(J61.next, Decl(relationDepthSharedCheckOrder.ts, 129, 15)) +>J62 : Symbol(J62, Decl(relationDepthSharedCheckOrder.ts, 130, 27)) + +interface I62 { next: I63 } +>I62 : Symbol(I62, Decl(relationDepthSharedCheckOrder.ts, 129, 27)) +>next : Symbol(I62.next, Decl(relationDepthSharedCheckOrder.ts, 130, 15)) +>I63 : Symbol(I63, Decl(relationDepthSharedCheckOrder.ts, 131, 27)) + +interface J62 { next: J63 } +>J62 : Symbol(J62, Decl(relationDepthSharedCheckOrder.ts, 130, 27)) +>next : Symbol(J62.next, Decl(relationDepthSharedCheckOrder.ts, 131, 15)) +>J63 : Symbol(J63, Decl(relationDepthSharedCheckOrder.ts, 132, 27)) + +interface I63 { next: I64 } +>I63 : Symbol(I63, Decl(relationDepthSharedCheckOrder.ts, 131, 27)) +>next : Symbol(I63.next, Decl(relationDepthSharedCheckOrder.ts, 132, 15)) +>I64 : Symbol(I64, Decl(relationDepthSharedCheckOrder.ts, 133, 27)) + +interface J63 { next: J64 } +>J63 : Symbol(J63, Decl(relationDepthSharedCheckOrder.ts, 132, 27)) +>next : Symbol(J63.next, Decl(relationDepthSharedCheckOrder.ts, 133, 15)) +>J64 : Symbol(J64, Decl(relationDepthSharedCheckOrder.ts, 134, 27)) + +interface I64 { next: I65 } +>I64 : Symbol(I64, Decl(relationDepthSharedCheckOrder.ts, 133, 27)) +>next : Symbol(I64.next, Decl(relationDepthSharedCheckOrder.ts, 134, 15)) +>I65 : Symbol(I65, Decl(relationDepthSharedCheckOrder.ts, 135, 27)) + +interface J64 { next: J65 } +>J64 : Symbol(J64, Decl(relationDepthSharedCheckOrder.ts, 134, 27)) +>next : Symbol(J64.next, Decl(relationDepthSharedCheckOrder.ts, 135, 15)) +>J65 : Symbol(J65, Decl(relationDepthSharedCheckOrder.ts, 136, 27)) + +interface I65 { next: I66 } +>I65 : Symbol(I65, Decl(relationDepthSharedCheckOrder.ts, 135, 27)) +>next : Symbol(I65.next, Decl(relationDepthSharedCheckOrder.ts, 136, 15)) +>I66 : Symbol(I66, Decl(relationDepthSharedCheckOrder.ts, 137, 27)) + +interface J65 { next: J66 } +>J65 : Symbol(J65, Decl(relationDepthSharedCheckOrder.ts, 136, 27)) +>next : Symbol(J65.next, Decl(relationDepthSharedCheckOrder.ts, 137, 15)) +>J66 : Symbol(J66, Decl(relationDepthSharedCheckOrder.ts, 138, 27)) + +interface I66 { next: I67 } +>I66 : Symbol(I66, Decl(relationDepthSharedCheckOrder.ts, 137, 27)) +>next : Symbol(I66.next, Decl(relationDepthSharedCheckOrder.ts, 138, 15)) +>I67 : Symbol(I67, Decl(relationDepthSharedCheckOrder.ts, 139, 27)) + +interface J66 { next: J67 } +>J66 : Symbol(J66, Decl(relationDepthSharedCheckOrder.ts, 138, 27)) +>next : Symbol(J66.next, Decl(relationDepthSharedCheckOrder.ts, 139, 15)) +>J67 : Symbol(J67, Decl(relationDepthSharedCheckOrder.ts, 140, 27)) + +interface I67 { next: I68 } +>I67 : Symbol(I67, Decl(relationDepthSharedCheckOrder.ts, 139, 27)) +>next : Symbol(I67.next, Decl(relationDepthSharedCheckOrder.ts, 140, 15)) +>I68 : Symbol(I68, Decl(relationDepthSharedCheckOrder.ts, 141, 27)) + +interface J67 { next: J68 } +>J67 : Symbol(J67, Decl(relationDepthSharedCheckOrder.ts, 140, 27)) +>next : Symbol(J67.next, Decl(relationDepthSharedCheckOrder.ts, 141, 15)) +>J68 : Symbol(J68, Decl(relationDepthSharedCheckOrder.ts, 142, 27)) + +interface I68 { next: I69 } +>I68 : Symbol(I68, Decl(relationDepthSharedCheckOrder.ts, 141, 27)) +>next : Symbol(I68.next, Decl(relationDepthSharedCheckOrder.ts, 142, 15)) +>I69 : Symbol(I69, Decl(relationDepthSharedCheckOrder.ts, 143, 27)) + +interface J68 { next: J69 } +>J68 : Symbol(J68, Decl(relationDepthSharedCheckOrder.ts, 142, 27)) +>next : Symbol(J68.next, Decl(relationDepthSharedCheckOrder.ts, 143, 15)) +>J69 : Symbol(J69, Decl(relationDepthSharedCheckOrder.ts, 144, 27)) + +interface I69 { next: I70 } +>I69 : Symbol(I69, Decl(relationDepthSharedCheckOrder.ts, 143, 27)) +>next : Symbol(I69.next, Decl(relationDepthSharedCheckOrder.ts, 144, 15)) +>I70 : Symbol(I70, Decl(relationDepthSharedCheckOrder.ts, 145, 27)) + +interface J69 { next: J70 } +>J69 : Symbol(J69, Decl(relationDepthSharedCheckOrder.ts, 144, 27)) +>next : Symbol(J69.next, Decl(relationDepthSharedCheckOrder.ts, 145, 15)) +>J70 : Symbol(J70, Decl(relationDepthSharedCheckOrder.ts, 146, 27)) + +interface I70 { next: I71 } +>I70 : Symbol(I70, Decl(relationDepthSharedCheckOrder.ts, 145, 27)) +>next : Symbol(I70.next, Decl(relationDepthSharedCheckOrder.ts, 146, 15)) +>I71 : Symbol(I71, Decl(relationDepthSharedCheckOrder.ts, 147, 27)) + +interface J70 { next: J71 } +>J70 : Symbol(J70, Decl(relationDepthSharedCheckOrder.ts, 146, 27)) +>next : Symbol(J70.next, Decl(relationDepthSharedCheckOrder.ts, 147, 15)) +>J71 : Symbol(J71, Decl(relationDepthSharedCheckOrder.ts, 148, 27)) + +interface I71 { next: I72 } +>I71 : Symbol(I71, Decl(relationDepthSharedCheckOrder.ts, 147, 27)) +>next : Symbol(I71.next, Decl(relationDepthSharedCheckOrder.ts, 148, 15)) +>I72 : Symbol(I72, Decl(relationDepthSharedCheckOrder.ts, 149, 27)) + +interface J71 { next: J72 } +>J71 : Symbol(J71, Decl(relationDepthSharedCheckOrder.ts, 148, 27)) +>next : Symbol(J71.next, Decl(relationDepthSharedCheckOrder.ts, 149, 15)) +>J72 : Symbol(J72, Decl(relationDepthSharedCheckOrder.ts, 150, 27)) + +interface I72 { next: I73 } +>I72 : Symbol(I72, Decl(relationDepthSharedCheckOrder.ts, 149, 27)) +>next : Symbol(I72.next, Decl(relationDepthSharedCheckOrder.ts, 150, 15)) +>I73 : Symbol(I73, Decl(relationDepthSharedCheckOrder.ts, 151, 27)) + +interface J72 { next: J73 } +>J72 : Symbol(J72, Decl(relationDepthSharedCheckOrder.ts, 150, 27)) +>next : Symbol(J72.next, Decl(relationDepthSharedCheckOrder.ts, 151, 15)) +>J73 : Symbol(J73, Decl(relationDepthSharedCheckOrder.ts, 152, 27)) + +interface I73 { next: I74 } +>I73 : Symbol(I73, Decl(relationDepthSharedCheckOrder.ts, 151, 27)) +>next : Symbol(I73.next, Decl(relationDepthSharedCheckOrder.ts, 152, 15)) +>I74 : Symbol(I74, Decl(relationDepthSharedCheckOrder.ts, 153, 27)) + +interface J73 { next: J74 } +>J73 : Symbol(J73, Decl(relationDepthSharedCheckOrder.ts, 152, 27)) +>next : Symbol(J73.next, Decl(relationDepthSharedCheckOrder.ts, 153, 15)) +>J74 : Symbol(J74, Decl(relationDepthSharedCheckOrder.ts, 154, 27)) + +interface I74 { next: I75 } +>I74 : Symbol(I74, Decl(relationDepthSharedCheckOrder.ts, 153, 27)) +>next : Symbol(I74.next, Decl(relationDepthSharedCheckOrder.ts, 154, 15)) +>I75 : Symbol(I75, Decl(relationDepthSharedCheckOrder.ts, 155, 27)) + +interface J74 { next: J75 } +>J74 : Symbol(J74, Decl(relationDepthSharedCheckOrder.ts, 154, 27)) +>next : Symbol(J74.next, Decl(relationDepthSharedCheckOrder.ts, 155, 15)) +>J75 : Symbol(J75, Decl(relationDepthSharedCheckOrder.ts, 156, 27)) + +interface I75 { next: I76 } +>I75 : Symbol(I75, Decl(relationDepthSharedCheckOrder.ts, 155, 27)) +>next : Symbol(I75.next, Decl(relationDepthSharedCheckOrder.ts, 156, 15)) +>I76 : Symbol(I76, Decl(relationDepthSharedCheckOrder.ts, 157, 27)) + +interface J75 { next: J76 } +>J75 : Symbol(J75, Decl(relationDepthSharedCheckOrder.ts, 156, 27)) +>next : Symbol(J75.next, Decl(relationDepthSharedCheckOrder.ts, 157, 15)) +>J76 : Symbol(J76, Decl(relationDepthSharedCheckOrder.ts, 158, 27)) + +interface I76 { next: I77 } +>I76 : Symbol(I76, Decl(relationDepthSharedCheckOrder.ts, 157, 27)) +>next : Symbol(I76.next, Decl(relationDepthSharedCheckOrder.ts, 158, 15)) +>I77 : Symbol(I77, Decl(relationDepthSharedCheckOrder.ts, 159, 27)) + +interface J76 { next: J77 } +>J76 : Symbol(J76, Decl(relationDepthSharedCheckOrder.ts, 158, 27)) +>next : Symbol(J76.next, Decl(relationDepthSharedCheckOrder.ts, 159, 15)) +>J77 : Symbol(J77, Decl(relationDepthSharedCheckOrder.ts, 160, 27)) + +interface I77 { next: I78 } +>I77 : Symbol(I77, Decl(relationDepthSharedCheckOrder.ts, 159, 27)) +>next : Symbol(I77.next, Decl(relationDepthSharedCheckOrder.ts, 160, 15)) +>I78 : Symbol(I78, Decl(relationDepthSharedCheckOrder.ts, 161, 27)) + +interface J77 { next: J78 } +>J77 : Symbol(J77, Decl(relationDepthSharedCheckOrder.ts, 160, 27)) +>next : Symbol(J77.next, Decl(relationDepthSharedCheckOrder.ts, 161, 15)) +>J78 : Symbol(J78, Decl(relationDepthSharedCheckOrder.ts, 162, 27)) + +interface I78 { next: I79 } +>I78 : Symbol(I78, Decl(relationDepthSharedCheckOrder.ts, 161, 27)) +>next : Symbol(I78.next, Decl(relationDepthSharedCheckOrder.ts, 162, 15)) +>I79 : Symbol(I79, Decl(relationDepthSharedCheckOrder.ts, 163, 27)) + +interface J78 { next: J79 } +>J78 : Symbol(J78, Decl(relationDepthSharedCheckOrder.ts, 162, 27)) +>next : Symbol(J78.next, Decl(relationDepthSharedCheckOrder.ts, 163, 15)) +>J79 : Symbol(J79, Decl(relationDepthSharedCheckOrder.ts, 164, 27)) + +interface I79 { next: I80 } +>I79 : Symbol(I79, Decl(relationDepthSharedCheckOrder.ts, 163, 27)) +>next : Symbol(I79.next, Decl(relationDepthSharedCheckOrder.ts, 164, 15)) +>I80 : Symbol(I80, Decl(relationDepthSharedCheckOrder.ts, 165, 27)) + +interface J79 { next: J80 } +>J79 : Symbol(J79, Decl(relationDepthSharedCheckOrder.ts, 164, 27)) +>next : Symbol(J79.next, Decl(relationDepthSharedCheckOrder.ts, 165, 15)) +>J80 : Symbol(J80, Decl(relationDepthSharedCheckOrder.ts, 166, 27)) + +interface I80 { next: I81 } +>I80 : Symbol(I80, Decl(relationDepthSharedCheckOrder.ts, 165, 27)) +>next : Symbol(I80.next, Decl(relationDepthSharedCheckOrder.ts, 166, 15)) +>I81 : Symbol(I81, Decl(relationDepthSharedCheckOrder.ts, 167, 27)) + +interface J80 { next: J81 } +>J80 : Symbol(J80, Decl(relationDepthSharedCheckOrder.ts, 166, 27)) +>next : Symbol(J80.next, Decl(relationDepthSharedCheckOrder.ts, 167, 15)) +>J81 : Symbol(J81, Decl(relationDepthSharedCheckOrder.ts, 168, 27)) + +interface I81 { next: I82 } +>I81 : Symbol(I81, Decl(relationDepthSharedCheckOrder.ts, 167, 27)) +>next : Symbol(I81.next, Decl(relationDepthSharedCheckOrder.ts, 168, 15)) +>I82 : Symbol(I82, Decl(relationDepthSharedCheckOrder.ts, 169, 27)) + +interface J81 { next: J82 } +>J81 : Symbol(J81, Decl(relationDepthSharedCheckOrder.ts, 168, 27)) +>next : Symbol(J81.next, Decl(relationDepthSharedCheckOrder.ts, 169, 15)) +>J82 : Symbol(J82, Decl(relationDepthSharedCheckOrder.ts, 170, 27)) + +interface I82 { next: I83 } +>I82 : Symbol(I82, Decl(relationDepthSharedCheckOrder.ts, 169, 27)) +>next : Symbol(I82.next, Decl(relationDepthSharedCheckOrder.ts, 170, 15)) +>I83 : Symbol(I83, Decl(relationDepthSharedCheckOrder.ts, 171, 27)) + +interface J82 { next: J83 } +>J82 : Symbol(J82, Decl(relationDepthSharedCheckOrder.ts, 170, 27)) +>next : Symbol(J82.next, Decl(relationDepthSharedCheckOrder.ts, 171, 15)) +>J83 : Symbol(J83, Decl(relationDepthSharedCheckOrder.ts, 172, 27)) + +interface I83 { next: I84 } +>I83 : Symbol(I83, Decl(relationDepthSharedCheckOrder.ts, 171, 27)) +>next : Symbol(I83.next, Decl(relationDepthSharedCheckOrder.ts, 172, 15)) +>I84 : Symbol(I84, Decl(relationDepthSharedCheckOrder.ts, 173, 27)) + +interface J83 { next: J84 } +>J83 : Symbol(J83, Decl(relationDepthSharedCheckOrder.ts, 172, 27)) +>next : Symbol(J83.next, Decl(relationDepthSharedCheckOrder.ts, 173, 15)) +>J84 : Symbol(J84, Decl(relationDepthSharedCheckOrder.ts, 174, 27)) + +interface I84 { next: I85 } +>I84 : Symbol(I84, Decl(relationDepthSharedCheckOrder.ts, 173, 27)) +>next : Symbol(I84.next, Decl(relationDepthSharedCheckOrder.ts, 174, 15)) +>I85 : Symbol(I85, Decl(relationDepthSharedCheckOrder.ts, 175, 27)) + +interface J84 { next: J85 } +>J84 : Symbol(J84, Decl(relationDepthSharedCheckOrder.ts, 174, 27)) +>next : Symbol(J84.next, Decl(relationDepthSharedCheckOrder.ts, 175, 15)) +>J85 : Symbol(J85, Decl(relationDepthSharedCheckOrder.ts, 176, 27)) + +interface I85 { next: I86 } +>I85 : Symbol(I85, Decl(relationDepthSharedCheckOrder.ts, 175, 27)) +>next : Symbol(I85.next, Decl(relationDepthSharedCheckOrder.ts, 176, 15)) +>I86 : Symbol(I86, Decl(relationDepthSharedCheckOrder.ts, 177, 27)) + +interface J85 { next: J86 } +>J85 : Symbol(J85, Decl(relationDepthSharedCheckOrder.ts, 176, 27)) +>next : Symbol(J85.next, Decl(relationDepthSharedCheckOrder.ts, 177, 15)) +>J86 : Symbol(J86, Decl(relationDepthSharedCheckOrder.ts, 178, 27)) + +interface I86 { next: I87 } +>I86 : Symbol(I86, Decl(relationDepthSharedCheckOrder.ts, 177, 27)) +>next : Symbol(I86.next, Decl(relationDepthSharedCheckOrder.ts, 178, 15)) +>I87 : Symbol(I87, Decl(relationDepthSharedCheckOrder.ts, 179, 27)) + +interface J86 { next: J87 } +>J86 : Symbol(J86, Decl(relationDepthSharedCheckOrder.ts, 178, 27)) +>next : Symbol(J86.next, Decl(relationDepthSharedCheckOrder.ts, 179, 15)) +>J87 : Symbol(J87, Decl(relationDepthSharedCheckOrder.ts, 180, 27)) + +interface I87 { next: I88 } +>I87 : Symbol(I87, Decl(relationDepthSharedCheckOrder.ts, 179, 27)) +>next : Symbol(I87.next, Decl(relationDepthSharedCheckOrder.ts, 180, 15)) +>I88 : Symbol(I88, Decl(relationDepthSharedCheckOrder.ts, 181, 27)) + +interface J87 { next: J88 } +>J87 : Symbol(J87, Decl(relationDepthSharedCheckOrder.ts, 180, 27)) +>next : Symbol(J87.next, Decl(relationDepthSharedCheckOrder.ts, 181, 15)) +>J88 : Symbol(J88, Decl(relationDepthSharedCheckOrder.ts, 182, 27)) + +interface I88 { next: I89 } +>I88 : Symbol(I88, Decl(relationDepthSharedCheckOrder.ts, 181, 27)) +>next : Symbol(I88.next, Decl(relationDepthSharedCheckOrder.ts, 182, 15)) +>I89 : Symbol(I89, Decl(relationDepthSharedCheckOrder.ts, 183, 27)) + +interface J88 { next: J89 } +>J88 : Symbol(J88, Decl(relationDepthSharedCheckOrder.ts, 182, 27)) +>next : Symbol(J88.next, Decl(relationDepthSharedCheckOrder.ts, 183, 15)) +>J89 : Symbol(J89, Decl(relationDepthSharedCheckOrder.ts, 184, 27)) + +interface I89 { next: I90 } +>I89 : Symbol(I89, Decl(relationDepthSharedCheckOrder.ts, 183, 27)) +>next : Symbol(I89.next, Decl(relationDepthSharedCheckOrder.ts, 184, 15)) +>I90 : Symbol(I90, Decl(relationDepthSharedCheckOrder.ts, 185, 27)) + +interface J89 { next: J90 } +>J89 : Symbol(J89, Decl(relationDepthSharedCheckOrder.ts, 184, 27)) +>next : Symbol(J89.next, Decl(relationDepthSharedCheckOrder.ts, 185, 15)) +>J90 : Symbol(J90, Decl(relationDepthSharedCheckOrder.ts, 186, 27)) + +interface I90 { next: I91 } +>I90 : Symbol(I90, Decl(relationDepthSharedCheckOrder.ts, 185, 27)) +>next : Symbol(I90.next, Decl(relationDepthSharedCheckOrder.ts, 186, 15)) +>I91 : Symbol(I91, Decl(relationDepthSharedCheckOrder.ts, 187, 27)) + +interface J90 { next: J91 } +>J90 : Symbol(J90, Decl(relationDepthSharedCheckOrder.ts, 186, 27)) +>next : Symbol(J90.next, Decl(relationDepthSharedCheckOrder.ts, 187, 15)) +>J91 : Symbol(J91, Decl(relationDepthSharedCheckOrder.ts, 188, 27)) + +interface I91 { next: I92 } +>I91 : Symbol(I91, Decl(relationDepthSharedCheckOrder.ts, 187, 27)) +>next : Symbol(I91.next, Decl(relationDepthSharedCheckOrder.ts, 188, 15)) +>I92 : Symbol(I92, Decl(relationDepthSharedCheckOrder.ts, 189, 27)) + +interface J91 { next: J92 } +>J91 : Symbol(J91, Decl(relationDepthSharedCheckOrder.ts, 188, 27)) +>next : Symbol(J91.next, Decl(relationDepthSharedCheckOrder.ts, 189, 15)) +>J92 : Symbol(J92, Decl(relationDepthSharedCheckOrder.ts, 190, 27)) + +interface I92 { next: I93 } +>I92 : Symbol(I92, Decl(relationDepthSharedCheckOrder.ts, 189, 27)) +>next : Symbol(I92.next, Decl(relationDepthSharedCheckOrder.ts, 190, 15)) +>I93 : Symbol(I93, Decl(relationDepthSharedCheckOrder.ts, 191, 27)) + +interface J92 { next: J93 } +>J92 : Symbol(J92, Decl(relationDepthSharedCheckOrder.ts, 190, 27)) +>next : Symbol(J92.next, Decl(relationDepthSharedCheckOrder.ts, 191, 15)) +>J93 : Symbol(J93, Decl(relationDepthSharedCheckOrder.ts, 192, 27)) + +interface I93 { next: I94 } +>I93 : Symbol(I93, Decl(relationDepthSharedCheckOrder.ts, 191, 27)) +>next : Symbol(I93.next, Decl(relationDepthSharedCheckOrder.ts, 192, 15)) +>I94 : Symbol(I94, Decl(relationDepthSharedCheckOrder.ts, 193, 27)) + +interface J93 { next: J94 } +>J93 : Symbol(J93, Decl(relationDepthSharedCheckOrder.ts, 192, 27)) +>next : Symbol(J93.next, Decl(relationDepthSharedCheckOrder.ts, 193, 15)) +>J94 : Symbol(J94, Decl(relationDepthSharedCheckOrder.ts, 194, 27)) + +interface I94 { next: I95 } +>I94 : Symbol(I94, Decl(relationDepthSharedCheckOrder.ts, 193, 27)) +>next : Symbol(I94.next, Decl(relationDepthSharedCheckOrder.ts, 194, 15)) +>I95 : Symbol(I95, Decl(relationDepthSharedCheckOrder.ts, 195, 27)) + +interface J94 { next: J95 } +>J94 : Symbol(J94, Decl(relationDepthSharedCheckOrder.ts, 194, 27)) +>next : Symbol(J94.next, Decl(relationDepthSharedCheckOrder.ts, 195, 15)) +>J95 : Symbol(J95, Decl(relationDepthSharedCheckOrder.ts, 196, 27)) + +interface I95 { next: I96 } +>I95 : Symbol(I95, Decl(relationDepthSharedCheckOrder.ts, 195, 27)) +>next : Symbol(I95.next, Decl(relationDepthSharedCheckOrder.ts, 196, 15)) +>I96 : Symbol(I96, Decl(relationDepthSharedCheckOrder.ts, 197, 27)) + +interface J95 { next: J96 } +>J95 : Symbol(J95, Decl(relationDepthSharedCheckOrder.ts, 196, 27)) +>next : Symbol(J95.next, Decl(relationDepthSharedCheckOrder.ts, 197, 15)) +>J96 : Symbol(J96, Decl(relationDepthSharedCheckOrder.ts, 198, 27)) + +interface I96 { next: I97 } +>I96 : Symbol(I96, Decl(relationDepthSharedCheckOrder.ts, 197, 27)) +>next : Symbol(I96.next, Decl(relationDepthSharedCheckOrder.ts, 198, 15)) +>I97 : Symbol(I97, Decl(relationDepthSharedCheckOrder.ts, 199, 27)) + +interface J96 { next: J97 } +>J96 : Symbol(J96, Decl(relationDepthSharedCheckOrder.ts, 198, 27)) +>next : Symbol(J96.next, Decl(relationDepthSharedCheckOrder.ts, 199, 15)) +>J97 : Symbol(J97, Decl(relationDepthSharedCheckOrder.ts, 200, 27)) + +interface I97 { next: I98 } +>I97 : Symbol(I97, Decl(relationDepthSharedCheckOrder.ts, 199, 27)) +>next : Symbol(I97.next, Decl(relationDepthSharedCheckOrder.ts, 200, 15)) +>I98 : Symbol(I98, Decl(relationDepthSharedCheckOrder.ts, 201, 27)) + +interface J97 { next: J98 } +>J97 : Symbol(J97, Decl(relationDepthSharedCheckOrder.ts, 200, 27)) +>next : Symbol(J97.next, Decl(relationDepthSharedCheckOrder.ts, 201, 15)) +>J98 : Symbol(J98, Decl(relationDepthSharedCheckOrder.ts, 202, 27)) + +interface I98 { next: I99 } +>I98 : Symbol(I98, Decl(relationDepthSharedCheckOrder.ts, 201, 27)) +>next : Symbol(I98.next, Decl(relationDepthSharedCheckOrder.ts, 202, 15)) +>I99 : Symbol(I99, Decl(relationDepthSharedCheckOrder.ts, 203, 27)) + +interface J98 { next: J99 } +>J98 : Symbol(J98, Decl(relationDepthSharedCheckOrder.ts, 202, 27)) +>next : Symbol(J98.next, Decl(relationDepthSharedCheckOrder.ts, 203, 15)) +>J99 : Symbol(J99, Decl(relationDepthSharedCheckOrder.ts, 204, 28)) + +interface I99 { next: I100 } +>I99 : Symbol(I99, Decl(relationDepthSharedCheckOrder.ts, 203, 27)) +>next : Symbol(I99.next, Decl(relationDepthSharedCheckOrder.ts, 204, 15)) +>I100 : Symbol(I100, Decl(relationDepthSharedCheckOrder.ts, 205, 28)) + +interface J99 { next: J100 } +>J99 : Symbol(J99, Decl(relationDepthSharedCheckOrder.ts, 204, 28)) +>next : Symbol(J99.next, Decl(relationDepthSharedCheckOrder.ts, 205, 15)) +>J100 : Symbol(J100, Decl(relationDepthSharedCheckOrder.ts, 206, 29)) + +interface I100 { next: I101 } +>I100 : Symbol(I100, Decl(relationDepthSharedCheckOrder.ts, 205, 28)) +>next : Symbol(I100.next, Decl(relationDepthSharedCheckOrder.ts, 206, 16)) +>I101 : Symbol(I101, Decl(relationDepthSharedCheckOrder.ts, 207, 29)) + +interface J100 { next: J101 } +>J100 : Symbol(J100, Decl(relationDepthSharedCheckOrder.ts, 206, 29)) +>next : Symbol(J100.next, Decl(relationDepthSharedCheckOrder.ts, 207, 16)) +>J101 : Symbol(J101, Decl(relationDepthSharedCheckOrder.ts, 208, 29)) + +interface I101 { next: I102 } +>I101 : Symbol(I101, Decl(relationDepthSharedCheckOrder.ts, 207, 29)) +>next : Symbol(I101.next, Decl(relationDepthSharedCheckOrder.ts, 208, 16)) +>I102 : Symbol(I102, Decl(relationDepthSharedCheckOrder.ts, 209, 29)) + +interface J101 { next: J102 } +>J101 : Symbol(J101, Decl(relationDepthSharedCheckOrder.ts, 208, 29)) +>next : Symbol(J101.next, Decl(relationDepthSharedCheckOrder.ts, 209, 16)) +>J102 : Symbol(J102, Decl(relationDepthSharedCheckOrder.ts, 210, 29)) + +interface I102 { next: I103 } +>I102 : Symbol(I102, Decl(relationDepthSharedCheckOrder.ts, 209, 29)) +>next : Symbol(I102.next, Decl(relationDepthSharedCheckOrder.ts, 210, 16)) +>I103 : Symbol(I103, Decl(relationDepthSharedCheckOrder.ts, 211, 29)) + +interface J102 { next: J103 } +>J102 : Symbol(J102, Decl(relationDepthSharedCheckOrder.ts, 210, 29)) +>next : Symbol(J102.next, Decl(relationDepthSharedCheckOrder.ts, 211, 16)) +>J103 : Symbol(J103, Decl(relationDepthSharedCheckOrder.ts, 212, 29)) + +interface I103 { next: I104 } +>I103 : Symbol(I103, Decl(relationDepthSharedCheckOrder.ts, 211, 29)) +>next : Symbol(I103.next, Decl(relationDepthSharedCheckOrder.ts, 212, 16)) +>I104 : Symbol(I104, Decl(relationDepthSharedCheckOrder.ts, 213, 29)) + +interface J103 { next: J104 } +>J103 : Symbol(J103, Decl(relationDepthSharedCheckOrder.ts, 212, 29)) +>next : Symbol(J103.next, Decl(relationDepthSharedCheckOrder.ts, 213, 16)) +>J104 : Symbol(J104, Decl(relationDepthSharedCheckOrder.ts, 214, 29)) + +interface I104 { next: I105 } +>I104 : Symbol(I104, Decl(relationDepthSharedCheckOrder.ts, 213, 29)) +>next : Symbol(I104.next, Decl(relationDepthSharedCheckOrder.ts, 214, 16)) +>I105 : Symbol(I105, Decl(relationDepthSharedCheckOrder.ts, 215, 29)) + +interface J104 { next: J105 } +>J104 : Symbol(J104, Decl(relationDepthSharedCheckOrder.ts, 214, 29)) +>next : Symbol(J104.next, Decl(relationDepthSharedCheckOrder.ts, 215, 16)) +>J105 : Symbol(J105, Decl(relationDepthSharedCheckOrder.ts, 216, 29)) + +interface I105 { next: I106 } +>I105 : Symbol(I105, Decl(relationDepthSharedCheckOrder.ts, 215, 29)) +>next : Symbol(I105.next, Decl(relationDepthSharedCheckOrder.ts, 216, 16)) +>I106 : Symbol(I106, Decl(relationDepthSharedCheckOrder.ts, 217, 29)) + +interface J105 { next: J106 } +>J105 : Symbol(J105, Decl(relationDepthSharedCheckOrder.ts, 216, 29)) +>next : Symbol(J105.next, Decl(relationDepthSharedCheckOrder.ts, 217, 16)) +>J106 : Symbol(J106, Decl(relationDepthSharedCheckOrder.ts, 218, 29)) + +interface I106 { next: I107 } +>I106 : Symbol(I106, Decl(relationDepthSharedCheckOrder.ts, 217, 29)) +>next : Symbol(I106.next, Decl(relationDepthSharedCheckOrder.ts, 218, 16)) +>I107 : Symbol(I107, Decl(relationDepthSharedCheckOrder.ts, 219, 29)) + +interface J106 { next: J107 } +>J106 : Symbol(J106, Decl(relationDepthSharedCheckOrder.ts, 218, 29)) +>next : Symbol(J106.next, Decl(relationDepthSharedCheckOrder.ts, 219, 16)) +>J107 : Symbol(J107, Decl(relationDepthSharedCheckOrder.ts, 220, 29)) + +interface I107 { next: I108 } +>I107 : Symbol(I107, Decl(relationDepthSharedCheckOrder.ts, 219, 29)) +>next : Symbol(I107.next, Decl(relationDepthSharedCheckOrder.ts, 220, 16)) +>I108 : Symbol(I108, Decl(relationDepthSharedCheckOrder.ts, 221, 29)) + +interface J107 { next: J108 } +>J107 : Symbol(J107, Decl(relationDepthSharedCheckOrder.ts, 220, 29)) +>next : Symbol(J107.next, Decl(relationDepthSharedCheckOrder.ts, 221, 16)) +>J108 : Symbol(J108, Decl(relationDepthSharedCheckOrder.ts, 222, 29)) + +interface I108 { next: I109 } +>I108 : Symbol(I108, Decl(relationDepthSharedCheckOrder.ts, 221, 29)) +>next : Symbol(I108.next, Decl(relationDepthSharedCheckOrder.ts, 222, 16)) +>I109 : Symbol(I109, Decl(relationDepthSharedCheckOrder.ts, 223, 29)) + +interface J108 { next: J109 } +>J108 : Symbol(J108, Decl(relationDepthSharedCheckOrder.ts, 222, 29)) +>next : Symbol(J108.next, Decl(relationDepthSharedCheckOrder.ts, 223, 16)) +>J109 : Symbol(J109, Decl(relationDepthSharedCheckOrder.ts, 224, 29)) + +interface I109 { next: I110 } +>I109 : Symbol(I109, Decl(relationDepthSharedCheckOrder.ts, 223, 29)) +>next : Symbol(I109.next, Decl(relationDepthSharedCheckOrder.ts, 224, 16)) +>I110 : Symbol(I110, Decl(relationDepthSharedCheckOrder.ts, 225, 29)) + +interface J109 { next: J110 } +>J109 : Symbol(J109, Decl(relationDepthSharedCheckOrder.ts, 224, 29)) +>next : Symbol(J109.next, Decl(relationDepthSharedCheckOrder.ts, 225, 16)) +>J110 : Symbol(J110, Decl(relationDepthSharedCheckOrder.ts, 226, 29)) + +interface I110 { next: I111 } +>I110 : Symbol(I110, Decl(relationDepthSharedCheckOrder.ts, 225, 29)) +>next : Symbol(I110.next, Decl(relationDepthSharedCheckOrder.ts, 226, 16)) +>I111 : Symbol(I111, Decl(relationDepthSharedCheckOrder.ts, 227, 29)) + +interface J110 { next: J111 } +>J110 : Symbol(J110, Decl(relationDepthSharedCheckOrder.ts, 226, 29)) +>next : Symbol(J110.next, Decl(relationDepthSharedCheckOrder.ts, 227, 16)) +>J111 : Symbol(J111, Decl(relationDepthSharedCheckOrder.ts, 228, 29)) + +interface I111 { next: I112 } +>I111 : Symbol(I111, Decl(relationDepthSharedCheckOrder.ts, 227, 29)) +>next : Symbol(I111.next, Decl(relationDepthSharedCheckOrder.ts, 228, 16)) +>I112 : Symbol(I112, Decl(relationDepthSharedCheckOrder.ts, 229, 29)) + +interface J111 { next: J112 } +>J111 : Symbol(J111, Decl(relationDepthSharedCheckOrder.ts, 228, 29)) +>next : Symbol(J111.next, Decl(relationDepthSharedCheckOrder.ts, 229, 16)) +>J112 : Symbol(J112, Decl(relationDepthSharedCheckOrder.ts, 230, 29)) + +interface I112 { next: I113 } +>I112 : Symbol(I112, Decl(relationDepthSharedCheckOrder.ts, 229, 29)) +>next : Symbol(I112.next, Decl(relationDepthSharedCheckOrder.ts, 230, 16)) +>I113 : Symbol(I113, Decl(relationDepthSharedCheckOrder.ts, 231, 29)) + +interface J112 { next: J113 } +>J112 : Symbol(J112, Decl(relationDepthSharedCheckOrder.ts, 230, 29)) +>next : Symbol(J112.next, Decl(relationDepthSharedCheckOrder.ts, 231, 16)) +>J113 : Symbol(J113, Decl(relationDepthSharedCheckOrder.ts, 232, 29)) + +interface I113 { next: I114 } +>I113 : Symbol(I113, Decl(relationDepthSharedCheckOrder.ts, 231, 29)) +>next : Symbol(I113.next, Decl(relationDepthSharedCheckOrder.ts, 232, 16)) +>I114 : Symbol(I114, Decl(relationDepthSharedCheckOrder.ts, 233, 29)) + +interface J113 { next: J114 } +>J113 : Symbol(J113, Decl(relationDepthSharedCheckOrder.ts, 232, 29)) +>next : Symbol(J113.next, Decl(relationDepthSharedCheckOrder.ts, 233, 16)) +>J114 : Symbol(J114, Decl(relationDepthSharedCheckOrder.ts, 234, 29)) + +interface I114 { next: I115 } +>I114 : Symbol(I114, Decl(relationDepthSharedCheckOrder.ts, 233, 29)) +>next : Symbol(I114.next, Decl(relationDepthSharedCheckOrder.ts, 234, 16)) +>I115 : Symbol(I115, Decl(relationDepthSharedCheckOrder.ts, 235, 29)) + +interface J114 { next: J115 } +>J114 : Symbol(J114, Decl(relationDepthSharedCheckOrder.ts, 234, 29)) +>next : Symbol(J114.next, Decl(relationDepthSharedCheckOrder.ts, 235, 16)) +>J115 : Symbol(J115, Decl(relationDepthSharedCheckOrder.ts, 236, 29)) + +interface I115 { next: I116 } +>I115 : Symbol(I115, Decl(relationDepthSharedCheckOrder.ts, 235, 29)) +>next : Symbol(I115.next, Decl(relationDepthSharedCheckOrder.ts, 236, 16)) +>I116 : Symbol(I116, Decl(relationDepthSharedCheckOrder.ts, 237, 29)) + +interface J115 { next: J116 } +>J115 : Symbol(J115, Decl(relationDepthSharedCheckOrder.ts, 236, 29)) +>next : Symbol(J115.next, Decl(relationDepthSharedCheckOrder.ts, 237, 16)) +>J116 : Symbol(J116, Decl(relationDepthSharedCheckOrder.ts, 238, 29)) + +interface I116 { next: I117 } +>I116 : Symbol(I116, Decl(relationDepthSharedCheckOrder.ts, 237, 29)) +>next : Symbol(I116.next, Decl(relationDepthSharedCheckOrder.ts, 238, 16)) +>I117 : Symbol(I117, Decl(relationDepthSharedCheckOrder.ts, 239, 29)) + +interface J116 { next: J117 } +>J116 : Symbol(J116, Decl(relationDepthSharedCheckOrder.ts, 238, 29)) +>next : Symbol(J116.next, Decl(relationDepthSharedCheckOrder.ts, 239, 16)) +>J117 : Symbol(J117, Decl(relationDepthSharedCheckOrder.ts, 240, 29)) + +interface I117 { next: I118 } +>I117 : Symbol(I117, Decl(relationDepthSharedCheckOrder.ts, 239, 29)) +>next : Symbol(I117.next, Decl(relationDepthSharedCheckOrder.ts, 240, 16)) +>I118 : Symbol(I118, Decl(relationDepthSharedCheckOrder.ts, 241, 29)) + +interface J117 { next: J118 } +>J117 : Symbol(J117, Decl(relationDepthSharedCheckOrder.ts, 240, 29)) +>next : Symbol(J117.next, Decl(relationDepthSharedCheckOrder.ts, 241, 16)) +>J118 : Symbol(J118, Decl(relationDepthSharedCheckOrder.ts, 242, 29)) + +interface I118 { next: I119 } +>I118 : Symbol(I118, Decl(relationDepthSharedCheckOrder.ts, 241, 29)) +>next : Symbol(I118.next, Decl(relationDepthSharedCheckOrder.ts, 242, 16)) +>I119 : Symbol(I119, Decl(relationDepthSharedCheckOrder.ts, 243, 29)) + +interface J118 { next: J119 } +>J118 : Symbol(J118, Decl(relationDepthSharedCheckOrder.ts, 242, 29)) +>next : Symbol(J118.next, Decl(relationDepthSharedCheckOrder.ts, 243, 16)) +>J119 : Symbol(J119, Decl(relationDepthSharedCheckOrder.ts, 244, 31)) + +interface I119 { leaf: string } +>I119 : Symbol(I119, Decl(relationDepthSharedCheckOrder.ts, 243, 29)) +>leaf : Symbol(I119.leaf, Decl(relationDepthSharedCheckOrder.ts, 244, 16)) + +interface J119 { leaf: number } +>J119 : Symbol(J119, Decl(relationDepthSharedCheckOrder.ts, 244, 31)) +>leaf : Symbol(J119.leaf, Decl(relationDepthSharedCheckOrder.ts, 245, 16)) + +type Mid = I60 extends J60 ? true : false; +>Mid : Symbol(Mid, Decl(relationDepthSharedCheckOrder.ts, 245, 31)) +>I60 : Symbol(I60, Decl(relationDepthSharedCheckOrder.ts, 125, 27)) +>J60 : Symbol(J60, Decl(relationDepthSharedCheckOrder.ts, 126, 27)) + +type All = I0 extends J0 ? true : false; +>All : Symbol(All, Decl(relationDepthSharedCheckOrder.ts, 247, 42)) +>I0 : Symbol(I0, Decl(relationDepthSharedCheckOrder.ts, 0, 0)) +>J0 : Symbol(J0, Decl(relationDepthSharedCheckOrder.ts, 6, 25)) + diff --git a/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..e24834758fb2e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=default).types @@ -0,0 +1,739 @@ +//// [tests/cases/compiler/relationDepthSharedCheckOrder.ts] //// + +=== relationDepthSharedCheckOrder.ts === +// Relating I0 to J0 fresh nests a comparison 100 levels deep, where it is +// cut short and so succeeds. In program order Mid has already found that +// I60 is not related to J60. Whether I0 is related to J0 must not depend +// on which comes first. Conditional types relate without reporting errors, +// which would compute the comparison again. + +interface I0 { next: I1 } +>next : I1 + +interface J0 { next: J1 } +>next : J1 + +interface I1 { next: I2 } +>next : I2 + +interface J1 { next: J2 } +>next : J2 + +interface I2 { next: I3 } +>next : I3 + +interface J2 { next: J3 } +>next : J3 + +interface I3 { next: I4 } +>next : I4 + +interface J3 { next: J4 } +>next : J4 + +interface I4 { next: I5 } +>next : I5 + +interface J4 { next: J5 } +>next : J5 + +interface I5 { next: I6 } +>next : I6 + +interface J5 { next: J6 } +>next : J6 + +interface I6 { next: I7 } +>next : I7 + +interface J6 { next: J7 } +>next : J7 + +interface I7 { next: I8 } +>next : I8 + +interface J7 { next: J8 } +>next : J8 + +interface I8 { next: I9 } +>next : I9 + +interface J8 { next: J9 } +>next : J9 + +interface I9 { next: I10 } +>next : I10 + +interface J9 { next: J10 } +>next : J10 + +interface I10 { next: I11 } +>next : I11 + +interface J10 { next: J11 } +>next : J11 + +interface I11 { next: I12 } +>next : I12 + +interface J11 { next: J12 } +>next : J12 + +interface I12 { next: I13 } +>next : I13 + +interface J12 { next: J13 } +>next : J13 + +interface I13 { next: I14 } +>next : I14 + +interface J13 { next: J14 } +>next : J14 + +interface I14 { next: I15 } +>next : I15 + +interface J14 { next: J15 } +>next : J15 + +interface I15 { next: I16 } +>next : I16 + +interface J15 { next: J16 } +>next : J16 + +interface I16 { next: I17 } +>next : I17 + +interface J16 { next: J17 } +>next : J17 + +interface I17 { next: I18 } +>next : I18 + +interface J17 { next: J18 } +>next : J18 + +interface I18 { next: I19 } +>next : I19 + +interface J18 { next: J19 } +>next : J19 + +interface I19 { next: I20 } +>next : I20 + +interface J19 { next: J20 } +>next : J20 + +interface I20 { next: I21 } +>next : I21 + +interface J20 { next: J21 } +>next : J21 + +interface I21 { next: I22 } +>next : I22 + +interface J21 { next: J22 } +>next : J22 + +interface I22 { next: I23 } +>next : I23 + +interface J22 { next: J23 } +>next : J23 + +interface I23 { next: I24 } +>next : I24 + +interface J23 { next: J24 } +>next : J24 + +interface I24 { next: I25 } +>next : I25 + +interface J24 { next: J25 } +>next : J25 + +interface I25 { next: I26 } +>next : I26 + +interface J25 { next: J26 } +>next : J26 + +interface I26 { next: I27 } +>next : I27 + +interface J26 { next: J27 } +>next : J27 + +interface I27 { next: I28 } +>next : I28 + +interface J27 { next: J28 } +>next : J28 + +interface I28 { next: I29 } +>next : I29 + +interface J28 { next: J29 } +>next : J29 + +interface I29 { next: I30 } +>next : I30 + +interface J29 { next: J30 } +>next : J30 + +interface I30 { next: I31 } +>next : I31 + +interface J30 { next: J31 } +>next : J31 + +interface I31 { next: I32 } +>next : I32 + +interface J31 { next: J32 } +>next : J32 + +interface I32 { next: I33 } +>next : I33 + +interface J32 { next: J33 } +>next : J33 + +interface I33 { next: I34 } +>next : I34 + +interface J33 { next: J34 } +>next : J34 + +interface I34 { next: I35 } +>next : I35 + +interface J34 { next: J35 } +>next : J35 + +interface I35 { next: I36 } +>next : I36 + +interface J35 { next: J36 } +>next : J36 + +interface I36 { next: I37 } +>next : I37 + +interface J36 { next: J37 } +>next : J37 + +interface I37 { next: I38 } +>next : I38 + +interface J37 { next: J38 } +>next : J38 + +interface I38 { next: I39 } +>next : I39 + +interface J38 { next: J39 } +>next : J39 + +interface I39 { next: I40 } +>next : I40 + +interface J39 { next: J40 } +>next : J40 + +interface I40 { next: I41 } +>next : I41 + +interface J40 { next: J41 } +>next : J41 + +interface I41 { next: I42 } +>next : I42 + +interface J41 { next: J42 } +>next : J42 + +interface I42 { next: I43 } +>next : I43 + +interface J42 { next: J43 } +>next : J43 + +interface I43 { next: I44 } +>next : I44 + +interface J43 { next: J44 } +>next : J44 + +interface I44 { next: I45 } +>next : I45 + +interface J44 { next: J45 } +>next : J45 + +interface I45 { next: I46 } +>next : I46 + +interface J45 { next: J46 } +>next : J46 + +interface I46 { next: I47 } +>next : I47 + +interface J46 { next: J47 } +>next : J47 + +interface I47 { next: I48 } +>next : I48 + +interface J47 { next: J48 } +>next : J48 + +interface I48 { next: I49 } +>next : I49 + +interface J48 { next: J49 } +>next : J49 + +interface I49 { next: I50 } +>next : I50 + +interface J49 { next: J50 } +>next : J50 + +interface I50 { next: I51 } +>next : I51 + +interface J50 { next: J51 } +>next : J51 + +interface I51 { next: I52 } +>next : I52 + +interface J51 { next: J52 } +>next : J52 + +interface I52 { next: I53 } +>next : I53 + +interface J52 { next: J53 } +>next : J53 + +interface I53 { next: I54 } +>next : I54 + +interface J53 { next: J54 } +>next : J54 + +interface I54 { next: I55 } +>next : I55 + +interface J54 { next: J55 } +>next : J55 + +interface I55 { next: I56 } +>next : I56 + +interface J55 { next: J56 } +>next : J56 + +interface I56 { next: I57 } +>next : I57 + +interface J56 { next: J57 } +>next : J57 + +interface I57 { next: I58 } +>next : I58 + +interface J57 { next: J58 } +>next : J58 + +interface I58 { next: I59 } +>next : I59 + +interface J58 { next: J59 } +>next : J59 + +interface I59 { next: I60 } +>next : I60 + +interface J59 { next: J60 } +>next : J60 + +interface I60 { next: I61 } +>next : I61 + +interface J60 { next: J61 } +>next : J61 + +interface I61 { next: I62 } +>next : I62 + +interface J61 { next: J62 } +>next : J62 + +interface I62 { next: I63 } +>next : I63 + +interface J62 { next: J63 } +>next : J63 + +interface I63 { next: I64 } +>next : I64 + +interface J63 { next: J64 } +>next : J64 + +interface I64 { next: I65 } +>next : I65 + +interface J64 { next: J65 } +>next : J65 + +interface I65 { next: I66 } +>next : I66 + +interface J65 { next: J66 } +>next : J66 + +interface I66 { next: I67 } +>next : I67 + +interface J66 { next: J67 } +>next : J67 + +interface I67 { next: I68 } +>next : I68 + +interface J67 { next: J68 } +>next : J68 + +interface I68 { next: I69 } +>next : I69 + +interface J68 { next: J69 } +>next : J69 + +interface I69 { next: I70 } +>next : I70 + +interface J69 { next: J70 } +>next : J70 + +interface I70 { next: I71 } +>next : I71 + +interface J70 { next: J71 } +>next : J71 + +interface I71 { next: I72 } +>next : I72 + +interface J71 { next: J72 } +>next : J72 + +interface I72 { next: I73 } +>next : I73 + +interface J72 { next: J73 } +>next : J73 + +interface I73 { next: I74 } +>next : I74 + +interface J73 { next: J74 } +>next : J74 + +interface I74 { next: I75 } +>next : I75 + +interface J74 { next: J75 } +>next : J75 + +interface I75 { next: I76 } +>next : I76 + +interface J75 { next: J76 } +>next : J76 + +interface I76 { next: I77 } +>next : I77 + +interface J76 { next: J77 } +>next : J77 + +interface I77 { next: I78 } +>next : I78 + +interface J77 { next: J78 } +>next : J78 + +interface I78 { next: I79 } +>next : I79 + +interface J78 { next: J79 } +>next : J79 + +interface I79 { next: I80 } +>next : I80 + +interface J79 { next: J80 } +>next : J80 + +interface I80 { next: I81 } +>next : I81 + +interface J80 { next: J81 } +>next : J81 + +interface I81 { next: I82 } +>next : I82 + +interface J81 { next: J82 } +>next : J82 + +interface I82 { next: I83 } +>next : I83 + +interface J82 { next: J83 } +>next : J83 + +interface I83 { next: I84 } +>next : I84 + +interface J83 { next: J84 } +>next : J84 + +interface I84 { next: I85 } +>next : I85 + +interface J84 { next: J85 } +>next : J85 + +interface I85 { next: I86 } +>next : I86 + +interface J85 { next: J86 } +>next : J86 + +interface I86 { next: I87 } +>next : I87 + +interface J86 { next: J87 } +>next : J87 + +interface I87 { next: I88 } +>next : I88 + +interface J87 { next: J88 } +>next : J88 + +interface I88 { next: I89 } +>next : I89 + +interface J88 { next: J89 } +>next : J89 + +interface I89 { next: I90 } +>next : I90 + +interface J89 { next: J90 } +>next : J90 + +interface I90 { next: I91 } +>next : I91 + +interface J90 { next: J91 } +>next : J91 + +interface I91 { next: I92 } +>next : I92 + +interface J91 { next: J92 } +>next : J92 + +interface I92 { next: I93 } +>next : I93 + +interface J92 { next: J93 } +>next : J93 + +interface I93 { next: I94 } +>next : I94 + +interface J93 { next: J94 } +>next : J94 + +interface I94 { next: I95 } +>next : I95 + +interface J94 { next: J95 } +>next : J95 + +interface I95 { next: I96 } +>next : I96 + +interface J95 { next: J96 } +>next : J96 + +interface I96 { next: I97 } +>next : I97 + +interface J96 { next: J97 } +>next : J97 + +interface I97 { next: I98 } +>next : I98 + +interface J97 { next: J98 } +>next : J98 + +interface I98 { next: I99 } +>next : I99 + +interface J98 { next: J99 } +>next : J99 + +interface I99 { next: I100 } +>next : I100 + +interface J99 { next: J100 } +>next : J100 + +interface I100 { next: I101 } +>next : I101 + +interface J100 { next: J101 } +>next : J101 + +interface I101 { next: I102 } +>next : I102 + +interface J101 { next: J102 } +>next : J102 + +interface I102 { next: I103 } +>next : I103 + +interface J102 { next: J103 } +>next : J103 + +interface I103 { next: I104 } +>next : I104 + +interface J103 { next: J104 } +>next : J104 + +interface I104 { next: I105 } +>next : I105 + +interface J104 { next: J105 } +>next : J105 + +interface I105 { next: I106 } +>next : I106 + +interface J105 { next: J106 } +>next : J106 + +interface I106 { next: I107 } +>next : I107 + +interface J106 { next: J107 } +>next : J107 + +interface I107 { next: I108 } +>next : I108 + +interface J107 { next: J108 } +>next : J108 + +interface I108 { next: I109 } +>next : I109 + +interface J108 { next: J109 } +>next : J109 + +interface I109 { next: I110 } +>next : I110 + +interface J109 { next: J110 } +>next : J110 + +interface I110 { next: I111 } +>next : I111 + +interface J110 { next: J111 } +>next : J111 + +interface I111 { next: I112 } +>next : I112 + +interface J111 { next: J112 } +>next : J112 + +interface I112 { next: I113 } +>next : I113 + +interface J112 { next: J113 } +>next : J113 + +interface I113 { next: I114 } +>next : I114 + +interface J113 { next: J114 } +>next : J114 + +interface I114 { next: I115 } +>next : I115 + +interface J114 { next: J115 } +>next : J115 + +interface I115 { next: I116 } +>next : I116 + +interface J115 { next: J116 } +>next : J116 + +interface I116 { next: I117 } +>next : I117 + +interface J116 { next: J117 } +>next : J117 + +interface I117 { next: I118 } +>next : I118 + +interface J117 { next: J118 } +>next : J118 + +interface I118 { next: I119 } +>next : I119 + +interface J118 { next: J119 } +>next : J119 + +interface I119 { leaf: string } +>leaf : string + +interface J119 { leaf: number } +>leaf : number + +type Mid = I60 extends J60 ? true : false; +>Mid : false +>true : true +>false : false + +type All = I0 extends J0 ? true : false; +>All : false +>true : true +>false : false + diff --git a/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..89aebb5fd9f9a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,1217 @@ +//// [tests/cases/compiler/relationDepthSharedCheckOrder.ts] //// + +=== relationDepthSharedCheckOrder.ts === +// Relating I0 to J0 fresh nests a comparison 100 levels deep, where it is +// cut short and so succeeds. In program order Mid has already found that +// I60 is not related to J60. Whether I0 is related to J0 must not depend +// on which comes first. Conditional types relate without reporting errors, +// which would compute the comparison again. + +interface I0 { next: I1 } +>I0 : Symbol(I0, Decl(relationDepthSharedCheckOrder.ts, 0, 0)) +>next : Symbol(I0.next, Decl(relationDepthSharedCheckOrder.ts, 6, 14)) +>I1 : Symbol(I1, Decl(relationDepthSharedCheckOrder.ts, 7, 25)) + +interface J0 { next: J1 } +>J0 : Symbol(J0, Decl(relationDepthSharedCheckOrder.ts, 6, 25)) +>next : Symbol(J0.next, Decl(relationDepthSharedCheckOrder.ts, 7, 14)) +>J1 : Symbol(J1, Decl(relationDepthSharedCheckOrder.ts, 8, 25)) + +interface I1 { next: I2 } +>I1 : Symbol(I1, Decl(relationDepthSharedCheckOrder.ts, 7, 25)) +>next : Symbol(I1.next, Decl(relationDepthSharedCheckOrder.ts, 8, 14)) +>I2 : Symbol(I2, Decl(relationDepthSharedCheckOrder.ts, 9, 25)) + +interface J1 { next: J2 } +>J1 : Symbol(J1, Decl(relationDepthSharedCheckOrder.ts, 8, 25)) +>next : Symbol(J1.next, Decl(relationDepthSharedCheckOrder.ts, 9, 14)) +>J2 : Symbol(J2, Decl(relationDepthSharedCheckOrder.ts, 10, 25)) + +interface I2 { next: I3 } +>I2 : Symbol(I2, Decl(relationDepthSharedCheckOrder.ts, 9, 25)) +>next : Symbol(I2.next, Decl(relationDepthSharedCheckOrder.ts, 10, 14)) +>I3 : Symbol(I3, Decl(relationDepthSharedCheckOrder.ts, 11, 25)) + +interface J2 { next: J3 } +>J2 : Symbol(J2, Decl(relationDepthSharedCheckOrder.ts, 10, 25)) +>next : Symbol(J2.next, Decl(relationDepthSharedCheckOrder.ts, 11, 14)) +>J3 : Symbol(J3, Decl(relationDepthSharedCheckOrder.ts, 12, 25)) + +interface I3 { next: I4 } +>I3 : Symbol(I3, Decl(relationDepthSharedCheckOrder.ts, 11, 25)) +>next : Symbol(I3.next, Decl(relationDepthSharedCheckOrder.ts, 12, 14)) +>I4 : Symbol(I4, Decl(relationDepthSharedCheckOrder.ts, 13, 25)) + +interface J3 { next: J4 } +>J3 : Symbol(J3, Decl(relationDepthSharedCheckOrder.ts, 12, 25)) +>next : Symbol(J3.next, Decl(relationDepthSharedCheckOrder.ts, 13, 14)) +>J4 : Symbol(J4, Decl(relationDepthSharedCheckOrder.ts, 14, 25)) + +interface I4 { next: I5 } +>I4 : Symbol(I4, Decl(relationDepthSharedCheckOrder.ts, 13, 25)) +>next : Symbol(I4.next, Decl(relationDepthSharedCheckOrder.ts, 14, 14)) +>I5 : Symbol(I5, Decl(relationDepthSharedCheckOrder.ts, 15, 25)) + +interface J4 { next: J5 } +>J4 : Symbol(J4, Decl(relationDepthSharedCheckOrder.ts, 14, 25)) +>next : Symbol(J4.next, Decl(relationDepthSharedCheckOrder.ts, 15, 14)) +>J5 : Symbol(J5, Decl(relationDepthSharedCheckOrder.ts, 16, 25)) + +interface I5 { next: I6 } +>I5 : Symbol(I5, Decl(relationDepthSharedCheckOrder.ts, 15, 25)) +>next : Symbol(I5.next, Decl(relationDepthSharedCheckOrder.ts, 16, 14)) +>I6 : Symbol(I6, Decl(relationDepthSharedCheckOrder.ts, 17, 25)) + +interface J5 { next: J6 } +>J5 : Symbol(J5, Decl(relationDepthSharedCheckOrder.ts, 16, 25)) +>next : Symbol(J5.next, Decl(relationDepthSharedCheckOrder.ts, 17, 14)) +>J6 : Symbol(J6, Decl(relationDepthSharedCheckOrder.ts, 18, 25)) + +interface I6 { next: I7 } +>I6 : Symbol(I6, Decl(relationDepthSharedCheckOrder.ts, 17, 25)) +>next : Symbol(I6.next, Decl(relationDepthSharedCheckOrder.ts, 18, 14)) +>I7 : Symbol(I7, Decl(relationDepthSharedCheckOrder.ts, 19, 25)) + +interface J6 { next: J7 } +>J6 : Symbol(J6, Decl(relationDepthSharedCheckOrder.ts, 18, 25)) +>next : Symbol(J6.next, Decl(relationDepthSharedCheckOrder.ts, 19, 14)) +>J7 : Symbol(J7, Decl(relationDepthSharedCheckOrder.ts, 20, 25)) + +interface I7 { next: I8 } +>I7 : Symbol(I7, Decl(relationDepthSharedCheckOrder.ts, 19, 25)) +>next : Symbol(I7.next, Decl(relationDepthSharedCheckOrder.ts, 20, 14)) +>I8 : Symbol(I8, Decl(relationDepthSharedCheckOrder.ts, 21, 25)) + +interface J7 { next: J8 } +>J7 : Symbol(J7, Decl(relationDepthSharedCheckOrder.ts, 20, 25)) +>next : Symbol(J7.next, Decl(relationDepthSharedCheckOrder.ts, 21, 14)) +>J8 : Symbol(J8, Decl(relationDepthSharedCheckOrder.ts, 22, 25)) + +interface I8 { next: I9 } +>I8 : Symbol(I8, Decl(relationDepthSharedCheckOrder.ts, 21, 25)) +>next : Symbol(I8.next, Decl(relationDepthSharedCheckOrder.ts, 22, 14)) +>I9 : Symbol(I9, Decl(relationDepthSharedCheckOrder.ts, 23, 25)) + +interface J8 { next: J9 } +>J8 : Symbol(J8, Decl(relationDepthSharedCheckOrder.ts, 22, 25)) +>next : Symbol(J8.next, Decl(relationDepthSharedCheckOrder.ts, 23, 14)) +>J9 : Symbol(J9, Decl(relationDepthSharedCheckOrder.ts, 24, 26)) + +interface I9 { next: I10 } +>I9 : Symbol(I9, Decl(relationDepthSharedCheckOrder.ts, 23, 25)) +>next : Symbol(I9.next, Decl(relationDepthSharedCheckOrder.ts, 24, 14)) +>I10 : Symbol(I10, Decl(relationDepthSharedCheckOrder.ts, 25, 26)) + +interface J9 { next: J10 } +>J9 : Symbol(J9, Decl(relationDepthSharedCheckOrder.ts, 24, 26)) +>next : Symbol(J9.next, Decl(relationDepthSharedCheckOrder.ts, 25, 14)) +>J10 : Symbol(J10, Decl(relationDepthSharedCheckOrder.ts, 26, 27)) + +interface I10 { next: I11 } +>I10 : Symbol(I10, Decl(relationDepthSharedCheckOrder.ts, 25, 26)) +>next : Symbol(I10.next, Decl(relationDepthSharedCheckOrder.ts, 26, 15)) +>I11 : Symbol(I11, Decl(relationDepthSharedCheckOrder.ts, 27, 27)) + +interface J10 { next: J11 } +>J10 : Symbol(J10, Decl(relationDepthSharedCheckOrder.ts, 26, 27)) +>next : Symbol(J10.next, Decl(relationDepthSharedCheckOrder.ts, 27, 15)) +>J11 : Symbol(J11, Decl(relationDepthSharedCheckOrder.ts, 28, 27)) + +interface I11 { next: I12 } +>I11 : Symbol(I11, Decl(relationDepthSharedCheckOrder.ts, 27, 27)) +>next : Symbol(I11.next, Decl(relationDepthSharedCheckOrder.ts, 28, 15)) +>I12 : Symbol(I12, Decl(relationDepthSharedCheckOrder.ts, 29, 27)) + +interface J11 { next: J12 } +>J11 : Symbol(J11, Decl(relationDepthSharedCheckOrder.ts, 28, 27)) +>next : Symbol(J11.next, Decl(relationDepthSharedCheckOrder.ts, 29, 15)) +>J12 : Symbol(J12, Decl(relationDepthSharedCheckOrder.ts, 30, 27)) + +interface I12 { next: I13 } +>I12 : Symbol(I12, Decl(relationDepthSharedCheckOrder.ts, 29, 27)) +>next : Symbol(I12.next, Decl(relationDepthSharedCheckOrder.ts, 30, 15)) +>I13 : Symbol(I13, Decl(relationDepthSharedCheckOrder.ts, 31, 27)) + +interface J12 { next: J13 } +>J12 : Symbol(J12, Decl(relationDepthSharedCheckOrder.ts, 30, 27)) +>next : Symbol(J12.next, Decl(relationDepthSharedCheckOrder.ts, 31, 15)) +>J13 : Symbol(J13, Decl(relationDepthSharedCheckOrder.ts, 32, 27)) + +interface I13 { next: I14 } +>I13 : Symbol(I13, Decl(relationDepthSharedCheckOrder.ts, 31, 27)) +>next : Symbol(I13.next, Decl(relationDepthSharedCheckOrder.ts, 32, 15)) +>I14 : Symbol(I14, Decl(relationDepthSharedCheckOrder.ts, 33, 27)) + +interface J13 { next: J14 } +>J13 : Symbol(J13, Decl(relationDepthSharedCheckOrder.ts, 32, 27)) +>next : Symbol(J13.next, Decl(relationDepthSharedCheckOrder.ts, 33, 15)) +>J14 : Symbol(J14, Decl(relationDepthSharedCheckOrder.ts, 34, 27)) + +interface I14 { next: I15 } +>I14 : Symbol(I14, Decl(relationDepthSharedCheckOrder.ts, 33, 27)) +>next : Symbol(I14.next, Decl(relationDepthSharedCheckOrder.ts, 34, 15)) +>I15 : Symbol(I15, Decl(relationDepthSharedCheckOrder.ts, 35, 27)) + +interface J14 { next: J15 } +>J14 : Symbol(J14, Decl(relationDepthSharedCheckOrder.ts, 34, 27)) +>next : Symbol(J14.next, Decl(relationDepthSharedCheckOrder.ts, 35, 15)) +>J15 : Symbol(J15, Decl(relationDepthSharedCheckOrder.ts, 36, 27)) + +interface I15 { next: I16 } +>I15 : Symbol(I15, Decl(relationDepthSharedCheckOrder.ts, 35, 27)) +>next : Symbol(I15.next, Decl(relationDepthSharedCheckOrder.ts, 36, 15)) +>I16 : Symbol(I16, Decl(relationDepthSharedCheckOrder.ts, 37, 27)) + +interface J15 { next: J16 } +>J15 : Symbol(J15, Decl(relationDepthSharedCheckOrder.ts, 36, 27)) +>next : Symbol(J15.next, Decl(relationDepthSharedCheckOrder.ts, 37, 15)) +>J16 : Symbol(J16, Decl(relationDepthSharedCheckOrder.ts, 38, 27)) + +interface I16 { next: I17 } +>I16 : Symbol(I16, Decl(relationDepthSharedCheckOrder.ts, 37, 27)) +>next : Symbol(I16.next, Decl(relationDepthSharedCheckOrder.ts, 38, 15)) +>I17 : Symbol(I17, Decl(relationDepthSharedCheckOrder.ts, 39, 27)) + +interface J16 { next: J17 } +>J16 : Symbol(J16, Decl(relationDepthSharedCheckOrder.ts, 38, 27)) +>next : Symbol(J16.next, Decl(relationDepthSharedCheckOrder.ts, 39, 15)) +>J17 : Symbol(J17, Decl(relationDepthSharedCheckOrder.ts, 40, 27)) + +interface I17 { next: I18 } +>I17 : Symbol(I17, Decl(relationDepthSharedCheckOrder.ts, 39, 27)) +>next : Symbol(I17.next, Decl(relationDepthSharedCheckOrder.ts, 40, 15)) +>I18 : Symbol(I18, Decl(relationDepthSharedCheckOrder.ts, 41, 27)) + +interface J17 { next: J18 } +>J17 : Symbol(J17, Decl(relationDepthSharedCheckOrder.ts, 40, 27)) +>next : Symbol(J17.next, Decl(relationDepthSharedCheckOrder.ts, 41, 15)) +>J18 : Symbol(J18, Decl(relationDepthSharedCheckOrder.ts, 42, 27)) + +interface I18 { next: I19 } +>I18 : Symbol(I18, Decl(relationDepthSharedCheckOrder.ts, 41, 27)) +>next : Symbol(I18.next, Decl(relationDepthSharedCheckOrder.ts, 42, 15)) +>I19 : Symbol(I19, Decl(relationDepthSharedCheckOrder.ts, 43, 27)) + +interface J18 { next: J19 } +>J18 : Symbol(J18, Decl(relationDepthSharedCheckOrder.ts, 42, 27)) +>next : Symbol(J18.next, Decl(relationDepthSharedCheckOrder.ts, 43, 15)) +>J19 : Symbol(J19, Decl(relationDepthSharedCheckOrder.ts, 44, 27)) + +interface I19 { next: I20 } +>I19 : Symbol(I19, Decl(relationDepthSharedCheckOrder.ts, 43, 27)) +>next : Symbol(I19.next, Decl(relationDepthSharedCheckOrder.ts, 44, 15)) +>I20 : Symbol(I20, Decl(relationDepthSharedCheckOrder.ts, 45, 27)) + +interface J19 { next: J20 } +>J19 : Symbol(J19, Decl(relationDepthSharedCheckOrder.ts, 44, 27)) +>next : Symbol(J19.next, Decl(relationDepthSharedCheckOrder.ts, 45, 15)) +>J20 : Symbol(J20, Decl(relationDepthSharedCheckOrder.ts, 46, 27)) + +interface I20 { next: I21 } +>I20 : Symbol(I20, Decl(relationDepthSharedCheckOrder.ts, 45, 27)) +>next : Symbol(I20.next, Decl(relationDepthSharedCheckOrder.ts, 46, 15)) +>I21 : Symbol(I21, Decl(relationDepthSharedCheckOrder.ts, 47, 27)) + +interface J20 { next: J21 } +>J20 : Symbol(J20, Decl(relationDepthSharedCheckOrder.ts, 46, 27)) +>next : Symbol(J20.next, Decl(relationDepthSharedCheckOrder.ts, 47, 15)) +>J21 : Symbol(J21, Decl(relationDepthSharedCheckOrder.ts, 48, 27)) + +interface I21 { next: I22 } +>I21 : Symbol(I21, Decl(relationDepthSharedCheckOrder.ts, 47, 27)) +>next : Symbol(I21.next, Decl(relationDepthSharedCheckOrder.ts, 48, 15)) +>I22 : Symbol(I22, Decl(relationDepthSharedCheckOrder.ts, 49, 27)) + +interface J21 { next: J22 } +>J21 : Symbol(J21, Decl(relationDepthSharedCheckOrder.ts, 48, 27)) +>next : Symbol(J21.next, Decl(relationDepthSharedCheckOrder.ts, 49, 15)) +>J22 : Symbol(J22, Decl(relationDepthSharedCheckOrder.ts, 50, 27)) + +interface I22 { next: I23 } +>I22 : Symbol(I22, Decl(relationDepthSharedCheckOrder.ts, 49, 27)) +>next : Symbol(I22.next, Decl(relationDepthSharedCheckOrder.ts, 50, 15)) +>I23 : Symbol(I23, Decl(relationDepthSharedCheckOrder.ts, 51, 27)) + +interface J22 { next: J23 } +>J22 : Symbol(J22, Decl(relationDepthSharedCheckOrder.ts, 50, 27)) +>next : Symbol(J22.next, Decl(relationDepthSharedCheckOrder.ts, 51, 15)) +>J23 : Symbol(J23, Decl(relationDepthSharedCheckOrder.ts, 52, 27)) + +interface I23 { next: I24 } +>I23 : Symbol(I23, Decl(relationDepthSharedCheckOrder.ts, 51, 27)) +>next : Symbol(I23.next, Decl(relationDepthSharedCheckOrder.ts, 52, 15)) +>I24 : Symbol(I24, Decl(relationDepthSharedCheckOrder.ts, 53, 27)) + +interface J23 { next: J24 } +>J23 : Symbol(J23, Decl(relationDepthSharedCheckOrder.ts, 52, 27)) +>next : Symbol(J23.next, Decl(relationDepthSharedCheckOrder.ts, 53, 15)) +>J24 : Symbol(J24, Decl(relationDepthSharedCheckOrder.ts, 54, 27)) + +interface I24 { next: I25 } +>I24 : Symbol(I24, Decl(relationDepthSharedCheckOrder.ts, 53, 27)) +>next : Symbol(I24.next, Decl(relationDepthSharedCheckOrder.ts, 54, 15)) +>I25 : Symbol(I25, Decl(relationDepthSharedCheckOrder.ts, 55, 27)) + +interface J24 { next: J25 } +>J24 : Symbol(J24, Decl(relationDepthSharedCheckOrder.ts, 54, 27)) +>next : Symbol(J24.next, Decl(relationDepthSharedCheckOrder.ts, 55, 15)) +>J25 : Symbol(J25, Decl(relationDepthSharedCheckOrder.ts, 56, 27)) + +interface I25 { next: I26 } +>I25 : Symbol(I25, Decl(relationDepthSharedCheckOrder.ts, 55, 27)) +>next : Symbol(I25.next, Decl(relationDepthSharedCheckOrder.ts, 56, 15)) +>I26 : Symbol(I26, Decl(relationDepthSharedCheckOrder.ts, 57, 27)) + +interface J25 { next: J26 } +>J25 : Symbol(J25, Decl(relationDepthSharedCheckOrder.ts, 56, 27)) +>next : Symbol(J25.next, Decl(relationDepthSharedCheckOrder.ts, 57, 15)) +>J26 : Symbol(J26, Decl(relationDepthSharedCheckOrder.ts, 58, 27)) + +interface I26 { next: I27 } +>I26 : Symbol(I26, Decl(relationDepthSharedCheckOrder.ts, 57, 27)) +>next : Symbol(I26.next, Decl(relationDepthSharedCheckOrder.ts, 58, 15)) +>I27 : Symbol(I27, Decl(relationDepthSharedCheckOrder.ts, 59, 27)) + +interface J26 { next: J27 } +>J26 : Symbol(J26, Decl(relationDepthSharedCheckOrder.ts, 58, 27)) +>next : Symbol(J26.next, Decl(relationDepthSharedCheckOrder.ts, 59, 15)) +>J27 : Symbol(J27, Decl(relationDepthSharedCheckOrder.ts, 60, 27)) + +interface I27 { next: I28 } +>I27 : Symbol(I27, Decl(relationDepthSharedCheckOrder.ts, 59, 27)) +>next : Symbol(I27.next, Decl(relationDepthSharedCheckOrder.ts, 60, 15)) +>I28 : Symbol(I28, Decl(relationDepthSharedCheckOrder.ts, 61, 27)) + +interface J27 { next: J28 } +>J27 : Symbol(J27, Decl(relationDepthSharedCheckOrder.ts, 60, 27)) +>next : Symbol(J27.next, Decl(relationDepthSharedCheckOrder.ts, 61, 15)) +>J28 : Symbol(J28, Decl(relationDepthSharedCheckOrder.ts, 62, 27)) + +interface I28 { next: I29 } +>I28 : Symbol(I28, Decl(relationDepthSharedCheckOrder.ts, 61, 27)) +>next : Symbol(I28.next, Decl(relationDepthSharedCheckOrder.ts, 62, 15)) +>I29 : Symbol(I29, Decl(relationDepthSharedCheckOrder.ts, 63, 27)) + +interface J28 { next: J29 } +>J28 : Symbol(J28, Decl(relationDepthSharedCheckOrder.ts, 62, 27)) +>next : Symbol(J28.next, Decl(relationDepthSharedCheckOrder.ts, 63, 15)) +>J29 : Symbol(J29, Decl(relationDepthSharedCheckOrder.ts, 64, 27)) + +interface I29 { next: I30 } +>I29 : Symbol(I29, Decl(relationDepthSharedCheckOrder.ts, 63, 27)) +>next : Symbol(I29.next, Decl(relationDepthSharedCheckOrder.ts, 64, 15)) +>I30 : Symbol(I30, Decl(relationDepthSharedCheckOrder.ts, 65, 27)) + +interface J29 { next: J30 } +>J29 : Symbol(J29, Decl(relationDepthSharedCheckOrder.ts, 64, 27)) +>next : Symbol(J29.next, Decl(relationDepthSharedCheckOrder.ts, 65, 15)) +>J30 : Symbol(J30, Decl(relationDepthSharedCheckOrder.ts, 66, 27)) + +interface I30 { next: I31 } +>I30 : Symbol(I30, Decl(relationDepthSharedCheckOrder.ts, 65, 27)) +>next : Symbol(I30.next, Decl(relationDepthSharedCheckOrder.ts, 66, 15)) +>I31 : Symbol(I31, Decl(relationDepthSharedCheckOrder.ts, 67, 27)) + +interface J30 { next: J31 } +>J30 : Symbol(J30, Decl(relationDepthSharedCheckOrder.ts, 66, 27)) +>next : Symbol(J30.next, Decl(relationDepthSharedCheckOrder.ts, 67, 15)) +>J31 : Symbol(J31, Decl(relationDepthSharedCheckOrder.ts, 68, 27)) + +interface I31 { next: I32 } +>I31 : Symbol(I31, Decl(relationDepthSharedCheckOrder.ts, 67, 27)) +>next : Symbol(I31.next, Decl(relationDepthSharedCheckOrder.ts, 68, 15)) +>I32 : Symbol(I32, Decl(relationDepthSharedCheckOrder.ts, 69, 27)) + +interface J31 { next: J32 } +>J31 : Symbol(J31, Decl(relationDepthSharedCheckOrder.ts, 68, 27)) +>next : Symbol(J31.next, Decl(relationDepthSharedCheckOrder.ts, 69, 15)) +>J32 : Symbol(J32, Decl(relationDepthSharedCheckOrder.ts, 70, 27)) + +interface I32 { next: I33 } +>I32 : Symbol(I32, Decl(relationDepthSharedCheckOrder.ts, 69, 27)) +>next : Symbol(I32.next, Decl(relationDepthSharedCheckOrder.ts, 70, 15)) +>I33 : Symbol(I33, Decl(relationDepthSharedCheckOrder.ts, 71, 27)) + +interface J32 { next: J33 } +>J32 : Symbol(J32, Decl(relationDepthSharedCheckOrder.ts, 70, 27)) +>next : Symbol(J32.next, Decl(relationDepthSharedCheckOrder.ts, 71, 15)) +>J33 : Symbol(J33, Decl(relationDepthSharedCheckOrder.ts, 72, 27)) + +interface I33 { next: I34 } +>I33 : Symbol(I33, Decl(relationDepthSharedCheckOrder.ts, 71, 27)) +>next : Symbol(I33.next, Decl(relationDepthSharedCheckOrder.ts, 72, 15)) +>I34 : Symbol(I34, Decl(relationDepthSharedCheckOrder.ts, 73, 27)) + +interface J33 { next: J34 } +>J33 : Symbol(J33, Decl(relationDepthSharedCheckOrder.ts, 72, 27)) +>next : Symbol(J33.next, Decl(relationDepthSharedCheckOrder.ts, 73, 15)) +>J34 : Symbol(J34, Decl(relationDepthSharedCheckOrder.ts, 74, 27)) + +interface I34 { next: I35 } +>I34 : Symbol(I34, Decl(relationDepthSharedCheckOrder.ts, 73, 27)) +>next : Symbol(I34.next, Decl(relationDepthSharedCheckOrder.ts, 74, 15)) +>I35 : Symbol(I35, Decl(relationDepthSharedCheckOrder.ts, 75, 27)) + +interface J34 { next: J35 } +>J34 : Symbol(J34, Decl(relationDepthSharedCheckOrder.ts, 74, 27)) +>next : Symbol(J34.next, Decl(relationDepthSharedCheckOrder.ts, 75, 15)) +>J35 : Symbol(J35, Decl(relationDepthSharedCheckOrder.ts, 76, 27)) + +interface I35 { next: I36 } +>I35 : Symbol(I35, Decl(relationDepthSharedCheckOrder.ts, 75, 27)) +>next : Symbol(I35.next, Decl(relationDepthSharedCheckOrder.ts, 76, 15)) +>I36 : Symbol(I36, Decl(relationDepthSharedCheckOrder.ts, 77, 27)) + +interface J35 { next: J36 } +>J35 : Symbol(J35, Decl(relationDepthSharedCheckOrder.ts, 76, 27)) +>next : Symbol(J35.next, Decl(relationDepthSharedCheckOrder.ts, 77, 15)) +>J36 : Symbol(J36, Decl(relationDepthSharedCheckOrder.ts, 78, 27)) + +interface I36 { next: I37 } +>I36 : Symbol(I36, Decl(relationDepthSharedCheckOrder.ts, 77, 27)) +>next : Symbol(I36.next, Decl(relationDepthSharedCheckOrder.ts, 78, 15)) +>I37 : Symbol(I37, Decl(relationDepthSharedCheckOrder.ts, 79, 27)) + +interface J36 { next: J37 } +>J36 : Symbol(J36, Decl(relationDepthSharedCheckOrder.ts, 78, 27)) +>next : Symbol(J36.next, Decl(relationDepthSharedCheckOrder.ts, 79, 15)) +>J37 : Symbol(J37, Decl(relationDepthSharedCheckOrder.ts, 80, 27)) + +interface I37 { next: I38 } +>I37 : Symbol(I37, Decl(relationDepthSharedCheckOrder.ts, 79, 27)) +>next : Symbol(I37.next, Decl(relationDepthSharedCheckOrder.ts, 80, 15)) +>I38 : Symbol(I38, Decl(relationDepthSharedCheckOrder.ts, 81, 27)) + +interface J37 { next: J38 } +>J37 : Symbol(J37, Decl(relationDepthSharedCheckOrder.ts, 80, 27)) +>next : Symbol(J37.next, Decl(relationDepthSharedCheckOrder.ts, 81, 15)) +>J38 : Symbol(J38, Decl(relationDepthSharedCheckOrder.ts, 82, 27)) + +interface I38 { next: I39 } +>I38 : Symbol(I38, Decl(relationDepthSharedCheckOrder.ts, 81, 27)) +>next : Symbol(I38.next, Decl(relationDepthSharedCheckOrder.ts, 82, 15)) +>I39 : Symbol(I39, Decl(relationDepthSharedCheckOrder.ts, 83, 27)) + +interface J38 { next: J39 } +>J38 : Symbol(J38, Decl(relationDepthSharedCheckOrder.ts, 82, 27)) +>next : Symbol(J38.next, Decl(relationDepthSharedCheckOrder.ts, 83, 15)) +>J39 : Symbol(J39, Decl(relationDepthSharedCheckOrder.ts, 84, 27)) + +interface I39 { next: I40 } +>I39 : Symbol(I39, Decl(relationDepthSharedCheckOrder.ts, 83, 27)) +>next : Symbol(I39.next, Decl(relationDepthSharedCheckOrder.ts, 84, 15)) +>I40 : Symbol(I40, Decl(relationDepthSharedCheckOrder.ts, 85, 27)) + +interface J39 { next: J40 } +>J39 : Symbol(J39, Decl(relationDepthSharedCheckOrder.ts, 84, 27)) +>next : Symbol(J39.next, Decl(relationDepthSharedCheckOrder.ts, 85, 15)) +>J40 : Symbol(J40, Decl(relationDepthSharedCheckOrder.ts, 86, 27)) + +interface I40 { next: I41 } +>I40 : Symbol(I40, Decl(relationDepthSharedCheckOrder.ts, 85, 27)) +>next : Symbol(I40.next, Decl(relationDepthSharedCheckOrder.ts, 86, 15)) +>I41 : Symbol(I41, Decl(relationDepthSharedCheckOrder.ts, 87, 27)) + +interface J40 { next: J41 } +>J40 : Symbol(J40, Decl(relationDepthSharedCheckOrder.ts, 86, 27)) +>next : Symbol(J40.next, Decl(relationDepthSharedCheckOrder.ts, 87, 15)) +>J41 : Symbol(J41, Decl(relationDepthSharedCheckOrder.ts, 88, 27)) + +interface I41 { next: I42 } +>I41 : Symbol(I41, Decl(relationDepthSharedCheckOrder.ts, 87, 27)) +>next : Symbol(I41.next, Decl(relationDepthSharedCheckOrder.ts, 88, 15)) +>I42 : Symbol(I42, Decl(relationDepthSharedCheckOrder.ts, 89, 27)) + +interface J41 { next: J42 } +>J41 : Symbol(J41, Decl(relationDepthSharedCheckOrder.ts, 88, 27)) +>next : Symbol(J41.next, Decl(relationDepthSharedCheckOrder.ts, 89, 15)) +>J42 : Symbol(J42, Decl(relationDepthSharedCheckOrder.ts, 90, 27)) + +interface I42 { next: I43 } +>I42 : Symbol(I42, Decl(relationDepthSharedCheckOrder.ts, 89, 27)) +>next : Symbol(I42.next, Decl(relationDepthSharedCheckOrder.ts, 90, 15)) +>I43 : Symbol(I43, Decl(relationDepthSharedCheckOrder.ts, 91, 27)) + +interface J42 { next: J43 } +>J42 : Symbol(J42, Decl(relationDepthSharedCheckOrder.ts, 90, 27)) +>next : Symbol(J42.next, Decl(relationDepthSharedCheckOrder.ts, 91, 15)) +>J43 : Symbol(J43, Decl(relationDepthSharedCheckOrder.ts, 92, 27)) + +interface I43 { next: I44 } +>I43 : Symbol(I43, Decl(relationDepthSharedCheckOrder.ts, 91, 27)) +>next : Symbol(I43.next, Decl(relationDepthSharedCheckOrder.ts, 92, 15)) +>I44 : Symbol(I44, Decl(relationDepthSharedCheckOrder.ts, 93, 27)) + +interface J43 { next: J44 } +>J43 : Symbol(J43, Decl(relationDepthSharedCheckOrder.ts, 92, 27)) +>next : Symbol(J43.next, Decl(relationDepthSharedCheckOrder.ts, 93, 15)) +>J44 : Symbol(J44, Decl(relationDepthSharedCheckOrder.ts, 94, 27)) + +interface I44 { next: I45 } +>I44 : Symbol(I44, Decl(relationDepthSharedCheckOrder.ts, 93, 27)) +>next : Symbol(I44.next, Decl(relationDepthSharedCheckOrder.ts, 94, 15)) +>I45 : Symbol(I45, Decl(relationDepthSharedCheckOrder.ts, 95, 27)) + +interface J44 { next: J45 } +>J44 : Symbol(J44, Decl(relationDepthSharedCheckOrder.ts, 94, 27)) +>next : Symbol(J44.next, Decl(relationDepthSharedCheckOrder.ts, 95, 15)) +>J45 : Symbol(J45, Decl(relationDepthSharedCheckOrder.ts, 96, 27)) + +interface I45 { next: I46 } +>I45 : Symbol(I45, Decl(relationDepthSharedCheckOrder.ts, 95, 27)) +>next : Symbol(I45.next, Decl(relationDepthSharedCheckOrder.ts, 96, 15)) +>I46 : Symbol(I46, Decl(relationDepthSharedCheckOrder.ts, 97, 27)) + +interface J45 { next: J46 } +>J45 : Symbol(J45, Decl(relationDepthSharedCheckOrder.ts, 96, 27)) +>next : Symbol(J45.next, Decl(relationDepthSharedCheckOrder.ts, 97, 15)) +>J46 : Symbol(J46, Decl(relationDepthSharedCheckOrder.ts, 98, 27)) + +interface I46 { next: I47 } +>I46 : Symbol(I46, Decl(relationDepthSharedCheckOrder.ts, 97, 27)) +>next : Symbol(I46.next, Decl(relationDepthSharedCheckOrder.ts, 98, 15)) +>I47 : Symbol(I47, Decl(relationDepthSharedCheckOrder.ts, 99, 27)) + +interface J46 { next: J47 } +>J46 : Symbol(J46, Decl(relationDepthSharedCheckOrder.ts, 98, 27)) +>next : Symbol(J46.next, Decl(relationDepthSharedCheckOrder.ts, 99, 15)) +>J47 : Symbol(J47, Decl(relationDepthSharedCheckOrder.ts, 100, 27)) + +interface I47 { next: I48 } +>I47 : Symbol(I47, Decl(relationDepthSharedCheckOrder.ts, 99, 27)) +>next : Symbol(I47.next, Decl(relationDepthSharedCheckOrder.ts, 100, 15)) +>I48 : Symbol(I48, Decl(relationDepthSharedCheckOrder.ts, 101, 27)) + +interface J47 { next: J48 } +>J47 : Symbol(J47, Decl(relationDepthSharedCheckOrder.ts, 100, 27)) +>next : Symbol(J47.next, Decl(relationDepthSharedCheckOrder.ts, 101, 15)) +>J48 : Symbol(J48, Decl(relationDepthSharedCheckOrder.ts, 102, 27)) + +interface I48 { next: I49 } +>I48 : Symbol(I48, Decl(relationDepthSharedCheckOrder.ts, 101, 27)) +>next : Symbol(I48.next, Decl(relationDepthSharedCheckOrder.ts, 102, 15)) +>I49 : Symbol(I49, Decl(relationDepthSharedCheckOrder.ts, 103, 27)) + +interface J48 { next: J49 } +>J48 : Symbol(J48, Decl(relationDepthSharedCheckOrder.ts, 102, 27)) +>next : Symbol(J48.next, Decl(relationDepthSharedCheckOrder.ts, 103, 15)) +>J49 : Symbol(J49, Decl(relationDepthSharedCheckOrder.ts, 104, 27)) + +interface I49 { next: I50 } +>I49 : Symbol(I49, Decl(relationDepthSharedCheckOrder.ts, 103, 27)) +>next : Symbol(I49.next, Decl(relationDepthSharedCheckOrder.ts, 104, 15)) +>I50 : Symbol(I50, Decl(relationDepthSharedCheckOrder.ts, 105, 27)) + +interface J49 { next: J50 } +>J49 : Symbol(J49, Decl(relationDepthSharedCheckOrder.ts, 104, 27)) +>next : Symbol(J49.next, Decl(relationDepthSharedCheckOrder.ts, 105, 15)) +>J50 : Symbol(J50, Decl(relationDepthSharedCheckOrder.ts, 106, 27)) + +interface I50 { next: I51 } +>I50 : Symbol(I50, Decl(relationDepthSharedCheckOrder.ts, 105, 27)) +>next : Symbol(I50.next, Decl(relationDepthSharedCheckOrder.ts, 106, 15)) +>I51 : Symbol(I51, Decl(relationDepthSharedCheckOrder.ts, 107, 27)) + +interface J50 { next: J51 } +>J50 : Symbol(J50, Decl(relationDepthSharedCheckOrder.ts, 106, 27)) +>next : Symbol(J50.next, Decl(relationDepthSharedCheckOrder.ts, 107, 15)) +>J51 : Symbol(J51, Decl(relationDepthSharedCheckOrder.ts, 108, 27)) + +interface I51 { next: I52 } +>I51 : Symbol(I51, Decl(relationDepthSharedCheckOrder.ts, 107, 27)) +>next : Symbol(I51.next, Decl(relationDepthSharedCheckOrder.ts, 108, 15)) +>I52 : Symbol(I52, Decl(relationDepthSharedCheckOrder.ts, 109, 27)) + +interface J51 { next: J52 } +>J51 : Symbol(J51, Decl(relationDepthSharedCheckOrder.ts, 108, 27)) +>next : Symbol(J51.next, Decl(relationDepthSharedCheckOrder.ts, 109, 15)) +>J52 : Symbol(J52, Decl(relationDepthSharedCheckOrder.ts, 110, 27)) + +interface I52 { next: I53 } +>I52 : Symbol(I52, Decl(relationDepthSharedCheckOrder.ts, 109, 27)) +>next : Symbol(I52.next, Decl(relationDepthSharedCheckOrder.ts, 110, 15)) +>I53 : Symbol(I53, Decl(relationDepthSharedCheckOrder.ts, 111, 27)) + +interface J52 { next: J53 } +>J52 : Symbol(J52, Decl(relationDepthSharedCheckOrder.ts, 110, 27)) +>next : Symbol(J52.next, Decl(relationDepthSharedCheckOrder.ts, 111, 15)) +>J53 : Symbol(J53, Decl(relationDepthSharedCheckOrder.ts, 112, 27)) + +interface I53 { next: I54 } +>I53 : Symbol(I53, Decl(relationDepthSharedCheckOrder.ts, 111, 27)) +>next : Symbol(I53.next, Decl(relationDepthSharedCheckOrder.ts, 112, 15)) +>I54 : Symbol(I54, Decl(relationDepthSharedCheckOrder.ts, 113, 27)) + +interface J53 { next: J54 } +>J53 : Symbol(J53, Decl(relationDepthSharedCheckOrder.ts, 112, 27)) +>next : Symbol(J53.next, Decl(relationDepthSharedCheckOrder.ts, 113, 15)) +>J54 : Symbol(J54, Decl(relationDepthSharedCheckOrder.ts, 114, 27)) + +interface I54 { next: I55 } +>I54 : Symbol(I54, Decl(relationDepthSharedCheckOrder.ts, 113, 27)) +>next : Symbol(I54.next, Decl(relationDepthSharedCheckOrder.ts, 114, 15)) +>I55 : Symbol(I55, Decl(relationDepthSharedCheckOrder.ts, 115, 27)) + +interface J54 { next: J55 } +>J54 : Symbol(J54, Decl(relationDepthSharedCheckOrder.ts, 114, 27)) +>next : Symbol(J54.next, Decl(relationDepthSharedCheckOrder.ts, 115, 15)) +>J55 : Symbol(J55, Decl(relationDepthSharedCheckOrder.ts, 116, 27)) + +interface I55 { next: I56 } +>I55 : Symbol(I55, Decl(relationDepthSharedCheckOrder.ts, 115, 27)) +>next : Symbol(I55.next, Decl(relationDepthSharedCheckOrder.ts, 116, 15)) +>I56 : Symbol(I56, Decl(relationDepthSharedCheckOrder.ts, 117, 27)) + +interface J55 { next: J56 } +>J55 : Symbol(J55, Decl(relationDepthSharedCheckOrder.ts, 116, 27)) +>next : Symbol(J55.next, Decl(relationDepthSharedCheckOrder.ts, 117, 15)) +>J56 : Symbol(J56, Decl(relationDepthSharedCheckOrder.ts, 118, 27)) + +interface I56 { next: I57 } +>I56 : Symbol(I56, Decl(relationDepthSharedCheckOrder.ts, 117, 27)) +>next : Symbol(I56.next, Decl(relationDepthSharedCheckOrder.ts, 118, 15)) +>I57 : Symbol(I57, Decl(relationDepthSharedCheckOrder.ts, 119, 27)) + +interface J56 { next: J57 } +>J56 : Symbol(J56, Decl(relationDepthSharedCheckOrder.ts, 118, 27)) +>next : Symbol(J56.next, Decl(relationDepthSharedCheckOrder.ts, 119, 15)) +>J57 : Symbol(J57, Decl(relationDepthSharedCheckOrder.ts, 120, 27)) + +interface I57 { next: I58 } +>I57 : Symbol(I57, Decl(relationDepthSharedCheckOrder.ts, 119, 27)) +>next : Symbol(I57.next, Decl(relationDepthSharedCheckOrder.ts, 120, 15)) +>I58 : Symbol(I58, Decl(relationDepthSharedCheckOrder.ts, 121, 27)) + +interface J57 { next: J58 } +>J57 : Symbol(J57, Decl(relationDepthSharedCheckOrder.ts, 120, 27)) +>next : Symbol(J57.next, Decl(relationDepthSharedCheckOrder.ts, 121, 15)) +>J58 : Symbol(J58, Decl(relationDepthSharedCheckOrder.ts, 122, 27)) + +interface I58 { next: I59 } +>I58 : Symbol(I58, Decl(relationDepthSharedCheckOrder.ts, 121, 27)) +>next : Symbol(I58.next, Decl(relationDepthSharedCheckOrder.ts, 122, 15)) +>I59 : Symbol(I59, Decl(relationDepthSharedCheckOrder.ts, 123, 27)) + +interface J58 { next: J59 } +>J58 : Symbol(J58, Decl(relationDepthSharedCheckOrder.ts, 122, 27)) +>next : Symbol(J58.next, Decl(relationDepthSharedCheckOrder.ts, 123, 15)) +>J59 : Symbol(J59, Decl(relationDepthSharedCheckOrder.ts, 124, 27)) + +interface I59 { next: I60 } +>I59 : Symbol(I59, Decl(relationDepthSharedCheckOrder.ts, 123, 27)) +>next : Symbol(I59.next, Decl(relationDepthSharedCheckOrder.ts, 124, 15)) +>I60 : Symbol(I60, Decl(relationDepthSharedCheckOrder.ts, 125, 27)) + +interface J59 { next: J60 } +>J59 : Symbol(J59, Decl(relationDepthSharedCheckOrder.ts, 124, 27)) +>next : Symbol(J59.next, Decl(relationDepthSharedCheckOrder.ts, 125, 15)) +>J60 : Symbol(J60, Decl(relationDepthSharedCheckOrder.ts, 126, 27)) + +interface I60 { next: I61 } +>I60 : Symbol(I60, Decl(relationDepthSharedCheckOrder.ts, 125, 27)) +>next : Symbol(I60.next, Decl(relationDepthSharedCheckOrder.ts, 126, 15)) +>I61 : Symbol(I61, Decl(relationDepthSharedCheckOrder.ts, 127, 27)) + +interface J60 { next: J61 } +>J60 : Symbol(J60, Decl(relationDepthSharedCheckOrder.ts, 126, 27)) +>next : Symbol(J60.next, Decl(relationDepthSharedCheckOrder.ts, 127, 15)) +>J61 : Symbol(J61, Decl(relationDepthSharedCheckOrder.ts, 128, 27)) + +interface I61 { next: I62 } +>I61 : Symbol(I61, Decl(relationDepthSharedCheckOrder.ts, 127, 27)) +>next : Symbol(I61.next, Decl(relationDepthSharedCheckOrder.ts, 128, 15)) +>I62 : Symbol(I62, Decl(relationDepthSharedCheckOrder.ts, 129, 27)) + +interface J61 { next: J62 } +>J61 : Symbol(J61, Decl(relationDepthSharedCheckOrder.ts, 128, 27)) +>next : Symbol(J61.next, Decl(relationDepthSharedCheckOrder.ts, 129, 15)) +>J62 : Symbol(J62, Decl(relationDepthSharedCheckOrder.ts, 130, 27)) + +interface I62 { next: I63 } +>I62 : Symbol(I62, Decl(relationDepthSharedCheckOrder.ts, 129, 27)) +>next : Symbol(I62.next, Decl(relationDepthSharedCheckOrder.ts, 130, 15)) +>I63 : Symbol(I63, Decl(relationDepthSharedCheckOrder.ts, 131, 27)) + +interface J62 { next: J63 } +>J62 : Symbol(J62, Decl(relationDepthSharedCheckOrder.ts, 130, 27)) +>next : Symbol(J62.next, Decl(relationDepthSharedCheckOrder.ts, 131, 15)) +>J63 : Symbol(J63, Decl(relationDepthSharedCheckOrder.ts, 132, 27)) + +interface I63 { next: I64 } +>I63 : Symbol(I63, Decl(relationDepthSharedCheckOrder.ts, 131, 27)) +>next : Symbol(I63.next, Decl(relationDepthSharedCheckOrder.ts, 132, 15)) +>I64 : Symbol(I64, Decl(relationDepthSharedCheckOrder.ts, 133, 27)) + +interface J63 { next: J64 } +>J63 : Symbol(J63, Decl(relationDepthSharedCheckOrder.ts, 132, 27)) +>next : Symbol(J63.next, Decl(relationDepthSharedCheckOrder.ts, 133, 15)) +>J64 : Symbol(J64, Decl(relationDepthSharedCheckOrder.ts, 134, 27)) + +interface I64 { next: I65 } +>I64 : Symbol(I64, Decl(relationDepthSharedCheckOrder.ts, 133, 27)) +>next : Symbol(I64.next, Decl(relationDepthSharedCheckOrder.ts, 134, 15)) +>I65 : Symbol(I65, Decl(relationDepthSharedCheckOrder.ts, 135, 27)) + +interface J64 { next: J65 } +>J64 : Symbol(J64, Decl(relationDepthSharedCheckOrder.ts, 134, 27)) +>next : Symbol(J64.next, Decl(relationDepthSharedCheckOrder.ts, 135, 15)) +>J65 : Symbol(J65, Decl(relationDepthSharedCheckOrder.ts, 136, 27)) + +interface I65 { next: I66 } +>I65 : Symbol(I65, Decl(relationDepthSharedCheckOrder.ts, 135, 27)) +>next : Symbol(I65.next, Decl(relationDepthSharedCheckOrder.ts, 136, 15)) +>I66 : Symbol(I66, Decl(relationDepthSharedCheckOrder.ts, 137, 27)) + +interface J65 { next: J66 } +>J65 : Symbol(J65, Decl(relationDepthSharedCheckOrder.ts, 136, 27)) +>next : Symbol(J65.next, Decl(relationDepthSharedCheckOrder.ts, 137, 15)) +>J66 : Symbol(J66, Decl(relationDepthSharedCheckOrder.ts, 138, 27)) + +interface I66 { next: I67 } +>I66 : Symbol(I66, Decl(relationDepthSharedCheckOrder.ts, 137, 27)) +>next : Symbol(I66.next, Decl(relationDepthSharedCheckOrder.ts, 138, 15)) +>I67 : Symbol(I67, Decl(relationDepthSharedCheckOrder.ts, 139, 27)) + +interface J66 { next: J67 } +>J66 : Symbol(J66, Decl(relationDepthSharedCheckOrder.ts, 138, 27)) +>next : Symbol(J66.next, Decl(relationDepthSharedCheckOrder.ts, 139, 15)) +>J67 : Symbol(J67, Decl(relationDepthSharedCheckOrder.ts, 140, 27)) + +interface I67 { next: I68 } +>I67 : Symbol(I67, Decl(relationDepthSharedCheckOrder.ts, 139, 27)) +>next : Symbol(I67.next, Decl(relationDepthSharedCheckOrder.ts, 140, 15)) +>I68 : Symbol(I68, Decl(relationDepthSharedCheckOrder.ts, 141, 27)) + +interface J67 { next: J68 } +>J67 : Symbol(J67, Decl(relationDepthSharedCheckOrder.ts, 140, 27)) +>next : Symbol(J67.next, Decl(relationDepthSharedCheckOrder.ts, 141, 15)) +>J68 : Symbol(J68, Decl(relationDepthSharedCheckOrder.ts, 142, 27)) + +interface I68 { next: I69 } +>I68 : Symbol(I68, Decl(relationDepthSharedCheckOrder.ts, 141, 27)) +>next : Symbol(I68.next, Decl(relationDepthSharedCheckOrder.ts, 142, 15)) +>I69 : Symbol(I69, Decl(relationDepthSharedCheckOrder.ts, 143, 27)) + +interface J68 { next: J69 } +>J68 : Symbol(J68, Decl(relationDepthSharedCheckOrder.ts, 142, 27)) +>next : Symbol(J68.next, Decl(relationDepthSharedCheckOrder.ts, 143, 15)) +>J69 : Symbol(J69, Decl(relationDepthSharedCheckOrder.ts, 144, 27)) + +interface I69 { next: I70 } +>I69 : Symbol(I69, Decl(relationDepthSharedCheckOrder.ts, 143, 27)) +>next : Symbol(I69.next, Decl(relationDepthSharedCheckOrder.ts, 144, 15)) +>I70 : Symbol(I70, Decl(relationDepthSharedCheckOrder.ts, 145, 27)) + +interface J69 { next: J70 } +>J69 : Symbol(J69, Decl(relationDepthSharedCheckOrder.ts, 144, 27)) +>next : Symbol(J69.next, Decl(relationDepthSharedCheckOrder.ts, 145, 15)) +>J70 : Symbol(J70, Decl(relationDepthSharedCheckOrder.ts, 146, 27)) + +interface I70 { next: I71 } +>I70 : Symbol(I70, Decl(relationDepthSharedCheckOrder.ts, 145, 27)) +>next : Symbol(I70.next, Decl(relationDepthSharedCheckOrder.ts, 146, 15)) +>I71 : Symbol(I71, Decl(relationDepthSharedCheckOrder.ts, 147, 27)) + +interface J70 { next: J71 } +>J70 : Symbol(J70, Decl(relationDepthSharedCheckOrder.ts, 146, 27)) +>next : Symbol(J70.next, Decl(relationDepthSharedCheckOrder.ts, 147, 15)) +>J71 : Symbol(J71, Decl(relationDepthSharedCheckOrder.ts, 148, 27)) + +interface I71 { next: I72 } +>I71 : Symbol(I71, Decl(relationDepthSharedCheckOrder.ts, 147, 27)) +>next : Symbol(I71.next, Decl(relationDepthSharedCheckOrder.ts, 148, 15)) +>I72 : Symbol(I72, Decl(relationDepthSharedCheckOrder.ts, 149, 27)) + +interface J71 { next: J72 } +>J71 : Symbol(J71, Decl(relationDepthSharedCheckOrder.ts, 148, 27)) +>next : Symbol(J71.next, Decl(relationDepthSharedCheckOrder.ts, 149, 15)) +>J72 : Symbol(J72, Decl(relationDepthSharedCheckOrder.ts, 150, 27)) + +interface I72 { next: I73 } +>I72 : Symbol(I72, Decl(relationDepthSharedCheckOrder.ts, 149, 27)) +>next : Symbol(I72.next, Decl(relationDepthSharedCheckOrder.ts, 150, 15)) +>I73 : Symbol(I73, Decl(relationDepthSharedCheckOrder.ts, 151, 27)) + +interface J72 { next: J73 } +>J72 : Symbol(J72, Decl(relationDepthSharedCheckOrder.ts, 150, 27)) +>next : Symbol(J72.next, Decl(relationDepthSharedCheckOrder.ts, 151, 15)) +>J73 : Symbol(J73, Decl(relationDepthSharedCheckOrder.ts, 152, 27)) + +interface I73 { next: I74 } +>I73 : Symbol(I73, Decl(relationDepthSharedCheckOrder.ts, 151, 27)) +>next : Symbol(I73.next, Decl(relationDepthSharedCheckOrder.ts, 152, 15)) +>I74 : Symbol(I74, Decl(relationDepthSharedCheckOrder.ts, 153, 27)) + +interface J73 { next: J74 } +>J73 : Symbol(J73, Decl(relationDepthSharedCheckOrder.ts, 152, 27)) +>next : Symbol(J73.next, Decl(relationDepthSharedCheckOrder.ts, 153, 15)) +>J74 : Symbol(J74, Decl(relationDepthSharedCheckOrder.ts, 154, 27)) + +interface I74 { next: I75 } +>I74 : Symbol(I74, Decl(relationDepthSharedCheckOrder.ts, 153, 27)) +>next : Symbol(I74.next, Decl(relationDepthSharedCheckOrder.ts, 154, 15)) +>I75 : Symbol(I75, Decl(relationDepthSharedCheckOrder.ts, 155, 27)) + +interface J74 { next: J75 } +>J74 : Symbol(J74, Decl(relationDepthSharedCheckOrder.ts, 154, 27)) +>next : Symbol(J74.next, Decl(relationDepthSharedCheckOrder.ts, 155, 15)) +>J75 : Symbol(J75, Decl(relationDepthSharedCheckOrder.ts, 156, 27)) + +interface I75 { next: I76 } +>I75 : Symbol(I75, Decl(relationDepthSharedCheckOrder.ts, 155, 27)) +>next : Symbol(I75.next, Decl(relationDepthSharedCheckOrder.ts, 156, 15)) +>I76 : Symbol(I76, Decl(relationDepthSharedCheckOrder.ts, 157, 27)) + +interface J75 { next: J76 } +>J75 : Symbol(J75, Decl(relationDepthSharedCheckOrder.ts, 156, 27)) +>next : Symbol(J75.next, Decl(relationDepthSharedCheckOrder.ts, 157, 15)) +>J76 : Symbol(J76, Decl(relationDepthSharedCheckOrder.ts, 158, 27)) + +interface I76 { next: I77 } +>I76 : Symbol(I76, Decl(relationDepthSharedCheckOrder.ts, 157, 27)) +>next : Symbol(I76.next, Decl(relationDepthSharedCheckOrder.ts, 158, 15)) +>I77 : Symbol(I77, Decl(relationDepthSharedCheckOrder.ts, 159, 27)) + +interface J76 { next: J77 } +>J76 : Symbol(J76, Decl(relationDepthSharedCheckOrder.ts, 158, 27)) +>next : Symbol(J76.next, Decl(relationDepthSharedCheckOrder.ts, 159, 15)) +>J77 : Symbol(J77, Decl(relationDepthSharedCheckOrder.ts, 160, 27)) + +interface I77 { next: I78 } +>I77 : Symbol(I77, Decl(relationDepthSharedCheckOrder.ts, 159, 27)) +>next : Symbol(I77.next, Decl(relationDepthSharedCheckOrder.ts, 160, 15)) +>I78 : Symbol(I78, Decl(relationDepthSharedCheckOrder.ts, 161, 27)) + +interface J77 { next: J78 } +>J77 : Symbol(J77, Decl(relationDepthSharedCheckOrder.ts, 160, 27)) +>next : Symbol(J77.next, Decl(relationDepthSharedCheckOrder.ts, 161, 15)) +>J78 : Symbol(J78, Decl(relationDepthSharedCheckOrder.ts, 162, 27)) + +interface I78 { next: I79 } +>I78 : Symbol(I78, Decl(relationDepthSharedCheckOrder.ts, 161, 27)) +>next : Symbol(I78.next, Decl(relationDepthSharedCheckOrder.ts, 162, 15)) +>I79 : Symbol(I79, Decl(relationDepthSharedCheckOrder.ts, 163, 27)) + +interface J78 { next: J79 } +>J78 : Symbol(J78, Decl(relationDepthSharedCheckOrder.ts, 162, 27)) +>next : Symbol(J78.next, Decl(relationDepthSharedCheckOrder.ts, 163, 15)) +>J79 : Symbol(J79, Decl(relationDepthSharedCheckOrder.ts, 164, 27)) + +interface I79 { next: I80 } +>I79 : Symbol(I79, Decl(relationDepthSharedCheckOrder.ts, 163, 27)) +>next : Symbol(I79.next, Decl(relationDepthSharedCheckOrder.ts, 164, 15)) +>I80 : Symbol(I80, Decl(relationDepthSharedCheckOrder.ts, 165, 27)) + +interface J79 { next: J80 } +>J79 : Symbol(J79, Decl(relationDepthSharedCheckOrder.ts, 164, 27)) +>next : Symbol(J79.next, Decl(relationDepthSharedCheckOrder.ts, 165, 15)) +>J80 : Symbol(J80, Decl(relationDepthSharedCheckOrder.ts, 166, 27)) + +interface I80 { next: I81 } +>I80 : Symbol(I80, Decl(relationDepthSharedCheckOrder.ts, 165, 27)) +>next : Symbol(I80.next, Decl(relationDepthSharedCheckOrder.ts, 166, 15)) +>I81 : Symbol(I81, Decl(relationDepthSharedCheckOrder.ts, 167, 27)) + +interface J80 { next: J81 } +>J80 : Symbol(J80, Decl(relationDepthSharedCheckOrder.ts, 166, 27)) +>next : Symbol(J80.next, Decl(relationDepthSharedCheckOrder.ts, 167, 15)) +>J81 : Symbol(J81, Decl(relationDepthSharedCheckOrder.ts, 168, 27)) + +interface I81 { next: I82 } +>I81 : Symbol(I81, Decl(relationDepthSharedCheckOrder.ts, 167, 27)) +>next : Symbol(I81.next, Decl(relationDepthSharedCheckOrder.ts, 168, 15)) +>I82 : Symbol(I82, Decl(relationDepthSharedCheckOrder.ts, 169, 27)) + +interface J81 { next: J82 } +>J81 : Symbol(J81, Decl(relationDepthSharedCheckOrder.ts, 168, 27)) +>next : Symbol(J81.next, Decl(relationDepthSharedCheckOrder.ts, 169, 15)) +>J82 : Symbol(J82, Decl(relationDepthSharedCheckOrder.ts, 170, 27)) + +interface I82 { next: I83 } +>I82 : Symbol(I82, Decl(relationDepthSharedCheckOrder.ts, 169, 27)) +>next : Symbol(I82.next, Decl(relationDepthSharedCheckOrder.ts, 170, 15)) +>I83 : Symbol(I83, Decl(relationDepthSharedCheckOrder.ts, 171, 27)) + +interface J82 { next: J83 } +>J82 : Symbol(J82, Decl(relationDepthSharedCheckOrder.ts, 170, 27)) +>next : Symbol(J82.next, Decl(relationDepthSharedCheckOrder.ts, 171, 15)) +>J83 : Symbol(J83, Decl(relationDepthSharedCheckOrder.ts, 172, 27)) + +interface I83 { next: I84 } +>I83 : Symbol(I83, Decl(relationDepthSharedCheckOrder.ts, 171, 27)) +>next : Symbol(I83.next, Decl(relationDepthSharedCheckOrder.ts, 172, 15)) +>I84 : Symbol(I84, Decl(relationDepthSharedCheckOrder.ts, 173, 27)) + +interface J83 { next: J84 } +>J83 : Symbol(J83, Decl(relationDepthSharedCheckOrder.ts, 172, 27)) +>next : Symbol(J83.next, Decl(relationDepthSharedCheckOrder.ts, 173, 15)) +>J84 : Symbol(J84, Decl(relationDepthSharedCheckOrder.ts, 174, 27)) + +interface I84 { next: I85 } +>I84 : Symbol(I84, Decl(relationDepthSharedCheckOrder.ts, 173, 27)) +>next : Symbol(I84.next, Decl(relationDepthSharedCheckOrder.ts, 174, 15)) +>I85 : Symbol(I85, Decl(relationDepthSharedCheckOrder.ts, 175, 27)) + +interface J84 { next: J85 } +>J84 : Symbol(J84, Decl(relationDepthSharedCheckOrder.ts, 174, 27)) +>next : Symbol(J84.next, Decl(relationDepthSharedCheckOrder.ts, 175, 15)) +>J85 : Symbol(J85, Decl(relationDepthSharedCheckOrder.ts, 176, 27)) + +interface I85 { next: I86 } +>I85 : Symbol(I85, Decl(relationDepthSharedCheckOrder.ts, 175, 27)) +>next : Symbol(I85.next, Decl(relationDepthSharedCheckOrder.ts, 176, 15)) +>I86 : Symbol(I86, Decl(relationDepthSharedCheckOrder.ts, 177, 27)) + +interface J85 { next: J86 } +>J85 : Symbol(J85, Decl(relationDepthSharedCheckOrder.ts, 176, 27)) +>next : Symbol(J85.next, Decl(relationDepthSharedCheckOrder.ts, 177, 15)) +>J86 : Symbol(J86, Decl(relationDepthSharedCheckOrder.ts, 178, 27)) + +interface I86 { next: I87 } +>I86 : Symbol(I86, Decl(relationDepthSharedCheckOrder.ts, 177, 27)) +>next : Symbol(I86.next, Decl(relationDepthSharedCheckOrder.ts, 178, 15)) +>I87 : Symbol(I87, Decl(relationDepthSharedCheckOrder.ts, 179, 27)) + +interface J86 { next: J87 } +>J86 : Symbol(J86, Decl(relationDepthSharedCheckOrder.ts, 178, 27)) +>next : Symbol(J86.next, Decl(relationDepthSharedCheckOrder.ts, 179, 15)) +>J87 : Symbol(J87, Decl(relationDepthSharedCheckOrder.ts, 180, 27)) + +interface I87 { next: I88 } +>I87 : Symbol(I87, Decl(relationDepthSharedCheckOrder.ts, 179, 27)) +>next : Symbol(I87.next, Decl(relationDepthSharedCheckOrder.ts, 180, 15)) +>I88 : Symbol(I88, Decl(relationDepthSharedCheckOrder.ts, 181, 27)) + +interface J87 { next: J88 } +>J87 : Symbol(J87, Decl(relationDepthSharedCheckOrder.ts, 180, 27)) +>next : Symbol(J87.next, Decl(relationDepthSharedCheckOrder.ts, 181, 15)) +>J88 : Symbol(J88, Decl(relationDepthSharedCheckOrder.ts, 182, 27)) + +interface I88 { next: I89 } +>I88 : Symbol(I88, Decl(relationDepthSharedCheckOrder.ts, 181, 27)) +>next : Symbol(I88.next, Decl(relationDepthSharedCheckOrder.ts, 182, 15)) +>I89 : Symbol(I89, Decl(relationDepthSharedCheckOrder.ts, 183, 27)) + +interface J88 { next: J89 } +>J88 : Symbol(J88, Decl(relationDepthSharedCheckOrder.ts, 182, 27)) +>next : Symbol(J88.next, Decl(relationDepthSharedCheckOrder.ts, 183, 15)) +>J89 : Symbol(J89, Decl(relationDepthSharedCheckOrder.ts, 184, 27)) + +interface I89 { next: I90 } +>I89 : Symbol(I89, Decl(relationDepthSharedCheckOrder.ts, 183, 27)) +>next : Symbol(I89.next, Decl(relationDepthSharedCheckOrder.ts, 184, 15)) +>I90 : Symbol(I90, Decl(relationDepthSharedCheckOrder.ts, 185, 27)) + +interface J89 { next: J90 } +>J89 : Symbol(J89, Decl(relationDepthSharedCheckOrder.ts, 184, 27)) +>next : Symbol(J89.next, Decl(relationDepthSharedCheckOrder.ts, 185, 15)) +>J90 : Symbol(J90, Decl(relationDepthSharedCheckOrder.ts, 186, 27)) + +interface I90 { next: I91 } +>I90 : Symbol(I90, Decl(relationDepthSharedCheckOrder.ts, 185, 27)) +>next : Symbol(I90.next, Decl(relationDepthSharedCheckOrder.ts, 186, 15)) +>I91 : Symbol(I91, Decl(relationDepthSharedCheckOrder.ts, 187, 27)) + +interface J90 { next: J91 } +>J90 : Symbol(J90, Decl(relationDepthSharedCheckOrder.ts, 186, 27)) +>next : Symbol(J90.next, Decl(relationDepthSharedCheckOrder.ts, 187, 15)) +>J91 : Symbol(J91, Decl(relationDepthSharedCheckOrder.ts, 188, 27)) + +interface I91 { next: I92 } +>I91 : Symbol(I91, Decl(relationDepthSharedCheckOrder.ts, 187, 27)) +>next : Symbol(I91.next, Decl(relationDepthSharedCheckOrder.ts, 188, 15)) +>I92 : Symbol(I92, Decl(relationDepthSharedCheckOrder.ts, 189, 27)) + +interface J91 { next: J92 } +>J91 : Symbol(J91, Decl(relationDepthSharedCheckOrder.ts, 188, 27)) +>next : Symbol(J91.next, Decl(relationDepthSharedCheckOrder.ts, 189, 15)) +>J92 : Symbol(J92, Decl(relationDepthSharedCheckOrder.ts, 190, 27)) + +interface I92 { next: I93 } +>I92 : Symbol(I92, Decl(relationDepthSharedCheckOrder.ts, 189, 27)) +>next : Symbol(I92.next, Decl(relationDepthSharedCheckOrder.ts, 190, 15)) +>I93 : Symbol(I93, Decl(relationDepthSharedCheckOrder.ts, 191, 27)) + +interface J92 { next: J93 } +>J92 : Symbol(J92, Decl(relationDepthSharedCheckOrder.ts, 190, 27)) +>next : Symbol(J92.next, Decl(relationDepthSharedCheckOrder.ts, 191, 15)) +>J93 : Symbol(J93, Decl(relationDepthSharedCheckOrder.ts, 192, 27)) + +interface I93 { next: I94 } +>I93 : Symbol(I93, Decl(relationDepthSharedCheckOrder.ts, 191, 27)) +>next : Symbol(I93.next, Decl(relationDepthSharedCheckOrder.ts, 192, 15)) +>I94 : Symbol(I94, Decl(relationDepthSharedCheckOrder.ts, 193, 27)) + +interface J93 { next: J94 } +>J93 : Symbol(J93, Decl(relationDepthSharedCheckOrder.ts, 192, 27)) +>next : Symbol(J93.next, Decl(relationDepthSharedCheckOrder.ts, 193, 15)) +>J94 : Symbol(J94, Decl(relationDepthSharedCheckOrder.ts, 194, 27)) + +interface I94 { next: I95 } +>I94 : Symbol(I94, Decl(relationDepthSharedCheckOrder.ts, 193, 27)) +>next : Symbol(I94.next, Decl(relationDepthSharedCheckOrder.ts, 194, 15)) +>I95 : Symbol(I95, Decl(relationDepthSharedCheckOrder.ts, 195, 27)) + +interface J94 { next: J95 } +>J94 : Symbol(J94, Decl(relationDepthSharedCheckOrder.ts, 194, 27)) +>next : Symbol(J94.next, Decl(relationDepthSharedCheckOrder.ts, 195, 15)) +>J95 : Symbol(J95, Decl(relationDepthSharedCheckOrder.ts, 196, 27)) + +interface I95 { next: I96 } +>I95 : Symbol(I95, Decl(relationDepthSharedCheckOrder.ts, 195, 27)) +>next : Symbol(I95.next, Decl(relationDepthSharedCheckOrder.ts, 196, 15)) +>I96 : Symbol(I96, Decl(relationDepthSharedCheckOrder.ts, 197, 27)) + +interface J95 { next: J96 } +>J95 : Symbol(J95, Decl(relationDepthSharedCheckOrder.ts, 196, 27)) +>next : Symbol(J95.next, Decl(relationDepthSharedCheckOrder.ts, 197, 15)) +>J96 : Symbol(J96, Decl(relationDepthSharedCheckOrder.ts, 198, 27)) + +interface I96 { next: I97 } +>I96 : Symbol(I96, Decl(relationDepthSharedCheckOrder.ts, 197, 27)) +>next : Symbol(I96.next, Decl(relationDepthSharedCheckOrder.ts, 198, 15)) +>I97 : Symbol(I97, Decl(relationDepthSharedCheckOrder.ts, 199, 27)) + +interface J96 { next: J97 } +>J96 : Symbol(J96, Decl(relationDepthSharedCheckOrder.ts, 198, 27)) +>next : Symbol(J96.next, Decl(relationDepthSharedCheckOrder.ts, 199, 15)) +>J97 : Symbol(J97, Decl(relationDepthSharedCheckOrder.ts, 200, 27)) + +interface I97 { next: I98 } +>I97 : Symbol(I97, Decl(relationDepthSharedCheckOrder.ts, 199, 27)) +>next : Symbol(I97.next, Decl(relationDepthSharedCheckOrder.ts, 200, 15)) +>I98 : Symbol(I98, Decl(relationDepthSharedCheckOrder.ts, 201, 27)) + +interface J97 { next: J98 } +>J97 : Symbol(J97, Decl(relationDepthSharedCheckOrder.ts, 200, 27)) +>next : Symbol(J97.next, Decl(relationDepthSharedCheckOrder.ts, 201, 15)) +>J98 : Symbol(J98, Decl(relationDepthSharedCheckOrder.ts, 202, 27)) + +interface I98 { next: I99 } +>I98 : Symbol(I98, Decl(relationDepthSharedCheckOrder.ts, 201, 27)) +>next : Symbol(I98.next, Decl(relationDepthSharedCheckOrder.ts, 202, 15)) +>I99 : Symbol(I99, Decl(relationDepthSharedCheckOrder.ts, 203, 27)) + +interface J98 { next: J99 } +>J98 : Symbol(J98, Decl(relationDepthSharedCheckOrder.ts, 202, 27)) +>next : Symbol(J98.next, Decl(relationDepthSharedCheckOrder.ts, 203, 15)) +>J99 : Symbol(J99, Decl(relationDepthSharedCheckOrder.ts, 204, 28)) + +interface I99 { next: I100 } +>I99 : Symbol(I99, Decl(relationDepthSharedCheckOrder.ts, 203, 27)) +>next : Symbol(I99.next, Decl(relationDepthSharedCheckOrder.ts, 204, 15)) +>I100 : Symbol(I100, Decl(relationDepthSharedCheckOrder.ts, 205, 28)) + +interface J99 { next: J100 } +>J99 : Symbol(J99, Decl(relationDepthSharedCheckOrder.ts, 204, 28)) +>next : Symbol(J99.next, Decl(relationDepthSharedCheckOrder.ts, 205, 15)) +>J100 : Symbol(J100, Decl(relationDepthSharedCheckOrder.ts, 206, 29)) + +interface I100 { next: I101 } +>I100 : Symbol(I100, Decl(relationDepthSharedCheckOrder.ts, 205, 28)) +>next : Symbol(I100.next, Decl(relationDepthSharedCheckOrder.ts, 206, 16)) +>I101 : Symbol(I101, Decl(relationDepthSharedCheckOrder.ts, 207, 29)) + +interface J100 { next: J101 } +>J100 : Symbol(J100, Decl(relationDepthSharedCheckOrder.ts, 206, 29)) +>next : Symbol(J100.next, Decl(relationDepthSharedCheckOrder.ts, 207, 16)) +>J101 : Symbol(J101, Decl(relationDepthSharedCheckOrder.ts, 208, 29)) + +interface I101 { next: I102 } +>I101 : Symbol(I101, Decl(relationDepthSharedCheckOrder.ts, 207, 29)) +>next : Symbol(I101.next, Decl(relationDepthSharedCheckOrder.ts, 208, 16)) +>I102 : Symbol(I102, Decl(relationDepthSharedCheckOrder.ts, 209, 29)) + +interface J101 { next: J102 } +>J101 : Symbol(J101, Decl(relationDepthSharedCheckOrder.ts, 208, 29)) +>next : Symbol(J101.next, Decl(relationDepthSharedCheckOrder.ts, 209, 16)) +>J102 : Symbol(J102, Decl(relationDepthSharedCheckOrder.ts, 210, 29)) + +interface I102 { next: I103 } +>I102 : Symbol(I102, Decl(relationDepthSharedCheckOrder.ts, 209, 29)) +>next : Symbol(I102.next, Decl(relationDepthSharedCheckOrder.ts, 210, 16)) +>I103 : Symbol(I103, Decl(relationDepthSharedCheckOrder.ts, 211, 29)) + +interface J102 { next: J103 } +>J102 : Symbol(J102, Decl(relationDepthSharedCheckOrder.ts, 210, 29)) +>next : Symbol(J102.next, Decl(relationDepthSharedCheckOrder.ts, 211, 16)) +>J103 : Symbol(J103, Decl(relationDepthSharedCheckOrder.ts, 212, 29)) + +interface I103 { next: I104 } +>I103 : Symbol(I103, Decl(relationDepthSharedCheckOrder.ts, 211, 29)) +>next : Symbol(I103.next, Decl(relationDepthSharedCheckOrder.ts, 212, 16)) +>I104 : Symbol(I104, Decl(relationDepthSharedCheckOrder.ts, 213, 29)) + +interface J103 { next: J104 } +>J103 : Symbol(J103, Decl(relationDepthSharedCheckOrder.ts, 212, 29)) +>next : Symbol(J103.next, Decl(relationDepthSharedCheckOrder.ts, 213, 16)) +>J104 : Symbol(J104, Decl(relationDepthSharedCheckOrder.ts, 214, 29)) + +interface I104 { next: I105 } +>I104 : Symbol(I104, Decl(relationDepthSharedCheckOrder.ts, 213, 29)) +>next : Symbol(I104.next, Decl(relationDepthSharedCheckOrder.ts, 214, 16)) +>I105 : Symbol(I105, Decl(relationDepthSharedCheckOrder.ts, 215, 29)) + +interface J104 { next: J105 } +>J104 : Symbol(J104, Decl(relationDepthSharedCheckOrder.ts, 214, 29)) +>next : Symbol(J104.next, Decl(relationDepthSharedCheckOrder.ts, 215, 16)) +>J105 : Symbol(J105, Decl(relationDepthSharedCheckOrder.ts, 216, 29)) + +interface I105 { next: I106 } +>I105 : Symbol(I105, Decl(relationDepthSharedCheckOrder.ts, 215, 29)) +>next : Symbol(I105.next, Decl(relationDepthSharedCheckOrder.ts, 216, 16)) +>I106 : Symbol(I106, Decl(relationDepthSharedCheckOrder.ts, 217, 29)) + +interface J105 { next: J106 } +>J105 : Symbol(J105, Decl(relationDepthSharedCheckOrder.ts, 216, 29)) +>next : Symbol(J105.next, Decl(relationDepthSharedCheckOrder.ts, 217, 16)) +>J106 : Symbol(J106, Decl(relationDepthSharedCheckOrder.ts, 218, 29)) + +interface I106 { next: I107 } +>I106 : Symbol(I106, Decl(relationDepthSharedCheckOrder.ts, 217, 29)) +>next : Symbol(I106.next, Decl(relationDepthSharedCheckOrder.ts, 218, 16)) +>I107 : Symbol(I107, Decl(relationDepthSharedCheckOrder.ts, 219, 29)) + +interface J106 { next: J107 } +>J106 : Symbol(J106, Decl(relationDepthSharedCheckOrder.ts, 218, 29)) +>next : Symbol(J106.next, Decl(relationDepthSharedCheckOrder.ts, 219, 16)) +>J107 : Symbol(J107, Decl(relationDepthSharedCheckOrder.ts, 220, 29)) + +interface I107 { next: I108 } +>I107 : Symbol(I107, Decl(relationDepthSharedCheckOrder.ts, 219, 29)) +>next : Symbol(I107.next, Decl(relationDepthSharedCheckOrder.ts, 220, 16)) +>I108 : Symbol(I108, Decl(relationDepthSharedCheckOrder.ts, 221, 29)) + +interface J107 { next: J108 } +>J107 : Symbol(J107, Decl(relationDepthSharedCheckOrder.ts, 220, 29)) +>next : Symbol(J107.next, Decl(relationDepthSharedCheckOrder.ts, 221, 16)) +>J108 : Symbol(J108, Decl(relationDepthSharedCheckOrder.ts, 222, 29)) + +interface I108 { next: I109 } +>I108 : Symbol(I108, Decl(relationDepthSharedCheckOrder.ts, 221, 29)) +>next : Symbol(I108.next, Decl(relationDepthSharedCheckOrder.ts, 222, 16)) +>I109 : Symbol(I109, Decl(relationDepthSharedCheckOrder.ts, 223, 29)) + +interface J108 { next: J109 } +>J108 : Symbol(J108, Decl(relationDepthSharedCheckOrder.ts, 222, 29)) +>next : Symbol(J108.next, Decl(relationDepthSharedCheckOrder.ts, 223, 16)) +>J109 : Symbol(J109, Decl(relationDepthSharedCheckOrder.ts, 224, 29)) + +interface I109 { next: I110 } +>I109 : Symbol(I109, Decl(relationDepthSharedCheckOrder.ts, 223, 29)) +>next : Symbol(I109.next, Decl(relationDepthSharedCheckOrder.ts, 224, 16)) +>I110 : Symbol(I110, Decl(relationDepthSharedCheckOrder.ts, 225, 29)) + +interface J109 { next: J110 } +>J109 : Symbol(J109, Decl(relationDepthSharedCheckOrder.ts, 224, 29)) +>next : Symbol(J109.next, Decl(relationDepthSharedCheckOrder.ts, 225, 16)) +>J110 : Symbol(J110, Decl(relationDepthSharedCheckOrder.ts, 226, 29)) + +interface I110 { next: I111 } +>I110 : Symbol(I110, Decl(relationDepthSharedCheckOrder.ts, 225, 29)) +>next : Symbol(I110.next, Decl(relationDepthSharedCheckOrder.ts, 226, 16)) +>I111 : Symbol(I111, Decl(relationDepthSharedCheckOrder.ts, 227, 29)) + +interface J110 { next: J111 } +>J110 : Symbol(J110, Decl(relationDepthSharedCheckOrder.ts, 226, 29)) +>next : Symbol(J110.next, Decl(relationDepthSharedCheckOrder.ts, 227, 16)) +>J111 : Symbol(J111, Decl(relationDepthSharedCheckOrder.ts, 228, 29)) + +interface I111 { next: I112 } +>I111 : Symbol(I111, Decl(relationDepthSharedCheckOrder.ts, 227, 29)) +>next : Symbol(I111.next, Decl(relationDepthSharedCheckOrder.ts, 228, 16)) +>I112 : Symbol(I112, Decl(relationDepthSharedCheckOrder.ts, 229, 29)) + +interface J111 { next: J112 } +>J111 : Symbol(J111, Decl(relationDepthSharedCheckOrder.ts, 228, 29)) +>next : Symbol(J111.next, Decl(relationDepthSharedCheckOrder.ts, 229, 16)) +>J112 : Symbol(J112, Decl(relationDepthSharedCheckOrder.ts, 230, 29)) + +interface I112 { next: I113 } +>I112 : Symbol(I112, Decl(relationDepthSharedCheckOrder.ts, 229, 29)) +>next : Symbol(I112.next, Decl(relationDepthSharedCheckOrder.ts, 230, 16)) +>I113 : Symbol(I113, Decl(relationDepthSharedCheckOrder.ts, 231, 29)) + +interface J112 { next: J113 } +>J112 : Symbol(J112, Decl(relationDepthSharedCheckOrder.ts, 230, 29)) +>next : Symbol(J112.next, Decl(relationDepthSharedCheckOrder.ts, 231, 16)) +>J113 : Symbol(J113, Decl(relationDepthSharedCheckOrder.ts, 232, 29)) + +interface I113 { next: I114 } +>I113 : Symbol(I113, Decl(relationDepthSharedCheckOrder.ts, 231, 29)) +>next : Symbol(I113.next, Decl(relationDepthSharedCheckOrder.ts, 232, 16)) +>I114 : Symbol(I114, Decl(relationDepthSharedCheckOrder.ts, 233, 29)) + +interface J113 { next: J114 } +>J113 : Symbol(J113, Decl(relationDepthSharedCheckOrder.ts, 232, 29)) +>next : Symbol(J113.next, Decl(relationDepthSharedCheckOrder.ts, 233, 16)) +>J114 : Symbol(J114, Decl(relationDepthSharedCheckOrder.ts, 234, 29)) + +interface I114 { next: I115 } +>I114 : Symbol(I114, Decl(relationDepthSharedCheckOrder.ts, 233, 29)) +>next : Symbol(I114.next, Decl(relationDepthSharedCheckOrder.ts, 234, 16)) +>I115 : Symbol(I115, Decl(relationDepthSharedCheckOrder.ts, 235, 29)) + +interface J114 { next: J115 } +>J114 : Symbol(J114, Decl(relationDepthSharedCheckOrder.ts, 234, 29)) +>next : Symbol(J114.next, Decl(relationDepthSharedCheckOrder.ts, 235, 16)) +>J115 : Symbol(J115, Decl(relationDepthSharedCheckOrder.ts, 236, 29)) + +interface I115 { next: I116 } +>I115 : Symbol(I115, Decl(relationDepthSharedCheckOrder.ts, 235, 29)) +>next : Symbol(I115.next, Decl(relationDepthSharedCheckOrder.ts, 236, 16)) +>I116 : Symbol(I116, Decl(relationDepthSharedCheckOrder.ts, 237, 29)) + +interface J115 { next: J116 } +>J115 : Symbol(J115, Decl(relationDepthSharedCheckOrder.ts, 236, 29)) +>next : Symbol(J115.next, Decl(relationDepthSharedCheckOrder.ts, 237, 16)) +>J116 : Symbol(J116, Decl(relationDepthSharedCheckOrder.ts, 238, 29)) + +interface I116 { next: I117 } +>I116 : Symbol(I116, Decl(relationDepthSharedCheckOrder.ts, 237, 29)) +>next : Symbol(I116.next, Decl(relationDepthSharedCheckOrder.ts, 238, 16)) +>I117 : Symbol(I117, Decl(relationDepthSharedCheckOrder.ts, 239, 29)) + +interface J116 { next: J117 } +>J116 : Symbol(J116, Decl(relationDepthSharedCheckOrder.ts, 238, 29)) +>next : Symbol(J116.next, Decl(relationDepthSharedCheckOrder.ts, 239, 16)) +>J117 : Symbol(J117, Decl(relationDepthSharedCheckOrder.ts, 240, 29)) + +interface I117 { next: I118 } +>I117 : Symbol(I117, Decl(relationDepthSharedCheckOrder.ts, 239, 29)) +>next : Symbol(I117.next, Decl(relationDepthSharedCheckOrder.ts, 240, 16)) +>I118 : Symbol(I118, Decl(relationDepthSharedCheckOrder.ts, 241, 29)) + +interface J117 { next: J118 } +>J117 : Symbol(J117, Decl(relationDepthSharedCheckOrder.ts, 240, 29)) +>next : Symbol(J117.next, Decl(relationDepthSharedCheckOrder.ts, 241, 16)) +>J118 : Symbol(J118, Decl(relationDepthSharedCheckOrder.ts, 242, 29)) + +interface I118 { next: I119 } +>I118 : Symbol(I118, Decl(relationDepthSharedCheckOrder.ts, 241, 29)) +>next : Symbol(I118.next, Decl(relationDepthSharedCheckOrder.ts, 242, 16)) +>I119 : Symbol(I119, Decl(relationDepthSharedCheckOrder.ts, 243, 29)) + +interface J118 { next: J119 } +>J118 : Symbol(J118, Decl(relationDepthSharedCheckOrder.ts, 242, 29)) +>next : Symbol(J118.next, Decl(relationDepthSharedCheckOrder.ts, 243, 16)) +>J119 : Symbol(J119, Decl(relationDepthSharedCheckOrder.ts, 244, 31)) + +interface I119 { leaf: string } +>I119 : Symbol(I119, Decl(relationDepthSharedCheckOrder.ts, 243, 29)) +>leaf : Symbol(I119.leaf, Decl(relationDepthSharedCheckOrder.ts, 244, 16)) + +interface J119 { leaf: number } +>J119 : Symbol(J119, Decl(relationDepthSharedCheckOrder.ts, 244, 31)) +>leaf : Symbol(J119.leaf, Decl(relationDepthSharedCheckOrder.ts, 245, 16)) + +type Mid = I60 extends J60 ? true : false; +>Mid : Symbol(Mid, Decl(relationDepthSharedCheckOrder.ts, 245, 31)) +>I60 : Symbol(I60, Decl(relationDepthSharedCheckOrder.ts, 125, 27)) +>J60 : Symbol(J60, Decl(relationDepthSharedCheckOrder.ts, 126, 27)) + +type All = I0 extends J0 ? true : false; +>All : Symbol(All, Decl(relationDepthSharedCheckOrder.ts, 247, 42)) +>I0 : Symbol(I0, Decl(relationDepthSharedCheckOrder.ts, 0, 0)) +>J0 : Symbol(J0, Decl(relationDepthSharedCheckOrder.ts, 6, 25)) + diff --git a/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..4d25be7bdfdba --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationDepthSharedCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,739 @@ +//// [tests/cases/compiler/relationDepthSharedCheckOrder.ts] //// + +=== relationDepthSharedCheckOrder.ts === +// Relating I0 to J0 fresh nests a comparison 100 levels deep, where it is +// cut short and so succeeds. In program order Mid has already found that +// I60 is not related to J60. Whether I0 is related to J0 must not depend +// on which comes first. Conditional types relate without reporting errors, +// which would compute the comparison again. + +interface I0 { next: I1 } +>next : I1 + +interface J0 { next: J1 } +>next : J1 + +interface I1 { next: I2 } +>next : I2 + +interface J1 { next: J2 } +>next : J2 + +interface I2 { next: I3 } +>next : I3 + +interface J2 { next: J3 } +>next : J3 + +interface I3 { next: I4 } +>next : I4 + +interface J3 { next: J4 } +>next : J4 + +interface I4 { next: I5 } +>next : I5 + +interface J4 { next: J5 } +>next : J5 + +interface I5 { next: I6 } +>next : I6 + +interface J5 { next: J6 } +>next : J6 + +interface I6 { next: I7 } +>next : I7 + +interface J6 { next: J7 } +>next : J7 + +interface I7 { next: I8 } +>next : I8 + +interface J7 { next: J8 } +>next : J8 + +interface I8 { next: I9 } +>next : I9 + +interface J8 { next: J9 } +>next : J9 + +interface I9 { next: I10 } +>next : I10 + +interface J9 { next: J10 } +>next : J10 + +interface I10 { next: I11 } +>next : I11 + +interface J10 { next: J11 } +>next : J11 + +interface I11 { next: I12 } +>next : I12 + +interface J11 { next: J12 } +>next : J12 + +interface I12 { next: I13 } +>next : I13 + +interface J12 { next: J13 } +>next : J13 + +interface I13 { next: I14 } +>next : I14 + +interface J13 { next: J14 } +>next : J14 + +interface I14 { next: I15 } +>next : I15 + +interface J14 { next: J15 } +>next : J15 + +interface I15 { next: I16 } +>next : I16 + +interface J15 { next: J16 } +>next : J16 + +interface I16 { next: I17 } +>next : I17 + +interface J16 { next: J17 } +>next : J17 + +interface I17 { next: I18 } +>next : I18 + +interface J17 { next: J18 } +>next : J18 + +interface I18 { next: I19 } +>next : I19 + +interface J18 { next: J19 } +>next : J19 + +interface I19 { next: I20 } +>next : I20 + +interface J19 { next: J20 } +>next : J20 + +interface I20 { next: I21 } +>next : I21 + +interface J20 { next: J21 } +>next : J21 + +interface I21 { next: I22 } +>next : I22 + +interface J21 { next: J22 } +>next : J22 + +interface I22 { next: I23 } +>next : I23 + +interface J22 { next: J23 } +>next : J23 + +interface I23 { next: I24 } +>next : I24 + +interface J23 { next: J24 } +>next : J24 + +interface I24 { next: I25 } +>next : I25 + +interface J24 { next: J25 } +>next : J25 + +interface I25 { next: I26 } +>next : I26 + +interface J25 { next: J26 } +>next : J26 + +interface I26 { next: I27 } +>next : I27 + +interface J26 { next: J27 } +>next : J27 + +interface I27 { next: I28 } +>next : I28 + +interface J27 { next: J28 } +>next : J28 + +interface I28 { next: I29 } +>next : I29 + +interface J28 { next: J29 } +>next : J29 + +interface I29 { next: I30 } +>next : I30 + +interface J29 { next: J30 } +>next : J30 + +interface I30 { next: I31 } +>next : I31 + +interface J30 { next: J31 } +>next : J31 + +interface I31 { next: I32 } +>next : I32 + +interface J31 { next: J32 } +>next : J32 + +interface I32 { next: I33 } +>next : I33 + +interface J32 { next: J33 } +>next : J33 + +interface I33 { next: I34 } +>next : I34 + +interface J33 { next: J34 } +>next : J34 + +interface I34 { next: I35 } +>next : I35 + +interface J34 { next: J35 } +>next : J35 + +interface I35 { next: I36 } +>next : I36 + +interface J35 { next: J36 } +>next : J36 + +interface I36 { next: I37 } +>next : I37 + +interface J36 { next: J37 } +>next : J37 + +interface I37 { next: I38 } +>next : I38 + +interface J37 { next: J38 } +>next : J38 + +interface I38 { next: I39 } +>next : I39 + +interface J38 { next: J39 } +>next : J39 + +interface I39 { next: I40 } +>next : I40 + +interface J39 { next: J40 } +>next : J40 + +interface I40 { next: I41 } +>next : I41 + +interface J40 { next: J41 } +>next : J41 + +interface I41 { next: I42 } +>next : I42 + +interface J41 { next: J42 } +>next : J42 + +interface I42 { next: I43 } +>next : I43 + +interface J42 { next: J43 } +>next : J43 + +interface I43 { next: I44 } +>next : I44 + +interface J43 { next: J44 } +>next : J44 + +interface I44 { next: I45 } +>next : I45 + +interface J44 { next: J45 } +>next : J45 + +interface I45 { next: I46 } +>next : I46 + +interface J45 { next: J46 } +>next : J46 + +interface I46 { next: I47 } +>next : I47 + +interface J46 { next: J47 } +>next : J47 + +interface I47 { next: I48 } +>next : I48 + +interface J47 { next: J48 } +>next : J48 + +interface I48 { next: I49 } +>next : I49 + +interface J48 { next: J49 } +>next : J49 + +interface I49 { next: I50 } +>next : I50 + +interface J49 { next: J50 } +>next : J50 + +interface I50 { next: I51 } +>next : I51 + +interface J50 { next: J51 } +>next : J51 + +interface I51 { next: I52 } +>next : I52 + +interface J51 { next: J52 } +>next : J52 + +interface I52 { next: I53 } +>next : I53 + +interface J52 { next: J53 } +>next : J53 + +interface I53 { next: I54 } +>next : I54 + +interface J53 { next: J54 } +>next : J54 + +interface I54 { next: I55 } +>next : I55 + +interface J54 { next: J55 } +>next : J55 + +interface I55 { next: I56 } +>next : I56 + +interface J55 { next: J56 } +>next : J56 + +interface I56 { next: I57 } +>next : I57 + +interface J56 { next: J57 } +>next : J57 + +interface I57 { next: I58 } +>next : I58 + +interface J57 { next: J58 } +>next : J58 + +interface I58 { next: I59 } +>next : I59 + +interface J58 { next: J59 } +>next : J59 + +interface I59 { next: I60 } +>next : I60 + +interface J59 { next: J60 } +>next : J60 + +interface I60 { next: I61 } +>next : I61 + +interface J60 { next: J61 } +>next : J61 + +interface I61 { next: I62 } +>next : I62 + +interface J61 { next: J62 } +>next : J62 + +interface I62 { next: I63 } +>next : I63 + +interface J62 { next: J63 } +>next : J63 + +interface I63 { next: I64 } +>next : I64 + +interface J63 { next: J64 } +>next : J64 + +interface I64 { next: I65 } +>next : I65 + +interface J64 { next: J65 } +>next : J65 + +interface I65 { next: I66 } +>next : I66 + +interface J65 { next: J66 } +>next : J66 + +interface I66 { next: I67 } +>next : I67 + +interface J66 { next: J67 } +>next : J67 + +interface I67 { next: I68 } +>next : I68 + +interface J67 { next: J68 } +>next : J68 + +interface I68 { next: I69 } +>next : I69 + +interface J68 { next: J69 } +>next : J69 + +interface I69 { next: I70 } +>next : I70 + +interface J69 { next: J70 } +>next : J70 + +interface I70 { next: I71 } +>next : I71 + +interface J70 { next: J71 } +>next : J71 + +interface I71 { next: I72 } +>next : I72 + +interface J71 { next: J72 } +>next : J72 + +interface I72 { next: I73 } +>next : I73 + +interface J72 { next: J73 } +>next : J73 + +interface I73 { next: I74 } +>next : I74 + +interface J73 { next: J74 } +>next : J74 + +interface I74 { next: I75 } +>next : I75 + +interface J74 { next: J75 } +>next : J75 + +interface I75 { next: I76 } +>next : I76 + +interface J75 { next: J76 } +>next : J76 + +interface I76 { next: I77 } +>next : I77 + +interface J76 { next: J77 } +>next : J77 + +interface I77 { next: I78 } +>next : I78 + +interface J77 { next: J78 } +>next : J78 + +interface I78 { next: I79 } +>next : I79 + +interface J78 { next: J79 } +>next : J79 + +interface I79 { next: I80 } +>next : I80 + +interface J79 { next: J80 } +>next : J80 + +interface I80 { next: I81 } +>next : I81 + +interface J80 { next: J81 } +>next : J81 + +interface I81 { next: I82 } +>next : I82 + +interface J81 { next: J82 } +>next : J82 + +interface I82 { next: I83 } +>next : I83 + +interface J82 { next: J83 } +>next : J83 + +interface I83 { next: I84 } +>next : I84 + +interface J83 { next: J84 } +>next : J84 + +interface I84 { next: I85 } +>next : I85 + +interface J84 { next: J85 } +>next : J85 + +interface I85 { next: I86 } +>next : I86 + +interface J85 { next: J86 } +>next : J86 + +interface I86 { next: I87 } +>next : I87 + +interface J86 { next: J87 } +>next : J87 + +interface I87 { next: I88 } +>next : I88 + +interface J87 { next: J88 } +>next : J88 + +interface I88 { next: I89 } +>next : I89 + +interface J88 { next: J89 } +>next : J89 + +interface I89 { next: I90 } +>next : I90 + +interface J89 { next: J90 } +>next : J90 + +interface I90 { next: I91 } +>next : I91 + +interface J90 { next: J91 } +>next : J91 + +interface I91 { next: I92 } +>next : I92 + +interface J91 { next: J92 } +>next : J92 + +interface I92 { next: I93 } +>next : I93 + +interface J92 { next: J93 } +>next : J93 + +interface I93 { next: I94 } +>next : I94 + +interface J93 { next: J94 } +>next : J94 + +interface I94 { next: I95 } +>next : I95 + +interface J94 { next: J95 } +>next : J95 + +interface I95 { next: I96 } +>next : I96 + +interface J95 { next: J96 } +>next : J96 + +interface I96 { next: I97 } +>next : I97 + +interface J96 { next: J97 } +>next : J97 + +interface I97 { next: I98 } +>next : I98 + +interface J97 { next: J98 } +>next : J98 + +interface I98 { next: I99 } +>next : I99 + +interface J98 { next: J99 } +>next : J99 + +interface I99 { next: I100 } +>next : I100 + +interface J99 { next: J100 } +>next : J100 + +interface I100 { next: I101 } +>next : I101 + +interface J100 { next: J101 } +>next : J101 + +interface I101 { next: I102 } +>next : I102 + +interface J101 { next: J102 } +>next : J102 + +interface I102 { next: I103 } +>next : I103 + +interface J102 { next: J103 } +>next : J103 + +interface I103 { next: I104 } +>next : I104 + +interface J103 { next: J104 } +>next : J104 + +interface I104 { next: I105 } +>next : I105 + +interface J104 { next: J105 } +>next : J105 + +interface I105 { next: I106 } +>next : I106 + +interface J105 { next: J106 } +>next : J106 + +interface I106 { next: I107 } +>next : I107 + +interface J106 { next: J107 } +>next : J107 + +interface I107 { next: I108 } +>next : I108 + +interface J107 { next: J108 } +>next : J108 + +interface I108 { next: I109 } +>next : I109 + +interface J108 { next: J109 } +>next : J109 + +interface I109 { next: I110 } +>next : I110 + +interface J109 { next: J110 } +>next : J110 + +interface I110 { next: I111 } +>next : I111 + +interface J110 { next: J111 } +>next : J111 + +interface I111 { next: I112 } +>next : I112 + +interface J111 { next: J112 } +>next : J112 + +interface I112 { next: I113 } +>next : I113 + +interface J112 { next: J113 } +>next : J113 + +interface I113 { next: I114 } +>next : I114 + +interface J113 { next: J114 } +>next : J114 + +interface I114 { next: I115 } +>next : I115 + +interface J114 { next: J115 } +>next : J115 + +interface I115 { next: I116 } +>next : I116 + +interface J115 { next: J116 } +>next : J116 + +interface I116 { next: I117 } +>next : I117 + +interface J116 { next: J117 } +>next : J117 + +interface I117 { next: I118 } +>next : I118 + +interface J117 { next: J118 } +>next : J118 + +interface I118 { next: I119 } +>next : I119 + +interface J118 { next: J119 } +>next : J119 + +interface I119 { leaf: string } +>leaf : string + +interface J119 { leaf: number } +>leaf : number + +type Mid = I60 extends J60 ? true : false; +>Mid : true +>true : true +>false : false + +type All = I0 extends J0 ? true : false; +>All : true +>true : true +>false : false + diff --git a/tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.errors.txt b/tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.errors.txt new file mode 100644 index 0000000000000..88dee4e5a8f7e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.errors.txt @@ -0,0 +1,31 @@ +relationMaybeCheckOrder.ts(8,32): error TS2322: Type 'B' is not assignable to type 'string | number | symbol'. +relationMaybeCheckOrder.ts(18,11): error TS2322: Type '2' is not assignable to type '1'. + + +==== relationMaybeCheckOrder.ts (2 errors) ==== + // Relating to 'keyof M' rejects keys that relate only by assuming a + // comparison still in progress. Relating 'A' to 'B' assumes only itself + // along 'next', so it completes on its own and must be accepted whether + // or not the call to 'h' related 'A' to 'B' first. + + interface A { next: A; v: "a" } + interface B { next: B; v: string } + type M = { [K in keyof T as B]: 1 }; + ~ +!!! error TS2322: Type 'B' is not assignable to type 'string | number | symbol'. + + declare const a: A; + declare function h(x: B): 1; + declare function h(x: unknown): 2; + + function f() { + function g(x: keyof M): 1; + function g(x: unknown): 2; + function g(x: unknown) { return 1 as any; } + const r: 1 = g(a); + ~ +!!! error TS2322: Type '2' is not assignable to type '1'. + } + + const w: 1 = h(a); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.symbols b/tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.symbols new file mode 100644 index 0000000000000..c577599a23c3c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.symbols @@ -0,0 +1,69 @@ +//// [tests/cases/compiler/relationMaybeCheckOrder.ts] //// + +=== relationMaybeCheckOrder.ts === +// Relating to 'keyof M' rejects keys that relate only by assuming a +// comparison still in progress. Relating 'A' to 'B' assumes only itself +// along 'next', so it completes on its own and must be accepted whether +// or not the call to 'h' related 'A' to 'B' first. + +interface A { next: A; v: "a" } +>A : Symbol(A, Decl(relationMaybeCheckOrder.ts, 0, 0)) +>next : Symbol(A.next, Decl(relationMaybeCheckOrder.ts, 5, 13)) +>A : Symbol(A, Decl(relationMaybeCheckOrder.ts, 0, 0)) +>v : Symbol(A.v, Decl(relationMaybeCheckOrder.ts, 5, 22)) + +interface B { next: B; v: string } +>B : Symbol(B, Decl(relationMaybeCheckOrder.ts, 5, 31)) +>next : Symbol(B.next, Decl(relationMaybeCheckOrder.ts, 6, 13)) +>B : Symbol(B, Decl(relationMaybeCheckOrder.ts, 5, 31)) +>v : Symbol(B.v, Decl(relationMaybeCheckOrder.ts, 6, 22)) + +type M = { [K in keyof T as B]: 1 }; +>M : Symbol(M, Decl(relationMaybeCheckOrder.ts, 6, 34)) +>T : Symbol(T, Decl(relationMaybeCheckOrder.ts, 7, 7)) +>K : Symbol(K, Decl(relationMaybeCheckOrder.ts, 7, 15)) +>T : Symbol(T, Decl(relationMaybeCheckOrder.ts, 7, 7)) +>B : Symbol(B, Decl(relationMaybeCheckOrder.ts, 5, 31)) + +declare const a: A; +>a : Symbol(a, Decl(relationMaybeCheckOrder.ts, 9, 13)) +>A : Symbol(A, Decl(relationMaybeCheckOrder.ts, 0, 0)) + +declare function h(x: B): 1; +>h : Symbol(h, Decl(relationMaybeCheckOrder.ts, 9, 19), Decl(relationMaybeCheckOrder.ts, 10, 28)) +>x : Symbol(x, Decl(relationMaybeCheckOrder.ts, 10, 19)) +>B : Symbol(B, Decl(relationMaybeCheckOrder.ts, 5, 31)) + +declare function h(x: unknown): 2; +>h : Symbol(h, Decl(relationMaybeCheckOrder.ts, 9, 19), Decl(relationMaybeCheckOrder.ts, 10, 28)) +>x : Symbol(x, Decl(relationMaybeCheckOrder.ts, 11, 19)) + +function f() { +>f : Symbol(f, Decl(relationMaybeCheckOrder.ts, 11, 34)) +>T : Symbol(T, Decl(relationMaybeCheckOrder.ts, 13, 11)) + + function g(x: keyof M): 1; +>g : Symbol(g, Decl(relationMaybeCheckOrder.ts, 13, 17), Decl(relationMaybeCheckOrder.ts, 14, 33), Decl(relationMaybeCheckOrder.ts, 15, 30)) +>x : Symbol(x, Decl(relationMaybeCheckOrder.ts, 14, 15)) +>M : Symbol(M, Decl(relationMaybeCheckOrder.ts, 6, 34)) +>T : Symbol(T, Decl(relationMaybeCheckOrder.ts, 13, 11)) + + function g(x: unknown): 2; +>g : Symbol(g, Decl(relationMaybeCheckOrder.ts, 13, 17), Decl(relationMaybeCheckOrder.ts, 14, 33), Decl(relationMaybeCheckOrder.ts, 15, 30)) +>x : Symbol(x, Decl(relationMaybeCheckOrder.ts, 15, 15)) + + function g(x: unknown) { return 1 as any; } +>g : Symbol(g, Decl(relationMaybeCheckOrder.ts, 13, 17), Decl(relationMaybeCheckOrder.ts, 14, 33), Decl(relationMaybeCheckOrder.ts, 15, 30)) +>x : Symbol(x, Decl(relationMaybeCheckOrder.ts, 16, 15)) + + const r: 1 = g(a); +>r : Symbol(r, Decl(relationMaybeCheckOrder.ts, 17, 9)) +>g : Symbol(g, Decl(relationMaybeCheckOrder.ts, 13, 17), Decl(relationMaybeCheckOrder.ts, 14, 33), Decl(relationMaybeCheckOrder.ts, 15, 30)) +>a : Symbol(a, Decl(relationMaybeCheckOrder.ts, 9, 13)) +} + +const w: 1 = h(a); +>w : Symbol(w, Decl(relationMaybeCheckOrder.ts, 20, 5)) +>h : Symbol(h, Decl(relationMaybeCheckOrder.ts, 9, 19), Decl(relationMaybeCheckOrder.ts, 10, 28)) +>a : Symbol(a, Decl(relationMaybeCheckOrder.ts, 9, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.types b/tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.types new file mode 100644 index 0000000000000..ecbee15a795d4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationMaybeCheckOrder.types @@ -0,0 +1,60 @@ +//// [tests/cases/compiler/relationMaybeCheckOrder.ts] //// + +=== relationMaybeCheckOrder.ts === +// Relating to 'keyof M' rejects keys that relate only by assuming a +// comparison still in progress. Relating 'A' to 'B' assumes only itself +// along 'next', so it completes on its own and must be accepted whether +// or not the call to 'h' related 'A' to 'B' first. + +interface A { next: A; v: "a" } +>next : A +>v : "a" + +interface B { next: B; v: string } +>next : B +>v : string + +type M = { [K in keyof T as B]: 1 }; +>M : M + +declare const a: A; +>a : A + +declare function h(x: B): 1; +>h : { (x: B): 1; (x: unknown): 2; } +>x : B + +declare function h(x: unknown): 2; +>h : { (x: B): 1; (x: unknown): 2; } +>x : unknown + +function f() { +>f : () => void + + function g(x: keyof M): 1; +>g : { (x: keyof M): 1; (x: unknown): 2; } +>x : keyof M + + function g(x: unknown): 2; +>g : { (x: keyof M): 1; (x: unknown): 2; } +>x : unknown + + function g(x: unknown) { return 1 as any; } +>g : { (x: keyof M): 1; (x: unknown): 2; } +>x : unknown +>1 as any : any +>1 : 1 + + const r: 1 = g(a); +>r : 1 +>g(a) : 2 +>g : { (x: keyof M): 1; (x: unknown): 2; } +>a : A +} + +const w: 1 = h(a); +>w : 1 +>h(a) : 1 +>h : { (x: B): 1; (x: unknown): 2; } +>a : A + diff --git a/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..337f9333d8214 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=default).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/relationNestingSharedCheckOrder.ts] //// + +=== relationNestingSharedCheckOrder.ts === +// Relating S to R fresh is cut short at deeply nested +// types before reaching next.leaf, and so succeeds. In program order Inner +// has already found that S<[string]> is not related to R<[string]>. Whether +// Outer succeeds must not depend on which comes first. Conditional types +// relate without reporting errors, which would compute the comparison again. + +type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; +>S : Symbol(S, Decl(relationNestingSharedCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 6, 7)) +>next : Symbol(next, Decl(relationNestingSharedCheckOrder.ts, 6, 13)) +>S : Symbol(S, Decl(relationNestingSharedCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 6, 7)) +>leaf : Symbol(leaf, Decl(relationNestingSharedCheckOrder.ts, 6, 27)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 6, 7)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 6, 7)) + +type R = { next: R<[T]>; leaf: T }; +>R : Symbol(R, Decl(relationNestingSharedCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 7, 7)) +>next : Symbol(next, Decl(relationNestingSharedCheckOrder.ts, 7, 13)) +>R : Symbol(R, Decl(relationNestingSharedCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 7, 7)) +>leaf : Symbol(leaf, Decl(relationNestingSharedCheckOrder.ts, 7, 27)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 7, 7)) + +type Inner = S<[string]> extends R<[string]> ? true : false; +>Inner : Symbol(Inner, Decl(relationNestingSharedCheckOrder.ts, 7, 38)) +>S : Symbol(S, Decl(relationNestingSharedCheckOrder.ts, 0, 0)) +>R : Symbol(R, Decl(relationNestingSharedCheckOrder.ts, 6, 71)) + +type Outer = S extends R ? true : false; +>Outer : Symbol(Outer, Decl(relationNestingSharedCheckOrder.ts, 9, 60)) +>S : Symbol(S, Decl(relationNestingSharedCheckOrder.ts, 0, 0)) +>R : Symbol(R, Decl(relationNestingSharedCheckOrder.ts, 6, 71)) + diff --git a/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..2eb3a955c4f06 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=default).types @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/relationNestingSharedCheckOrder.ts] //// + +=== relationNestingSharedCheckOrder.ts === +// Relating S to R fresh is cut short at deeply nested +// types before reaching next.leaf, and so succeeds. In program order Inner +// has already found that S<[string]> is not related to R<[string]>. Whether +// Outer succeeds must not depend on which comes first. Conditional types +// relate without reporting errors, which would compute the comparison again. + +type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; +>S : S +>next : S<[T]> +>leaf : T extends [[unknown]] ? number : T + +type R = { next: R<[T]>; leaf: T }; +>R : R +>next : R<[T]> +>leaf : T + +type Inner = S<[string]> extends R<[string]> ? true : false; +>Inner : false +>true : true +>false : false + +type Outer = S extends R ? true : false; +>Outer : false +>true : true +>false : false + diff --git a/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..337f9333d8214 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/relationNestingSharedCheckOrder.ts] //// + +=== relationNestingSharedCheckOrder.ts === +// Relating S to R fresh is cut short at deeply nested +// types before reaching next.leaf, and so succeeds. In program order Inner +// has already found that S<[string]> is not related to R<[string]>. Whether +// Outer succeeds must not depend on which comes first. Conditional types +// relate without reporting errors, which would compute the comparison again. + +type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; +>S : Symbol(S, Decl(relationNestingSharedCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 6, 7)) +>next : Symbol(next, Decl(relationNestingSharedCheckOrder.ts, 6, 13)) +>S : Symbol(S, Decl(relationNestingSharedCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 6, 7)) +>leaf : Symbol(leaf, Decl(relationNestingSharedCheckOrder.ts, 6, 27)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 6, 7)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 6, 7)) + +type R = { next: R<[T]>; leaf: T }; +>R : Symbol(R, Decl(relationNestingSharedCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 7, 7)) +>next : Symbol(next, Decl(relationNestingSharedCheckOrder.ts, 7, 13)) +>R : Symbol(R, Decl(relationNestingSharedCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 7, 7)) +>leaf : Symbol(leaf, Decl(relationNestingSharedCheckOrder.ts, 7, 27)) +>T : Symbol(T, Decl(relationNestingSharedCheckOrder.ts, 7, 7)) + +type Inner = S<[string]> extends R<[string]> ? true : false; +>Inner : Symbol(Inner, Decl(relationNestingSharedCheckOrder.ts, 7, 38)) +>S : Symbol(S, Decl(relationNestingSharedCheckOrder.ts, 0, 0)) +>R : Symbol(R, Decl(relationNestingSharedCheckOrder.ts, 6, 71)) + +type Outer = S extends R ? true : false; +>Outer : Symbol(Outer, Decl(relationNestingSharedCheckOrder.ts, 9, 60)) +>S : Symbol(S, Decl(relationNestingSharedCheckOrder.ts, 0, 0)) +>R : Symbol(R, Decl(relationNestingSharedCheckOrder.ts, 6, 71)) + diff --git a/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..fcc2fcc2b32aa --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationNestingSharedCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/relationNestingSharedCheckOrder.ts] //// + +=== relationNestingSharedCheckOrder.ts === +// Relating S to R fresh is cut short at deeply nested +// types before reaching next.leaf, and so succeeds. In program order Inner +// has already found that S<[string]> is not related to R<[string]>. Whether +// Outer succeeds must not depend on which comes first. Conditional types +// relate without reporting errors, which would compute the comparison again. + +type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; +>S : S +>next : S<[T]> +>leaf : T extends [[unknown]] ? number : T + +type R = { next: R<[T]>; leaf: T }; +>R : R +>next : R<[T]> +>leaf : T + +type Inner = S<[string]> extends R<[string]> ? true : false; +>Inner : true +>true : true +>false : false + +type Outer = S extends R ? true : false; +>Outer : true +>true : true +>false : false + diff --git a/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..1a917a7da7f9f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=default).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/relationTruncatedCacheCheckOrder.ts] //// + +=== relationTruncatedCacheCheckOrder.ts === +// Relating 'S<[string]>' to 'R<[string]>' from scratch reaches 'next.leaf' +// before giving up on deeply nested types, and fails there. Inside the +// relation of 'S' to 'R' it is one level deeper and is cut +// short instead. That truncated result must not be cached, so the error for +// 'q = p' must be reported whether or not 'y = x' was checked first. + +type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; +>S : Symbol(S, Decl(relationTruncatedCacheCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 6, 7)) +>next : Symbol(next, Decl(relationTruncatedCacheCheckOrder.ts, 6, 13)) +>S : Symbol(S, Decl(relationTruncatedCacheCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 6, 7)) +>leaf : Symbol(leaf, Decl(relationTruncatedCacheCheckOrder.ts, 6, 27)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 6, 7)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 6, 7)) + +type R = { next: R<[T]>; leaf: T }; +>R : Symbol(R, Decl(relationTruncatedCacheCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 7, 7)) +>next : Symbol(next, Decl(relationTruncatedCacheCheckOrder.ts, 7, 13)) +>R : Symbol(R, Decl(relationTruncatedCacheCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 7, 7)) +>leaf : Symbol(leaf, Decl(relationTruncatedCacheCheckOrder.ts, 7, 27)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 7, 7)) + +declare let x: S, y: R; +>x : Symbol(x, Decl(relationTruncatedCacheCheckOrder.ts, 9, 11)) +>S : Symbol(S, Decl(relationTruncatedCacheCheckOrder.ts, 0, 0)) +>y : Symbol(y, Decl(relationTruncatedCacheCheckOrder.ts, 9, 25)) +>R : Symbol(R, Decl(relationTruncatedCacheCheckOrder.ts, 6, 71)) + +declare let p: S<[string]>, q: R<[string]>; +>p : Symbol(p, Decl(relationTruncatedCacheCheckOrder.ts, 10, 11)) +>S : Symbol(S, Decl(relationTruncatedCacheCheckOrder.ts, 0, 0)) +>q : Symbol(q, Decl(relationTruncatedCacheCheckOrder.ts, 10, 27)) +>R : Symbol(R, Decl(relationTruncatedCacheCheckOrder.ts, 6, 71)) + +y = x; +>y : Symbol(y, Decl(relationTruncatedCacheCheckOrder.ts, 9, 25)) +>x : Symbol(x, Decl(relationTruncatedCacheCheckOrder.ts, 9, 11)) + +q = p; +>q : Symbol(q, Decl(relationTruncatedCacheCheckOrder.ts, 10, 27)) +>p : Symbol(p, Decl(relationTruncatedCacheCheckOrder.ts, 10, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..61db4cbc7e0c8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=default).types @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/relationTruncatedCacheCheckOrder.ts] //// + +=== relationTruncatedCacheCheckOrder.ts === +// Relating 'S<[string]>' to 'R<[string]>' from scratch reaches 'next.leaf' +// before giving up on deeply nested types, and fails there. Inside the +// relation of 'S' to 'R' it is one level deeper and is cut +// short instead. That truncated result must not be cached, so the error for +// 'q = p' must be reported whether or not 'y = x' was checked first. + +type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; +>S : S +>next : S<[T]> +>leaf : T extends [[unknown]] ? number : T + +type R = { next: R<[T]>; leaf: T }; +>R : R +>next : R<[T]> +>leaf : T + +declare let x: S, y: R; +>x : S +>y : R + +declare let p: S<[string]>, q: R<[string]>; +>p : S<[string]> +>q : R<[string]> + +y = x; +>y = x : S +>y : R +>x : S + +q = p; +>q = p : S<[string]> +>q : R<[string]> +>p : S<[string]> + diff --git a/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..343f53694e8da --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,32 @@ +relationTruncatedCacheCheckOrder.ts(13,1): error TS2322: Type 'S' is not assignable to type 'R'. + The types of 'next.next.leaf' are incompatible between these types. + Type 'number' is not assignable to type '[[string]]'. +relationTruncatedCacheCheckOrder.ts(14,1): error TS2322: Type 'S<[string]>' is not assignable to type 'R<[string]>'. + The types of 'next.leaf' are incompatible between these types. + Type 'number' is not assignable to type '[[string]]'. + + +==== relationTruncatedCacheCheckOrder.ts (2 errors) ==== + // Relating 'S<[string]>' to 'R<[string]>' from scratch reaches 'next.leaf' + // before giving up on deeply nested types, and fails there. Inside the + // relation of 'S' to 'R' it is one level deeper and is cut + // short instead. That truncated result must not be cached, so the error for + // 'q = p' must be reported whether or not 'y = x' was checked first. + + type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; + type R = { next: R<[T]>; leaf: T }; + + declare let x: S, y: R; + declare let p: S<[string]>, q: R<[string]>; + + y = x; + ~ +!!! error TS2322: Type 'S' is not assignable to type 'R'. +!!! error TS2322: The types of 'next.next.leaf' are incompatible between these types. +!!! error TS2322: Type 'number' is not assignable to type '[[string]]'. + q = p; + ~ +!!! error TS2322: Type 'S<[string]>' is not assignable to type 'R<[string]>'. +!!! error TS2322: The types of 'next.leaf' are incompatible between these types. +!!! error TS2322: Type 'number' is not assignable to type '[[string]]'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..1a917a7da7f9f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,48 @@ +//// [tests/cases/compiler/relationTruncatedCacheCheckOrder.ts] //// + +=== relationTruncatedCacheCheckOrder.ts === +// Relating 'S<[string]>' to 'R<[string]>' from scratch reaches 'next.leaf' +// before giving up on deeply nested types, and fails there. Inside the +// relation of 'S' to 'R' it is one level deeper and is cut +// short instead. That truncated result must not be cached, so the error for +// 'q = p' must be reported whether or not 'y = x' was checked first. + +type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; +>S : Symbol(S, Decl(relationTruncatedCacheCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 6, 7)) +>next : Symbol(next, Decl(relationTruncatedCacheCheckOrder.ts, 6, 13)) +>S : Symbol(S, Decl(relationTruncatedCacheCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 6, 7)) +>leaf : Symbol(leaf, Decl(relationTruncatedCacheCheckOrder.ts, 6, 27)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 6, 7)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 6, 7)) + +type R = { next: R<[T]>; leaf: T }; +>R : Symbol(R, Decl(relationTruncatedCacheCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 7, 7)) +>next : Symbol(next, Decl(relationTruncatedCacheCheckOrder.ts, 7, 13)) +>R : Symbol(R, Decl(relationTruncatedCacheCheckOrder.ts, 6, 71)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 7, 7)) +>leaf : Symbol(leaf, Decl(relationTruncatedCacheCheckOrder.ts, 7, 27)) +>T : Symbol(T, Decl(relationTruncatedCacheCheckOrder.ts, 7, 7)) + +declare let x: S, y: R; +>x : Symbol(x, Decl(relationTruncatedCacheCheckOrder.ts, 9, 11)) +>S : Symbol(S, Decl(relationTruncatedCacheCheckOrder.ts, 0, 0)) +>y : Symbol(y, Decl(relationTruncatedCacheCheckOrder.ts, 9, 25)) +>R : Symbol(R, Decl(relationTruncatedCacheCheckOrder.ts, 6, 71)) + +declare let p: S<[string]>, q: R<[string]>; +>p : Symbol(p, Decl(relationTruncatedCacheCheckOrder.ts, 10, 11)) +>S : Symbol(S, Decl(relationTruncatedCacheCheckOrder.ts, 0, 0)) +>q : Symbol(q, Decl(relationTruncatedCacheCheckOrder.ts, 10, 27)) +>R : Symbol(R, Decl(relationTruncatedCacheCheckOrder.ts, 6, 71)) + +y = x; +>y : Symbol(y, Decl(relationTruncatedCacheCheckOrder.ts, 9, 25)) +>x : Symbol(x, Decl(relationTruncatedCacheCheckOrder.ts, 9, 11)) + +q = p; +>q : Symbol(q, Decl(relationTruncatedCacheCheckOrder.ts, 10, 27)) +>p : Symbol(p, Decl(relationTruncatedCacheCheckOrder.ts, 10, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..61db4cbc7e0c8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/relationTruncatedCacheCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/relationTruncatedCacheCheckOrder.ts] //// + +=== relationTruncatedCacheCheckOrder.ts === +// Relating 'S<[string]>' to 'R<[string]>' from scratch reaches 'next.leaf' +// before giving up on deeply nested types, and fails there. Inside the +// relation of 'S' to 'R' it is one level deeper and is cut +// short instead. That truncated result must not be cached, so the error for +// 'q = p' must be reported whether or not 'y = x' was checked first. + +type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; +>S : S +>next : S<[T]> +>leaf : T extends [[unknown]] ? number : T + +type R = { next: R<[T]>; leaf: T }; +>R : R +>next : R<[T]> +>leaf : T + +declare let x: S, y: R; +>x : S +>y : R + +declare let p: S<[string]>, q: R<[string]>; +>p : S<[string]> +>q : R<[string]> + +y = x; +>y = x : S +>y : R +>x : S + +q = p; +>q = p : S<[string]> +>q : R<[string]> +>p : S<[string]> + diff --git a/tsc/testdata/baselines/reference/compiler/restrictiveInstantiationOfRestrictiveConditional.symbols b/tsc/testdata/baselines/reference/compiler/restrictiveInstantiationOfRestrictiveConditional.symbols new file mode 100644 index 0000000000000..bb4e995330087 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/restrictiveInstantiationOfRestrictiveConditional.symbols @@ -0,0 +1,682 @@ +//// [tests/cases/compiler/restrictiveInstantiationOfRestrictiveConditional.ts] //// + +=== arraySlice.d.ts === +export type {ArraySlice}; +>ArraySlice : Symbol(ArraySlice, Decl(arraySlice.d.ts, 0, 13)) + +declare const tag: unique symbol; +>tag : Symbol(tag, Decl(arraySlice.d.ts, 1, 13)) + +type IsNever = [T] extends [never] ? true : false; +>IsNever : Symbol(IsNever, Decl(arraySlice.d.ts, 1, 33)) +>T : Symbol(T, Decl(arraySlice.d.ts, 2, 13)) +>T : Symbol(T, Decl(arraySlice.d.ts, 2, 13)) + +type IsEqual = +>IsEqual : Symbol(IsEqual, Decl(arraySlice.d.ts, 2, 53)) +>A : Symbol(A, Decl(arraySlice.d.ts, 3, 13)) +>B : Symbol(B, Decl(arraySlice.d.ts, 3, 15)) + + [A] extends [B] +>A : Symbol(A, Decl(arraySlice.d.ts, 3, 13)) +>B : Symbol(B, Decl(arraySlice.d.ts, 3, 15)) + + ? [B] extends [A] +>B : Symbol(B, Decl(arraySlice.d.ts, 3, 15)) +>A : Symbol(A, Decl(arraySlice.d.ts, 3, 13)) + + ? _IsEqual +>_IsEqual : Symbol(_IsEqual, Decl(arraySlice.d.ts, 8, 10)) +>A : Symbol(A, Decl(arraySlice.d.ts, 3, 13)) +>B : Symbol(B, Decl(arraySlice.d.ts, 3, 15)) + + : false + : false; +type _IsEqual = never; +>_IsEqual : Symbol(_IsEqual, Decl(arraySlice.d.ts, 8, 10)) +>A : Symbol(A, Decl(arraySlice.d.ts, 9, 14)) +>B : Symbol(B, Decl(arraySlice.d.ts, 9, 16)) + +type Primitive = +>Primitive : Symbol(Primitive, Decl(arraySlice.d.ts, 9, 28)) + + | null + | undefined + | string + | number + | boolean + | symbol + | bigint; +type UnknownArray = any; +>UnknownArray : Symbol(UnknownArray, Decl(arraySlice.d.ts, 17, 10)) + +type IfNotAnyOrNever = +>IfNotAnyOrNever : Symbol(IfNotAnyOrNever, Decl(arraySlice.d.ts, 18, 24)) +>T : Symbol(T, Decl(arraySlice.d.ts, 19, 21)) +>Cases : Symbol(Cases, Decl(arraySlice.d.ts, 19, 23)) +>ifNot : Symbol(ifNot, Decl(arraySlice.d.ts, 19, 39)) +>ifAny : Symbol(ifAny, Decl(arraySlice.d.ts, 19, 54)) +>ifNever : Symbol(ifNever, Decl(arraySlice.d.ts, 19, 71)) + + IsNever extends true +>IsNever : Symbol(IsNever, Decl(arraySlice.d.ts, 1, 33)) +>T : Symbol(T, Decl(arraySlice.d.ts, 19, 21)) + + ? 'ifNever' extends keyof Cases +>Cases : Symbol(Cases, Decl(arraySlice.d.ts, 19, 23)) + + ? Cases['ifNever'] +>Cases : Symbol(Cases, Decl(arraySlice.d.ts, 19, 23)) + + : never + : Cases['ifNot']; +>Cases : Symbol(Cases, Decl(arraySlice.d.ts, 19, 23)) + +type And = B; +>And : Symbol(And, Decl(arraySlice.d.ts, 24, 20)) +>A : Symbol(A, Decl(arraySlice.d.ts, 25, 9)) +>B : Symbol(B, Decl(arraySlice.d.ts, 25, 27)) +>B : Symbol(B, Decl(arraySlice.d.ts, 25, 27)) + +type Not = any; +>Not : Symbol(Not, Decl(arraySlice.d.ts, 25, 51)) +>A : Symbol(A, Decl(arraySlice.d.ts, 26, 9)) + +type MaxLength = never; +>MaxLength : Symbol(MaxLength, Decl(arraySlice.d.ts, 26, 34)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 27, 15)) +>UnknownArray : Symbol(UnknownArray, Decl(arraySlice.d.ts, 17, 10)) + +type HasNoStaticElements = unknown; +>HasNoStaticElements : Symbol(HasNoStaticElements, Decl(arraySlice.d.ts, 27, 52)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 28, 25)) +>UnknownArray : Symbol(UnknownArray, Decl(arraySlice.d.ts, 17, 10)) + +type CollapseLiterals = Union extends Primitive +>CollapseLiterals : Symbol(CollapseLiterals, Decl(arraySlice.d.ts, 28, 64)) +>Union : Symbol(Union, Decl(arraySlice.d.ts, 29, 22)) +>Union : Symbol(Union, Decl(arraySlice.d.ts, 29, 22)) +>Primitive : Symbol(Primitive, Decl(arraySlice.d.ts, 9, 28)) + + ? Union extends infer Collapsed & {} +>Union : Symbol(Union, Decl(arraySlice.d.ts, 29, 22)) +>Collapsed : Symbol(Collapsed, Decl(arraySlice.d.ts, 30, 22)) + + ? Collapsed +>Collapsed : Symbol(Collapsed, Decl(arraySlice.d.ts, 30, 22)) + + : Union +>Union : Symbol(Union, Decl(arraySlice.d.ts, 29, 22)) + + : Union; +>Union : Symbol(Union, Decl(arraySlice.d.ts, 29, 22)) + +type PositiveNumericStringGt = A; +>PositiveNumericStringGt : Symbol(PositiveNumericStringGt, Decl(arraySlice.d.ts, 33, 9)) +>A : Symbol(A, Decl(arraySlice.d.ts, 34, 29)) +>B : Symbol(B, Decl(arraySlice.d.ts, 34, 46)) +>A : Symbol(A, Decl(arraySlice.d.ts, 34, 29)) + +type Absolute = _Absolute : N>; +>Absolute : Symbol(Absolute, Decl(arraySlice.d.ts, 34, 69)) +>N : Symbol(N, Decl(arraySlice.d.ts, 35, 14)) +>_Absolute : Symbol(_Absolute, Decl(arraySlice.d.ts, 35, 92)) +>N : Symbol(N, Decl(arraySlice.d.ts, 35, 14)) +>UnwrapBrand : Symbol(UnwrapBrand, Decl(arraySlice.d.ts, 95, 11)) +>N : Symbol(N, Decl(arraySlice.d.ts, 35, 14)) +>N : Symbol(N, Decl(arraySlice.d.ts, 35, 14)) + +type _Absolute = N extends bigint +>_Absolute : Symbol(_Absolute, Decl(arraySlice.d.ts, 35, 92)) +>N : Symbol(N, Decl(arraySlice.d.ts, 36, 15)) +>N : Symbol(N, Decl(arraySlice.d.ts, 36, 15)) + + ? `${N}` extends `-${infer Magnitude extends bigint}` +>N : Symbol(N, Decl(arraySlice.d.ts, 36, 15)) +>Magnitude : Symbol(Magnitude, Decl(arraySlice.d.ts, 37, 27)) + + ? Magnitude +>Magnitude : Symbol(Magnitude, Decl(arraySlice.d.ts, 37, 27)) + + : N +>N : Symbol(N, Decl(arraySlice.d.ts, 36, 15)) + + : `${N}` extends `-${infer Magnitude extends number}` +>N : Symbol(N, Decl(arraySlice.d.ts, 36, 15)) +>Magnitude : Symbol(Magnitude, Decl(arraySlice.d.ts, 40, 27)) + + ? Magnitude +>Magnitude : Symbol(Magnitude, Decl(arraySlice.d.ts, 40, 27)) + + : `${N}` extends '-Infinity' +>N : Symbol(N, Decl(arraySlice.d.ts, 36, 15)) + + ? PositiveInfinity +>PositiveInfinity : Symbol(PositiveInfinity, Decl(arraySlice.d.ts, 100, 32)) + + : `${number}` extends `${N}` ? number : N; +>N : Symbol(N, Decl(arraySlice.d.ts, 36, 15)) +>N : Symbol(N, Decl(arraySlice.d.ts, 36, 15)) + +type GreaterThan = +>GreaterThan : Symbol(GreaterThan, Decl(arraySlice.d.ts, 44, 45)) +>A : Symbol(A, Decl(arraySlice.d.ts, 45, 17)) +>_Numeric : Symbol(_Numeric, Decl(arraySlice.d.ts, 99, 5)) +>B : Symbol(B, Decl(arraySlice.d.ts, 45, 36)) +>_Numeric : Symbol(_Numeric, Decl(arraySlice.d.ts, 99, 5)) + + _GreaterThan : A, B extends object ? UnwrapBrand : B>; +>_GreaterThan : Symbol(_GreaterThan, Decl(arraySlice.d.ts, 46, 92)) +>A : Symbol(A, Decl(arraySlice.d.ts, 45, 17)) +>UnwrapBrand : Symbol(UnwrapBrand, Decl(arraySlice.d.ts, 95, 11)) +>A : Symbol(A, Decl(arraySlice.d.ts, 45, 17)) +>A : Symbol(A, Decl(arraySlice.d.ts, 45, 17)) +>B : Symbol(B, Decl(arraySlice.d.ts, 45, 36)) +>UnwrapBrand : Symbol(UnwrapBrand, Decl(arraySlice.d.ts, 95, 11)) +>B : Symbol(B, Decl(arraySlice.d.ts, 45, 36)) +>B : Symbol(B, Decl(arraySlice.d.ts, 45, 36)) + +type _GreaterThan = +>_GreaterThan : Symbol(_GreaterThan, Decl(arraySlice.d.ts, 46, 92)) +>A : Symbol(A, Decl(arraySlice.d.ts, 47, 18)) +>_Numeric : Symbol(_Numeric, Decl(arraySlice.d.ts, 99, 5)) +>B : Symbol(B, Decl(arraySlice.d.ts, 47, 37)) +>_Numeric : Symbol(_Numeric, Decl(arraySlice.d.ts, 99, 5)) + + A extends _Numeric +>A : Symbol(A, Decl(arraySlice.d.ts, 47, 18)) +>_Numeric : Symbol(_Numeric, Decl(arraySlice.d.ts, 99, 5)) + + ? B extends _Numeric +>B : Symbol(B, Decl(arraySlice.d.ts, 47, 37)) +>_Numeric : Symbol(_Numeric, Decl(arraySlice.d.ts, 99, 5)) + + ? `${number}` extends `${A | B}` +>A : Symbol(A, Decl(arraySlice.d.ts, 47, 18)) +>B : Symbol(B, Decl(arraySlice.d.ts, 47, 37)) + + ? boolean + : bigint extends A | B +>A : Symbol(A, Decl(arraySlice.d.ts, 47, 18)) +>B : Symbol(B, Decl(arraySlice.d.ts, 47, 37)) + + ? boolean + : A extends PositiveInfinity +>A : Symbol(A, Decl(arraySlice.d.ts, 47, 18)) +>PositiveInfinity : Symbol(PositiveInfinity, Decl(arraySlice.d.ts, 100, 32)) + + ? B extends PositiveInfinity ? false : true +>B : Symbol(B, Decl(arraySlice.d.ts, 47, 37)) +>PositiveInfinity : Symbol(PositiveInfinity, Decl(arraySlice.d.ts, 100, 32)) + + : B extends NegativeInfinity +>B : Symbol(B, Decl(arraySlice.d.ts, 47, 37)) +>NegativeInfinity : Symbol(NegativeInfinity, Decl(arraySlice.d.ts, 101, 32)) + + ? A extends NegativeInfinity ? false : true +>A : Symbol(A, Decl(arraySlice.d.ts, 47, 18)) +>NegativeInfinity : Symbol(NegativeInfinity, Decl(arraySlice.d.ts, 101, 32)) + + : A extends NegativeInfinity +>A : Symbol(A, Decl(arraySlice.d.ts, 47, 18)) +>NegativeInfinity : Symbol(NegativeInfinity, Decl(arraySlice.d.ts, 101, 32)) + + ? false + : B extends PositiveInfinity +>B : Symbol(B, Decl(arraySlice.d.ts, 47, 37)) +>PositiveInfinity : Symbol(PositiveInfinity, Decl(arraySlice.d.ts, 100, 32)) + + ? false + : [IsNegative, IsNegative] extends infer Signs extends [boolean, boolean] +>IsNegative : Symbol(IsNegative, Decl(arraySlice.d.ts, 102, 30)) +>A : Symbol(A, Decl(arraySlice.d.ts, 47, 18)) +>IsNegative : Symbol(IsNegative, Decl(arraySlice.d.ts, 102, 30)) +>B : Symbol(B, Decl(arraySlice.d.ts, 47, 37)) +>Signs : Symbol(Signs, Decl(arraySlice.d.ts, 62, 56)) + + ? [true, false] extends Signs +>Signs : Symbol(Signs, Decl(arraySlice.d.ts, 62, 56)) + + ? false + : [false, true] extends Signs +>Signs : Symbol(Signs, Decl(arraySlice.d.ts, 62, 56)) + + ? true + : [false, false] extends Signs +>Signs : Symbol(Signs, Decl(arraySlice.d.ts, 62, 56)) + + ? PositiveNumericStringGt<`${A}`, `${B}`> +>PositiveNumericStringGt : Symbol(PositiveNumericStringGt, Decl(arraySlice.d.ts, 33, 9)) +>A : Symbol(A, Decl(arraySlice.d.ts, 47, 18)) +>B : Symbol(B, Decl(arraySlice.d.ts, 47, 37)) + + : PositiveNumericStringGt<`${Absolute}`, `${Absolute}`> +>PositiveNumericStringGt : Symbol(PositiveNumericStringGt, Decl(arraySlice.d.ts, 33, 9)) +>Absolute : Symbol(Absolute, Decl(arraySlice.d.ts, 34, 69)) +>B : Symbol(B, Decl(arraySlice.d.ts, 47, 37)) +>Absolute : Symbol(Absolute, Decl(arraySlice.d.ts, 34, 69)) +>A : Symbol(A, Decl(arraySlice.d.ts, 47, 18)) + + : never + : never + : never; +type IsReadonlyArray = never; +>IsReadonlyArray : Symbol(IsReadonlyArray, Decl(arraySlice.d.ts, 72, 10)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 73, 21)) +>UnknownArray : Symbol(UnknownArray, Decl(arraySlice.d.ts, 17, 10)) + +type UnionMember = +>UnionMember : Symbol(UnionMember, Decl(arraySlice.d.ts, 73, 58)) +>T : Symbol(T, Decl(arraySlice.d.ts, 74, 17)) + + IsNever extends true +>IsNever : Symbol(IsNever, Decl(arraySlice.d.ts, 1, 33)) +>T : Symbol(T, Decl(arraySlice.d.ts, 74, 17)) + + ? never + : (T extends any ? () => T : never) extends () => (infer R) +>T : Symbol(T, Decl(arraySlice.d.ts, 74, 17)) +>T : Symbol(T, Decl(arraySlice.d.ts, 74, 17)) +>R : Symbol(R, Decl(arraySlice.d.ts, 77, 58)) + + ? R +>R : Symbol(R, Decl(arraySlice.d.ts, 77, 58)) + + : never; +type TagContainer = { +>TagContainer : Symbol(TagContainer, Decl(arraySlice.d.ts, 79, 11)) +>Token : Symbol(Token, Decl(arraySlice.d.ts, 80, 18)) + + readonly [tag]: Token; +>[tag] : Symbol([tag], Decl(arraySlice.d.ts, 80, 28)) +>tag : Symbol(tag, Decl(arraySlice.d.ts, 1, 13)) +>Token : Symbol(Token, Decl(arraySlice.d.ts, 80, 18)) + +}; +type Tag = unknown; +>Tag : Symbol(Tag, Decl(arraySlice.d.ts, 82, 2)) +>TagName : Symbol(TagName, Decl(arraySlice.d.ts, 83, 9)) +>PropertyKey : Symbol(PropertyKey, Decl(lib.es5.d.ts, --, --)) +>TagMetadata : Symbol(TagMetadata, Decl(arraySlice.d.ts, 83, 37)) + +type RemoveAllTags = T extends TagContainer +>RemoveAllTags : Symbol(RemoveAllTags, Decl(arraySlice.d.ts, 83, 61)) +>T : Symbol(T, Decl(arraySlice.d.ts, 84, 19)) +>T : Symbol(T, Decl(arraySlice.d.ts, 84, 19)) +>TagContainer : Symbol(TagContainer, Decl(arraySlice.d.ts, 79, 11)) + + ? RemoveAllTags>> +>RemoveAllTags : Symbol(RemoveAllTags, Decl(arraySlice.d.ts, 83, 61)) +>UnionMember : Symbol(UnionMember, Decl(arraySlice.d.ts, 73, 58)) +>RemoveTag : Symbol(RemoveTag, Decl(arraySlice.d.ts, 86, 5)) +>T : Symbol(T, Decl(arraySlice.d.ts, 84, 19)) + + : T; +>T : Symbol(T, Decl(arraySlice.d.ts, 84, 19)) + +type RemoveTag> = +>RemoveTag : Symbol(RemoveTag, Decl(arraySlice.d.ts, 86, 5)) +>T : Symbol(T, Decl(arraySlice.d.ts, 87, 15)) +>TagContainer : Symbol(TagContainer, Decl(arraySlice.d.ts, 79, 11)) + + | { + [ThisTag in keyof T[typeof tag]]: T extends infer Underlying & Tag +>ThisTag : Symbol(ThisTag, Decl(arraySlice.d.ts, 89, 3)) +>T : Symbol(T, Decl(arraySlice.d.ts, 87, 15)) +>tag : Symbol(tag, Decl(arraySlice.d.ts, 1, 13)) +>T : Symbol(T, Decl(arraySlice.d.ts, 87, 15)) +>Underlying : Symbol(Underlying, Decl(arraySlice.d.ts, 89, 51)) +>Tag : Symbol(Tag, Decl(arraySlice.d.ts, 82, 2)) +>ThisTag : Symbol(ThisTag, Decl(arraySlice.d.ts, 89, 3)) +>T : Symbol(T, Decl(arraySlice.d.ts, 87, 15)) +>tag : Symbol(tag, Decl(arraySlice.d.ts, 1, 13)) +>ThisTag : Symbol(ThisTag, Decl(arraySlice.d.ts, 89, 3)) + + ? [Underlying] extends [T] ? never : Underlying +>Underlying : Symbol(Underlying, Decl(arraySlice.d.ts, 89, 51)) +>T : Symbol(T, Decl(arraySlice.d.ts, 87, 15)) +>Underlying : Symbol(Underlying, Decl(arraySlice.d.ts, 89, 51)) + + : never + }[keyof T[typeof tag]] +>T : Symbol(T, Decl(arraySlice.d.ts, 87, 15)) +>tag : Symbol(tag, Decl(arraySlice.d.ts, 1, 13)) + + | (T extends infer Underlying & TagContainer +>T : Symbol(T, Decl(arraySlice.d.ts, 87, 15)) +>Underlying : Symbol(Underlying, Decl(arraySlice.d.ts, 93, 19)) +>TagContainer : Symbol(TagContainer, Decl(arraySlice.d.ts, 79, 11)) +>T : Symbol(T, Decl(arraySlice.d.ts, 87, 15)) +>tag : Symbol(tag, Decl(arraySlice.d.ts, 1, 13)) + + ? [Underlying] extends [T] ? never : Underlying +>Underlying : Symbol(Underlying, Decl(arraySlice.d.ts, 93, 19)) +>T : Symbol(T, Decl(arraySlice.d.ts, 87, 15)) +>Underlying : Symbol(Underlying, Decl(arraySlice.d.ts, 93, 19)) + + : never); +type UnwrapBrand = IfNotAnyOrNever}>; +>UnwrapBrand : Symbol(UnwrapBrand, Decl(arraySlice.d.ts, 95, 11)) +>T : Symbol(T, Decl(arraySlice.d.ts, 96, 17)) +>IfNotAnyOrNever : Symbol(IfNotAnyOrNever, Decl(arraySlice.d.ts, 18, 24)) +>T : Symbol(T, Decl(arraySlice.d.ts, 96, 17)) +>ifNot : Symbol(ifNot, Decl(arraySlice.d.ts, 96, 42)) +>_UnwrapBrand : Symbol(_UnwrapBrand, Decl(arraySlice.d.ts, 96, 78)) +>T : Symbol(T, Decl(arraySlice.d.ts, 96, 17)) +>Primitive : Symbol(Primitive, Decl(arraySlice.d.ts, 9, 28)) + +type _UnwrapBrand = T extends Primitive +>_UnwrapBrand : Symbol(_UnwrapBrand, Decl(arraySlice.d.ts, 96, 78)) +>T : Symbol(T, Decl(arraySlice.d.ts, 97, 18)) +>Base : Symbol(Base, Decl(arraySlice.d.ts, 97, 20)) +>T : Symbol(T, Decl(arraySlice.d.ts, 97, 18)) +>Primitive : Symbol(Primitive, Decl(arraySlice.d.ts, 9, 28)) + + ? CollapseLiterals ? RemoveAllTags : T> +>CollapseLiterals : Symbol(CollapseLiterals, Decl(arraySlice.d.ts, 28, 64)) +>T : Symbol(T, Decl(arraySlice.d.ts, 97, 18)) +>TagContainer : Symbol(TagContainer, Decl(arraySlice.d.ts, 79, 11)) +>RemoveAllTags : Symbol(RemoveAllTags, Decl(arraySlice.d.ts, 83, 61)) +>T : Symbol(T, Decl(arraySlice.d.ts, 97, 18)) +>T : Symbol(T, Decl(arraySlice.d.ts, 97, 18)) + + : T; +>T : Symbol(T, Decl(arraySlice.d.ts, 97, 18)) + +type _Numeric = number | bigint; +>_Numeric : Symbol(_Numeric, Decl(arraySlice.d.ts, 99, 5)) + +type PositiveInfinity = unknown; +>PositiveInfinity : Symbol(PositiveInfinity, Decl(arraySlice.d.ts, 100, 32)) + +type NegativeInfinity = never; +>NegativeInfinity : Symbol(NegativeInfinity, Decl(arraySlice.d.ts, 101, 32)) + +type IsNegative = never; +>IsNegative : Symbol(IsNegative, Decl(arraySlice.d.ts, 102, 30)) +>T : Symbol(T, Decl(arraySlice.d.ts, 103, 16)) +>_Numeric : Symbol(_Numeric, Decl(arraySlice.d.ts, 99, 5)) + +type Sum = any; +>Sum : Symbol(Sum, Decl(arraySlice.d.ts, 103, 44)) +>A : Symbol(A, Decl(arraySlice.d.ts, 104, 9)) +>B : Symbol(B, Decl(arraySlice.d.ts, 104, 26)) + +type LessThanOrEqual = unknown; +>LessThanOrEqual : Symbol(LessThanOrEqual, Decl(arraySlice.d.ts, 104, 51)) +>A : Symbol(A, Decl(arraySlice.d.ts, 105, 21)) +>_Numeric : Symbol(_Numeric, Decl(arraySlice.d.ts, 99, 5)) +>B : Symbol(B, Decl(arraySlice.d.ts, 105, 40)) +>_Numeric : Symbol(_Numeric, Decl(arraySlice.d.ts, 99, 5)) + +type ArraySlice< +>ArraySlice : Symbol(ArraySlice, Decl(arraySlice.d.ts, 105, 71)) + + Array_ extends readonly unknown[], +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 106, 16)) + + Start extends number = never, +>Start : Symbol(Start, Decl(arraySlice.d.ts, 107, 35)) + + End extends number = never, +>End : Symbol(End, Decl(arraySlice.d.ts, 108, 30)) + +> = ArraySliceImplementation : Start, End>; +>ArraySliceImplementation : Symbol(ArraySliceImplementation, Decl(arraySlice.d.ts, 110, 93)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 106, 16)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 107, 35)) +>UnwrapBrand : Symbol(UnwrapBrand, Decl(arraySlice.d.ts, 95, 11)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 107, 35)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 107, 35)) +>End : Symbol(End, Decl(arraySlice.d.ts, 108, 30)) + +type ArraySliceImplementation< +>ArraySliceImplementation : Symbol(ArraySliceImplementation, Decl(arraySlice.d.ts, 110, 93)) + + Array_ extends readonly unknown[], +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 111, 30)) + + Start extends number, +>Start : Symbol(Start, Decl(arraySlice.d.ts, 112, 35)) + + End extends number, +>End : Symbol(End, Decl(arraySlice.d.ts, 113, 22)) + +> = Array_ extends unknown ? _ArraySlice : never; +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 111, 30)) +>_ArraySlice : Symbol(_ArraySlice, Decl(arraySlice.d.ts, 115, 69)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 111, 30)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 112, 35)) +>End : Symbol(End, Decl(arraySlice.d.ts, 113, 22)) + +type _ArraySlice< +>_ArraySlice : Symbol(_ArraySlice, Decl(arraySlice.d.ts, 115, 69)) + + Array_ extends readonly unknown[], +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 116, 17)) + + Start extends number = 0, +>Start : Symbol(Start, Decl(arraySlice.d.ts, 117, 35)) + + End extends number = Array_['length'], +>End : Symbol(End, Decl(arraySlice.d.ts, 118, 26)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 116, 17)) + +> = And, IsEqual> extends true +>And : Symbol(And, Decl(arraySlice.d.ts, 24, 20)) +>IsEqual : Symbol(IsEqual, Decl(arraySlice.d.ts, 2, 53)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 117, 35)) +>IsEqual : Symbol(IsEqual, Decl(arraySlice.d.ts, 2, 53)) +>End : Symbol(End, Decl(arraySlice.d.ts, 118, 26)) + + ? Array_ +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 116, 17)) + + : number extends Array_['length'] +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 116, 17)) + + ? VariableLengthArraySliceHelper extends true ? 0 : Start, End extends PositiveInfinity ? never : End> +>VariableLengthArraySliceHelper : Symbol(VariableLengthArraySliceHelper, Decl(arraySlice.d.ts, 128, 66)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 116, 17)) +>IsNever : Symbol(IsNever, Decl(arraySlice.d.ts, 1, 33)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 117, 35)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 117, 35)) +>End : Symbol(End, Decl(arraySlice.d.ts, 118, 26)) +>PositiveInfinity : Symbol(PositiveInfinity, Decl(arraySlice.d.ts, 100, 32)) +>End : Symbol(End, Decl(arraySlice.d.ts, 118, 26)) + + : `${number}` extends `${Start | End}` +>Start : Symbol(Start, Decl(arraySlice.d.ts, 117, 35)) +>End : Symbol(End, Decl(arraySlice.d.ts, 118, 26)) + + ? UnknownLengthArraySlice +>UnknownLengthArraySlice : Symbol(UnknownLengthArraySlice, Decl(arraySlice.d.ts, 145, 37)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 116, 17)) + + : ArraySliceResult extends true ? 0 : Start, IsEqual extends true ? MaxLength : End>>; +>ArraySliceResult : Symbol(ArraySliceResult, Decl(arraySlice.d.ts, 126, 164)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 116, 17)) +>ArraySliceHelper : Symbol(ArraySliceHelper, Decl(arraySlice.d.ts, 146, 70)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 116, 17)) +>IsEqual : Symbol(IsEqual, Decl(arraySlice.d.ts, 2, 53)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 117, 35)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 117, 35)) +>IsEqual : Symbol(IsEqual, Decl(arraySlice.d.ts, 2, 53)) +>End : Symbol(End, Decl(arraySlice.d.ts, 118, 26)) +>MaxLength : Symbol(MaxLength, Decl(arraySlice.d.ts, 26, 34)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 116, 17)) +>End : Symbol(End, Decl(arraySlice.d.ts, 118, 26)) + +type ArraySliceResult = +>ArraySliceResult : Symbol(ArraySliceResult, Decl(arraySlice.d.ts, 126, 164)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 127, 22)) +>Sliced : Symbol(Sliced, Decl(arraySlice.d.ts, 127, 56)) + + IsReadonlyArray extends true ? Readonly : Sliced; +>IsReadonlyArray : Symbol(IsReadonlyArray, Decl(arraySlice.d.ts, 72, 10)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 127, 22)) +>Readonly : Symbol(Readonly, Decl(lib.es5.d.ts, --, --)) +>Sliced : Symbol(Sliced, Decl(arraySlice.d.ts, 127, 56)) +>Sliced : Symbol(Sliced, Decl(arraySlice.d.ts, 127, 56)) + +type VariableLengthArraySliceHelper< +>VariableLengthArraySliceHelper : Symbol(VariableLengthArraySliceHelper, Decl(arraySlice.d.ts, 128, 66)) + + Array_ extends readonly unknown[], +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 129, 36)) + + Start extends number, +>Start : Symbol(Start, Decl(arraySlice.d.ts, 130, 35)) + + End extends number, +>End : Symbol(End, Decl(arraySlice.d.ts, 131, 22)) + +> = And< +>And : Symbol(And, Decl(arraySlice.d.ts, 24, 20)) + + And>, Not>>, +>And : Symbol(And, Decl(arraySlice.d.ts, 24, 20)) +>Not : Symbol(Not, Decl(arraySlice.d.ts, 25, 51)) +>IsNegative : Symbol(IsNegative, Decl(arraySlice.d.ts, 102, 30)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 130, 35)) +>Not : Symbol(Not, Decl(arraySlice.d.ts, 25, 51)) +>IsNegative : Symbol(IsNegative, Decl(arraySlice.d.ts, 102, 30)) +>End : Symbol(End, Decl(arraySlice.d.ts, 131, 22)) + + IsEqual, true> +>IsEqual : Symbol(IsEqual, Decl(arraySlice.d.ts, 2, 53)) +>LessThanOrEqual : Symbol(LessThanOrEqual, Decl(arraySlice.d.ts, 104, 51)) +>End : Symbol(End, Decl(arraySlice.d.ts, 131, 22)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 130, 35)) + +> extends true + ? [] + : And< +>And : Symbol(And, Decl(arraySlice.d.ts, 24, 20)) + + And>, Not>>, +>And : Symbol(And, Decl(arraySlice.d.ts, 24, 20)) +>Not : Symbol(Not, Decl(arraySlice.d.ts, 25, 51)) +>IsNegative : Symbol(IsNegative, Decl(arraySlice.d.ts, 102, 30)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 130, 35)) +>Not : Symbol(Not, Decl(arraySlice.d.ts, 25, 51)) +>IsNegative : Symbol(IsNegative, Decl(arraySlice.d.ts, 102, 30)) +>End : Symbol(End, Decl(arraySlice.d.ts, 131, 22)) + + IsEqual, true> +>IsEqual : Symbol(IsEqual, Decl(arraySlice.d.ts, 2, 53)) +>GreaterThan : Symbol(GreaterThan, Decl(arraySlice.d.ts, 44, 45)) +>End : Symbol(End, Decl(arraySlice.d.ts, 131, 22)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 130, 35)) + + > extends true + ? HasNoStaticElements extends true +>HasNoStaticElements : Symbol(HasNoStaticElements, Decl(arraySlice.d.ts, 27, 52)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 129, 36)) + + ? UnknownLengthArraySlice +>UnknownLengthArraySlice : Symbol(UnknownLengthArraySlice, Decl(arraySlice.d.ts, 145, 37)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 129, 36)) + + : ArraySliceResult> +>ArraySliceResult : Symbol(ArraySliceResult, Decl(arraySlice.d.ts, 126, 164)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 129, 36)) +>ArraySliceByPositiveIndex : Symbol(ArraySliceByPositiveIndex, Decl(arraySlice.d.ts, 152, 10)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 129, 36)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 130, 35)) +>End : Symbol(End, Decl(arraySlice.d.ts, 131, 22)) + + : UnknownLengthArraySlice; +>UnknownLengthArraySlice : Symbol(UnknownLengthArraySlice, Decl(arraySlice.d.ts, 145, 37)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 129, 36)) + +type UnknownLengthArraySlice = any; +>UnknownLengthArraySlice : Symbol(UnknownLengthArraySlice, Decl(arraySlice.d.ts, 145, 37)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 146, 29)) + +type ArraySliceHelper< +>ArraySliceHelper : Symbol(ArraySliceHelper, Decl(arraySlice.d.ts, 146, 70)) + + Array_ extends readonly unknown[], +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 147, 22)) + + Start extends number = 0, +>Start : Symbol(Start, Decl(arraySlice.d.ts, 148, 35)) + + End extends number = MaxLength, +>End : Symbol(End, Decl(arraySlice.d.ts, 149, 26)) +>MaxLength : Symbol(MaxLength, Decl(arraySlice.d.ts, 26, 34)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 147, 22)) + + ArrayLength extends number = MaxLength, +>ArrayLength : Symbol(ArrayLength, Decl(arraySlice.d.ts, 150, 40)) +>MaxLength : Symbol(MaxLength, Decl(arraySlice.d.ts, 26, 34)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 147, 22)) + +> = never; +type ArraySliceByPositiveIndex< +>ArraySliceByPositiveIndex : Symbol(ArraySliceByPositiveIndex, Decl(arraySlice.d.ts, 152, 10)) + + Array_ extends readonly unknown[], +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 153, 31)) + + Start extends number, +>Start : Symbol(Start, Decl(arraySlice.d.ts, 154, 35)) + + End extends number, +>End : Symbol(End, Decl(arraySlice.d.ts, 155, 22)) + + Result extends Array = [], +>Result : Symbol(Result, Decl(arraySlice.d.ts, 156, 20)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 153, 31)) + +> = Start extends End +>Start : Symbol(Start, Decl(arraySlice.d.ts, 154, 35)) +>End : Symbol(End, Decl(arraySlice.d.ts, 155, 22)) + + ? Result +>Result : Symbol(Result, Decl(arraySlice.d.ts, 156, 20)) + + : ArraySliceByPositiveIndex, End, [...Result, Array_[Start]]>; +>ArraySliceByPositiveIndex : Symbol(ArraySliceByPositiveIndex, Decl(arraySlice.d.ts, 152, 10)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 153, 31)) +>Sum : Symbol(Sum, Decl(arraySlice.d.ts, 103, 44)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 154, 35)) +>End : Symbol(End, Decl(arraySlice.d.ts, 155, 22)) +>Result : Symbol(Result, Decl(arraySlice.d.ts, 156, 20)) +>Array_ : Symbol(Array_, Decl(arraySlice.d.ts, 153, 31)) +>Start : Symbol(Start, Decl(arraySlice.d.ts, 154, 35)) + +=== main.ts === +// Reduced from type-fest's ArraySlice. Inferring Value from the argument +// measures the variances of ArraySlice, which takes the restrictive +// instantiations of conditional types whose type parameters are already +// restrictive, many times over through the brand-unwrapping types. Such an +// instantiation must be the conditional type itself: making and evaluating +// a separate copy roughly triples the work, enough to exceed the +// instantiation count limit (TS2589) here. Smaller cases do not get near +// the limit either way, so the case is as large as the limit requires. +import type {ArraySlice} from './arraySlice.d.ts'; +>ArraySlice : Symbol(ArraySlice, Decl(main.ts, 8, 13)) + +declare function f(values: ArraySlice): void; +>f : Symbol(f, Decl(main.ts, 8, 50)) +>Value : Symbol(Value, Decl(main.ts, 9, 19)) +>values : Symbol(values, Decl(main.ts, 9, 26)) +>ArraySlice : Symbol(ArraySlice, Decl(main.ts, 8, 13)) +>Value : Symbol(Value, Decl(main.ts, 9, 19)) +>Value : Symbol(Value, Decl(main.ts, 9, 19)) +>Value : Symbol(Value, Decl(main.ts, 9, 19)) + +declare const x: ArraySlice; +>x : Symbol(x, Decl(main.ts, 10, 13)) +>ArraySlice : Symbol(ArraySlice, Decl(main.ts, 8, 13)) +>id : Symbol(id, Decl(main.ts, 10, 42)) +>id : Symbol(id, Decl(main.ts, 10, 70)) +>id : Symbol(id, Decl(main.ts, 10, 83)) + +f(x); +>f : Symbol(f, Decl(main.ts, 8, 50)) +>x : Symbol(x, Decl(main.ts, 10, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/restrictiveInstantiationOfRestrictiveConditional.types b/tsc/testdata/baselines/reference/compiler/restrictiveInstantiationOfRestrictiveConditional.types new file mode 100644 index 0000000000000..0a15d1aba9524 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/restrictiveInstantiationOfRestrictiveConditional.types @@ -0,0 +1,338 @@ +//// [tests/cases/compiler/restrictiveInstantiationOfRestrictiveConditional.ts] //// + +=== arraySlice.d.ts === +export type {ArraySlice}; +>ArraySlice : ArraySlice + +declare const tag: unique symbol; +>tag : unique symbol + +type IsNever = [T] extends [never] ? true : false; +>IsNever : IsNever +>true : true +>false : false + +type IsEqual = +>IsEqual : IsEqual + + [A] extends [B] + ? [B] extends [A] + ? _IsEqual + : false +>false : false + + : false; +>false : false + +type _IsEqual = never; +>_IsEqual : never + +type Primitive = +>Primitive : Primitive + + | null + | undefined + | string + | number + | boolean + | symbol + | bigint; +type UnknownArray = any; +>UnknownArray : any + +type IfNotAnyOrNever = +>IfNotAnyOrNever : IfNotAnyOrNever +>ifNot : unknown +>ifAny : unknown +>ifNever : unknown + + IsNever extends true +>true : true + + ? 'ifNever' extends keyof Cases + ? Cases['ifNever'] + : never + : Cases['ifNot']; +type And = B; +>And : B + +type Not = any; +>Not : any + +type MaxLength = never; +>MaxLength : never + +type HasNoStaticElements = unknown; +>HasNoStaticElements : unknown + +type CollapseLiterals = Union extends Primitive +>CollapseLiterals : CollapseLiterals + + ? Union extends infer Collapsed & {} + ? Collapsed + : Union + : Union; +type PositiveNumericStringGt = A; +>PositiveNumericStringGt : A + +type Absolute = _Absolute : N>; +>Absolute : Absolute + +type _Absolute = N extends bigint +>_Absolute : _Absolute + + ? `${N}` extends `-${infer Magnitude extends bigint}` + ? Magnitude + : N + : `${N}` extends `-${infer Magnitude extends number}` + ? Magnitude + : `${N}` extends '-Infinity' + ? PositiveInfinity + : `${number}` extends `${N}` ? number : N; +type GreaterThan = +>GreaterThan : GreaterThan + + _GreaterThan : A, B extends object ? UnwrapBrand : B>; +type _GreaterThan = +>_GreaterThan : _GreaterThan + + A extends _Numeric + ? B extends _Numeric + ? `${number}` extends `${A | B}` + ? boolean + : bigint extends A | B + ? boolean + : A extends PositiveInfinity + ? B extends PositiveInfinity ? false : true +>false : false +>true : true + + : B extends NegativeInfinity + ? A extends NegativeInfinity ? false : true +>false : false +>true : true + + : A extends NegativeInfinity + ? false +>false : false + + : B extends PositiveInfinity + ? false +>false : false + + : [IsNegative, IsNegative] extends infer Signs extends [boolean, boolean] + ? [true, false] extends Signs +>true : true +>false : false + + ? false +>false : false + + : [false, true] extends Signs +>false : false +>true : true + + ? true +>true : true + + : [false, false] extends Signs +>false : false +>false : false + + ? PositiveNumericStringGt<`${A}`, `${B}`> + : PositiveNumericStringGt<`${Absolute}`, `${Absolute}`> + : never + : never + : never; +type IsReadonlyArray = never; +>IsReadonlyArray : never + +type UnionMember = +>UnionMember : UnionMember + + IsNever extends true +>true : true + + ? never + : (T extends any ? () => T : never) extends () => (infer R) + ? R + : never; +type TagContainer = { +>TagContainer : TagContainer + + readonly [tag]: Token; +>[tag] : Token +>tag : unique symbol + +}; +type Tag = unknown; +>Tag : unknown + +type RemoveAllTags = T extends TagContainer +>RemoveAllTags : RemoveAllTags + + ? RemoveAllTags>> + : T; +type RemoveTag> = +>RemoveTag : RemoveTag + + | { + [ThisTag in keyof T[typeof tag]]: T extends infer Underlying & Tag +>tag : unique symbol +>tag : unique symbol + + ? [Underlying] extends [T] ? never : Underlying + : never + }[keyof T[typeof tag]] +>tag : unique symbol + + | (T extends infer Underlying & TagContainer +>tag : unique symbol + + ? [Underlying] extends [T] ? never : Underlying + : never); +type UnwrapBrand = IfNotAnyOrNever}>; +>UnwrapBrand : UnwrapBrand +>ifNot : _UnwrapBrand + +type _UnwrapBrand = T extends Primitive +>_UnwrapBrand : _UnwrapBrand + + ? CollapseLiterals ? RemoveAllTags : T> + : T; +type _Numeric = number | bigint; +>_Numeric : _Numeric + +type PositiveInfinity = unknown; +>PositiveInfinity : unknown + +type NegativeInfinity = never; +>NegativeInfinity : never + +type IsNegative = never; +>IsNegative : never + +type Sum = any; +>Sum : any + +type LessThanOrEqual = unknown; +>LessThanOrEqual : unknown + +type ArraySlice< +>ArraySlice : ArraySlice + + Array_ extends readonly unknown[], + Start extends number = never, + End extends number = never, +> = ArraySliceImplementation : Start, End>; +type ArraySliceImplementation< +>ArraySliceImplementation : ArraySliceImplementation + + Array_ extends readonly unknown[], + Start extends number, + End extends number, +> = Array_ extends unknown ? _ArraySlice : never; +type _ArraySlice< +>_ArraySlice : _ArraySlice + + Array_ extends readonly unknown[], + Start extends number = 0, + End extends number = Array_['length'], +> = And, IsEqual> extends true +>true : true + + ? Array_ + : number extends Array_['length'] + ? VariableLengthArraySliceHelper extends true ? 0 : Start, End extends PositiveInfinity ? never : End> +>true : true + + : `${number}` extends `${Start | End}` + ? UnknownLengthArraySlice + : ArraySliceResult extends true ? 0 : Start, IsEqual extends true ? MaxLength : End>>; +>true : true +>true : true + +type ArraySliceResult = +>ArraySliceResult : Readonly + + IsReadonlyArray extends true ? Readonly : Sliced; +>true : true + +type VariableLengthArraySliceHelper< +>VariableLengthArraySliceHelper : IsEqual<_GreaterThan; }> : End, Start extends object ? IfNotAnyOrNever; }> : Start>, true> extends true ? Readonly> : any + + Array_ extends readonly unknown[], + Start extends number, + End extends number, +> = And< + And>, Not>>, + IsEqual, true> +>true : true + +> extends true +>true : true + + ? [] + : And< + And>, Not>>, + IsEqual, true> +>true : true + + > extends true +>true : true + + ? HasNoStaticElements extends true +>true : true + + ? UnknownLengthArraySlice + : ArraySliceResult> + : UnknownLengthArraySlice; +type UnknownLengthArraySlice = any; +>UnknownLengthArraySlice : any + +type ArraySliceHelper< +>ArraySliceHelper : never + + Array_ extends readonly unknown[], + Start extends number = 0, + End extends number = MaxLength, + ArrayLength extends number = MaxLength, +> = never; +type ArraySliceByPositiveIndex< +>ArraySliceByPositiveIndex : ArraySliceByPositiveIndex + + Array_ extends readonly unknown[], + Start extends number, + End extends number, + Result extends Array = [], +> = Start extends End + ? Result + : ArraySliceByPositiveIndex, End, [...Result, Array_[Start]]>; + +=== main.ts === +// Reduced from type-fest's ArraySlice. Inferring Value from the argument +// measures the variances of ArraySlice, which takes the restrictive +// instantiations of conditional types whose type parameters are already +// restrictive, many times over through the brand-unwrapping types. Such an +// instantiation must be the conditional type itself: making and evaluating +// a separate copy roughly triples the work, enough to exceed the +// instantiation count limit (TS2589) here. Smaller cases do not get near +// the limit either way, so the case is as large as the limit requires. +import type {ArraySlice} from './arraySlice.d.ts'; +>ArraySlice : ArraySlice + +declare function f(values: ArraySlice): void; +>f : (values: ArraySlice) => void +>values : ArraySlice + +declare const x: ArraySlice; +>x : ArraySlice +>id : "row" +>id : "row" +>id : "row" + +f(x); +>f(x) : void +>f : (values: ArraySlice) => void +>x : ArraySlice + diff --git a/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).js new file mode 100644 index 0000000000000..90085dfe2092f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/returnTypeInferenceNotTooBroad.ts] //// + +//// [returnTypeInferenceNotTooBroad.ts] +type Signs = { kind: 'a'; a: 3; } | { kind: 'b'; b: 2; } | { kind: 'c'; c: 1; }; +interface Opts { + low?: number; + sign?: T +} +interface Wrapper { +} +declare function sepsis(opts: Opts): Wrapper; +declare function unwrap(w: Wrapper): T; +export const y = sepsis({ low: 1, sign: { kind: 'a', a: 3 }}); +// $ExpectType { kind: "a"; a: 3; } +export const yun = unwrap(y); +// $ExpectType { kind: "a"; a: 3; } +export const yone = unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})); + +//// [returnTypeInferenceNotTooBroad.js] +export const y = sepsis({ low: 1, sign: { kind: 'a', a: 3 } }); +// $ExpectType { kind: "a"; a: 3; } +export const yun = unwrap(y); +// $ExpectType { kind: "a"; a: 3; } +export const yone = unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 } })); diff --git a/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).symbols new file mode 100644 index 0000000000000..ad8e148932bab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).symbols @@ -0,0 +1,69 @@ +//// [tests/cases/compiler/returnTypeInferenceNotTooBroad.ts] //// + +=== returnTypeInferenceNotTooBroad.ts === +type Signs = { kind: 'a'; a: 3; } | { kind: 'b'; b: 2; } | { kind: 'c'; c: 1; }; +>Signs : Symbol(Signs, Decl(returnTypeInferenceNotTooBroad.ts, 0, 0)) +>kind : Symbol(kind, Decl(returnTypeInferenceNotTooBroad.ts, 0, 14)) +>a : Symbol(a, Decl(returnTypeInferenceNotTooBroad.ts, 0, 25)) +>kind : Symbol(kind, Decl(returnTypeInferenceNotTooBroad.ts, 0, 37)) +>b : Symbol(b, Decl(returnTypeInferenceNotTooBroad.ts, 0, 48)) +>kind : Symbol(kind, Decl(returnTypeInferenceNotTooBroad.ts, 0, 60)) +>c : Symbol(c, Decl(returnTypeInferenceNotTooBroad.ts, 0, 71)) + +interface Opts { +>Opts : Symbol(Opts, Decl(returnTypeInferenceNotTooBroad.ts, 0, 80)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 1, 15)) + + low?: number; +>low : Symbol(Opts.low, Decl(returnTypeInferenceNotTooBroad.ts, 1, 19)) + + sign?: T +>sign : Symbol(Opts.sign, Decl(returnTypeInferenceNotTooBroad.ts, 2, 17)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 1, 15)) +} +interface Wrapper { +>Wrapper : Symbol(Wrapper, Decl(returnTypeInferenceNotTooBroad.ts, 4, 1)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 5, 18)) +} +declare function sepsis(opts: Opts): Wrapper; +>sepsis : Symbol(sepsis, Decl(returnTypeInferenceNotTooBroad.ts, 6, 1)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 7, 24)) +>Signs : Symbol(Signs, Decl(returnTypeInferenceNotTooBroad.ts, 0, 0)) +>opts : Symbol(opts, Decl(returnTypeInferenceNotTooBroad.ts, 7, 41)) +>Opts : Symbol(Opts, Decl(returnTypeInferenceNotTooBroad.ts, 0, 80)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 7, 24)) +>Wrapper : Symbol(Wrapper, Decl(returnTypeInferenceNotTooBroad.ts, 4, 1)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 7, 24)) + +declare function unwrap(w: Wrapper): T; +>unwrap : Symbol(unwrap, Decl(returnTypeInferenceNotTooBroad.ts, 7, 68)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 8, 24)) +>w : Symbol(w, Decl(returnTypeInferenceNotTooBroad.ts, 8, 27)) +>Wrapper : Symbol(Wrapper, Decl(returnTypeInferenceNotTooBroad.ts, 4, 1)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 8, 24)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 8, 24)) + +export const y = sepsis({ low: 1, sign: { kind: 'a', a: 3 }}); +>y : Symbol(y, Decl(returnTypeInferenceNotTooBroad.ts, 9, 12)) +>sepsis : Symbol(sepsis, Decl(returnTypeInferenceNotTooBroad.ts, 6, 1)) +>low : Symbol(low, Decl(returnTypeInferenceNotTooBroad.ts, 9, 25)) +>sign : Symbol(sign, Decl(returnTypeInferenceNotTooBroad.ts, 9, 33)) +>kind : Symbol(kind, Decl(returnTypeInferenceNotTooBroad.ts, 9, 41)) +>a : Symbol(a, Decl(returnTypeInferenceNotTooBroad.ts, 9, 52)) + +// $ExpectType { kind: "a"; a: 3; } +export const yun = unwrap(y); +>yun : Symbol(yun, Decl(returnTypeInferenceNotTooBroad.ts, 11, 12)) +>unwrap : Symbol(unwrap, Decl(returnTypeInferenceNotTooBroad.ts, 7, 68)) +>y : Symbol(y, Decl(returnTypeInferenceNotTooBroad.ts, 9, 12)) + +// $ExpectType { kind: "a"; a: 3; } +export const yone = unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})); +>yone : Symbol(yone, Decl(returnTypeInferenceNotTooBroad.ts, 13, 12)) +>unwrap : Symbol(unwrap, Decl(returnTypeInferenceNotTooBroad.ts, 7, 68)) +>sepsis : Symbol(sepsis, Decl(returnTypeInferenceNotTooBroad.ts, 6, 1)) +>low : Symbol(low, Decl(returnTypeInferenceNotTooBroad.ts, 13, 35)) +>sign : Symbol(sign, Decl(returnTypeInferenceNotTooBroad.ts, 13, 43)) +>kind : Symbol(kind, Decl(returnTypeInferenceNotTooBroad.ts, 13, 51)) +>a : Symbol(a, Decl(returnTypeInferenceNotTooBroad.ts, 13, 62)) + diff --git a/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).types new file mode 100644 index 0000000000000..94962df020556 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=default).types @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/returnTypeInferenceNotTooBroad.ts] //// + +=== returnTypeInferenceNotTooBroad.ts === +type Signs = { kind: 'a'; a: 3; } | { kind: 'b'; b: 2; } | { kind: 'c'; c: 1; }; +>Signs : Signs +>kind : "a" +>a : 3 +>kind : "b" +>b : 2 +>kind : "c" +>c : 1 + +interface Opts { + low?: number; +>low : number | undefined + + sign?: T +>sign : T | undefined +} +interface Wrapper { +} +declare function sepsis(opts: Opts): Wrapper; +>sepsis : (opts: Opts) => Wrapper +>opts : Opts + +declare function unwrap(w: Wrapper): T; +>unwrap : (w: Wrapper) => T +>w : Wrapper + +export const y = sepsis({ low: 1, sign: { kind: 'a', a: 3 }}); +>y : Wrapper<{ kind: "a"; a: 3; }> +>sepsis({ low: 1, sign: { kind: 'a', a: 3 }}) : Wrapper<{ kind: "a"; a: 3; }> +>sepsis : (opts: Opts) => Wrapper +>{ low: 1, sign: { kind: 'a', a: 3 }} : { low: number; sign: { kind: "a"; a: 3; }; } +>low : number +>1 : 1 +>sign : { kind: "a"; a: 3; } +>{ kind: 'a', a: 3 } : { kind: "a"; a: 3; } +>kind : "a" +>'a' : "a" +>a : 3 +>3 : 3 + +// $ExpectType { kind: "a"; a: 3; } +export const yun = unwrap(y); +>yun : { kind: "a"; a: 3; } +>unwrap(y) : { kind: "a"; a: 3; } +>unwrap : (w: Wrapper) => T +>y : Wrapper<{ kind: "a"; a: 3; }> + +// $ExpectType { kind: "a"; a: 3; } +export const yone = unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})); +>yone : { kind: "a"; a: 3; } +>unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})) : { kind: "a"; a: 3; } +>unwrap : (w: Wrapper) => T +>sepsis({ low: 1, sign: { kind: 'a', a: 3 }}) : Wrapper<{ kind: "a"; a: 3; }> +>sepsis : (opts: Opts) => Wrapper +>{ low: 1, sign: { kind: 'a', a: 3 }} : { low: number; sign: { kind: "a"; a: 3; }; } +>low : number +>1 : 1 +>sign : { kind: "a"; a: 3; } +>{ kind: 'a', a: 3 } : { kind: "a"; a: 3; } +>kind : "a" +>'a' : "a" +>a : 3 +>3 : 3 + diff --git a/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).js new file mode 100644 index 0000000000000..90085dfe2092f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).js @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/returnTypeInferenceNotTooBroad.ts] //// + +//// [returnTypeInferenceNotTooBroad.ts] +type Signs = { kind: 'a'; a: 3; } | { kind: 'b'; b: 2; } | { kind: 'c'; c: 1; }; +interface Opts { + low?: number; + sign?: T +} +interface Wrapper { +} +declare function sepsis(opts: Opts): Wrapper; +declare function unwrap(w: Wrapper): T; +export const y = sepsis({ low: 1, sign: { kind: 'a', a: 3 }}); +// $ExpectType { kind: "a"; a: 3; } +export const yun = unwrap(y); +// $ExpectType { kind: "a"; a: 3; } +export const yone = unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})); + +//// [returnTypeInferenceNotTooBroad.js] +export const y = sepsis({ low: 1, sign: { kind: 'a', a: 3 } }); +// $ExpectType { kind: "a"; a: 3; } +export const yun = unwrap(y); +// $ExpectType { kind: "a"; a: 3; } +export const yone = unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 } })); diff --git a/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..ad8e148932bab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).symbols @@ -0,0 +1,69 @@ +//// [tests/cases/compiler/returnTypeInferenceNotTooBroad.ts] //// + +=== returnTypeInferenceNotTooBroad.ts === +type Signs = { kind: 'a'; a: 3; } | { kind: 'b'; b: 2; } | { kind: 'c'; c: 1; }; +>Signs : Symbol(Signs, Decl(returnTypeInferenceNotTooBroad.ts, 0, 0)) +>kind : Symbol(kind, Decl(returnTypeInferenceNotTooBroad.ts, 0, 14)) +>a : Symbol(a, Decl(returnTypeInferenceNotTooBroad.ts, 0, 25)) +>kind : Symbol(kind, Decl(returnTypeInferenceNotTooBroad.ts, 0, 37)) +>b : Symbol(b, Decl(returnTypeInferenceNotTooBroad.ts, 0, 48)) +>kind : Symbol(kind, Decl(returnTypeInferenceNotTooBroad.ts, 0, 60)) +>c : Symbol(c, Decl(returnTypeInferenceNotTooBroad.ts, 0, 71)) + +interface Opts { +>Opts : Symbol(Opts, Decl(returnTypeInferenceNotTooBroad.ts, 0, 80)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 1, 15)) + + low?: number; +>low : Symbol(Opts.low, Decl(returnTypeInferenceNotTooBroad.ts, 1, 19)) + + sign?: T +>sign : Symbol(Opts.sign, Decl(returnTypeInferenceNotTooBroad.ts, 2, 17)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 1, 15)) +} +interface Wrapper { +>Wrapper : Symbol(Wrapper, Decl(returnTypeInferenceNotTooBroad.ts, 4, 1)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 5, 18)) +} +declare function sepsis(opts: Opts): Wrapper; +>sepsis : Symbol(sepsis, Decl(returnTypeInferenceNotTooBroad.ts, 6, 1)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 7, 24)) +>Signs : Symbol(Signs, Decl(returnTypeInferenceNotTooBroad.ts, 0, 0)) +>opts : Symbol(opts, Decl(returnTypeInferenceNotTooBroad.ts, 7, 41)) +>Opts : Symbol(Opts, Decl(returnTypeInferenceNotTooBroad.ts, 0, 80)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 7, 24)) +>Wrapper : Symbol(Wrapper, Decl(returnTypeInferenceNotTooBroad.ts, 4, 1)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 7, 24)) + +declare function unwrap(w: Wrapper): T; +>unwrap : Symbol(unwrap, Decl(returnTypeInferenceNotTooBroad.ts, 7, 68)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 8, 24)) +>w : Symbol(w, Decl(returnTypeInferenceNotTooBroad.ts, 8, 27)) +>Wrapper : Symbol(Wrapper, Decl(returnTypeInferenceNotTooBroad.ts, 4, 1)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 8, 24)) +>T : Symbol(T, Decl(returnTypeInferenceNotTooBroad.ts, 8, 24)) + +export const y = sepsis({ low: 1, sign: { kind: 'a', a: 3 }}); +>y : Symbol(y, Decl(returnTypeInferenceNotTooBroad.ts, 9, 12)) +>sepsis : Symbol(sepsis, Decl(returnTypeInferenceNotTooBroad.ts, 6, 1)) +>low : Symbol(low, Decl(returnTypeInferenceNotTooBroad.ts, 9, 25)) +>sign : Symbol(sign, Decl(returnTypeInferenceNotTooBroad.ts, 9, 33)) +>kind : Symbol(kind, Decl(returnTypeInferenceNotTooBroad.ts, 9, 41)) +>a : Symbol(a, Decl(returnTypeInferenceNotTooBroad.ts, 9, 52)) + +// $ExpectType { kind: "a"; a: 3; } +export const yun = unwrap(y); +>yun : Symbol(yun, Decl(returnTypeInferenceNotTooBroad.ts, 11, 12)) +>unwrap : Symbol(unwrap, Decl(returnTypeInferenceNotTooBroad.ts, 7, 68)) +>y : Symbol(y, Decl(returnTypeInferenceNotTooBroad.ts, 9, 12)) + +// $ExpectType { kind: "a"; a: 3; } +export const yone = unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})); +>yone : Symbol(yone, Decl(returnTypeInferenceNotTooBroad.ts, 13, 12)) +>unwrap : Symbol(unwrap, Decl(returnTypeInferenceNotTooBroad.ts, 7, 68)) +>sepsis : Symbol(sepsis, Decl(returnTypeInferenceNotTooBroad.ts, 6, 1)) +>low : Symbol(low, Decl(returnTypeInferenceNotTooBroad.ts, 13, 35)) +>sign : Symbol(sign, Decl(returnTypeInferenceNotTooBroad.ts, 13, 43)) +>kind : Symbol(kind, Decl(returnTypeInferenceNotTooBroad.ts, 13, 51)) +>a : Symbol(a, Decl(returnTypeInferenceNotTooBroad.ts, 13, 62)) + diff --git a/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).types new file mode 100644 index 0000000000000..1f07d04ed8463 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).types @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/returnTypeInferenceNotTooBroad.ts] //// + +=== returnTypeInferenceNotTooBroad.ts === +type Signs = { kind: 'a'; a: 3; } | { kind: 'b'; b: 2; } | { kind: 'c'; c: 1; }; +>Signs : Signs +>kind : "a" +>a : 3 +>kind : "b" +>b : 2 +>kind : "c" +>c : 1 + +interface Opts { + low?: number; +>low : number | undefined + + sign?: T +>sign : T | undefined +} +interface Wrapper { +} +declare function sepsis(opts: Opts): Wrapper; +>sepsis : (opts: Opts) => Wrapper +>opts : Opts + +declare function unwrap(w: Wrapper): T; +>unwrap : (w: Wrapper) => T +>w : Wrapper + +export const y = sepsis({ low: 1, sign: { kind: 'a', a: 3 }}); +>y : Wrapper<{ kind: "a"; a: 3; }> +>sepsis({ low: 1, sign: { kind: 'a', a: 3 }}) : Wrapper<{ kind: "a"; a: 3; }> +>sepsis : (opts: Opts) => Wrapper +>{ low: 1, sign: { kind: 'a', a: 3 }} : { low: number; sign: { kind: "a"; a: 3; }; } +>low : number +>1 : 1 +>sign : { kind: "a"; a: 3; } +>{ kind: 'a', a: 3 } : { kind: "a"; a: 3; } +>kind : "a" +>'a' : "a" +>a : 3 +>3 : 3 + +// $ExpectType { kind: "a"; a: 3; } +export const yun = unwrap(y); +>yun : { kind: "a"; a: 3; } +>unwrap(y) : { kind: "a"; a: 3; } +>unwrap : (w: Wrapper) => T +>y : Wrapper<{ kind: "a"; a: 3; }> + +// $ExpectType { kind: "a"; a: 3; } +export const yone = unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})); +>yone : { kind: string; a: number; } +>unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})) : { kind: string; a: number; } +>unwrap : (w: Wrapper) => T +>sepsis({ low: 1, sign: { kind: 'a', a: 3 }}) : Wrapper<{ kind: string; a: number; }> +>sepsis : (opts: Opts) => Wrapper +>{ low: 1, sign: { kind: 'a', a: 3 }} : { low: number; sign: { kind: string; a: number; }; } +>low : number +>1 : 1 +>sign : { kind: string; a: number; } +>{ kind: 'a', a: 3 } : { kind: string; a: number; } +>kind : string +>'a' : "a" +>a : number +>3 : 3 + diff --git a/tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.errors.txt b/tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.errors.txt new file mode 100644 index 0000000000000..41aedf1864525 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.errors.txt @@ -0,0 +1,22 @@ +b.ts(4,31): error TS2339: Property 'Core' does not exist on type '{ Template: { commitError: (v: number) => any; }; }'. + + +==== a.ts (0 errors) ==== + import type { T } from "./b"; + + export const Obj = { + Updaters: { + Template: { + commitError: (v: T) => Obj.Updaters.Core.commitError(v), + }, + }, + }; + +==== b.ts (1 errors) ==== + import { Obj } from "./a"; + + export type T = number; + export const x = Obj.Updaters.Core.simpleModal; + ~~~~ +!!! error TS2339: Property 'Core' does not exist on type '{ Template: { commitError: (v: number) => any; }; }'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.symbols b/tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.symbols new file mode 100644 index 0000000000000..25af9f6fafbd2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.symbols @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/selfReferencingObjectLiteralErrorSharedChecker.ts] //// + +=== a.ts === +import type { T } from "./b"; +>T : Symbol(T, Decl(a.ts, 0, 13)) + +export const Obj = { +>Obj : Symbol(Obj, Decl(a.ts, 2, 12)) + + Updaters: { +>Updaters : Symbol(Updaters, Decl(a.ts, 2, 20)) + + Template: { +>Template : Symbol(Template, Decl(a.ts, 3, 15)) + + commitError: (v: T) => Obj.Updaters.Core.commitError(v), +>commitError : Symbol(commitError, Decl(a.ts, 4, 19)) +>v : Symbol(v, Decl(a.ts, 5, 26)) +>T : Symbol(T, Decl(a.ts, 0, 13)) +>Obj.Updaters : Symbol(Updaters, Decl(a.ts, 2, 20)) +>Obj : Symbol(Obj, Decl(a.ts, 2, 12)) +>Updaters : Symbol(Updaters, Decl(a.ts, 2, 20)) +>v : Symbol(v, Decl(a.ts, 5, 26)) + + }, + }, +}; + +=== b.ts === +import { Obj } from "./a"; +>Obj : Symbol(Obj, Decl(b.ts, 0, 8)) + +export type T = number; +>T : Symbol(T, Decl(b.ts, 0, 26)) + +export const x = Obj.Updaters.Core.simpleModal; +>x : Symbol(x, Decl(b.ts, 3, 12)) +>Obj.Updaters : Symbol(Updaters, Decl(a.ts, 2, 20)) +>Obj : Symbol(Obj, Decl(b.ts, 0, 8)) +>Updaters : Symbol(Updaters, Decl(a.ts, 2, 20)) + diff --git a/tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.types b/tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.types new file mode 100644 index 0000000000000..707ac540743ed --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/selfReferencingObjectLiteralErrorSharedChecker.types @@ -0,0 +1,53 @@ +//// [tests/cases/compiler/selfReferencingObjectLiteralErrorSharedChecker.ts] //// + +=== a.ts === +import type { T } from "./b"; +>T : number + +export const Obj = { +>Obj : { Updaters: { Template: { commitError: (v: T) => any; }; }; } +>{ Updaters: { Template: { commitError: (v: T) => Obj.Updaters.Core.commitError(v), }, },} : { Updaters: { Template: { commitError: (v: T) => any; }; }; } + + Updaters: { +>Updaters : { Template: { commitError: (v: T) => any; }; } +>{ Template: { commitError: (v: T) => Obj.Updaters.Core.commitError(v), }, } : { Template: { commitError: (v: T) => any; }; } + + Template: { +>Template : { commitError: (v: T) => any; } +>{ commitError: (v: T) => Obj.Updaters.Core.commitError(v), } : { commitError: (v: T) => any; } + + commitError: (v: T) => Obj.Updaters.Core.commitError(v), +>commitError : (v: T) => any +>(v: T) => Obj.Updaters.Core.commitError(v) : (v: T) => any +>v : number +>Obj.Updaters.Core.commitError(v) : any +>Obj.Updaters.Core.commitError : any +>Obj.Updaters.Core : any +>Obj.Updaters : { Template: { commitError: (v: T) => any; }; } +>Obj : { Updaters: { Template: { commitError: (v: T) => any; }; }; } +>Updaters : { Template: { commitError: (v: T) => any; }; } +>Core : any +>commitError : any +>v : number + + }, + }, +}; + +=== b.ts === +import { Obj } from "./a"; +>Obj : { Updaters: { Template: { commitError: (v: T) => any; }; }; } + +export type T = number; +>T : number + +export const x = Obj.Updaters.Core.simpleModal; +>x : any +>Obj.Updaters.Core.simpleModal : any +>Obj.Updaters.Core : any +>Obj.Updaters : { Template: { commitError: (v: T) => any; }; } +>Obj : { Updaters: { Template: { commitError: (v: T) => any; }; }; } +>Updaters : { Template: { commitError: (v: T) => any; }; } +>Core : any +>simpleModal : any + diff --git a/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).errors.txt new file mode 100644 index 0000000000000..b56bf6531dd0a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).errors.txt @@ -0,0 +1,24 @@ +sharedMemberLayoutThisIntersectionBase.ts(7,3): error TS2339: Property 'm' does not exist on type 'D<"b">'. +sharedMemberLayoutThisIntersectionBase.ts(12,3): error TS2339: Property 'm' does not exist on type 'C<"b">'. + + +==== sharedMemberLayoutThisIntersectionBase.ts (2 errors) ==== + interface A { kind: string; m: this["kind"] } + interface B { m: "a" } + type AB = A & B; + + interface D extends AB { kind: T } + declare let d: D<"b">; + d.m; + ~ +!!! error TS2339: Property 'm' does not exist on type 'D<"b">'. + + declare const ABCtor: new () => AB; + class C extends ABCtor { declare kind: T } + declare let c: C<"b">; + c.m; + ~ +!!! error TS2339: Property 'm' does not exist on type 'C<"b">'. + + export {}; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).symbols new file mode 100644 index 0000000000000..793b38f82728b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/sharedMemberLayoutThisIntersectionBase.ts] //// + +=== sharedMemberLayoutThisIntersectionBase.ts === +interface A { kind: string; m: this["kind"] } +>A : Symbol(A, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 0)) +>kind : Symbol(A.kind, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 13)) +>m : Symbol(A.m, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 27)) + +interface B { m: "a" } +>B : Symbol(B, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 45)) +>m : Symbol(B.m, Decl(sharedMemberLayoutThisIntersectionBase.ts, 1, 13)) + +type AB = A & B; +>AB : Symbol(AB, Decl(sharedMemberLayoutThisIntersectionBase.ts, 1, 22)) +>A : Symbol(A, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 0)) +>B : Symbol(B, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 45)) + +interface D extends AB { kind: T } +>D : Symbol(D, Decl(sharedMemberLayoutThisIntersectionBase.ts, 2, 16)) +>T : Symbol(T, Decl(sharedMemberLayoutThisIntersectionBase.ts, 4, 12)) +>AB : Symbol(AB, Decl(sharedMemberLayoutThisIntersectionBase.ts, 1, 22)) +>kind : Symbol(D.kind, Decl(sharedMemberLayoutThisIntersectionBase.ts, 4, 42)) +>T : Symbol(T, Decl(sharedMemberLayoutThisIntersectionBase.ts, 4, 12)) + +declare let d: D<"b">; +>d : Symbol(d, Decl(sharedMemberLayoutThisIntersectionBase.ts, 5, 11)) +>D : Symbol(D, Decl(sharedMemberLayoutThisIntersectionBase.ts, 2, 16)) + +d.m; +>d : Symbol(d, Decl(sharedMemberLayoutThisIntersectionBase.ts, 5, 11)) + +declare const ABCtor: new () => AB; +>ABCtor : Symbol(ABCtor, Decl(sharedMemberLayoutThisIntersectionBase.ts, 8, 13)) +>AB : Symbol(AB, Decl(sharedMemberLayoutThisIntersectionBase.ts, 1, 22)) + +class C extends ABCtor { declare kind: T } +>C : Symbol(C, Decl(sharedMemberLayoutThisIntersectionBase.ts, 8, 35)) +>T : Symbol(T, Decl(sharedMemberLayoutThisIntersectionBase.ts, 9, 8)) +>ABCtor : Symbol(ABCtor, Decl(sharedMemberLayoutThisIntersectionBase.ts, 8, 13)) +>kind : Symbol(C.kind, Decl(sharedMemberLayoutThisIntersectionBase.ts, 9, 42)) +>T : Symbol(T, Decl(sharedMemberLayoutThisIntersectionBase.ts, 9, 8)) + +declare let c: C<"b">; +>c : Symbol(c, Decl(sharedMemberLayoutThisIntersectionBase.ts, 10, 11)) +>C : Symbol(C, Decl(sharedMemberLayoutThisIntersectionBase.ts, 8, 35)) + +c.m; +>c : Symbol(c, Decl(sharedMemberLayoutThisIntersectionBase.ts, 10, 11)) + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).types new file mode 100644 index 0000000000000..41de65a71ea2f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=default).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/sharedMemberLayoutThisIntersectionBase.ts] //// + +=== sharedMemberLayoutThisIntersectionBase.ts === +interface A { kind: string; m: this["kind"] } +>kind : string +>m : this["kind"] + +interface B { m: "a" } +>m : "a" + +type AB = A & B; +>AB : AB + +interface D extends AB { kind: T } +>kind : T + +declare let d: D<"b">; +>d : D<"b"> + +d.m; +>d.m : any +>d : D<"b"> +>m : any + +declare const ABCtor: new () => AB; +>ABCtor : new () => AB + +class C extends ABCtor { declare kind: T } +>C : C +>ABCtor : A & B +>kind : T + +declare let c: C<"b">; +>c : C<"b"> + +c.m; +>c.m : any +>c : C<"b"> +>m : any + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..b56bf6531dd0a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).errors.txt @@ -0,0 +1,24 @@ +sharedMemberLayoutThisIntersectionBase.ts(7,3): error TS2339: Property 'm' does not exist on type 'D<"b">'. +sharedMemberLayoutThisIntersectionBase.ts(12,3): error TS2339: Property 'm' does not exist on type 'C<"b">'. + + +==== sharedMemberLayoutThisIntersectionBase.ts (2 errors) ==== + interface A { kind: string; m: this["kind"] } + interface B { m: "a" } + type AB = A & B; + + interface D extends AB { kind: T } + declare let d: D<"b">; + d.m; + ~ +!!! error TS2339: Property 'm' does not exist on type 'D<"b">'. + + declare const ABCtor: new () => AB; + class C extends ABCtor { declare kind: T } + declare let c: C<"b">; + c.m; + ~ +!!! error TS2339: Property 'm' does not exist on type 'C<"b">'. + + export {}; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..793b38f82728b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/sharedMemberLayoutThisIntersectionBase.ts] //// + +=== sharedMemberLayoutThisIntersectionBase.ts === +interface A { kind: string; m: this["kind"] } +>A : Symbol(A, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 0)) +>kind : Symbol(A.kind, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 13)) +>m : Symbol(A.m, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 27)) + +interface B { m: "a" } +>B : Symbol(B, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 45)) +>m : Symbol(B.m, Decl(sharedMemberLayoutThisIntersectionBase.ts, 1, 13)) + +type AB = A & B; +>AB : Symbol(AB, Decl(sharedMemberLayoutThisIntersectionBase.ts, 1, 22)) +>A : Symbol(A, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 0)) +>B : Symbol(B, Decl(sharedMemberLayoutThisIntersectionBase.ts, 0, 45)) + +interface D extends AB { kind: T } +>D : Symbol(D, Decl(sharedMemberLayoutThisIntersectionBase.ts, 2, 16)) +>T : Symbol(T, Decl(sharedMemberLayoutThisIntersectionBase.ts, 4, 12)) +>AB : Symbol(AB, Decl(sharedMemberLayoutThisIntersectionBase.ts, 1, 22)) +>kind : Symbol(D.kind, Decl(sharedMemberLayoutThisIntersectionBase.ts, 4, 42)) +>T : Symbol(T, Decl(sharedMemberLayoutThisIntersectionBase.ts, 4, 12)) + +declare let d: D<"b">; +>d : Symbol(d, Decl(sharedMemberLayoutThisIntersectionBase.ts, 5, 11)) +>D : Symbol(D, Decl(sharedMemberLayoutThisIntersectionBase.ts, 2, 16)) + +d.m; +>d : Symbol(d, Decl(sharedMemberLayoutThisIntersectionBase.ts, 5, 11)) + +declare const ABCtor: new () => AB; +>ABCtor : Symbol(ABCtor, Decl(sharedMemberLayoutThisIntersectionBase.ts, 8, 13)) +>AB : Symbol(AB, Decl(sharedMemberLayoutThisIntersectionBase.ts, 1, 22)) + +class C extends ABCtor { declare kind: T } +>C : Symbol(C, Decl(sharedMemberLayoutThisIntersectionBase.ts, 8, 35)) +>T : Symbol(T, Decl(sharedMemberLayoutThisIntersectionBase.ts, 9, 8)) +>ABCtor : Symbol(ABCtor, Decl(sharedMemberLayoutThisIntersectionBase.ts, 8, 13)) +>kind : Symbol(C.kind, Decl(sharedMemberLayoutThisIntersectionBase.ts, 9, 42)) +>T : Symbol(T, Decl(sharedMemberLayoutThisIntersectionBase.ts, 9, 8)) + +declare let c: C<"b">; +>c : Symbol(c, Decl(sharedMemberLayoutThisIntersectionBase.ts, 10, 11)) +>C : Symbol(C, Decl(sharedMemberLayoutThisIntersectionBase.ts, 8, 35)) + +c.m; +>c : Symbol(c, Decl(sharedMemberLayoutThisIntersectionBase.ts, 10, 11)) + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).types new file mode 100644 index 0000000000000..41de65a71ea2f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/sharedMemberLayoutThisIntersectionBase(checkorder=typesfirst).types @@ -0,0 +1,42 @@ +//// [tests/cases/compiler/sharedMemberLayoutThisIntersectionBase.ts] //// + +=== sharedMemberLayoutThisIntersectionBase.ts === +interface A { kind: string; m: this["kind"] } +>kind : string +>m : this["kind"] + +interface B { m: "a" } +>m : "a" + +type AB = A & B; +>AB : AB + +interface D extends AB { kind: T } +>kind : T + +declare let d: D<"b">; +>d : D<"b"> + +d.m; +>d.m : any +>d : D<"b"> +>m : any + +declare const ABCtor: new () => AB; +>ABCtor : new () => AB + +class C extends ABCtor { declare kind: T } +>C : C +>ABCtor : A & B +>kind : T + +declare let c: C<"b">; +>c : C<"b"> + +c.m; +>c.m : any +>c : C<"b"> +>m : any + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..ff80b43741780 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,42 @@ +signatureHelpForCallInLoopCheckOrder.ts(18,13): error TS7022: 'tmp' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +signatureHelpForCallInLoopCheckOrder.ts(18,31): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type 'XMLNode | undefined' is not assignable to parameter of type 'XMLNode'. + Type 'undefined' is not assignable to type 'XMLNode'. + + +==== signatureHelpForCallInLoopCheckOrder.ts (2 errors) ==== + // The type of tmp depends on the type of cur in the loop, which depends on + // tmp. Signature help for the call analyzes the loop with the arguments + // typed so far, and the type it finds at the loop does not outlive the + // request (49529). + + interface XMLNode {} + + declare function accessArray(node: XMLNode, createIfNotExists: true): XMLNode; + declare function accessArray(node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; + declare function accessCatalogEntry(createIfNotExists: boolean): XMLNode | undefined; + + function accessFieldValue(createIfNotExists: boolean): XMLNode | undefined { + let cur = accessCatalogEntry(createIfNotExists); + if (!cur) { + return undefined; + } + for (let i = 0; i < 5; ++i) { + let tmp = accessArray(cur, createIfNotExists); + ~~~ +!!! error TS7022: 'tmp' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Argument of type 'XMLNode | undefined' is not assignable to parameter of type 'XMLNode'. +!!! error TS2769: Type 'undefined' is not assignable to type 'XMLNode'. +!!! related TS2771 signatureHelpForCallInLoopCheckOrder.ts:9:18: The last overload is declared here. + if (!tmp) { + return undefined; + } + cur = tmp; + } + return cur; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..d19c3ff4d0afb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).symbols @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/signatureHelpForCallInLoopCheckOrder.ts] //// + +=== signatureHelpForCallInLoopCheckOrder.ts === +// The type of tmp depends on the type of cur in the loop, which depends on +// tmp. Signature help for the call analyzes the loop with the arguments +// typed so far, and the type it finds at the loop does not outlive the +// request (49529). + +interface XMLNode {} +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +declare function accessArray(node: XMLNode, createIfNotExists: true): XMLNode; +>accessArray : Symbol(accessArray, Decl(signatureHelpForCallInLoopCheckOrder.ts, 5, 20), Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 78)) +>node : Symbol(node, Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 29)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 43)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +declare function accessArray(node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; +>accessArray : Symbol(accessArray, Decl(signatureHelpForCallInLoopCheckOrder.ts, 5, 20), Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 78)) +>node : Symbol(node, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 29)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 43)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +declare function accessCatalogEntry(createIfNotExists: boolean): XMLNode | undefined; +>accessCatalogEntry : Symbol(accessCatalogEntry, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 93)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 9, 36)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +function accessFieldValue(createIfNotExists: boolean): XMLNode | undefined { +>accessFieldValue : Symbol(accessFieldValue, Decl(signatureHelpForCallInLoopCheckOrder.ts, 9, 85)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 11, 26)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + + let cur = accessCatalogEntry(createIfNotExists); +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +>accessCatalogEntry : Symbol(accessCatalogEntry, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 93)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 11, 26)) + + if (!cur) { +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) + + return undefined; +>undefined : Symbol(undefined) + } + for (let i = 0; i < 5; ++i) { +>i : Symbol(i, Decl(signatureHelpForCallInLoopCheckOrder.ts, 16, 12)) +>i : Symbol(i, Decl(signatureHelpForCallInLoopCheckOrder.ts, 16, 12)) +>i : Symbol(i, Decl(signatureHelpForCallInLoopCheckOrder.ts, 16, 12)) + + let tmp = accessArray(cur, createIfNotExists); +>tmp : Symbol(tmp, Decl(signatureHelpForCallInLoopCheckOrder.ts, 17, 11)) +>accessArray : Symbol(accessArray, Decl(signatureHelpForCallInLoopCheckOrder.ts, 5, 20), Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 78)) +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 11, 26)) + + if (!tmp) { +>tmp : Symbol(tmp, Decl(signatureHelpForCallInLoopCheckOrder.ts, 17, 11)) + + return undefined; +>undefined : Symbol(undefined) + } + cur = tmp; +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +>tmp : Symbol(tmp, Decl(signatureHelpForCallInLoopCheckOrder.ts, 17, 11)) + } + return cur; +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..11de8823e1bf8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=default).types @@ -0,0 +1,74 @@ +//// [tests/cases/compiler/signatureHelpForCallInLoopCheckOrder.ts] //// + +=== signatureHelpForCallInLoopCheckOrder.ts === +// The type of tmp depends on the type of cur in the loop, which depends on +// tmp. Signature help for the call analyzes the loop with the arguments +// typed so far, and the type it finds at the loop does not outlive the +// request (49529). + +interface XMLNode {} + +declare function accessArray(node: XMLNode, createIfNotExists: true): XMLNode; +>accessArray : { (node: XMLNode, createIfNotExists: true): XMLNode; (node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; } +>node : XMLNode +>createIfNotExists : true +>true : true + +declare function accessArray(node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; +>accessArray : { (node: XMLNode, createIfNotExists: true): XMLNode; (node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; } +>node : XMLNode +>createIfNotExists : boolean + +declare function accessCatalogEntry(createIfNotExists: boolean): XMLNode | undefined; +>accessCatalogEntry : (createIfNotExists: boolean) => XMLNode | undefined +>createIfNotExists : boolean + +function accessFieldValue(createIfNotExists: boolean): XMLNode | undefined { +>accessFieldValue : (createIfNotExists: boolean) => XMLNode | undefined +>createIfNotExists : boolean + + let cur = accessCatalogEntry(createIfNotExists); +>cur : XMLNode | undefined +>accessCatalogEntry(createIfNotExists) : XMLNode | undefined +>accessCatalogEntry : (createIfNotExists: boolean) => XMLNode | undefined +>createIfNotExists : boolean + + if (!cur) { +>!cur : boolean +>cur : XMLNode | undefined + + return undefined; +>undefined : undefined + } + for (let i = 0; i < 5; ++i) { +>i : number +>0 : 0 +>i < 5 : boolean +>i : number +>5 : 5 +>++i : number +>i : number + + let tmp = accessArray(cur, createIfNotExists); +>tmp : any +>accessArray(cur, createIfNotExists) : XMLNode +>accessArray : { (node: XMLNode, createIfNotExists: true): XMLNode; (node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; } +>cur : XMLNode | undefined +>createIfNotExists : boolean + + if (!tmp) { +>!tmp : boolean +>tmp : any + + return undefined; +>undefined : undefined + } + cur = tmp; +>cur = tmp : any +>cur : XMLNode | undefined +>tmp : any + } + return cur; +>cur : XMLNode | undefined +} + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..ff80b43741780 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,42 @@ +signatureHelpForCallInLoopCheckOrder.ts(18,13): error TS7022: 'tmp' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +signatureHelpForCallInLoopCheckOrder.ts(18,31): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type 'XMLNode | undefined' is not assignable to parameter of type 'XMLNode'. + Type 'undefined' is not assignable to type 'XMLNode'. + + +==== signatureHelpForCallInLoopCheckOrder.ts (2 errors) ==== + // The type of tmp depends on the type of cur in the loop, which depends on + // tmp. Signature help for the call analyzes the loop with the arguments + // typed so far, and the type it finds at the loop does not outlive the + // request (49529). + + interface XMLNode {} + + declare function accessArray(node: XMLNode, createIfNotExists: true): XMLNode; + declare function accessArray(node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; + declare function accessCatalogEntry(createIfNotExists: boolean): XMLNode | undefined; + + function accessFieldValue(createIfNotExists: boolean): XMLNode | undefined { + let cur = accessCatalogEntry(createIfNotExists); + if (!cur) { + return undefined; + } + for (let i = 0; i < 5; ++i) { + let tmp = accessArray(cur, createIfNotExists); + ~~~ +!!! error TS7022: 'tmp' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Argument of type 'XMLNode | undefined' is not assignable to parameter of type 'XMLNode'. +!!! error TS2769: Type 'undefined' is not assignable to type 'XMLNode'. +!!! related TS2771 signatureHelpForCallInLoopCheckOrder.ts:9:18: The last overload is declared here. + if (!tmp) { + return undefined; + } + cur = tmp; + } + return cur; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..d19c3ff4d0afb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/signatureHelpForCallInLoopCheckOrder.ts] //// + +=== signatureHelpForCallInLoopCheckOrder.ts === +// The type of tmp depends on the type of cur in the loop, which depends on +// tmp. Signature help for the call analyzes the loop with the arguments +// typed so far, and the type it finds at the loop does not outlive the +// request (49529). + +interface XMLNode {} +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +declare function accessArray(node: XMLNode, createIfNotExists: true): XMLNode; +>accessArray : Symbol(accessArray, Decl(signatureHelpForCallInLoopCheckOrder.ts, 5, 20), Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 78)) +>node : Symbol(node, Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 29)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 43)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +declare function accessArray(node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; +>accessArray : Symbol(accessArray, Decl(signatureHelpForCallInLoopCheckOrder.ts, 5, 20), Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 78)) +>node : Symbol(node, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 29)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 43)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +declare function accessCatalogEntry(createIfNotExists: boolean): XMLNode | undefined; +>accessCatalogEntry : Symbol(accessCatalogEntry, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 93)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 9, 36)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +function accessFieldValue(createIfNotExists: boolean): XMLNode | undefined { +>accessFieldValue : Symbol(accessFieldValue, Decl(signatureHelpForCallInLoopCheckOrder.ts, 9, 85)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 11, 26)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + + let cur = accessCatalogEntry(createIfNotExists); +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +>accessCatalogEntry : Symbol(accessCatalogEntry, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 93)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 11, 26)) + + if (!cur) { +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) + + return undefined; +>undefined : Symbol(undefined) + } + for (let i = 0; i < 5; ++i) { +>i : Symbol(i, Decl(signatureHelpForCallInLoopCheckOrder.ts, 16, 12)) +>i : Symbol(i, Decl(signatureHelpForCallInLoopCheckOrder.ts, 16, 12)) +>i : Symbol(i, Decl(signatureHelpForCallInLoopCheckOrder.ts, 16, 12)) + + let tmp = accessArray(cur, createIfNotExists); +>tmp : Symbol(tmp, Decl(signatureHelpForCallInLoopCheckOrder.ts, 17, 11)) +>accessArray : Symbol(accessArray, Decl(signatureHelpForCallInLoopCheckOrder.ts, 5, 20), Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 78)) +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 11, 26)) + + if (!tmp) { +>tmp : Symbol(tmp, Decl(signatureHelpForCallInLoopCheckOrder.ts, 17, 11)) + + return undefined; +>undefined : Symbol(undefined) + } + cur = tmp; +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +>tmp : Symbol(tmp, Decl(signatureHelpForCallInLoopCheckOrder.ts, 17, 11)) + } + return cur; +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..11de8823e1bf8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,74 @@ +//// [tests/cases/compiler/signatureHelpForCallInLoopCheckOrder.ts] //// + +=== signatureHelpForCallInLoopCheckOrder.ts === +// The type of tmp depends on the type of cur in the loop, which depends on +// tmp. Signature help for the call analyzes the loop with the arguments +// typed so far, and the type it finds at the loop does not outlive the +// request (49529). + +interface XMLNode {} + +declare function accessArray(node: XMLNode, createIfNotExists: true): XMLNode; +>accessArray : { (node: XMLNode, createIfNotExists: true): XMLNode; (node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; } +>node : XMLNode +>createIfNotExists : true +>true : true + +declare function accessArray(node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; +>accessArray : { (node: XMLNode, createIfNotExists: true): XMLNode; (node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; } +>node : XMLNode +>createIfNotExists : boolean + +declare function accessCatalogEntry(createIfNotExists: boolean): XMLNode | undefined; +>accessCatalogEntry : (createIfNotExists: boolean) => XMLNode | undefined +>createIfNotExists : boolean + +function accessFieldValue(createIfNotExists: boolean): XMLNode | undefined { +>accessFieldValue : (createIfNotExists: boolean) => XMLNode | undefined +>createIfNotExists : boolean + + let cur = accessCatalogEntry(createIfNotExists); +>cur : XMLNode | undefined +>accessCatalogEntry(createIfNotExists) : XMLNode | undefined +>accessCatalogEntry : (createIfNotExists: boolean) => XMLNode | undefined +>createIfNotExists : boolean + + if (!cur) { +>!cur : boolean +>cur : XMLNode | undefined + + return undefined; +>undefined : undefined + } + for (let i = 0; i < 5; ++i) { +>i : number +>0 : 0 +>i < 5 : boolean +>i : number +>5 : 5 +>++i : number +>i : number + + let tmp = accessArray(cur, createIfNotExists); +>tmp : any +>accessArray(cur, createIfNotExists) : XMLNode +>accessArray : { (node: XMLNode, createIfNotExists: true): XMLNode; (node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; } +>cur : XMLNode | undefined +>createIfNotExists : boolean + + if (!tmp) { +>!tmp : boolean +>tmp : any + + return undefined; +>undefined : undefined + } + cur = tmp; +>cur = tmp : any +>cur : XMLNode | undefined +>tmp : any + } + return cur; +>cur : XMLNode | undefined +} + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..ff80b43741780 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,42 @@ +signatureHelpForCallInLoopCheckOrder.ts(18,13): error TS7022: 'tmp' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +signatureHelpForCallInLoopCheckOrder.ts(18,31): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type 'XMLNode | undefined' is not assignable to parameter of type 'XMLNode'. + Type 'undefined' is not assignable to type 'XMLNode'. + + +==== signatureHelpForCallInLoopCheckOrder.ts (2 errors) ==== + // The type of tmp depends on the type of cur in the loop, which depends on + // tmp. Signature help for the call analyzes the loop with the arguments + // typed so far, and the type it finds at the loop does not outlive the + // request (49529). + + interface XMLNode {} + + declare function accessArray(node: XMLNode, createIfNotExists: true): XMLNode; + declare function accessArray(node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; + declare function accessCatalogEntry(createIfNotExists: boolean): XMLNode | undefined; + + function accessFieldValue(createIfNotExists: boolean): XMLNode | undefined { + let cur = accessCatalogEntry(createIfNotExists); + if (!cur) { + return undefined; + } + for (let i = 0; i < 5; ++i) { + let tmp = accessArray(cur, createIfNotExists); + ~~~ +!!! error TS7022: 'tmp' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~~~ +!!! error TS2769: No overload matches this call. +!!! error TS2769: The last overload gave the following error. +!!! error TS2769: Argument of type 'XMLNode | undefined' is not assignable to parameter of type 'XMLNode'. +!!! error TS2769: Type 'undefined' is not assignable to type 'XMLNode'. +!!! related TS2771 signatureHelpForCallInLoopCheckOrder.ts:9:18: The last overload is declared here. + if (!tmp) { + return undefined; + } + cur = tmp; + } + return cur; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..d19c3ff4d0afb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/signatureHelpForCallInLoopCheckOrder.ts] //// + +=== signatureHelpForCallInLoopCheckOrder.ts === +// The type of tmp depends on the type of cur in the loop, which depends on +// tmp. Signature help for the call analyzes the loop with the arguments +// typed so far, and the type it finds at the loop does not outlive the +// request (49529). + +interface XMLNode {} +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +declare function accessArray(node: XMLNode, createIfNotExists: true): XMLNode; +>accessArray : Symbol(accessArray, Decl(signatureHelpForCallInLoopCheckOrder.ts, 5, 20), Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 78)) +>node : Symbol(node, Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 29)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 43)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +declare function accessArray(node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; +>accessArray : Symbol(accessArray, Decl(signatureHelpForCallInLoopCheckOrder.ts, 5, 20), Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 78)) +>node : Symbol(node, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 29)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 43)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +declare function accessCatalogEntry(createIfNotExists: boolean): XMLNode | undefined; +>accessCatalogEntry : Symbol(accessCatalogEntry, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 93)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 9, 36)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + +function accessFieldValue(createIfNotExists: boolean): XMLNode | undefined { +>accessFieldValue : Symbol(accessFieldValue, Decl(signatureHelpForCallInLoopCheckOrder.ts, 9, 85)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 11, 26)) +>XMLNode : Symbol(XMLNode, Decl(signatureHelpForCallInLoopCheckOrder.ts, 0, 0)) + + let cur = accessCatalogEntry(createIfNotExists); +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +>accessCatalogEntry : Symbol(accessCatalogEntry, Decl(signatureHelpForCallInLoopCheckOrder.ts, 8, 93)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 11, 26)) + + if (!cur) { +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) + + return undefined; +>undefined : Symbol(undefined) + } + for (let i = 0; i < 5; ++i) { +>i : Symbol(i, Decl(signatureHelpForCallInLoopCheckOrder.ts, 16, 12)) +>i : Symbol(i, Decl(signatureHelpForCallInLoopCheckOrder.ts, 16, 12)) +>i : Symbol(i, Decl(signatureHelpForCallInLoopCheckOrder.ts, 16, 12)) + + let tmp = accessArray(cur, createIfNotExists); +>tmp : Symbol(tmp, Decl(signatureHelpForCallInLoopCheckOrder.ts, 17, 11)) +>accessArray : Symbol(accessArray, Decl(signatureHelpForCallInLoopCheckOrder.ts, 5, 20), Decl(signatureHelpForCallInLoopCheckOrder.ts, 7, 78)) +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +>createIfNotExists : Symbol(createIfNotExists, Decl(signatureHelpForCallInLoopCheckOrder.ts, 11, 26)) + + if (!tmp) { +>tmp : Symbol(tmp, Decl(signatureHelpForCallInLoopCheckOrder.ts, 17, 11)) + + return undefined; +>undefined : Symbol(undefined) + } + cur = tmp; +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +>tmp : Symbol(tmp, Decl(signatureHelpForCallInLoopCheckOrder.ts, 17, 11)) + } + return cur; +>cur : Symbol(cur, Decl(signatureHelpForCallInLoopCheckOrder.ts, 12, 7)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..11de8823e1bf8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpForCallInLoopCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,74 @@ +//// [tests/cases/compiler/signatureHelpForCallInLoopCheckOrder.ts] //// + +=== signatureHelpForCallInLoopCheckOrder.ts === +// The type of tmp depends on the type of cur in the loop, which depends on +// tmp. Signature help for the call analyzes the loop with the arguments +// typed so far, and the type it finds at the loop does not outlive the +// request (49529). + +interface XMLNode {} + +declare function accessArray(node: XMLNode, createIfNotExists: true): XMLNode; +>accessArray : { (node: XMLNode, createIfNotExists: true): XMLNode; (node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; } +>node : XMLNode +>createIfNotExists : true +>true : true + +declare function accessArray(node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; +>accessArray : { (node: XMLNode, createIfNotExists: true): XMLNode; (node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; } +>node : XMLNode +>createIfNotExists : boolean + +declare function accessCatalogEntry(createIfNotExists: boolean): XMLNode | undefined; +>accessCatalogEntry : (createIfNotExists: boolean) => XMLNode | undefined +>createIfNotExists : boolean + +function accessFieldValue(createIfNotExists: boolean): XMLNode | undefined { +>accessFieldValue : (createIfNotExists: boolean) => XMLNode | undefined +>createIfNotExists : boolean + + let cur = accessCatalogEntry(createIfNotExists); +>cur : XMLNode | undefined +>accessCatalogEntry(createIfNotExists) : XMLNode | undefined +>accessCatalogEntry : (createIfNotExists: boolean) => XMLNode | undefined +>createIfNotExists : boolean + + if (!cur) { +>!cur : boolean +>cur : XMLNode | undefined + + return undefined; +>undefined : undefined + } + for (let i = 0; i < 5; ++i) { +>i : number +>0 : 0 +>i < 5 : boolean +>i : number +>5 : 5 +>++i : number +>i : number + + let tmp = accessArray(cur, createIfNotExists); +>tmp : any +>accessArray(cur, createIfNotExists) : XMLNode +>accessArray : { (node: XMLNode, createIfNotExists: true): XMLNode; (node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; } +>cur : XMLNode | undefined +>createIfNotExists : boolean + + if (!tmp) { +>!tmp : boolean +>tmp : any + + return undefined; +>undefined : undefined + } + cur = tmp; +>cur = tmp : any +>cur : XMLNode | undefined +>tmp : any + } + return cur; +>cur : XMLNode | undefined +} + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..ff65254a6ded9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,33 @@ +signatureHelpInNestedCallbackCheckOrder.ts(19,47): error TS2345: Argument of type '(a: A) => B[]' is not assignable to parameter of type '(this: undefined, value: A, index: number, array: A[]) => B | readonly B[]'. + Types of parameters 'a' and 'value' are incompatible. + Type 'A' is not assignable to type 'A'. Two different types with this name exist, but they are unrelated. + 'A' could be instantiated with an arbitrary type which could be unrelated to 'A'. + + +==== signatureHelpInNestedCallbackCheckOrder.ts (1 errors) ==== + // Signature help for the inner call resolves the outer call from within + // it, while the inner call is being resolved. The errors of that + // resolution are not reported once the call is checked (48135). + + interface Monad { Array: A[] } + type MonadIdentifier = keyof Monad + + declare const setBindArray: + (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void + + setBindArray(g => fa => fa.flatMap(g)) + + declare const setBindGeneric: + + ( idenfier: I + , bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] + ) => void + + setBindGeneric("Array", g => fa => fa.flatMap(g)) + ~ +!!! error TS2345: Argument of type '(a: A) => B[]' is not assignable to parameter of type '(this: undefined, value: A, index: number, array: A[]) => B | readonly B[]'. +!!! error TS2345: Types of parameters 'a' and 'value' are incompatible. +!!! error TS2345: Type 'A' is not assignable to type 'A'. Two different types with this name exist, but they are unrelated. +!!! error TS2345: 'A' could be instantiated with an arbitrary type which could be unrelated to 'A'. +!!! related TS2208 signatureHelpInNestedCallbackCheckOrder.ts:16:14: This type parameter might need an `extends A` constraint. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..0a2d1975afeb7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).symbols @@ -0,0 +1,84 @@ +//// [tests/cases/compiler/signatureHelpInNestedCallbackCheckOrder.ts] //// + +=== signatureHelpInNestedCallbackCheckOrder.ts === +// Signature help for the inner call resolves the outer call from within +// it, while the inner call is being resolved. The errors of that +// resolution are not reported once the call is checked (48135). + +interface Monad { Array: A[] } +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 16)) +>Array : Symbol(Monad.Array, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 20)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 16)) + +type MonadIdentifier = keyof Monad +>MonadIdentifier : Symbol(MonadIdentifier, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 33)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) + +declare const setBindArray: +>setBindArray : Symbol(setBindArray, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 7, 13)) + + (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void +>bind : Symbol(bind, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 3)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 10)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 12)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 16)) +>a : Symbol(a, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 20)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 10)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 12)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 52)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 10)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 12)) + +setBindArray(g => fa => fa.flatMap(g)) +>setBindArray : Symbol(setBindArray, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 7, 13)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 13)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 17)) +>fa.flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 17)) +>flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 13)) + +declare const setBindGeneric: +>setBindGeneric : Symbol(setBindGeneric, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 12, 13)) + + +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) +>MonadIdentifier : Symbol(MonadIdentifier, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 33)) + + ( idenfier: I +>idenfier : Symbol(idenfier, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 14, 5)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) + + , bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] +>bind : Symbol(bind, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 5)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 13)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 15)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 19)) +>a : Symbol(a, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 23)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 13)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 15)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 49)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 13)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 15)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) + + ) => void + +setBindGeneric("Array", g => fa => fa.flatMap(g)) +>setBindGeneric : Symbol(setBindGeneric, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 12, 13)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 23)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 28)) +>fa.flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 28)) +>flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 23)) + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..33393b4269126 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=default).types @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/signatureHelpInNestedCallbackCheckOrder.ts] //// + +=== signatureHelpInNestedCallbackCheckOrder.ts === +// Signature help for the inner call resolves the outer call from within +// it, while the inner call is being resolved. The errors of that +// resolution are not reported once the call is checked (48135). + +interface Monad { Array: A[] } +>Array : A[] + +type MonadIdentifier = keyof Monad +>MonadIdentifier : "Array" + +declare const setBindArray: +>setBindArray : (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void + + (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void +>bind : (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"] +>g : (a: A) => Monad["Array"] +>a : A +>fa : A[] + +setBindArray(g => fa => fa.flatMap(g)) +>setBindArray(g => fa => fa.flatMap(g)) : void +>setBindArray : (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void +>g => fa => fa.flatMap(g) : (g: (a: A) => Monad["Array"]) => (fa: A[]) => B[] +>g : (a: A) => Monad["Array"] +>fa => fa.flatMap(g) : (fa: A[]) => B[] +>fa : A[] +>fa.flatMap(g) : B[] +>fa.flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>fa : A[] +>flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>g : (a: A) => Monad["Array"] + +declare const setBindGeneric: +>setBindGeneric : (idenfier: I, bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I]) => void + + + ( idenfier: I +>idenfier : I + + , bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] +>bind : (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] +>g : (a: A) => Monad[I] +>a : A +>fa : Monad[I] + + ) => void + +setBindGeneric("Array", g => fa => fa.flatMap(g)) +>setBindGeneric("Array", g => fa => fa.flatMap(g)) : void +>setBindGeneric : (idenfier: I, bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I]) => void +>"Array" : "Array" +>g => fa => fa.flatMap(g) : (g: (a: A) => B[]) => (fa: A_1[]) => B[] +>g : (a: A) => B[] +>fa => fa.flatMap(g) : (fa: A[]) => B[] +>fa : A[] +>fa.flatMap(g) : B[] +>fa.flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>fa : A[] +>flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>g : (a: A) => B[] + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..ce9b837500727 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,42 @@ +signatureHelpInNestedCallbackCheckOrder.ts(19,36): error TS2719: Type 'B[]' is not assignable to type 'B[]'. Two different types with this name exist, but they are unrelated. + Type 'B' is not assignable to type 'B'. Two different types with this name exist, but they are unrelated. + 'B' could be instantiated with an arbitrary type which could be unrelated to 'B'. +signatureHelpInNestedCallbackCheckOrder.ts(19,47): error TS2345: Argument of type '(a: A) => B[]' is not assignable to parameter of type '(this: undefined, value: A, index: number, array: A[]) => B | readonly B[]'. + Types of parameters 'a' and 'value' are incompatible. + Type 'A' is not assignable to type 'A'. Two different types with this name exist, but they are unrelated. + 'A' could be instantiated with an arbitrary type which could be unrelated to 'A'. + + +==== signatureHelpInNestedCallbackCheckOrder.ts (2 errors) ==== + // Signature help for the inner call resolves the outer call from within + // it, while the inner call is being resolved. The errors of that + // resolution are not reported once the call is checked (48135). + + interface Monad { Array: A[] } + type MonadIdentifier = keyof Monad + + declare const setBindArray: + (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void + + setBindArray(g => fa => fa.flatMap(g)) + + declare const setBindGeneric: + + ( idenfier: I + , bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] + ) => void + + setBindGeneric("Array", g => fa => fa.flatMap(g)) + ~~~~~~~~~~~~~ +!!! error TS2719: Type 'B[]' is not assignable to type 'B[]'. Two different types with this name exist, but they are unrelated. +!!! error TS2719: Type 'B' is not assignable to type 'B'. Two different types with this name exist, but they are unrelated. +!!! error TS2719: 'B' could be instantiated with an arbitrary type which could be unrelated to 'B'. +!!! related TS2208 signatureHelpInNestedCallbackCheckOrder.ts:16:17: This type parameter might need an `extends B` constraint. +!!! related TS6502 signatureHelpInNestedCallbackCheckOrder.ts:16:49: The expected type comes from the return type of this signature. + ~ +!!! error TS2345: Argument of type '(a: A) => B[]' is not assignable to parameter of type '(this: undefined, value: A, index: number, array: A[]) => B | readonly B[]'. +!!! error TS2345: Types of parameters 'a' and 'value' are incompatible. +!!! error TS2345: Type 'A' is not assignable to type 'A'. Two different types with this name exist, but they are unrelated. +!!! error TS2345: 'A' could be instantiated with an arbitrary type which could be unrelated to 'A'. +!!! related TS2208 signatureHelpInNestedCallbackCheckOrder.ts:16:14: This type parameter might need an `extends A` constraint. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..0a2d1975afeb7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,84 @@ +//// [tests/cases/compiler/signatureHelpInNestedCallbackCheckOrder.ts] //// + +=== signatureHelpInNestedCallbackCheckOrder.ts === +// Signature help for the inner call resolves the outer call from within +// it, while the inner call is being resolved. The errors of that +// resolution are not reported once the call is checked (48135). + +interface Monad { Array: A[] } +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 16)) +>Array : Symbol(Monad.Array, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 20)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 16)) + +type MonadIdentifier = keyof Monad +>MonadIdentifier : Symbol(MonadIdentifier, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 33)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) + +declare const setBindArray: +>setBindArray : Symbol(setBindArray, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 7, 13)) + + (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void +>bind : Symbol(bind, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 3)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 10)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 12)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 16)) +>a : Symbol(a, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 20)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 10)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 12)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 52)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 10)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 12)) + +setBindArray(g => fa => fa.flatMap(g)) +>setBindArray : Symbol(setBindArray, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 7, 13)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 13)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 17)) +>fa.flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 17)) +>flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 13)) + +declare const setBindGeneric: +>setBindGeneric : Symbol(setBindGeneric, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 12, 13)) + + +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) +>MonadIdentifier : Symbol(MonadIdentifier, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 33)) + + ( idenfier: I +>idenfier : Symbol(idenfier, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 14, 5)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) + + , bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] +>bind : Symbol(bind, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 5)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 13)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 15)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 19)) +>a : Symbol(a, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 23)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 13)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 15)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 49)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 13)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 15)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) + + ) => void + +setBindGeneric("Array", g => fa => fa.flatMap(g)) +>setBindGeneric : Symbol(setBindGeneric, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 12, 13)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 23)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 28)) +>fa.flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 28)) +>flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 23)) + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..8297db9a205b4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/signatureHelpInNestedCallbackCheckOrder.ts] //// + +=== signatureHelpInNestedCallbackCheckOrder.ts === +// Signature help for the inner call resolves the outer call from within +// it, while the inner call is being resolved. The errors of that +// resolution are not reported once the call is checked (48135). + +interface Monad { Array: A[] } +>Array : A[] + +type MonadIdentifier = keyof Monad +>MonadIdentifier : "Array" + +declare const setBindArray: +>setBindArray : (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void + + (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void +>bind : (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"] +>g : (a: A) => Monad["Array"] +>a : A +>fa : A[] + +setBindArray(g => fa => fa.flatMap(g)) +>setBindArray(g => fa => fa.flatMap(g)) : void +>setBindArray : (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void +>g => fa => fa.flatMap(g) : (g: (a: A) => Monad["Array"]) => (fa: A[]) => B[] +>g : (a: A) => Monad["Array"] +>fa => fa.flatMap(g) : (fa: A[]) => B[] +>fa : A[] +>fa.flatMap(g) : B[] +>fa.flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>fa : A[] +>flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>g : (a: A) => Monad["Array"] + +declare const setBindGeneric: +>setBindGeneric : (idenfier: I, bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I]) => void + + + ( idenfier: I +>idenfier : I + + , bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] +>bind : (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] +>g : (a: A) => Monad[I] +>a : A +>fa : Monad[I] + + ) => void + +setBindGeneric("Array", g => fa => fa.flatMap(g)) +>setBindGeneric("Array", g => fa => fa.flatMap(g)) : void +>setBindGeneric : (idenfier: I, bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I]) => void +>"Array" : "Array" +>g => fa => fa.flatMap(g) : (g: (a: A) => B[]) => (fa: A[]) => B[] +>g : (a: A) => B[] +>fa => fa.flatMap(g) : (fa: A[]) => B[] +>fa : A[] +>fa.flatMap(g) : B[] +>fa.flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>fa : A[] +>flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>g : (a: A) => B[] + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..ff65254a6ded9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,33 @@ +signatureHelpInNestedCallbackCheckOrder.ts(19,47): error TS2345: Argument of type '(a: A) => B[]' is not assignable to parameter of type '(this: undefined, value: A, index: number, array: A[]) => B | readonly B[]'. + Types of parameters 'a' and 'value' are incompatible. + Type 'A' is not assignable to type 'A'. Two different types with this name exist, but they are unrelated. + 'A' could be instantiated with an arbitrary type which could be unrelated to 'A'. + + +==== signatureHelpInNestedCallbackCheckOrder.ts (1 errors) ==== + // Signature help for the inner call resolves the outer call from within + // it, while the inner call is being resolved. The errors of that + // resolution are not reported once the call is checked (48135). + + interface Monad { Array: A[] } + type MonadIdentifier = keyof Monad + + declare const setBindArray: + (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void + + setBindArray(g => fa => fa.flatMap(g)) + + declare const setBindGeneric: + + ( idenfier: I + , bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] + ) => void + + setBindGeneric("Array", g => fa => fa.flatMap(g)) + ~ +!!! error TS2345: Argument of type '(a: A) => B[]' is not assignable to parameter of type '(this: undefined, value: A, index: number, array: A[]) => B | readonly B[]'. +!!! error TS2345: Types of parameters 'a' and 'value' are incompatible. +!!! error TS2345: Type 'A' is not assignable to type 'A'. Two different types with this name exist, but they are unrelated. +!!! error TS2345: 'A' could be instantiated with an arbitrary type which could be unrelated to 'A'. +!!! related TS2208 signatureHelpInNestedCallbackCheckOrder.ts:16:14: This type parameter might need an `extends A` constraint. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..0a2d1975afeb7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,84 @@ +//// [tests/cases/compiler/signatureHelpInNestedCallbackCheckOrder.ts] //// + +=== signatureHelpInNestedCallbackCheckOrder.ts === +// Signature help for the inner call resolves the outer call from within +// it, while the inner call is being resolved. The errors of that +// resolution are not reported once the call is checked (48135). + +interface Monad { Array: A[] } +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 16)) +>Array : Symbol(Monad.Array, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 20)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 16)) + +type MonadIdentifier = keyof Monad +>MonadIdentifier : Symbol(MonadIdentifier, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 33)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) + +declare const setBindArray: +>setBindArray : Symbol(setBindArray, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 7, 13)) + + (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void +>bind : Symbol(bind, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 3)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 10)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 12)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 16)) +>a : Symbol(a, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 20)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 10)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 12)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 52)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 10)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 8, 12)) + +setBindArray(g => fa => fa.flatMap(g)) +>setBindArray : Symbol(setBindArray, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 7, 13)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 13)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 17)) +>fa.flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 17)) +>flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 10, 13)) + +declare const setBindGeneric: +>setBindGeneric : Symbol(setBindGeneric, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 12, 13)) + + +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) +>MonadIdentifier : Symbol(MonadIdentifier, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 4, 33)) + + ( idenfier: I +>idenfier : Symbol(idenfier, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 14, 5)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) + + , bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] +>bind : Symbol(bind, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 5)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 13)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 15)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 19)) +>a : Symbol(a, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 23)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 13)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 15)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 49)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>A : Symbol(A, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 13)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) +>Monad : Symbol(Monad, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 0, 0)) +>B : Symbol(B, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 15, 15)) +>I : Symbol(I, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 13, 3)) + + ) => void + +setBindGeneric("Array", g => fa => fa.flatMap(g)) +>setBindGeneric : Symbol(setBindGeneric, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 12, 13)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 23)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 28)) +>fa.flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>fa : Symbol(fa, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 28)) +>flatMap : Symbol(Array.flatMap, Decl(lib.es2019.array.d.ts, --, --)) +>g : Symbol(g, Decl(signatureHelpInNestedCallbackCheckOrder.ts, 18, 23)) + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..33393b4269126 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInNestedCallbackCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/signatureHelpInNestedCallbackCheckOrder.ts] //// + +=== signatureHelpInNestedCallbackCheckOrder.ts === +// Signature help for the inner call resolves the outer call from within +// it, while the inner call is being resolved. The errors of that +// resolution are not reported once the call is checked (48135). + +interface Monad { Array: A[] } +>Array : A[] + +type MonadIdentifier = keyof Monad +>MonadIdentifier : "Array" + +declare const setBindArray: +>setBindArray : (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void + + (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void +>bind : (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"] +>g : (a: A) => Monad["Array"] +>a : A +>fa : A[] + +setBindArray(g => fa => fa.flatMap(g)) +>setBindArray(g => fa => fa.flatMap(g)) : void +>setBindArray : (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void +>g => fa => fa.flatMap(g) : (g: (a: A) => Monad["Array"]) => (fa: A[]) => B[] +>g : (a: A) => Monad["Array"] +>fa => fa.flatMap(g) : (fa: A[]) => B[] +>fa : A[] +>fa.flatMap(g) : B[] +>fa.flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>fa : A[] +>flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>g : (a: A) => Monad["Array"] + +declare const setBindGeneric: +>setBindGeneric : (idenfier: I, bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I]) => void + + + ( idenfier: I +>idenfier : I + + , bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] +>bind : (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] +>g : (a: A) => Monad[I] +>a : A +>fa : Monad[I] + + ) => void + +setBindGeneric("Array", g => fa => fa.flatMap(g)) +>setBindGeneric("Array", g => fa => fa.flatMap(g)) : void +>setBindGeneric : (idenfier: I, bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I]) => void +>"Array" : "Array" +>g => fa => fa.flatMap(g) : (g: (a: A) => B[]) => (fa: A_1[]) => B[] +>g : (a: A) => B[] +>fa => fa.flatMap(g) : (fa: A[]) => B[] +>fa : A[] +>fa.flatMap(g) : B[] +>fa.flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>fa : A[] +>flatMap : (callback: (this: This, value: A, index: number, array: A[]) => U | readonly U[], thisArg?: This | undefined) => U[] +>g : (a: A) => B[] + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..1509944c6c1ec --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).errors.txt @@ -0,0 +1,16 @@ +signatureHelpInferenceQueryOrder.ts(7,30): error TS2741: Property 'b' is missing in type 'A' but required in type 'B'. + + +==== signatureHelpInferenceQueryOrder.ts (1 errors) ==== + function f(y: T, y1: U, p: (z: U) => T, p1: (x: T) => U): [T, U] { return [y, p1(y)]; } + interface A { a: A; } + interface B extends A { b; } + + declare var a: A, b: B; + + var d = f(a, b, x => x, x => x); + ~ +!!! error TS2741: Property 'b' is missing in type 'A' but required in type 'B'. +!!! related TS2728 signatureHelpInferenceQueryOrder.ts:3:25: 'b' is declared here. +!!! related TS6502 signatureHelpInferenceQueryOrder.ts:1:51: The expected type comes from the return type of this signature. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).js new file mode 100644 index 0000000000000..e588ae57cb9ae --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/signatureHelpInferenceQueryOrder.ts] //// + +//// [signatureHelpInferenceQueryOrder.ts] +function f(y: T, y1: U, p: (z: U) => T, p1: (x: T) => U): [T, U] { return [y, p1(y)]; } +interface A { a: A; } +interface B extends A { b; } + +declare var a: A, b: B; + +var d = f(a, b, x => x, x => x); + + +//// [signatureHelpInferenceQueryOrder.js] +"use strict"; +function f(y, y1, p, p1) { return [y, p1(y)]; } +var d = f(a, b, x => x, x => x); diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..b19ea30bb2348 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/signatureHelpInferenceQueryOrder.ts] //// + +=== signatureHelpInferenceQueryOrder.ts === +function f(y: T, y1: U, p: (z: U) => T, p1: (x: T) => U): [T, U] { return [y, p1(y)]; } +>f : Symbol(f, Decl(signatureHelpInferenceQueryOrder.ts, 0, 0)) +>T : Symbol(T, Decl(signatureHelpInferenceQueryOrder.ts, 0, 11)) +>U : Symbol(U, Decl(signatureHelpInferenceQueryOrder.ts, 0, 13)) +>y : Symbol(y, Decl(signatureHelpInferenceQueryOrder.ts, 0, 17)) +>T : Symbol(T, Decl(signatureHelpInferenceQueryOrder.ts, 0, 11)) +>y1 : Symbol(y1, Decl(signatureHelpInferenceQueryOrder.ts, 0, 22)) +>U : Symbol(U, Decl(signatureHelpInferenceQueryOrder.ts, 0, 13)) +>p : Symbol(p, Decl(signatureHelpInferenceQueryOrder.ts, 0, 29)) +>z : Symbol(z, Decl(signatureHelpInferenceQueryOrder.ts, 0, 34)) +>U : Symbol(U, Decl(signatureHelpInferenceQueryOrder.ts, 0, 13)) +>T : Symbol(T, Decl(signatureHelpInferenceQueryOrder.ts, 0, 11)) +>p1 : Symbol(p1, Decl(signatureHelpInferenceQueryOrder.ts, 0, 45)) +>x : Symbol(x, Decl(signatureHelpInferenceQueryOrder.ts, 0, 51)) +>T : Symbol(T, Decl(signatureHelpInferenceQueryOrder.ts, 0, 11)) +>U : Symbol(U, Decl(signatureHelpInferenceQueryOrder.ts, 0, 13)) +>T : Symbol(T, Decl(signatureHelpInferenceQueryOrder.ts, 0, 11)) +>U : Symbol(U, Decl(signatureHelpInferenceQueryOrder.ts, 0, 13)) +>y : Symbol(y, Decl(signatureHelpInferenceQueryOrder.ts, 0, 17)) +>p1 : Symbol(p1, Decl(signatureHelpInferenceQueryOrder.ts, 0, 45)) +>y : Symbol(y, Decl(signatureHelpInferenceQueryOrder.ts, 0, 17)) + +interface A { a: A; } +>A : Symbol(A, Decl(signatureHelpInferenceQueryOrder.ts, 0, 93)) +>a : Symbol(A.a, Decl(signatureHelpInferenceQueryOrder.ts, 1, 13)) +>A : Symbol(A, Decl(signatureHelpInferenceQueryOrder.ts, 0, 93)) + +interface B extends A { b; } +>B : Symbol(B, Decl(signatureHelpInferenceQueryOrder.ts, 1, 21)) +>A : Symbol(A, Decl(signatureHelpInferenceQueryOrder.ts, 0, 93)) +>b : Symbol(B.b, Decl(signatureHelpInferenceQueryOrder.ts, 2, 23)) + +declare var a: A, b: B; +>a : Symbol(a, Decl(signatureHelpInferenceQueryOrder.ts, 4, 11)) +>A : Symbol(A, Decl(signatureHelpInferenceQueryOrder.ts, 0, 93)) +>b : Symbol(b, Decl(signatureHelpInferenceQueryOrder.ts, 4, 17)) +>B : Symbol(B, Decl(signatureHelpInferenceQueryOrder.ts, 1, 21)) + +var d = f(a, b, x => x, x => x); +>d : Symbol(d, Decl(signatureHelpInferenceQueryOrder.ts, 6, 3)) +>f : Symbol(f, Decl(signatureHelpInferenceQueryOrder.ts, 0, 0)) +>a : Symbol(a, Decl(signatureHelpInferenceQueryOrder.ts, 4, 11)) +>b : Symbol(b, Decl(signatureHelpInferenceQueryOrder.ts, 4, 17)) +>x : Symbol(x, Decl(signatureHelpInferenceQueryOrder.ts, 6, 15)) +>x : Symbol(x, Decl(signatureHelpInferenceQueryOrder.ts, 6, 15)) +>x : Symbol(x, Decl(signatureHelpInferenceQueryOrder.ts, 6, 23)) +>x : Symbol(x, Decl(signatureHelpInferenceQueryOrder.ts, 6, 23)) + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).types new file mode 100644 index 0000000000000..ece3363ee1b85 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=default).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/signatureHelpInferenceQueryOrder.ts] //// + +=== signatureHelpInferenceQueryOrder.ts === +function f(y: T, y1: U, p: (z: U) => T, p1: (x: T) => U): [T, U] { return [y, p1(y)]; } +>f : (y: T, y1: U, p: (z: U) => T, p1: (x: T) => U) => [T, U] +>y : T +>y1 : U +>p : (z: U) => T +>z : U +>p1 : (x: T) => U +>x : T +>[y, p1(y)] : [T, U] +>y : T +>p1(y) : U +>p1 : (x: T) => U +>y : T + +interface A { a: A; } +>a : A + +interface B extends A { b; } +>b : any + +declare var a: A, b: B; +>a : A +>b : B + +var d = f(a, b, x => x, x => x); +>d : [A, B] +>f(a, b, x => x, x => x) : [A, B] +>f : (y: T, y1: U, p: (z: U) => T, p1: (x: T) => U) => [T, U] +>a : A +>b : B +>x => x : (x: B) => B +>x : B +>x : B +>x => x : (x: A) => A +>x : A +>x : A + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).js b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).js new file mode 100644 index 0000000000000..e588ae57cb9ae --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).js @@ -0,0 +1,16 @@ +//// [tests/cases/compiler/signatureHelpInferenceQueryOrder.ts] //// + +//// [signatureHelpInferenceQueryOrder.ts] +function f(y: T, y1: U, p: (z: U) => T, p1: (x: T) => U): [T, U] { return [y, p1(y)]; } +interface A { a: A; } +interface B extends A { b; } + +declare var a: A, b: B; + +var d = f(a, b, x => x, x => x); + + +//// [signatureHelpInferenceQueryOrder.js] +"use strict"; +function f(y, y1, p, p1) { return [y, p1(y)]; } +var d = f(a, b, x => x, x => x); diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..b19ea30bb2348 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/signatureHelpInferenceQueryOrder.ts] //// + +=== signatureHelpInferenceQueryOrder.ts === +function f(y: T, y1: U, p: (z: U) => T, p1: (x: T) => U): [T, U] { return [y, p1(y)]; } +>f : Symbol(f, Decl(signatureHelpInferenceQueryOrder.ts, 0, 0)) +>T : Symbol(T, Decl(signatureHelpInferenceQueryOrder.ts, 0, 11)) +>U : Symbol(U, Decl(signatureHelpInferenceQueryOrder.ts, 0, 13)) +>y : Symbol(y, Decl(signatureHelpInferenceQueryOrder.ts, 0, 17)) +>T : Symbol(T, Decl(signatureHelpInferenceQueryOrder.ts, 0, 11)) +>y1 : Symbol(y1, Decl(signatureHelpInferenceQueryOrder.ts, 0, 22)) +>U : Symbol(U, Decl(signatureHelpInferenceQueryOrder.ts, 0, 13)) +>p : Symbol(p, Decl(signatureHelpInferenceQueryOrder.ts, 0, 29)) +>z : Symbol(z, Decl(signatureHelpInferenceQueryOrder.ts, 0, 34)) +>U : Symbol(U, Decl(signatureHelpInferenceQueryOrder.ts, 0, 13)) +>T : Symbol(T, Decl(signatureHelpInferenceQueryOrder.ts, 0, 11)) +>p1 : Symbol(p1, Decl(signatureHelpInferenceQueryOrder.ts, 0, 45)) +>x : Symbol(x, Decl(signatureHelpInferenceQueryOrder.ts, 0, 51)) +>T : Symbol(T, Decl(signatureHelpInferenceQueryOrder.ts, 0, 11)) +>U : Symbol(U, Decl(signatureHelpInferenceQueryOrder.ts, 0, 13)) +>T : Symbol(T, Decl(signatureHelpInferenceQueryOrder.ts, 0, 11)) +>U : Symbol(U, Decl(signatureHelpInferenceQueryOrder.ts, 0, 13)) +>y : Symbol(y, Decl(signatureHelpInferenceQueryOrder.ts, 0, 17)) +>p1 : Symbol(p1, Decl(signatureHelpInferenceQueryOrder.ts, 0, 45)) +>y : Symbol(y, Decl(signatureHelpInferenceQueryOrder.ts, 0, 17)) + +interface A { a: A; } +>A : Symbol(A, Decl(signatureHelpInferenceQueryOrder.ts, 0, 93)) +>a : Symbol(A.a, Decl(signatureHelpInferenceQueryOrder.ts, 1, 13)) +>A : Symbol(A, Decl(signatureHelpInferenceQueryOrder.ts, 0, 93)) + +interface B extends A { b; } +>B : Symbol(B, Decl(signatureHelpInferenceQueryOrder.ts, 1, 21)) +>A : Symbol(A, Decl(signatureHelpInferenceQueryOrder.ts, 0, 93)) +>b : Symbol(B.b, Decl(signatureHelpInferenceQueryOrder.ts, 2, 23)) + +declare var a: A, b: B; +>a : Symbol(a, Decl(signatureHelpInferenceQueryOrder.ts, 4, 11)) +>A : Symbol(A, Decl(signatureHelpInferenceQueryOrder.ts, 0, 93)) +>b : Symbol(b, Decl(signatureHelpInferenceQueryOrder.ts, 4, 17)) +>B : Symbol(B, Decl(signatureHelpInferenceQueryOrder.ts, 1, 21)) + +var d = f(a, b, x => x, x => x); +>d : Symbol(d, Decl(signatureHelpInferenceQueryOrder.ts, 6, 3)) +>f : Symbol(f, Decl(signatureHelpInferenceQueryOrder.ts, 0, 0)) +>a : Symbol(a, Decl(signatureHelpInferenceQueryOrder.ts, 4, 11)) +>b : Symbol(b, Decl(signatureHelpInferenceQueryOrder.ts, 4, 17)) +>x : Symbol(x, Decl(signatureHelpInferenceQueryOrder.ts, 6, 15)) +>x : Symbol(x, Decl(signatureHelpInferenceQueryOrder.ts, 6, 15)) +>x : Symbol(x, Decl(signatureHelpInferenceQueryOrder.ts, 6, 23)) +>x : Symbol(x, Decl(signatureHelpInferenceQueryOrder.ts, 6, 23)) + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..a4d785ae4e6cd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpInferenceQueryOrder(checkorder=editorfirst).types @@ -0,0 +1,40 @@ +//// [tests/cases/compiler/signatureHelpInferenceQueryOrder.ts] //// + +=== signatureHelpInferenceQueryOrder.ts === +function f(y: T, y1: U, p: (z: U) => T, p1: (x: T) => U): [T, U] { return [y, p1(y)]; } +>f : (y: T, y1: U, p: (z: U) => T, p1: (x: T) => U) => [T, U] +>y : T +>y1 : U +>p : (z: U) => T +>z : U +>p1 : (x: T) => U +>x : T +>[y, p1(y)] : [T, U] +>y : T +>p1(y) : U +>p1 : (x: T) => U +>y : T + +interface A { a: A; } +>a : A + +interface B extends A { b; } +>b : any + +declare var a: A, b: B; +>a : A +>b : B + +var d = f(a, b, x => x, x => x); +>d : [A, A] +>f(a, b, x => x, x => x) : [A, A] +>f : (y: T, y1: U, p: (z: U) => T, p1: (x: T) => U) => [T, U] +>a : A +>b : B +>x => x : (x: B) => B +>x : B +>x : B +>x => x : (x: A) => A +>x : A +>x : A + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..1785d4e33cd13 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,36 @@ +signatureHelpReverseMappedArgumentCheckOrder.ts(17,3): error TS2322: Type 'Selector' is not assignable to type 'Selector'. + Type 'unknown' is not assignable to type 'State'. + + +==== signatureHelpReverseMappedArgumentCheckOrder.ts (1 errors) ==== + // Printing the candidates of signature help computes the members of the + // reverse mapped type inferred for the call, which resolves the call + // again. That happens within the request, and does not change what + // checking the call infers (29479). + + type Selector = (state: S, meta: number) => R; + + declare function createStructuredSelector(selectors: { + [K in keyof T]: Selector; + }): Selector; + + type State = { foo: number }; + + declare const mySelector: Selector + + const result1 = createStructuredSelector({ + mySelector: mySelector, + ~~~~~~~~~~ +!!! error TS2322: Type 'Selector' is not assignable to type 'Selector'. +!!! error TS2322: Type 'unknown' is not assignable to type 'State'. +!!! related TS6500 signatureHelpReverseMappedArgumentCheckOrder.ts:17:3: The expected type comes from property 'mySelector' which is declared here on type '{ mySelector: Selector; }' + }); + + const result2 = createStructuredSelector({ + mySelector: (state: State) => true, + }); + + result2; + + export {}; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..d49a2560e76f3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).symbols @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/signatureHelpReverseMappedArgumentCheckOrder.ts] //// + +=== signatureHelpReverseMappedArgumentCheckOrder.ts === +// Printing the candidates of signature help computes the members of the +// reverse mapped type inferred for the call, which resolves the call +// again. That happens within the request, and does not change what +// checking the call infers (29479). + +type Selector = (state: S, meta: number) => R; +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 14)) +>R : Symbol(R, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 16)) +>state : Symbol(state, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 23)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 14)) +>meta : Symbol(meta, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 32)) +>R : Symbol(R, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 16)) + +declare function createStructuredSelector(selectors: { +>createStructuredSelector : Symbol(createStructuredSelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 52)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 42)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) +>selectors : Symbol(selectors, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 48)) + + [K in keyof T]: Selector; +>K : Symbol(K, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 8, 3)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 42)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) +>K : Symbol(K, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 8, 3)) + +}): Selector; +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 42)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) + +type State = { foo: number }; +>State : Symbol(State, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 9, 19)) +>foo : Symbol(foo, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 11, 14)) + +declare const mySelector: Selector +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 13, 13)) +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>State : Symbol(State, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 9, 19)) + +const result1 = createStructuredSelector({ +>result1 : Symbol(result1, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 15, 5)) +>createStructuredSelector : Symbol(createStructuredSelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 52)) + + mySelector: mySelector, +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 15, 42)) +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 13, 13)) + +}); + +const result2 = createStructuredSelector({ +>result2 : Symbol(result2, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 19, 5)) +>createStructuredSelector : Symbol(createStructuredSelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 52)) + + mySelector: (state: State) => true, +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 19, 42)) +>state : Symbol(state, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 20, 15)) +>State : Symbol(State, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 9, 19)) + +}); + +result2; +>result2 : Symbol(result2, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 19, 5)) + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..aae73db7965f3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=default).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/signatureHelpReverseMappedArgumentCheckOrder.ts] //// + +=== signatureHelpReverseMappedArgumentCheckOrder.ts === +// Printing the candidates of signature help computes the members of the +// reverse mapped type inferred for the call, which resolves the call +// again. That happens within the request, and does not change what +// checking the call infers (29479). + +type Selector = (state: S, meta: number) => R; +>Selector : Selector +>state : S +>meta : number + +declare function createStructuredSelector(selectors: { +>createStructuredSelector : (selectors: { [K in keyof T]: Selector; }) => Selector +>selectors : { [K in keyof T]: Selector; } + + [K in keyof T]: Selector; +}): Selector; + +type State = { foo: number }; +>State : State +>foo : number + +declare const mySelector: Selector +>mySelector : Selector + +const result1 = createStructuredSelector({ +>result1 : Selector +>createStructuredSelector({ mySelector: mySelector,}) : Selector +>createStructuredSelector : (selectors: { [K in keyof T]: Selector; }) => Selector +>{ mySelector: mySelector,} : { mySelector: Selector; } + + mySelector: mySelector, +>mySelector : Selector +>mySelector : Selector + +}); + +const result2 = createStructuredSelector({ +>result2 : Selector +>createStructuredSelector({ mySelector: (state: State) => true,}) : Selector +>createStructuredSelector : (selectors: { [K in keyof T]: Selector; }) => Selector +>{ mySelector: (state: State) => true,} : { mySelector: (state: State) => boolean; } + + mySelector: (state: State) => true, +>mySelector : (state: State) => boolean +>(state: State) => true : (state: State) => boolean +>state : State +>true : true + +}); + +result2; +>result2 : Selector + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..5c3a3db18bcca --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,44 @@ +signatureHelpReverseMappedArgumentCheckOrder.ts(17,3): error TS2322: Type 'Selector' is not assignable to type 'Selector'. + Type 'unknown' is not assignable to type 'State'. +signatureHelpReverseMappedArgumentCheckOrder.ts(21,3): error TS2322: Type '(state: State) => boolean' is not assignable to type 'Selector'. + Types of parameters 'state' and 'state' are incompatible. + Type 'unknown' is not assignable to type 'State'. + + +==== signatureHelpReverseMappedArgumentCheckOrder.ts (2 errors) ==== + // Printing the candidates of signature help computes the members of the + // reverse mapped type inferred for the call, which resolves the call + // again. That happens within the request, and does not change what + // checking the call infers (29479). + + type Selector = (state: S, meta: number) => R; + + declare function createStructuredSelector(selectors: { + [K in keyof T]: Selector; + }): Selector; + + type State = { foo: number }; + + declare const mySelector: Selector + + const result1 = createStructuredSelector({ + mySelector: mySelector, + ~~~~~~~~~~ +!!! error TS2322: Type 'Selector' is not assignable to type 'Selector'. +!!! error TS2322: Type 'unknown' is not assignable to type 'State'. +!!! related TS6500 signatureHelpReverseMappedArgumentCheckOrder.ts:17:3: The expected type comes from property 'mySelector' which is declared here on type '{ mySelector: Selector; }' + }); + + const result2 = createStructuredSelector({ + mySelector: (state: State) => true, + ~~~~~~~~~~ +!!! error TS2322: Type '(state: State) => boolean' is not assignable to type 'Selector'. +!!! error TS2322: Types of parameters 'state' and 'state' are incompatible. +!!! error TS2322: Type 'unknown' is not assignable to type 'State'. +!!! related TS6500 signatureHelpReverseMappedArgumentCheckOrder.ts:21:3: The expected type comes from property 'mySelector' which is declared here on type '{ mySelector: Selector; }' + }); + + result2; + + export {}; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..d49a2560e76f3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/signatureHelpReverseMappedArgumentCheckOrder.ts] //// + +=== signatureHelpReverseMappedArgumentCheckOrder.ts === +// Printing the candidates of signature help computes the members of the +// reverse mapped type inferred for the call, which resolves the call +// again. That happens within the request, and does not change what +// checking the call infers (29479). + +type Selector = (state: S, meta: number) => R; +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 14)) +>R : Symbol(R, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 16)) +>state : Symbol(state, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 23)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 14)) +>meta : Symbol(meta, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 32)) +>R : Symbol(R, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 16)) + +declare function createStructuredSelector(selectors: { +>createStructuredSelector : Symbol(createStructuredSelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 52)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 42)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) +>selectors : Symbol(selectors, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 48)) + + [K in keyof T]: Selector; +>K : Symbol(K, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 8, 3)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 42)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) +>K : Symbol(K, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 8, 3)) + +}): Selector; +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 42)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) + +type State = { foo: number }; +>State : Symbol(State, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 9, 19)) +>foo : Symbol(foo, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 11, 14)) + +declare const mySelector: Selector +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 13, 13)) +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>State : Symbol(State, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 9, 19)) + +const result1 = createStructuredSelector({ +>result1 : Symbol(result1, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 15, 5)) +>createStructuredSelector : Symbol(createStructuredSelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 52)) + + mySelector: mySelector, +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 15, 42)) +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 13, 13)) + +}); + +const result2 = createStructuredSelector({ +>result2 : Symbol(result2, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 19, 5)) +>createStructuredSelector : Symbol(createStructuredSelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 52)) + + mySelector: (state: State) => true, +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 19, 42)) +>state : Symbol(state, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 20, 15)) +>State : Symbol(State, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 9, 19)) + +}); + +result2; +>result2 : Symbol(result2, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 19, 5)) + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..5cc833ac4eeef --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/signatureHelpReverseMappedArgumentCheckOrder.ts] //// + +=== signatureHelpReverseMappedArgumentCheckOrder.ts === +// Printing the candidates of signature help computes the members of the +// reverse mapped type inferred for the call, which resolves the call +// again. That happens within the request, and does not change what +// checking the call infers (29479). + +type Selector = (state: S, meta: number) => R; +>Selector : Selector +>state : S +>meta : number + +declare function createStructuredSelector(selectors: { +>createStructuredSelector : (selectors: { [K in keyof T]: Selector; }) => Selector +>selectors : { [K in keyof T]: Selector; } + + [K in keyof T]: Selector; +}): Selector; + +type State = { foo: number }; +>State : State +>foo : number + +declare const mySelector: Selector +>mySelector : Selector + +const result1 = createStructuredSelector({ +>result1 : Selector +>createStructuredSelector({ mySelector: mySelector,}) : Selector +>createStructuredSelector : (selectors: { [K in keyof T]: Selector; }) => Selector +>{ mySelector: mySelector,} : { mySelector: Selector; } + + mySelector: mySelector, +>mySelector : Selector +>mySelector : Selector + +}); + +const result2 = createStructuredSelector({ +>result2 : Selector +>createStructuredSelector({ mySelector: (state: State) => true,}) : Selector +>createStructuredSelector : (selectors: { [K in keyof T]: Selector; }) => Selector +>{ mySelector: (state: State) => true,} : { mySelector: (state: State) => boolean; } + + mySelector: (state: State) => true, +>mySelector : (state: State) => boolean +>(state: State) => true : (state: State) => boolean +>state : State +>true : true + +}); + +result2; +>result2 : Selector + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..1785d4e33cd13 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,36 @@ +signatureHelpReverseMappedArgumentCheckOrder.ts(17,3): error TS2322: Type 'Selector' is not assignable to type 'Selector'. + Type 'unknown' is not assignable to type 'State'. + + +==== signatureHelpReverseMappedArgumentCheckOrder.ts (1 errors) ==== + // Printing the candidates of signature help computes the members of the + // reverse mapped type inferred for the call, which resolves the call + // again. That happens within the request, and does not change what + // checking the call infers (29479). + + type Selector = (state: S, meta: number) => R; + + declare function createStructuredSelector(selectors: { + [K in keyof T]: Selector; + }): Selector; + + type State = { foo: number }; + + declare const mySelector: Selector + + const result1 = createStructuredSelector({ + mySelector: mySelector, + ~~~~~~~~~~ +!!! error TS2322: Type 'Selector' is not assignable to type 'Selector'. +!!! error TS2322: Type 'unknown' is not assignable to type 'State'. +!!! related TS6500 signatureHelpReverseMappedArgumentCheckOrder.ts:17:3: The expected type comes from property 'mySelector' which is declared here on type '{ mySelector: Selector; }' + }); + + const result2 = createStructuredSelector({ + mySelector: (state: State) => true, + }); + + result2; + + export {}; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..d49a2560e76f3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/signatureHelpReverseMappedArgumentCheckOrder.ts] //// + +=== signatureHelpReverseMappedArgumentCheckOrder.ts === +// Printing the candidates of signature help computes the members of the +// reverse mapped type inferred for the call, which resolves the call +// again. That happens within the request, and does not change what +// checking the call infers (29479). + +type Selector = (state: S, meta: number) => R; +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 14)) +>R : Symbol(R, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 16)) +>state : Symbol(state, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 23)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 14)) +>meta : Symbol(meta, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 32)) +>R : Symbol(R, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 16)) + +declare function createStructuredSelector(selectors: { +>createStructuredSelector : Symbol(createStructuredSelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 52)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 42)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) +>selectors : Symbol(selectors, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 48)) + + [K in keyof T]: Selector; +>K : Symbol(K, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 8, 3)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 42)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) +>K : Symbol(K, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 8, 3)) + +}): Selector; +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 42)) +>T : Symbol(T, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 7, 44)) + +type State = { foo: number }; +>State : Symbol(State, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 9, 19)) +>foo : Symbol(foo, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 11, 14)) + +declare const mySelector: Selector +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 13, 13)) +>Selector : Symbol(Selector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 0, 0)) +>State : Symbol(State, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 9, 19)) + +const result1 = createStructuredSelector({ +>result1 : Symbol(result1, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 15, 5)) +>createStructuredSelector : Symbol(createStructuredSelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 52)) + + mySelector: mySelector, +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 15, 42)) +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 13, 13)) + +}); + +const result2 = createStructuredSelector({ +>result2 : Symbol(result2, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 19, 5)) +>createStructuredSelector : Symbol(createStructuredSelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 5, 52)) + + mySelector: (state: State) => true, +>mySelector : Symbol(mySelector, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 19, 42)) +>state : Symbol(state, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 20, 15)) +>State : Symbol(State, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 9, 19)) + +}); + +result2; +>result2 : Symbol(result2, Decl(signatureHelpReverseMappedArgumentCheckOrder.ts, 19, 5)) + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..aae73db7965f3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/signatureHelpReverseMappedArgumentCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,58 @@ +//// [tests/cases/compiler/signatureHelpReverseMappedArgumentCheckOrder.ts] //// + +=== signatureHelpReverseMappedArgumentCheckOrder.ts === +// Printing the candidates of signature help computes the members of the +// reverse mapped type inferred for the call, which resolves the call +// again. That happens within the request, and does not change what +// checking the call infers (29479). + +type Selector = (state: S, meta: number) => R; +>Selector : Selector +>state : S +>meta : number + +declare function createStructuredSelector(selectors: { +>createStructuredSelector : (selectors: { [K in keyof T]: Selector; }) => Selector +>selectors : { [K in keyof T]: Selector; } + + [K in keyof T]: Selector; +}): Selector; + +type State = { foo: number }; +>State : State +>foo : number + +declare const mySelector: Selector +>mySelector : Selector + +const result1 = createStructuredSelector({ +>result1 : Selector +>createStructuredSelector({ mySelector: mySelector,}) : Selector +>createStructuredSelector : (selectors: { [K in keyof T]: Selector; }) => Selector +>{ mySelector: mySelector,} : { mySelector: Selector; } + + mySelector: mySelector, +>mySelector : Selector +>mySelector : Selector + +}); + +const result2 = createStructuredSelector({ +>result2 : Selector +>createStructuredSelector({ mySelector: (state: State) => true,}) : Selector +>createStructuredSelector : (selectors: { [K in keyof T]: Selector; }) => Selector +>{ mySelector: (state: State) => true,} : { mySelector: (state: State) => boolean; } + + mySelector: (state: State) => true, +>mySelector : (state: State) => boolean +>(state: State) => true : (state: State) => boolean +>state : State +>true : true + +}); + +result2; +>result2 : Selector + +export {}; + diff --git a/tsc/testdata/baselines/reference/compiler/substitutionInDeferredConditionalOfConditional.symbols b/tsc/testdata/baselines/reference/compiler/substitutionInDeferredConditionalOfConditional.symbols new file mode 100644 index 0000000000000..3b8125dec8b95 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/substitutionInDeferredConditionalOfConditional.symbols @@ -0,0 +1,94 @@ +//// [tests/cases/compiler/substitutionInDeferredConditionalOfConditional.ts] //// + +=== substitutionInDeferredConditionalOfConditional.ts === +// Children always produces a Record, so it satisfies NeedsRecord. Its +// true branch narrows S["states"] to Record even when S is +// a conditional type that is itself deferred. + +interface Schema { +>Schema : Symbol(Schema, Decl(substitutionInDeferredConditionalOfConditional.ts, 0, 0)) + + states?: Record; +>states : Symbol(Schema.states, Decl(substitutionInDeferredConditionalOfConditional.ts, 4, 18)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Schema : Symbol(Schema, Decl(substitutionInDeferredConditionalOfConditional.ts, 0, 0)) +} +type Resolve, Segments extends readonly string[]> = +>Resolve : Symbol(Resolve, Decl(substitutionInDeferredConditionalOfConditional.ts, 6, 1)) +>S : Symbol(S, Decl(substitutionInDeferredConditionalOfConditional.ts, 7, 13)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Schema : Symbol(Schema, Decl(substitutionInDeferredConditionalOfConditional.ts, 0, 0)) +>Segments : Symbol(Segments, Decl(substitutionInDeferredConditionalOfConditional.ts, 7, 46)) + + Segments extends [infer Head extends string, ...infer Rest extends string[]] +>Segments : Symbol(Segments, Decl(substitutionInDeferredConditionalOfConditional.ts, 7, 46)) +>Head : Symbol(Head, Decl(substitutionInDeferredConditionalOfConditional.ts, 8, 27)) +>Rest : Symbol(Rest, Decl(substitutionInDeferredConditionalOfConditional.ts, 8, 57)) + + ? Head extends keyof S +>Head : Symbol(Head, Decl(substitutionInDeferredConditionalOfConditional.ts, 8, 27)) +>S : Symbol(S, Decl(substitutionInDeferredConditionalOfConditional.ts, 7, 13)) + + ? Rest extends [] +>Rest : Symbol(Rest, Decl(substitutionInDeferredConditionalOfConditional.ts, 8, 57)) + + ? S[Head] +>S : Symbol(S, Decl(substitutionInDeferredConditionalOfConditional.ts, 7, 13)) +>Head : Symbol(Head, Decl(substitutionInDeferredConditionalOfConditional.ts, 8, 27)) + + : S[Head]["states"] extends Record +>S : Symbol(S, Decl(substitutionInDeferredConditionalOfConditional.ts, 7, 13)) +>Head : Symbol(Head, Decl(substitutionInDeferredConditionalOfConditional.ts, 8, 27)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Schema : Symbol(Schema, Decl(substitutionInDeferredConditionalOfConditional.ts, 0, 0)) + + ? Resolve +>Resolve : Symbol(Resolve, Decl(substitutionInDeferredConditionalOfConditional.ts, 6, 1)) +>S : Symbol(S, Decl(substitutionInDeferredConditionalOfConditional.ts, 7, 13)) +>Head : Symbol(Head, Decl(substitutionInDeferredConditionalOfConditional.ts, 8, 27)) +>Rest : Symbol(Rest, Decl(substitutionInDeferredConditionalOfConditional.ts, 8, 57)) + + : never + : never + : never; +type Split

= P extends `${infer Head}.${infer Tail}` ? [Head, Tail] : [P]; +>Split : Symbol(Split, Decl(substitutionInDeferredConditionalOfConditional.ts, 16, 16)) +>P : Symbol(P, Decl(substitutionInDeferredConditionalOfConditional.ts, 17, 11)) +>P : Symbol(P, Decl(substitutionInDeferredConditionalOfConditional.ts, 17, 11)) +>Head : Symbol(Head, Decl(substitutionInDeferredConditionalOfConditional.ts, 17, 49)) +>Tail : Symbol(Tail, Decl(substitutionInDeferredConditionalOfConditional.ts, 17, 63)) +>Head : Symbol(Head, Decl(substitutionInDeferredConditionalOfConditional.ts, 17, 49)) +>Tail : Symbol(Tail, Decl(substitutionInDeferredConditionalOfConditional.ts, 17, 63)) +>P : Symbol(P, Decl(substitutionInDeferredConditionalOfConditional.ts, 17, 11)) + +type Children = S["states"] extends Record ? S["states"] : Record; +>Children : Symbol(Children, Decl(substitutionInDeferredConditionalOfConditional.ts, 17, 92)) +>S : Symbol(S, Decl(substitutionInDeferredConditionalOfConditional.ts, 18, 14)) +>Schema : Symbol(Schema, Decl(substitutionInDeferredConditionalOfConditional.ts, 0, 0)) +>S : Symbol(S, Decl(substitutionInDeferredConditionalOfConditional.ts, 18, 14)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Schema : Symbol(Schema, Decl(substitutionInDeferredConditionalOfConditional.ts, 0, 0)) +>S : Symbol(S, Decl(substitutionInDeferredConditionalOfConditional.ts, 18, 14)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Schema : Symbol(Schema, Decl(substitutionInDeferredConditionalOfConditional.ts, 0, 0)) + +type NeedsRecord> = T; +>NeedsRecord : Symbol(NeedsRecord, Decl(substitutionInDeferredConditionalOfConditional.ts, 18, 116)) +>T : Symbol(T, Decl(substitutionInDeferredConditionalOfConditional.ts, 19, 17)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Schema : Symbol(Schema, Decl(substitutionInDeferredConditionalOfConditional.ts, 0, 0)) +>T : Symbol(T, Decl(substitutionInDeferredConditionalOfConditional.ts, 19, 17)) + +type ChildrenAt, P extends string> = NeedsRecord>>>; +>ChildrenAt : Symbol(ChildrenAt, Decl(substitutionInDeferredConditionalOfConditional.ts, 19, 55)) +>S : Symbol(S, Decl(substitutionInDeferredConditionalOfConditional.ts, 20, 16)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Schema : Symbol(Schema, Decl(substitutionInDeferredConditionalOfConditional.ts, 0, 0)) +>P : Symbol(P, Decl(substitutionInDeferredConditionalOfConditional.ts, 20, 49)) +>NeedsRecord : Symbol(NeedsRecord, Decl(substitutionInDeferredConditionalOfConditional.ts, 18, 116)) +>Children : Symbol(Children, Decl(substitutionInDeferredConditionalOfConditional.ts, 17, 92)) +>Resolve : Symbol(Resolve, Decl(substitutionInDeferredConditionalOfConditional.ts, 6, 1)) +>S : Symbol(S, Decl(substitutionInDeferredConditionalOfConditional.ts, 20, 16)) +>Split : Symbol(Split, Decl(substitutionInDeferredConditionalOfConditional.ts, 16, 16)) +>P : Symbol(P, Decl(substitutionInDeferredConditionalOfConditional.ts, 20, 49)) + diff --git a/tsc/testdata/baselines/reference/compiler/substitutionInDeferredConditionalOfConditional.types b/tsc/testdata/baselines/reference/compiler/substitutionInDeferredConditionalOfConditional.types new file mode 100644 index 0000000000000..73ed28bdbf7d5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/substitutionInDeferredConditionalOfConditional.types @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/substitutionInDeferredConditionalOfConditional.ts] //// + +=== substitutionInDeferredConditionalOfConditional.ts === +// Children always produces a Record, so it satisfies NeedsRecord. Its +// true branch narrows S["states"] to Record even when S is +// a conditional type that is itself deferred. + +interface Schema { + states?: Record; +>states : Record | undefined +} +type Resolve, Segments extends readonly string[]> = +>Resolve : Resolve + + Segments extends [infer Head extends string, ...infer Rest extends string[]] + ? Head extends keyof S + ? Rest extends [] + ? S[Head] + : S[Head]["states"] extends Record + ? Resolve + : never + : never + : never; +type Split

= P extends `${infer Head}.${infer Tail}` ? [Head, Tail] : [P]; +>Split : Split

+ +type Children = S["states"] extends Record ? S["states"] : Record; +>Children : Children + +type NeedsRecord> = T; +>NeedsRecord : T + +type ChildrenAt, P extends string> = NeedsRecord>>>; +>ChildrenAt : Children>> + diff --git a/tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.errors.txt b/tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.errors.txt new file mode 100644 index 0000000000000..44b8ab63c060b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.errors.txt @@ -0,0 +1,18 @@ +tupleTooLargeReportedAtUses.ts(7,10): error TS2799: Type produces a tuple type that is too large to represent. + + +==== tupleTooLargeReportedAtUses.ts (1 errors) ==== + // The tuple type the alias builds is too large to represent (64384). The + // union type and its first constituent start at the same position, so they + // report the error at the same location. + + type BuildTuple = + T['length'] extends L ? T : BuildTuple; + type A = BuildTuple<3>; + ~~~~~~~~~~~~~ +!!! error TS2799: Type produces a tuple type that is too large to represent. + + export class C { + p? = null! as A | string; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.symbols b/tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.symbols new file mode 100644 index 0000000000000..ce3c00da85d8b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/tupleTooLargeReportedAtUses.ts] //// + +=== tupleTooLargeReportedAtUses.ts === +// The tuple type the alias builds is too large to represent (64384). The +// union type and its first constituent start at the same position, so they +// report the error at the same location. + +type BuildTuple = +>BuildTuple : Symbol(BuildTuple, Decl(tupleTooLargeReportedAtUses.ts, 0, 0)) +>L : Symbol(L, Decl(tupleTooLargeReportedAtUses.ts, 4, 16)) +>T : Symbol(T, Decl(tupleTooLargeReportedAtUses.ts, 4, 33)) + + T['length'] extends L ? T : BuildTuple; +>T : Symbol(T, Decl(tupleTooLargeReportedAtUses.ts, 4, 33)) +>L : Symbol(L, Decl(tupleTooLargeReportedAtUses.ts, 4, 16)) +>T : Symbol(T, Decl(tupleTooLargeReportedAtUses.ts, 4, 33)) +>BuildTuple : Symbol(BuildTuple, Decl(tupleTooLargeReportedAtUses.ts, 0, 0)) +>L : Symbol(L, Decl(tupleTooLargeReportedAtUses.ts, 4, 16)) +>T : Symbol(T, Decl(tupleTooLargeReportedAtUses.ts, 4, 33)) +>T : Symbol(T, Decl(tupleTooLargeReportedAtUses.ts, 4, 33)) + +type A = BuildTuple<3>; +>A : Symbol(A, Decl(tupleTooLargeReportedAtUses.ts, 5, 60)) +>BuildTuple : Symbol(BuildTuple, Decl(tupleTooLargeReportedAtUses.ts, 0, 0)) + +export class C { +>C : Symbol(C, Decl(tupleTooLargeReportedAtUses.ts, 6, 23)) + + p? = null! as A | string; +>p : Symbol(C.p, Decl(tupleTooLargeReportedAtUses.ts, 8, 16)) +>A : Symbol(A, Decl(tupleTooLargeReportedAtUses.ts, 5, 60)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.types b/tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.types new file mode 100644 index 0000000000000..0853b2857e093 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/tupleTooLargeReportedAtUses.types @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/tupleTooLargeReportedAtUses.ts] //// + +=== tupleTooLargeReportedAtUses.ts === +// The tuple type the alias builds is too large to represent (64384). The +// union type and its first constituent start at the same position, so they +// report the error at the same location. + +type BuildTuple = +>BuildTuple : BuildTuple + + T['length'] extends L ? T : BuildTuple; +type A = BuildTuple<3>; +>A : any + +export class C { +>C : C + + p? = null! as A | string; +>p : any +>null! as A | string : any +>null! : never +} + diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.errors.txt b/tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.errors.txt new file mode 100644 index 0000000000000..8c9d175baec15 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.errors.txt @@ -0,0 +1,28 @@ +typeParameterDefaultInCallInsideGenericCallback.ts(18,28): error TS2345: Argument of type '{ v: number; }' is not assignable to parameter of type 'undefined'. + + +==== typeParameterDefaultInCallInsideGenericCallback.ts (1 errors) ==== + // The default of T applies to the call inside the callback passed to another + // generic function as it does elsewhere, so data is accepted. + + declare function fetcher(cfg: unknown): Promise; + + type Routes = R extends 'x' ? { IN: { v: number }, OUT: string } : never; + + function executeFetch>( + route: R, + body?: T extends Record<'IN', any> ? T['IN'] : never + ) { + return fetcher ? T['OUT'] : T>({ route, body }); + } + + declare function useCallback(cb: T, deps: unknown[]): T; + + export const cb = useCallback((data: { v: number }) => { + return executeFetch('x', data); + ~~~~ +!!! error TS2345: Argument of type '{ v: number; }' is not assignable to parameter of type 'undefined'. + }, []); + + export const check: Promise = cb({ v: 1 }); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.symbols b/tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.symbols new file mode 100644 index 0000000000000..f2753a2cd94e0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.symbols @@ -0,0 +1,76 @@ +//// [tests/cases/compiler/typeParameterDefaultInCallInsideGenericCallback.ts] //// + +=== typeParameterDefaultInCallInsideGenericCallback.ts === +// The default of T applies to the call inside the callback passed to another +// generic function as it does elsewhere, so data is accepted. + +declare function fetcher(cfg: unknown): Promise; +>fetcher : Symbol(fetcher, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 0, 0)) +>D : Symbol(D, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 3, 25)) +>cfg : Symbol(cfg, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 3, 28)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>D : Symbol(D, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 3, 25)) + +type Routes = R extends 'x' ? { IN: { v: number }, OUT: string } : never; +>Routes : Symbol(Routes, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 3, 54)) +>R : Symbol(R, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 5, 12)) +>R : Symbol(R, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 5, 12)) +>IN : Symbol(IN, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 5, 34)) +>v : Symbol(v, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 5, 40)) +>OUT : Symbol(OUT, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 5, 53)) + +function executeFetch>( +>executeFetch : Symbol(executeFetch, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 5, 76)) +>R : Symbol(R, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 7, 22)) +>T : Symbol(T, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 7, 39)) +>Routes : Symbol(Routes, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 3, 54)) +>R : Symbol(R, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 7, 22)) + + route: R, +>route : Symbol(route, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 7, 55)) +>R : Symbol(R, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 7, 22)) + + body?: T extends Record<'IN', any> ? T['IN'] : never +>body : Symbol(body, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 8, 11)) +>T : Symbol(T, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 7, 39)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 7, 39)) + +) { + return fetcher ? T['OUT'] : T>({ route, body }); +>fetcher : Symbol(fetcher, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 7, 39)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 7, 39)) +>T : Symbol(T, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 7, 39)) +>route : Symbol(route, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 11, 63)) +>body : Symbol(body, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 11, 70)) +} + +declare function useCallback(cb: T, deps: unknown[]): T; +>useCallback : Symbol(useCallback, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 12, 1)) +>T : Symbol(T, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 14, 29)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.esnext.decorators.d.ts, --, --)) +>cb : Symbol(cb, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 14, 49)) +>T : Symbol(T, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 14, 29)) +>deps : Symbol(deps, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 14, 55)) +>T : Symbol(T, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 14, 29)) + +export const cb = useCallback((data: { v: number }) => { +>cb : Symbol(cb, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 16, 12)) +>useCallback : Symbol(useCallback, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 12, 1)) +>data : Symbol(data, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 16, 31)) +>v : Symbol(v, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 16, 38)) + + return executeFetch('x', data); +>executeFetch : Symbol(executeFetch, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 5, 76)) +>data : Symbol(data, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 16, 31)) + +}, []); + +export const check: Promise = cb({ v: 1 }); +>check : Symbol(check, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 20, 12)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>cb : Symbol(cb, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 16, 12)) +>v : Symbol(v, Decl(typeParameterDefaultInCallInsideGenericCallback.ts, 20, 42)) + diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.types b/tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.types new file mode 100644 index 0000000000000..ed2acda45dd86 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterDefaultInCallInsideGenericCallback.types @@ -0,0 +1,64 @@ +//// [tests/cases/compiler/typeParameterDefaultInCallInsideGenericCallback.ts] //// + +=== typeParameterDefaultInCallInsideGenericCallback.ts === +// The default of T applies to the call inside the callback passed to another +// generic function as it does elsewhere, so data is accepted. + +declare function fetcher(cfg: unknown): Promise; +>fetcher : (cfg: unknown) => Promise +>cfg : unknown + +type Routes = R extends 'x' ? { IN: { v: number }, OUT: string } : never; +>Routes : Routes +>IN : { v: number; } +>v : number +>OUT : string + +function executeFetch>( +>executeFetch : >(route: R, body?: T extends Record<'IN', any> ? T['IN'] : never) => Promise ? T["OUT"] : T> + + route: R, +>route : R + + body?: T extends Record<'IN', any> ? T['IN'] : never +>body : (T extends Record<"IN", any> ? T["IN"] : never) | undefined + +) { + return fetcher ? T['OUT'] : T>({ route, body }); +>fetcher ? T['OUT'] : T>({ route, body }) : Promise ? T["OUT"] : T> +>fetcher : (cfg: unknown) => Promise +>{ route, body } : { route: R; body: (T extends Record<"IN", any> ? T["IN"] : never) | undefined; } +>route : R +>body : (T extends Record<"IN", any> ? T["IN"] : never) | undefined +} + +declare function useCallback(cb: T, deps: unknown[]): T; +>useCallback : (cb: T, deps: unknown[]) => T +>cb : T +>deps : unknown[] + +export const cb = useCallback((data: { v: number }) => { +>cb : (data: { v: number; }) => Promise +>useCallback((data: { v: number }) => { return executeFetch('x', data);}, []) : (data: { v: number; }) => Promise +>useCallback : (cb: T, deps: unknown[]) => T +>(data: { v: number }) => { return executeFetch('x', data);} : (data: { v: number; }) => Promise +>data : { v: number; } +>v : number + + return executeFetch('x', data); +>executeFetch('x', data) : Promise +>executeFetch : >(route: R, body?: T extends Record<'IN', any> ? T['IN'] : never) => Promise ? T["OUT"] : T> +>'x' : "x" +>data : { v: number; } + +}, []); +>[] : never[] + +export const check: Promise = cb({ v: 1 }); +>check : Promise +>cb({ v: 1 }) : Promise +>cb : (data: { v: number; }) => Promise +>{ v: 1 } : { v: number; } +>v : number +>1 : 1 + diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).errors.txt new file mode 100644 index 0000000000000..b7a0b982aceb6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).errors.txt @@ -0,0 +1,15 @@ +typeParameterHasSelfAsConstraint.ts(1,24): error TS2313: Type parameter 'T' has a circular constraint. +typeParameterHasSelfAsConstraint.ts(2,5): error TS2322: Type 'T' is not assignable to type 'number'. + + +==== typeParameterHasSelfAsConstraint.ts (2 errors) ==== + function foo(x: T): number { + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. + return x; + ~~~~~~ +!!! error TS2322: Type 'T' is not assignable to type 'number'. +!!! related TS2208 typeParameterHasSelfAsConstraint.ts:1:14: This type parameter might need an `extends number` constraint. + } + + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).js new file mode 100644 index 0000000000000..2b6ae7f2bca3f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).js @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/typeParameterHasSelfAsConstraint.ts] //// + +//// [typeParameterHasSelfAsConstraint.ts] +function foo(x: T): number { + return x; +} + + + +//// [typeParameterHasSelfAsConstraint.js] +"use strict"; +function foo(x) { + return x; +} diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).symbols new file mode 100644 index 0000000000000..e8a52432a83dc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/typeParameterHasSelfAsConstraint.ts] //// + +=== typeParameterHasSelfAsConstraint.ts === +function foo(x: T): number { +>foo : Symbol(foo, Decl(typeParameterHasSelfAsConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterHasSelfAsConstraint.ts, 0, 13)) +>T : Symbol(T, Decl(typeParameterHasSelfAsConstraint.ts, 0, 13)) +>x : Symbol(x, Decl(typeParameterHasSelfAsConstraint.ts, 0, 26)) +>T : Symbol(T, Decl(typeParameterHasSelfAsConstraint.ts, 0, 13)) + + return x; +>x : Symbol(x, Decl(typeParameterHasSelfAsConstraint.ts, 0, 26)) +} + + diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).types new file mode 100644 index 0000000000000..dd8af60e8c209 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=default).types @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/typeParameterHasSelfAsConstraint.ts] //// + +=== typeParameterHasSelfAsConstraint.ts === +function foo(x: T): number { +>foo : (x: T) => number +>x : T + + return x; +>x : T +} + + diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..83997ce99f298 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).errors.txt @@ -0,0 +1,16 @@ +typeParameterHasSelfAsConstraint.ts(1,24): error TS2313: Type parameter 'T' has a circular constraint. +typeParameterHasSelfAsConstraint.ts(2,5): error TS2322: Type 'T' is not assignable to type 'number'. + + +==== typeParameterHasSelfAsConstraint.ts (2 errors) ==== + function foo(x: T): number { + ~ +!!! error TS2313: Type parameter 'T' has a circular constraint. +!!! related TS2751 typeParameterHasSelfAsConstraint.ts:2:12: Circularity originates in type at this location. + return x; + ~~~~~~ +!!! error TS2322: Type 'T' is not assignable to type 'number'. +!!! related TS2208 typeParameterHasSelfAsConstraint.ts:1:14: This type parameter might need an `extends number` constraint. + } + + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).js new file mode 100644 index 0000000000000..2b6ae7f2bca3f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).js @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/typeParameterHasSelfAsConstraint.ts] //// + +//// [typeParameterHasSelfAsConstraint.ts] +function foo(x: T): number { + return x; +} + + + +//// [typeParameterHasSelfAsConstraint.js] +"use strict"; +function foo(x) { + return x; +} diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..e8a52432a83dc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).symbols @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/typeParameterHasSelfAsConstraint.ts] //// + +=== typeParameterHasSelfAsConstraint.ts === +function foo(x: T): number { +>foo : Symbol(foo, Decl(typeParameterHasSelfAsConstraint.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterHasSelfAsConstraint.ts, 0, 13)) +>T : Symbol(T, Decl(typeParameterHasSelfAsConstraint.ts, 0, 13)) +>x : Symbol(x, Decl(typeParameterHasSelfAsConstraint.ts, 0, 26)) +>T : Symbol(T, Decl(typeParameterHasSelfAsConstraint.ts, 0, 13)) + + return x; +>x : Symbol(x, Decl(typeParameterHasSelfAsConstraint.ts, 0, 26)) +} + + diff --git a/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).types new file mode 100644 index 0000000000000..dd8af60e8c209 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeParameterHasSelfAsConstraint(checkorder=typesfirst).types @@ -0,0 +1,12 @@ +//// [tests/cases/compiler/typeParameterHasSelfAsConstraint.ts] //// + +=== typeParameterHasSelfAsConstraint.ts === +function foo(x: T): number { +>foo : (x: T) => number +>x : T + + return x; +>x : T +} + + diff --git a/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..2f05537ca40a0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,35 @@ +typeReferenceRecursionIdentityCheckOrder.ts(11,7): error TS2322: Type 'never[]' is not assignable to type 'A<0>'. + The types returned by 'slice(...).every' are incompatible between these types. + Type '{ (predicate: (value: never, index: number, array: never[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: never, index: number, array: never[]) => unknown, thisArg?: any): boolean; }' is not assignable to type '(predicate: (value: 0) => value is S) => this is A'. + Type predicate 'this is any[]' is not assignable to 'this is A'. + Type 'any[]' is not assignable to type 'A'. + The types returned by 'slice(...).flatMap(...)' are incompatible between these types. + Type '(U | A)[]' is not assignable to type 'U[]'. + Type 'U | A' is not assignable to type 'U'. + 'U' could be instantiated with an arbitrary type which could be unrelated to 'U | A'. + + +==== typeReferenceRecursionIdentityCheckOrder.ts (1 errors) ==== + // Comparing never[] to B<0> nests comparisons of the members of A and B. + // Whether they are cut short as deeply nested must not depend on whether the + // annotation of b is resolved before checking a instantiates slice. + + interface A { + slice(): B; + every(predicate: (value: T) => value is S): this is A; + flatMap(callback: (value: T) => U | readonly U[] | A): U[]; + } + interface B extends A {} + const a: A<0> = []; + ~ +!!! error TS2322: Type 'never[]' is not assignable to type 'A<0>'. +!!! error TS2322: The types returned by 'slice(...).every' are incompatible between these types. +!!! error TS2322: Type '{ (predicate: (value: never, index: number, array: never[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: never, index: number, array: never[]) => unknown, thisArg?: any): boolean; }' is not assignable to type '(predicate: (value: 0) => value is S) => this is A'. +!!! error TS2322: Type predicate 'this is any[]' is not assignable to 'this is A'. +!!! error TS2322: Type 'any[]' is not assignable to type 'A'. +!!! error TS2322: The types returned by 'slice(...).flatMap(...)' are incompatible between these types. +!!! error TS2322: Type '(U | A)[]' is not assignable to type 'U[]'. +!!! error TS2322: Type 'U | A' is not assignable to type 'U'. +!!! error TS2322: 'U' could be instantiated with an arbitrary type which could be unrelated to 'U | A'. + const b: B<0> = []; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..44770d906e0ac --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).symbols @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/typeReferenceRecursionIdentityCheckOrder.ts] //// + +=== typeReferenceRecursionIdentityCheckOrder.ts === +// Comparing never[] to B<0> nests comparisons of the members of A and B. +// Whether they are cut short as deeply nested must not depend on whether the +// annotation of b is resolved before checking a instantiates slice. + +interface A { +>A : Symbol(A, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 12)) + + slice(): B; +>slice : Symbol(A.slice, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 16)) +>B : Symbol(B, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 8, 1)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 12)) + + every(predicate: (value: T) => value is S): this is A; +>every : Symbol(A.every, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 5, 18)) +>S : Symbol(S, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 10)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 12)) +>predicate : Symbol(predicate, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 23)) +>value : Symbol(value, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 35)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 12)) +>value : Symbol(value, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 35)) +>S : Symbol(S, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 10)) +>A : Symbol(A, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 10)) + + flatMap(callback: (value: T) => U | readonly U[] | A): U[]; +>flatMap : Symbol(A.flatMap, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 74)) +>U : Symbol(U, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 12)) +>callback : Symbol(callback, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 15)) +>value : Symbol(value, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 26)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 12)) +>U : Symbol(U, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 12)) +>U : Symbol(U, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 12)) +>A : Symbol(A, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 0, 0)) +>U : Symbol(U, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 12)) +>U : Symbol(U, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 12)) +} +interface B extends A {} +>B : Symbol(B, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 8, 1)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 9, 12)) +>A : Symbol(A, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 9, 12)) + +const a: A<0> = []; +>a : Symbol(a, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 10, 5)) +>A : Symbol(A, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 0, 0)) + +const b: B<0> = []; +>b : Symbol(b, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 11, 5)) +>B : Symbol(B, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 8, 1)) + diff --git a/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..bab8645e582b3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=default).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/typeReferenceRecursionIdentityCheckOrder.ts] //// + +=== typeReferenceRecursionIdentityCheckOrder.ts === +// Comparing never[] to B<0> nests comparisons of the members of A and B. +// Whether they are cut short as deeply nested must not depend on whether the +// annotation of b is resolved before checking a instantiates slice. + +interface A { + slice(): B; +>slice : () => B + + every(predicate: (value: T) => value is S): this is A; +>every : (predicate: (value: T) => value is S) => this is A +>predicate : (value: T) => value is S +>value : T + + flatMap(callback: (value: T) => U | readonly U[] | A): U[]; +>flatMap : (callback: (value: T) => U | readonly U[] | A) => U[] +>callback : (value: T) => U | readonly U[] | A +>value : T +} +interface B extends A {} +const a: A<0> = []; +>a : A<0> +>[] : never[] + +const b: B<0> = []; +>b : B<0> +>[] : never[] + diff --git a/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..6e024512e0b5b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,54 @@ +typeReferenceRecursionIdentityCheckOrder.ts(11,7): error TS2322: Type 'never[]' is not assignable to type 'A<0>'. + The types returned by 'slice(...).every' are incompatible between these types. + Type '{ (predicate: (value: never, index: number, array: never[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: never, index: number, array: never[]) => unknown, thisArg?: any): boolean; }' is not assignable to type '(predicate: (value: 0) => value is S) => this is A'. + Type predicate 'this is any[]' is not assignable to 'this is A'. + Type 'any[]' is not assignable to type 'A'. + The types returned by 'slice(...).flatMap(...)' are incompatible between these types. + Type '(U | A)[]' is not assignable to type 'U[]'. + Type 'U | A' is not assignable to type 'U'. + 'U' could be instantiated with an arbitrary type which could be unrelated to 'U | A'. +typeReferenceRecursionIdentityCheckOrder.ts(12,7): error TS2322: Type 'never[]' is not assignable to type 'B<0>'. + The types returned by 'slice(...).every' are incompatible between these types. + Type '{ (predicate: (value: never, index: number, array: never[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: never, index: number, array: never[]) => unknown, thisArg?: any): boolean; }' is not assignable to type '(predicate: (value: 0) => value is S) => this is A'. + Type predicate 'this is any[]' is not assignable to 'this is A'. + Type 'any[]' is not assignable to type 'A'. + The types returned by 'slice(...).flatMap(...)' are incompatible between these types. + Type '(U | A)[]' is not assignable to type 'U[]'. + Type 'U | A' is not assignable to type 'U'. + 'U' could be instantiated with an arbitrary type which could be unrelated to 'U | A'. + + +==== typeReferenceRecursionIdentityCheckOrder.ts (2 errors) ==== + // Comparing never[] to B<0> nests comparisons of the members of A and B. + // Whether they are cut short as deeply nested must not depend on whether the + // annotation of b is resolved before checking a instantiates slice. + + interface A { + slice(): B; + every(predicate: (value: T) => value is S): this is A; + flatMap(callback: (value: T) => U | readonly U[] | A): U[]; + } + interface B extends A {} + const a: A<0> = []; + ~ +!!! error TS2322: Type 'never[]' is not assignable to type 'A<0>'. +!!! error TS2322: The types returned by 'slice(...).every' are incompatible between these types. +!!! error TS2322: Type '{ (predicate: (value: never, index: number, array: never[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: never, index: number, array: never[]) => unknown, thisArg?: any): boolean; }' is not assignable to type '(predicate: (value: 0) => value is S) => this is A'. +!!! error TS2322: Type predicate 'this is any[]' is not assignable to 'this is A'. +!!! error TS2322: Type 'any[]' is not assignable to type 'A'. +!!! error TS2322: The types returned by 'slice(...).flatMap(...)' are incompatible between these types. +!!! error TS2322: Type '(U | A)[]' is not assignable to type 'U[]'. +!!! error TS2322: Type 'U | A' is not assignable to type 'U'. +!!! error TS2322: 'U' could be instantiated with an arbitrary type which could be unrelated to 'U | A'. + const b: B<0> = []; + ~ +!!! error TS2322: Type 'never[]' is not assignable to type 'B<0>'. +!!! error TS2322: The types returned by 'slice(...).every' are incompatible between these types. +!!! error TS2322: Type '{ (predicate: (value: never, index: number, array: never[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: never, index: number, array: never[]) => unknown, thisArg?: any): boolean; }' is not assignable to type '(predicate: (value: 0) => value is S) => this is A'. +!!! error TS2322: Type predicate 'this is any[]' is not assignable to 'this is A'. +!!! error TS2322: Type 'any[]' is not assignable to type 'A'. +!!! error TS2322: The types returned by 'slice(...).flatMap(...)' are incompatible between these types. +!!! error TS2322: Type '(U | A)[]' is not assignable to type 'U[]'. +!!! error TS2322: Type 'U | A' is not assignable to type 'U'. +!!! error TS2322: 'U' could be instantiated with an arbitrary type which could be unrelated to 'U | A'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..44770d906e0ac --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,54 @@ +//// [tests/cases/compiler/typeReferenceRecursionIdentityCheckOrder.ts] //// + +=== typeReferenceRecursionIdentityCheckOrder.ts === +// Comparing never[] to B<0> nests comparisons of the members of A and B. +// Whether they are cut short as deeply nested must not depend on whether the +// annotation of b is resolved before checking a instantiates slice. + +interface A { +>A : Symbol(A, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 12)) + + slice(): B; +>slice : Symbol(A.slice, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 16)) +>B : Symbol(B, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 8, 1)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 12)) + + every(predicate: (value: T) => value is S): this is A; +>every : Symbol(A.every, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 5, 18)) +>S : Symbol(S, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 10)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 12)) +>predicate : Symbol(predicate, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 23)) +>value : Symbol(value, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 35)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 12)) +>value : Symbol(value, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 35)) +>S : Symbol(S, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 10)) +>A : Symbol(A, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 0, 0)) +>S : Symbol(S, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 10)) + + flatMap(callback: (value: T) => U | readonly U[] | A): U[]; +>flatMap : Symbol(A.flatMap, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 6, 74)) +>U : Symbol(U, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 12)) +>callback : Symbol(callback, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 15)) +>value : Symbol(value, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 26)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 4, 12)) +>U : Symbol(U, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 12)) +>U : Symbol(U, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 12)) +>A : Symbol(A, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 0, 0)) +>U : Symbol(U, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 12)) +>U : Symbol(U, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 7, 12)) +} +interface B extends A {} +>B : Symbol(B, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 8, 1)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 9, 12)) +>A : Symbol(A, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 9, 12)) + +const a: A<0> = []; +>a : Symbol(a, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 10, 5)) +>A : Symbol(A, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 0, 0)) + +const b: B<0> = []; +>b : Symbol(b, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 11, 5)) +>B : Symbol(B, Decl(typeReferenceRecursionIdentityCheckOrder.ts, 8, 1)) + diff --git a/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..bab8645e582b3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/typeReferenceRecursionIdentityCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/typeReferenceRecursionIdentityCheckOrder.ts] //// + +=== typeReferenceRecursionIdentityCheckOrder.ts === +// Comparing never[] to B<0> nests comparisons of the members of A and B. +// Whether they are cut short as deeply nested must not depend on whether the +// annotation of b is resolved before checking a instantiates slice. + +interface A { + slice(): B; +>slice : () => B + + every(predicate: (value: T) => value is S): this is A; +>every : (predicate: (value: T) => value is S) => this is A +>predicate : (value: T) => value is S +>value : T + + flatMap(callback: (value: T) => U | readonly U[] | A): U[]; +>flatMap : (callback: (value: T) => U | readonly U[] | A) => U[] +>callback : (value: T) => U | readonly U[] | A +>value : T +} +interface B extends A {} +const a: A<0> = []; +>a : A<0> +>[] : never[] + +const b: B<0> = []; +>b : B<0> +>[] : never[] + diff --git a/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).errors.txt new file mode 100644 index 0000000000000..f2bff262ffc44 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).errors.txt @@ -0,0 +1,28 @@ +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(1,18): error TS6133: 'person' is declared but its value is never read. +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(1,34): error TS6133: 'person2' is declared but its value is never read. +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(2,9): error TS6133: 'unused' is declared but its value is never read. +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(3,14): error TS6133: 'maker' is declared but its value is never read. +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(3,20): error TS6133: 'child' is declared but its value is never read. +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(4,13): error TS6133: 'unused2' is declared but its value is never read. + + +==== unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts (6 errors) ==== + function greeter(person: string, person2: string) { + ~~~~~~ +!!! error TS6133: 'person' is declared but its value is never read. + ~~~~~~~ +!!! error TS6133: 'person2' is declared but its value is never read. + var unused = 20; + ~~~~~~ +!!! error TS6133: 'unused' is declared but its value is never read. + function maker(child: string): void { + ~~~~~ +!!! error TS6133: 'maker' is declared but its value is never read. + ~~~~~ +!!! error TS6133: 'child' is declared but its value is never read. + var unused2 = 22; + ~~~~~~~ +!!! error TS6133: 'unused2' is declared but its value is never read. + } + person2 = "dummy value"; + } \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).js new file mode 100644 index 0000000000000..9457d5135a002 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).js @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts] //// + +//// [unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts] +function greeter(person: string, person2: string) { + var unused = 20; + function maker(child: string): void { + var unused2 = 22; + } + person2 = "dummy value"; +} + +//// [unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.js] +"use strict"; +function greeter(person, person2) { + var unused = 20; + function maker(child) { + var unused2 = 22; + } + person2 = "dummy value"; +} diff --git a/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).symbols new file mode 100644 index 0000000000000..7f6c7e03b1461 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts] //// + +=== unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts === +function greeter(person: string, person2: string) { +>greeter : Symbol(greeter, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 0, 0)) +>person : Symbol(person, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 0, 17)) +>person2 : Symbol(person2, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 0, 32)) + + var unused = 20; +>unused : Symbol(unused, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 1, 7)) + + function maker(child: string): void { +>maker : Symbol(maker, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 1, 20)) +>child : Symbol(child, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 2, 19)) + + var unused2 = 22; +>unused2 : Symbol(unused2, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 3, 11)) + } + person2 = "dummy value"; +>person2 : Symbol(person2, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 0, 32)) +} diff --git a/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).types new file mode 100644 index 0000000000000..0a0c9a1359a5f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=default).types @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts] //// + +=== unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts === +function greeter(person: string, person2: string) { +>greeter : (person: string, person2: string) => void +>person : string +>person2 : string + + var unused = 20; +>unused : number +>20 : 20 + + function maker(child: string): void { +>maker : (child: string) => void +>child : string + + var unused2 = 22; +>unused2 : number +>22 : 22 + } + person2 = "dummy value"; +>person2 = "dummy value" : "dummy value" +>person2 : string +>"dummy value" : "dummy value" +} diff --git a/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..387fe2f14d0be --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).errors.txt @@ -0,0 +1,25 @@ +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(1,18): error TS6133: 'person' is declared but its value is never read. +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(2,9): error TS6133: 'unused' is declared but its value is never read. +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(3,14): error TS6133: 'maker' is declared but its value is never read. +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(3,20): error TS6133: 'child' is declared but its value is never read. +unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts(4,13): error TS6133: 'unused2' is declared but its value is never read. + + +==== unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts (5 errors) ==== + function greeter(person: string, person2: string) { + ~~~~~~ +!!! error TS6133: 'person' is declared but its value is never read. + var unused = 20; + ~~~~~~ +!!! error TS6133: 'unused' is declared but its value is never read. + function maker(child: string): void { + ~~~~~ +!!! error TS6133: 'maker' is declared but its value is never read. + ~~~~~ +!!! error TS6133: 'child' is declared but its value is never read. + var unused2 = 22; + ~~~~~~~ +!!! error TS6133: 'unused2' is declared but its value is never read. + } + person2 = "dummy value"; + } \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).js new file mode 100644 index 0000000000000..9457d5135a002 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).js @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts] //// + +//// [unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts] +function greeter(person: string, person2: string) { + var unused = 20; + function maker(child: string): void { + var unused2 = 22; + } + person2 = "dummy value"; +} + +//// [unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.js] +"use strict"; +function greeter(person, person2) { + var unused = 20; + function maker(child) { + var unused2 = 22; + } + person2 = "dummy value"; +} diff --git a/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..7f6c7e03b1461 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).symbols @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts] //// + +=== unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts === +function greeter(person: string, person2: string) { +>greeter : Symbol(greeter, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 0, 0)) +>person : Symbol(person, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 0, 17)) +>person2 : Symbol(person2, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 0, 32)) + + var unused = 20; +>unused : Symbol(unused, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 1, 7)) + + function maker(child: string): void { +>maker : Symbol(maker, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 1, 20)) +>child : Symbol(child, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 2, 19)) + + var unused2 = 22; +>unused2 : Symbol(unused2, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 3, 11)) + } + person2 = "dummy value"; +>person2 : Symbol(person2, Decl(unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts, 0, 32)) +} diff --git a/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).types new file mode 100644 index 0000000000000..0a0c9a1359a5f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1(checkorder=typesfirst).types @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts] //// + +=== unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts === +function greeter(person: string, person2: string) { +>greeter : (person: string, person2: string) => void +>person : string +>person2 : string + + var unused = 20; +>unused : number +>20 : 20 + + function maker(child: string): void { +>maker : (child: string) => void +>child : string + + var unused2 = 22; +>unused2 : number +>22 : 22 + } + person2 = "dummy value"; +>person2 = "dummy value" : "dummy value" +>person2 : string +>"dummy value" : "dummy value" +} diff --git a/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..55aecda78cdca --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).errors.txt @@ -0,0 +1,12 @@ +unusedTypeParameterQueryOrder.ts(3,17): error TS6196: 'T' is declared but never used. + + +==== unusedTypeParameterQueryOrder.ts (1 errors) ==== + class A { + f() { + return () => {}; + ~ +!!! error TS6196: 'T' is declared but never used. + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).js new file mode 100644 index 0000000000000..7bbfd20d663d7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/unusedTypeParameterQueryOrder.ts] //// + +//// [unusedTypeParameterQueryOrder.ts] +class A { + f() { + return () => {}; + } +} + + +//// [unusedTypeParameterQueryOrder.js] +"use strict"; +class A { + f() { + return () => { }; + } +} diff --git a/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..827db0c67998a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/unusedTypeParameterQueryOrder.ts] //// + +=== unusedTypeParameterQueryOrder.ts === +class A { +>A : Symbol(A, Decl(unusedTypeParameterQueryOrder.ts, 0, 0)) + + f() { +>f : Symbol(A.f, Decl(unusedTypeParameterQueryOrder.ts, 0, 9)) + + return () => {}; +>T : Symbol(T, Decl(unusedTypeParameterQueryOrder.ts, 2, 16)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).types new file mode 100644 index 0000000000000..0f1b46b9de35e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=default).types @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/unusedTypeParameterQueryOrder.ts] //// + +=== unusedTypeParameterQueryOrder.ts === +class A { +>A : A + + f() { +>f : () => () => void + + return () => {}; +>() => {} : () => void + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).js b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).js new file mode 100644 index 0000000000000..7bbfd20d663d7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).js @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/unusedTypeParameterQueryOrder.ts] //// + +//// [unusedTypeParameterQueryOrder.ts] +class A { + f() { + return () => {}; + } +} + + +//// [unusedTypeParameterQueryOrder.js] +"use strict"; +class A { + f() { + return () => { }; + } +} diff --git a/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..827db0c67998a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).symbols @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/unusedTypeParameterQueryOrder.ts] //// + +=== unusedTypeParameterQueryOrder.ts === +class A { +>A : Symbol(A, Decl(unusedTypeParameterQueryOrder.ts, 0, 0)) + + f() { +>f : Symbol(A.f, Decl(unusedTypeParameterQueryOrder.ts, 0, 9)) + + return () => {}; +>T : Symbol(T, Decl(unusedTypeParameterQueryOrder.ts, 2, 16)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..0f1b46b9de35e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unusedTypeParameterQueryOrder(checkorder=editorfirst).types @@ -0,0 +1,14 @@ +//// [tests/cases/compiler/unusedTypeParameterQueryOrder.ts] //// + +=== unusedTypeParameterQueryOrder.ts === +class A { +>A : A + + f() { +>f : () => () => void + + return () => {}; +>() => {} : () => void + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.errors.txt b/tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.errors.txt new file mode 100644 index 0000000000000..a4725d41bf2bf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.errors.txt @@ -0,0 +1,48 @@ +varianceCircularConsistency.ts(26,7): error TS2322: Type 'Ref>' is not assignable to type 'Ref, never, never, {}>>'. + Type 'EntryPointComponent<{ q: { readonly variables: { slug: string; }; }; }, never, never, {}>' is not assignable to type 'EntryPointComponent, never, never, {}>'. + Type '(props: Props<{ q: { readonly variables: { slug: string; }; }; }, never, never, {}>) => void' is not assignable to type 'EntryPointComponent, never, never, {}>'. + Type '(props: Props<{ q: { readonly variables: { slug: string; }; }; }, never, never, {}>) => void' is not assignable to type '(props: Props, never, never, {}>) => void'. + Types of parameters 'props' and 'props' are incompatible. + Type 'Props, never, never, {}>' is not assignable to type 'Props<{ q: { readonly variables: { slug: string; }; }; }, never, never, {}>'. + Types of property 'queries' are incompatible. + Property 'q' is missing in type 'Record' but required in type '{ q: { readonly variables: { slug: string; }; }; }'. + + +==== varianceCircularConsistency.ts (1 errors) ==== + // Variances of these mutually recursive generics must not depend on values + // measured mid-cycle. Assigning `e` to `EntryPoint` must agree with + // assigning `e.root` to `EntryPoint["root"]`. + + interface Query {} + type Component

= P | ((props: P) => void); + interface Ref { + value: T; + } + interface Rep, Nested, Runtime, Extra> extends Readonly<{ + root: Ref>; + }> {} + type Preloaded = T extends Record> ? { [K in keyof T]: Unwrap> } : never; + interface Props extends Readonly<{ + nested: Preloaded; + queries: Queries; + }> {} + type EntryPointComponent, Nested, Runtime, Extra = {}> = Component>; + type Unwrap = C extends EntryPointComponent ? Readonly<{}> : {}; + type EntryPoint = Rep ? Q : never, never, never, never>; + type GetComponent = T extends EntryPoint ? C : never; + + declare const c: EntryPointComponent<{ q: { readonly variables: { slug: string } } }, {}, { onClick: () => void }>; + declare const e: EntryPoint; + const whole: EntryPoint = e; + const root: EntryPoint["root"] = e.root; + ~~~~ +!!! error TS2322: Type 'Ref>' is not assignable to type 'Ref, never, never, {}>>'. +!!! error TS2322: Type 'EntryPointComponent<{ q: { readonly variables: { slug: string; }; }; }, never, never, {}>' is not assignable to type 'EntryPointComponent, never, never, {}>'. +!!! error TS2322: Type '(props: Props<{ q: { readonly variables: { slug: string; }; }; }, never, never, {}>) => void' is not assignable to type 'EntryPointComponent, never, never, {}>'. +!!! error TS2322: Type '(props: Props<{ q: { readonly variables: { slug: string; }; }; }, never, never, {}>) => void' is not assignable to type '(props: Props, never, never, {}>) => void'. +!!! error TS2322: Types of parameters 'props' and 'props' are incompatible. +!!! error TS2322: Type 'Props, never, never, {}>' is not assignable to type 'Props<{ q: { readonly variables: { slug: string; }; }; }, never, never, {}>'. +!!! error TS2322: Types of property 'queries' are incompatible. +!!! error TS2322: Property 'q' is missing in type 'Record' but required in type '{ q: { readonly variables: { slug: string; }; }; }'. +!!! related TS2728 varianceCircularConsistency.ts:23:40: 'q' is declared here. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.symbols b/tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.symbols new file mode 100644 index 0000000000000..648c66a010864 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.symbols @@ -0,0 +1,146 @@ +//// [tests/cases/compiler/varianceCircularConsistency.ts] //// + +=== varianceCircularConsistency.ts === +// Variances of these mutually recursive generics must not depend on values +// measured mid-cycle. Assigning `e` to `EntryPoint` must agree with +// assigning `e.root` to `EntryPoint["root"]`. + +interface Query {} +>Query : Symbol(Query, Decl(varianceCircularConsistency.ts, 0, 0)) + +type Component

= P | ((props: P) => void); +>Component : Symbol(Component, Decl(varianceCircularConsistency.ts, 4, 18)) +>P : Symbol(P, Decl(varianceCircularConsistency.ts, 5, 15)) +>P : Symbol(P, Decl(varianceCircularConsistency.ts, 5, 15)) +>props : Symbol(props, Decl(varianceCircularConsistency.ts, 5, 26)) +>P : Symbol(P, Decl(varianceCircularConsistency.ts, 5, 15)) + +interface Ref { +>Ref : Symbol(Ref, Decl(varianceCircularConsistency.ts, 5, 45)) +>T : Symbol(T, Decl(varianceCircularConsistency.ts, 6, 14)) + + value: T; +>value : Symbol(Ref.value, Decl(varianceCircularConsistency.ts, 6, 18)) +>T : Symbol(T, Decl(varianceCircularConsistency.ts, 6, 14)) +} +interface Rep, Nested, Runtime, Extra> extends Readonly<{ +>Rep : Symbol(Rep, Decl(varianceCircularConsistency.ts, 8, 1)) +>Params : Symbol(Params, Decl(varianceCircularConsistency.ts, 9, 14)) +>Queries : Symbol(Queries, Decl(varianceCircularConsistency.ts, 9, 21)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Query : Symbol(Query, Decl(varianceCircularConsistency.ts, 0, 0)) +>Nested : Symbol(Nested, Decl(varianceCircularConsistency.ts, 9, 60)) +>Runtime : Symbol(Runtime, Decl(varianceCircularConsistency.ts, 9, 68)) +>Extra : Symbol(Extra, Decl(varianceCircularConsistency.ts, 9, 77)) +>Readonly : Symbol(Readonly, Decl(lib.es5.d.ts, --, --)) + + root: Ref>; +>root : Symbol(root, Decl(varianceCircularConsistency.ts, 9, 103)) +>Ref : Symbol(Ref, Decl(varianceCircularConsistency.ts, 5, 45)) +>EntryPointComponent : Symbol(EntryPointComponent, Decl(varianceCircularConsistency.ts, 16, 5)) +>Queries : Symbol(Queries, Decl(varianceCircularConsistency.ts, 9, 21)) +>Nested : Symbol(Nested, Decl(varianceCircularConsistency.ts, 9, 60)) +>Runtime : Symbol(Runtime, Decl(varianceCircularConsistency.ts, 9, 68)) + +}> {} +type Preloaded = T extends Record> ? { [K in keyof T]: Unwrap> } : never; +>Preloaded : Symbol(Preloaded, Decl(varianceCircularConsistency.ts, 11, 5)) +>T : Symbol(T, Decl(varianceCircularConsistency.ts, 12, 15)) +>T : Symbol(T, Decl(varianceCircularConsistency.ts, 12, 15)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Rep : Symbol(Rep, Decl(varianceCircularConsistency.ts, 8, 1)) +>K : Symbol(K, Decl(varianceCircularConsistency.ts, 12, 80)) +>T : Symbol(T, Decl(varianceCircularConsistency.ts, 12, 15)) +>Unwrap : Symbol(Unwrap, Decl(varianceCircularConsistency.ts, 17, 145)) +>GetComponent : Symbol(GetComponent, Decl(varianceCircularConsistency.ts, 19, 124)) +>T : Symbol(T, Decl(varianceCircularConsistency.ts, 12, 15)) + +interface Props extends Readonly<{ +>Props : Symbol(Props, Decl(varianceCircularConsistency.ts, 12, 129)) +>Queries : Symbol(Queries, Decl(varianceCircularConsistency.ts, 13, 16)) +>Nested : Symbol(Nested, Decl(varianceCircularConsistency.ts, 13, 24)) +>Runtime : Symbol(Runtime, Decl(varianceCircularConsistency.ts, 13, 32)) +>Extra : Symbol(Extra, Decl(varianceCircularConsistency.ts, 13, 41)) +>Readonly : Symbol(Readonly, Decl(lib.es5.d.ts, --, --)) + + nested: Preloaded; +>nested : Symbol(nested, Decl(varianceCircularConsistency.ts, 13, 67)) +>Preloaded : Symbol(Preloaded, Decl(varianceCircularConsistency.ts, 11, 5)) +>Nested : Symbol(Nested, Decl(varianceCircularConsistency.ts, 13, 24)) + + queries: Queries; +>queries : Symbol(queries, Decl(varianceCircularConsistency.ts, 14, 30)) +>Queries : Symbol(Queries, Decl(varianceCircularConsistency.ts, 13, 16)) + +}> {} +type EntryPointComponent, Nested, Runtime, Extra = {}> = Component>; +>EntryPointComponent : Symbol(EntryPointComponent, Decl(varianceCircularConsistency.ts, 16, 5)) +>Queries : Symbol(Queries, Decl(varianceCircularConsistency.ts, 17, 25)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>Query : Symbol(Query, Decl(varianceCircularConsistency.ts, 0, 0)) +>Nested : Symbol(Nested, Decl(varianceCircularConsistency.ts, 17, 63)) +>Runtime : Symbol(Runtime, Decl(varianceCircularConsistency.ts, 17, 71)) +>Extra : Symbol(Extra, Decl(varianceCircularConsistency.ts, 17, 80)) +>Component : Symbol(Component, Decl(varianceCircularConsistency.ts, 4, 18)) +>Props : Symbol(Props, Decl(varianceCircularConsistency.ts, 12, 129)) +>Queries : Symbol(Queries, Decl(varianceCircularConsistency.ts, 17, 25)) +>Nested : Symbol(Nested, Decl(varianceCircularConsistency.ts, 17, 63)) +>Runtime : Symbol(Runtime, Decl(varianceCircularConsistency.ts, 17, 71)) +>Extra : Symbol(Extra, Decl(varianceCircularConsistency.ts, 17, 80)) + +type Unwrap = C extends EntryPointComponent ? Readonly<{}> : {}; +>Unwrap : Symbol(Unwrap, Decl(varianceCircularConsistency.ts, 17, 145)) +>C : Symbol(C, Decl(varianceCircularConsistency.ts, 18, 12)) +>C : Symbol(C, Decl(varianceCircularConsistency.ts, 18, 12)) +>EntryPointComponent : Symbol(EntryPointComponent, Decl(varianceCircularConsistency.ts, 16, 5)) +>Q : Symbol(Q, Decl(varianceCircularConsistency.ts, 18, 52)) +>N : Symbol(N, Decl(varianceCircularConsistency.ts, 18, 61)) +>R : Symbol(R, Decl(varianceCircularConsistency.ts, 18, 70)) +>Readonly : Symbol(Readonly, Decl(lib.es5.d.ts, --, --)) + +type EntryPoint = Rep ? Q : never, never, never, never>; +>EntryPoint : Symbol(EntryPoint, Decl(varianceCircularConsistency.ts, 18, 94)) +>C : Symbol(C, Decl(varianceCircularConsistency.ts, 19, 16)) +>Params : Symbol(Params, Decl(varianceCircularConsistency.ts, 19, 18)) +>Rep : Symbol(Rep, Decl(varianceCircularConsistency.ts, 8, 1)) +>Params : Symbol(Params, Decl(varianceCircularConsistency.ts, 19, 18)) +>C : Symbol(C, Decl(varianceCircularConsistency.ts, 19, 16)) +>EntryPointComponent : Symbol(EntryPointComponent, Decl(varianceCircularConsistency.ts, 16, 5)) +>Q : Symbol(Q, Decl(varianceCircularConsistency.ts, 19, 76)) +>Q : Symbol(Q, Decl(varianceCircularConsistency.ts, 19, 76)) + +type GetComponent = T extends EntryPoint ? C : never; +>GetComponent : Symbol(GetComponent, Decl(varianceCircularConsistency.ts, 19, 124)) +>T : Symbol(T, Decl(varianceCircularConsistency.ts, 20, 18)) +>T : Symbol(T, Decl(varianceCircularConsistency.ts, 20, 18)) +>EntryPoint : Symbol(EntryPoint, Decl(varianceCircularConsistency.ts, 18, 94)) +>C : Symbol(C, Decl(varianceCircularConsistency.ts, 20, 49)) +>P : Symbol(P, Decl(varianceCircularConsistency.ts, 20, 58)) +>C : Symbol(C, Decl(varianceCircularConsistency.ts, 20, 49)) + +declare const c: EntryPointComponent<{ q: { readonly variables: { slug: string } } }, {}, { onClick: () => void }>; +>c : Symbol(c, Decl(varianceCircularConsistency.ts, 22, 13)) +>EntryPointComponent : Symbol(EntryPointComponent, Decl(varianceCircularConsistency.ts, 16, 5)) +>q : Symbol(q, Decl(varianceCircularConsistency.ts, 22, 38)) +>variables : Symbol(variables, Decl(varianceCircularConsistency.ts, 22, 43)) +>slug : Symbol(slug, Decl(varianceCircularConsistency.ts, 22, 65)) +>onClick : Symbol(onClick, Decl(varianceCircularConsistency.ts, 22, 91)) + +declare const e: EntryPoint; +>e : Symbol(e, Decl(varianceCircularConsistency.ts, 23, 13)) +>EntryPoint : Symbol(EntryPoint, Decl(varianceCircularConsistency.ts, 18, 94)) +>c : Symbol(c, Decl(varianceCircularConsistency.ts, 22, 13)) +>slug : Symbol(slug, Decl(varianceCircularConsistency.ts, 23, 39)) + +const whole: EntryPoint = e; +>whole : Symbol(whole, Decl(varianceCircularConsistency.ts, 24, 5)) +>EntryPoint : Symbol(EntryPoint, Decl(varianceCircularConsistency.ts, 18, 94)) +>e : Symbol(e, Decl(varianceCircularConsistency.ts, 23, 13)) + +const root: EntryPoint["root"] = e.root; +>root : Symbol(root, Decl(varianceCircularConsistency.ts, 25, 5)) +>EntryPoint : Symbol(EntryPoint, Decl(varianceCircularConsistency.ts, 18, 94)) +>e.root : Symbol(root, Decl(varianceCircularConsistency.ts, 9, 103)) +>e : Symbol(e, Decl(varianceCircularConsistency.ts, 23, 13)) +>root : Symbol(root, Decl(varianceCircularConsistency.ts, 9, 103)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.types b/tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.types new file mode 100644 index 0000000000000..28c105bfea8f1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularConsistency.types @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/varianceCircularConsistency.ts] //// + +=== varianceCircularConsistency.ts === +// Variances of these mutually recursive generics must not depend on values +// measured mid-cycle. Assigning `e` to `EntryPoint` must agree with +// assigning `e.root` to `EntryPoint["root"]`. + +interface Query {} +type Component

= P | ((props: P) => void); +>Component : Component

+>props : P + +interface Ref { + value: T; +>value : T +} +interface Rep, Nested, Runtime, Extra> extends Readonly<{ + root: Ref>; +>root : Ref> + +}> {} +type Preloaded = T extends Record> ? { [K in keyof T]: Unwrap> } : never; +>Preloaded : Preloaded + +interface Props extends Readonly<{ + nested: Preloaded; +>nested : Preloaded + + queries: Queries; +>queries : Queries + +}> {} +type EntryPointComponent, Nested, Runtime, Extra = {}> = Component>; +>EntryPointComponent : EntryPointComponent + +type Unwrap = C extends EntryPointComponent ? Readonly<{}> : {}; +>Unwrap : Unwrap + +type EntryPoint = Rep ? Q : never, never, never, never>; +>EntryPoint : EntryPoint + +type GetComponent = T extends EntryPoint ? C : never; +>GetComponent : GetComponent + +declare const c: EntryPointComponent<{ q: { readonly variables: { slug: string } } }, {}, { onClick: () => void }>; +>c : EntryPointComponent<{ q: { readonly variables: { slug: string; }; }; }, {}, { onClick: () => void; }, {}> +>q : { readonly variables: { slug: string; }; } +>variables : { slug: string; } +>slug : string +>onClick : () => void + +declare const e: EntryPoint; +>e : EntryPoint void; }, {}>, { slug: string; }> +>c : EntryPointComponent<{ q: { readonly variables: { slug: string; }; }; }, {}, { onClick: () => void; }, {}> +>slug : string + +const whole: EntryPoint = e; +>whole : EntryPoint +>e : EntryPoint void; }, {}>, { slug: string; }> + +const root: EntryPoint["root"] = e.root; +>root : Ref, never, never, {}>> +>e.root : Ref> +>e : EntryPoint void; }, {}>, { slug: string; }> +>root : Ref> + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=default).symbols new file mode 100644 index 0000000000000..7768a5de8fd45 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=default).symbols @@ -0,0 +1,129 @@ +//// [tests/cases/compiler/varianceCircularityEnteredByInference.ts] //// + +=== varianceCircularityEnteredByInference.ts === +// AstObject and AstValue form a variance circularity. AstValue is covariant +// in T through typeBrand, and AstObject reaches it through getValue, so +// AstObject is not assignable to AstObject and the +// call below must be an error. Checking getValue first infers the type +// arguments of `new AstValue` from its return type, which measures AstValue +// first; AstObject, measured inside it, then sees T only in references to +// the types in progress, and main recorded it as independent of T and +// accepted the call. Main reports the error when AstObject's variance is +// measured first. + +export {}; + +type ObjectType = T extends object ? T : never; +>ObjectType : Symbol(ObjectType, Decl(varianceCircularityEnteredByInference.ts, 10, 10)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 12, 16)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 12, 16)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 12, 16)) + +class AstObject { +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 14, 33)) + + constructor(private host: E) {} +>host : Symbol(AstObject.host, Decl(varianceCircularityEnteredByInference.ts, 15, 16)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 14, 33)) + + getObject(key: K): AstObject, E> { +>getObject : Symbol(AstObject.getObject, Decl(varianceCircularityEnteredByInference.ts, 15, 35)) +>K : Symbol(K, Decl(varianceCircularityEnteredByInference.ts, 17, 14)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>key : Symbol(key, Decl(varianceCircularityEnteredByInference.ts, 17, 42)) +>K : Symbol(K, Decl(varianceCircularityEnteredByInference.ts, 17, 14)) +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>ObjectType : Symbol(ObjectType, Decl(varianceCircularityEnteredByInference.ts, 10, 10)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 14, 33)) + + return new AstObject, E>(this.host); +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>ObjectType : Symbol(ObjectType, Decl(varianceCircularityEnteredByInference.ts, 10, 10)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 14, 33)) +>this.host : Symbol(AstObject.host, Decl(varianceCircularityEnteredByInference.ts, 15, 16)) +>this : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>host : Symbol(AstObject.host, Decl(varianceCircularityEnteredByInference.ts, 15, 16)) + } + + getValue(key: K): AstValue { +>getValue : Symbol(AstObject.getValue, Decl(varianceCircularityEnteredByInference.ts, 19, 5)) +>K : Symbol(K, Decl(varianceCircularityEnteredByInference.ts, 21, 13)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>key : Symbol(key, Decl(varianceCircularityEnteredByInference.ts, 21, 41)) +>K : Symbol(K, Decl(varianceCircularityEnteredByInference.ts, 21, 13)) +>AstValue : Symbol(AstValue, Decl(varianceCircularityEnteredByInference.ts, 24, 1)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>K : Symbol(K, Decl(varianceCircularityEnteredByInference.ts, 21, 13)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 14, 33)) + + return new AstValue(this.host); +>AstValue : Symbol(AstValue, Decl(varianceCircularityEnteredByInference.ts, 24, 1)) +>this.host : Symbol(AstObject.host, Decl(varianceCircularityEnteredByInference.ts, 15, 16)) +>this : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>host : Symbol(AstObject.host, Decl(varianceCircularityEnteredByInference.ts, 15, 16)) + } +} + +class AstValue { +>AstValue : Symbol(AstValue, Decl(varianceCircularityEnteredByInference.ts, 24, 1)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 26, 15)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 26, 17)) + + declare typeBrand: T; +>typeBrand : Symbol(AstValue.typeBrand, Decl(varianceCircularityEnteredByInference.ts, 26, 22)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 26, 15)) + + constructor(private host: E) {} +>host : Symbol(AstValue.host, Decl(varianceCircularityEnteredByInference.ts, 29, 16)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 26, 17)) + + getObject(): AstObject, E> { +>getObject : Symbol(AstValue.getObject, Decl(varianceCircularityEnteredByInference.ts, 29, 35)) +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>ObjectType : Symbol(ObjectType, Decl(varianceCircularityEnteredByInference.ts, 10, 10)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 26, 15)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 26, 17)) + + return new AstObject(this.host); +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>this.host : Symbol(AstValue.host, Decl(varianceCircularityEnteredByInference.ts, 29, 16)) +>this : Symbol(AstValue, Decl(varianceCircularityEnteredByInference.ts, 24, 1)) +>host : Symbol(AstValue.host, Decl(varianceCircularityEnteredByInference.ts, 29, 16)) + } +} + +interface Empty {} +>Empty : Symbol(Empty, Decl(varianceCircularityEnteredByInference.ts, 34, 1)) + +interface WithDecorators { +>WithDecorators : Symbol(WithDecorators, Decl(varianceCircularityEnteredByInference.ts, 36, 18)) + + decorators: string; +>decorators : Symbol(WithDecorators.decorators, Decl(varianceCircularityEnteredByInference.ts, 37, 26)) +} + +declare function useDerived(obj: AstObject): void; +>useDerived : Symbol(useDerived, Decl(varianceCircularityEnteredByInference.ts, 39, 1)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 41, 28)) +>obj : Symbol(obj, Decl(varianceCircularityEnteredByInference.ts, 41, 31)) +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>WithDecorators : Symbol(WithDecorators, Decl(varianceCircularityEnteredByInference.ts, 36, 18)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 41, 28)) + +function useBase(obj: AstObject) { +>useBase : Symbol(useBase, Decl(varianceCircularityEnteredByInference.ts, 41, 72)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 43, 17)) +>obj : Symbol(obj, Decl(varianceCircularityEnteredByInference.ts, 43, 20)) +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>Empty : Symbol(Empty, Decl(varianceCircularityEnteredByInference.ts, 34, 1)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 43, 17)) + + useDerived(obj); +>useDerived : Symbol(useDerived, Decl(varianceCircularityEnteredByInference.ts, 39, 1)) +>obj : Symbol(obj, Decl(varianceCircularityEnteredByInference.ts, 43, 20)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=default).types new file mode 100644 index 0000000000000..264ad82ecb3f7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=default).types @@ -0,0 +1,90 @@ +//// [tests/cases/compiler/varianceCircularityEnteredByInference.ts] //// + +=== varianceCircularityEnteredByInference.ts === +// AstObject and AstValue form a variance circularity. AstValue is covariant +// in T through typeBrand, and AstObject reaches it through getValue, so +// AstObject is not assignable to AstObject and the +// call below must be an error. Checking getValue first infers the type +// arguments of `new AstValue` from its return type, which measures AstValue +// first; AstObject, measured inside it, then sees T only in references to +// the types in progress, and main recorded it as independent of T and +// accepted the call. Main reports the error when AstObject's variance is +// measured first. + +export {}; + +type ObjectType = T extends object ? T : never; +>ObjectType : ObjectType + +class AstObject { +>AstObject : AstObject + + constructor(private host: E) {} +>host : E + + getObject(key: K): AstObject, E> { +>getObject : (key: K) => AstObject, E> +>key : K + + return new AstObject, E>(this.host); +>new AstObject, E>(this.host) : AstObject, E> +>AstObject : typeof AstObject +>this.host : E +>this : this +>host : E + } + + getValue(key: K): AstValue { +>getValue : (key: K) => AstValue +>key : K + + return new AstValue(this.host); +>new AstValue(this.host) : AstValue +>AstValue : typeof AstValue +>this.host : E +>this : this +>host : E + } +} + +class AstValue { +>AstValue : AstValue + + declare typeBrand: T; +>typeBrand : T + + constructor(private host: E) {} +>host : E + + getObject(): AstObject, E> { +>getObject : () => AstObject, E> + + return new AstObject(this.host); +>new AstObject(this.host) : AstObject, E> +>AstObject : typeof AstObject +>this.host : E +>this : this +>host : E + } +} + +interface Empty {} +interface WithDecorators { + decorators: string; +>decorators : string +} + +declare function useDerived(obj: AstObject): void; +>useDerived : (obj: AstObject) => void +>obj : AstObject + +function useBase(obj: AstObject) { +>useBase : (obj: AstObject) => void +>obj : AstObject + + useDerived(obj); +>useDerived(obj) : void +>useDerived : (obj: AstObject) => void +>obj : AstObject +} + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..4a1acaffb8ffb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).errors.txt @@ -0,0 +1,56 @@ +varianceCircularityEnteredByInference.ts(45,16): error TS2345: Argument of type 'AstObject' is not assignable to parameter of type 'AstObject'. + Property 'decorators' is missing in type 'Empty' but required in type 'WithDecorators'. + + +==== varianceCircularityEnteredByInference.ts (1 errors) ==== + // AstObject and AstValue form a variance circularity. AstValue is covariant + // in T through typeBrand, and AstObject reaches it through getValue, so + // AstObject is not assignable to AstObject and the + // call below must be an error. Checking getValue first infers the type + // arguments of `new AstValue` from its return type, which measures AstValue + // first; AstObject, measured inside it, then sees T only in references to + // the types in progress, and main recorded it as independent of T and + // accepted the call. Main reports the error when AstObject's variance is + // measured first. + + export {}; + + type ObjectType = T extends object ? T : never; + + class AstObject { + constructor(private host: E) {} + + getObject(key: K): AstObject, E> { + return new AstObject, E>(this.host); + } + + getValue(key: K): AstValue { + return new AstValue(this.host); + } + } + + class AstValue { + declare typeBrand: T; + + constructor(private host: E) {} + + getObject(): AstObject, E> { + return new AstObject(this.host); + } + } + + interface Empty {} + interface WithDecorators { + decorators: string; + } + + declare function useDerived(obj: AstObject): void; + + function useBase(obj: AstObject) { + useDerived(obj); + ~~~ +!!! error TS2345: Argument of type 'AstObject' is not assignable to parameter of type 'AstObject'. +!!! error TS2345: Property 'decorators' is missing in type 'Empty' but required in type 'WithDecorators'. +!!! related TS2728 varianceCircularityEnteredByInference.ts:39:5: 'decorators' is declared here. + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..7768a5de8fd45 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).symbols @@ -0,0 +1,129 @@ +//// [tests/cases/compiler/varianceCircularityEnteredByInference.ts] //// + +=== varianceCircularityEnteredByInference.ts === +// AstObject and AstValue form a variance circularity. AstValue is covariant +// in T through typeBrand, and AstObject reaches it through getValue, so +// AstObject is not assignable to AstObject and the +// call below must be an error. Checking getValue first infers the type +// arguments of `new AstValue` from its return type, which measures AstValue +// first; AstObject, measured inside it, then sees T only in references to +// the types in progress, and main recorded it as independent of T and +// accepted the call. Main reports the error when AstObject's variance is +// measured first. + +export {}; + +type ObjectType = T extends object ? T : never; +>ObjectType : Symbol(ObjectType, Decl(varianceCircularityEnteredByInference.ts, 10, 10)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 12, 16)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 12, 16)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 12, 16)) + +class AstObject { +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 14, 33)) + + constructor(private host: E) {} +>host : Symbol(AstObject.host, Decl(varianceCircularityEnteredByInference.ts, 15, 16)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 14, 33)) + + getObject(key: K): AstObject, E> { +>getObject : Symbol(AstObject.getObject, Decl(varianceCircularityEnteredByInference.ts, 15, 35)) +>K : Symbol(K, Decl(varianceCircularityEnteredByInference.ts, 17, 14)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>key : Symbol(key, Decl(varianceCircularityEnteredByInference.ts, 17, 42)) +>K : Symbol(K, Decl(varianceCircularityEnteredByInference.ts, 17, 14)) +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>ObjectType : Symbol(ObjectType, Decl(varianceCircularityEnteredByInference.ts, 10, 10)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 14, 33)) + + return new AstObject, E>(this.host); +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>ObjectType : Symbol(ObjectType, Decl(varianceCircularityEnteredByInference.ts, 10, 10)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 14, 33)) +>this.host : Symbol(AstObject.host, Decl(varianceCircularityEnteredByInference.ts, 15, 16)) +>this : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>host : Symbol(AstObject.host, Decl(varianceCircularityEnteredByInference.ts, 15, 16)) + } + + getValue(key: K): AstValue { +>getValue : Symbol(AstObject.getValue, Decl(varianceCircularityEnteredByInference.ts, 19, 5)) +>K : Symbol(K, Decl(varianceCircularityEnteredByInference.ts, 21, 13)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>key : Symbol(key, Decl(varianceCircularityEnteredByInference.ts, 21, 41)) +>K : Symbol(K, Decl(varianceCircularityEnteredByInference.ts, 21, 13)) +>AstValue : Symbol(AstValue, Decl(varianceCircularityEnteredByInference.ts, 24, 1)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 14, 16)) +>K : Symbol(K, Decl(varianceCircularityEnteredByInference.ts, 21, 13)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 14, 33)) + + return new AstValue(this.host); +>AstValue : Symbol(AstValue, Decl(varianceCircularityEnteredByInference.ts, 24, 1)) +>this.host : Symbol(AstObject.host, Decl(varianceCircularityEnteredByInference.ts, 15, 16)) +>this : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>host : Symbol(AstObject.host, Decl(varianceCircularityEnteredByInference.ts, 15, 16)) + } +} + +class AstValue { +>AstValue : Symbol(AstValue, Decl(varianceCircularityEnteredByInference.ts, 24, 1)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 26, 15)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 26, 17)) + + declare typeBrand: T; +>typeBrand : Symbol(AstValue.typeBrand, Decl(varianceCircularityEnteredByInference.ts, 26, 22)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 26, 15)) + + constructor(private host: E) {} +>host : Symbol(AstValue.host, Decl(varianceCircularityEnteredByInference.ts, 29, 16)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 26, 17)) + + getObject(): AstObject, E> { +>getObject : Symbol(AstValue.getObject, Decl(varianceCircularityEnteredByInference.ts, 29, 35)) +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>ObjectType : Symbol(ObjectType, Decl(varianceCircularityEnteredByInference.ts, 10, 10)) +>T : Symbol(T, Decl(varianceCircularityEnteredByInference.ts, 26, 15)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 26, 17)) + + return new AstObject(this.host); +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>this.host : Symbol(AstValue.host, Decl(varianceCircularityEnteredByInference.ts, 29, 16)) +>this : Symbol(AstValue, Decl(varianceCircularityEnteredByInference.ts, 24, 1)) +>host : Symbol(AstValue.host, Decl(varianceCircularityEnteredByInference.ts, 29, 16)) + } +} + +interface Empty {} +>Empty : Symbol(Empty, Decl(varianceCircularityEnteredByInference.ts, 34, 1)) + +interface WithDecorators { +>WithDecorators : Symbol(WithDecorators, Decl(varianceCircularityEnteredByInference.ts, 36, 18)) + + decorators: string; +>decorators : Symbol(WithDecorators.decorators, Decl(varianceCircularityEnteredByInference.ts, 37, 26)) +} + +declare function useDerived(obj: AstObject): void; +>useDerived : Symbol(useDerived, Decl(varianceCircularityEnteredByInference.ts, 39, 1)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 41, 28)) +>obj : Symbol(obj, Decl(varianceCircularityEnteredByInference.ts, 41, 31)) +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>WithDecorators : Symbol(WithDecorators, Decl(varianceCircularityEnteredByInference.ts, 36, 18)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 41, 28)) + +function useBase(obj: AstObject) { +>useBase : Symbol(useBase, Decl(varianceCircularityEnteredByInference.ts, 41, 72)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 43, 17)) +>obj : Symbol(obj, Decl(varianceCircularityEnteredByInference.ts, 43, 20)) +>AstObject : Symbol(AstObject, Decl(varianceCircularityEnteredByInference.ts, 12, 50)) +>Empty : Symbol(Empty, Decl(varianceCircularityEnteredByInference.ts, 34, 1)) +>E : Symbol(E, Decl(varianceCircularityEnteredByInference.ts, 43, 17)) + + useDerived(obj); +>useDerived : Symbol(useDerived, Decl(varianceCircularityEnteredByInference.ts, 39, 1)) +>obj : Symbol(obj, Decl(varianceCircularityEnteredByInference.ts, 43, 20)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).types new file mode 100644 index 0000000000000..264ad82ecb3f7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularityEnteredByInference(checkorder=typesfirst).types @@ -0,0 +1,90 @@ +//// [tests/cases/compiler/varianceCircularityEnteredByInference.ts] //// + +=== varianceCircularityEnteredByInference.ts === +// AstObject and AstValue form a variance circularity. AstValue is covariant +// in T through typeBrand, and AstObject reaches it through getValue, so +// AstObject is not assignable to AstObject and the +// call below must be an error. Checking getValue first infers the type +// arguments of `new AstValue` from its return type, which measures AstValue +// first; AstObject, measured inside it, then sees T only in references to +// the types in progress, and main recorded it as independent of T and +// accepted the call. Main reports the error when AstObject's variance is +// measured first. + +export {}; + +type ObjectType = T extends object ? T : never; +>ObjectType : ObjectType + +class AstObject { +>AstObject : AstObject + + constructor(private host: E) {} +>host : E + + getObject(key: K): AstObject, E> { +>getObject : (key: K) => AstObject, E> +>key : K + + return new AstObject, E>(this.host); +>new AstObject, E>(this.host) : AstObject, E> +>AstObject : typeof AstObject +>this.host : E +>this : this +>host : E + } + + getValue(key: K): AstValue { +>getValue : (key: K) => AstValue +>key : K + + return new AstValue(this.host); +>new AstValue(this.host) : AstValue +>AstValue : typeof AstValue +>this.host : E +>this : this +>host : E + } +} + +class AstValue { +>AstValue : AstValue + + declare typeBrand: T; +>typeBrand : T + + constructor(private host: E) {} +>host : E + + getObject(): AstObject, E> { +>getObject : () => AstObject, E> + + return new AstObject(this.host); +>new AstObject(this.host) : AstObject, E> +>AstObject : typeof AstObject +>this.host : E +>this : this +>host : E + } +} + +interface Empty {} +interface WithDecorators { + decorators: string; +>decorators : string +} + +declare function useDerived(obj: AstObject): void; +>useDerived : (obj: AstObject) => void +>obj : AstObject + +function useBase(obj: AstObject) { +>useBase : (obj: AstObject) => void +>obj : AstObject + + useDerived(obj); +>useDerived(obj) : void +>useDerived : (obj: AstObject) => void +>obj : AstObject +} + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=default).symbols new file mode 100644 index 0000000000000..9d8fa95ef18da --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=default).symbols @@ -0,0 +1,279 @@ +//// [tests/cases/compiler/varianceCircularityHidesInvariance.ts] //// + +=== varianceCircularityHidesInvariance.ts === +// Reduced from chart.js typings (PeerTube, Unleash). Chart, TooltipModel and +// ScriptableContext form a variance circularity. ScriptableContext is in +// fact invariant: ScriptableContext<"bar" | "line"> is not assignable to +// ScriptableContext<"bar"> ('dataset.data' differs), so Chart<"bar"> is not +// assignable to Chart and the assignment below must be an error. +// Measuring variances from the circularity's entry, main recorded +// ScriptableContext/TooltipModel as bivariant (measured mid-cycle) and +// accepted it; main reports this error too when ScriptableContext's variance +// is measured first (e.g. after checking a ScriptableContext assignment). + +declare class Element { options: O } +>Element : Symbol(Element, Decl(varianceCircularityHidesInvariance.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 10, 22)) +>O : Symbol(O, Decl(varianceCircularityHidesInvariance.ts, 10, 24)) +>options : Symbol(Element.options, Decl(varianceCircularityHidesInvariance.ts, 10, 29)) +>O : Symbol(O, Decl(varianceCircularityHidesInvariance.ts, 10, 24)) + +type DeepPartial = T extends Function ? T : T extends object ? _DeepPartialObject : undefined +>DeepPartial : Symbol(DeepPartial, Decl(varianceCircularityHidesInvariance.ts, 10, 42)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 11, 17)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 11, 17)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.esnext.decorators.d.ts, --, --)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 11, 17)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 11, 17)) +>_DeepPartialObject : Symbol(_DeepPartialObject, Decl(varianceCircularityHidesInvariance.ts, 11, 99)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 11, 17)) + +type _DeepPartialObject = { [P in keyof T]?: DeepPartial } +>_DeepPartialObject : Symbol(_DeepPartialObject, Decl(varianceCircularityHidesInvariance.ts, 11, 99)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 12, 24)) +>P : Symbol(P, Decl(varianceCircularityHidesInvariance.ts, 12, 32)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 12, 24)) +>DeepPartial : Symbol(DeepPartial, Decl(varianceCircularityHidesInvariance.ts, 10, 42)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 12, 24)) +>P : Symbol(P, Decl(varianceCircularityHidesInvariance.ts, 12, 32)) + +type UnionToIntersection = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never +>UnionToIntersection : Symbol(UnionToIntersection, Decl(varianceCircularityHidesInvariance.ts, 12, 67)) +>U : Symbol(U, Decl(varianceCircularityHidesInvariance.ts, 13, 25)) +>U : Symbol(U, Decl(varianceCircularityHidesInvariance.ts, 13, 25)) +>k : Symbol(k, Decl(varianceCircularityHidesInvariance.ts, 13, 52)) +>U : Symbol(U, Decl(varianceCircularityHidesInvariance.ts, 13, 25)) +>k : Symbol(k, Decl(varianceCircularityHidesInvariance.ts, 13, 84)) +>I : Symbol(I, Decl(varianceCircularityHidesInvariance.ts, 13, 92)) +>I : Symbol(I, Decl(varianceCircularityHidesInvariance.ts, 13, 92)) + +type AnyObject = Record +>AnyObject : Symbol(AnyObject, Decl(varianceCircularityHidesInvariance.ts, 13, 115)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) + +interface ScriptableContext { +>ScriptableContext : Symbol(ScriptableContext, Decl(varianceCircularityHidesInvariance.ts, 14, 36)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 15, 28)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + dataset: UnionToIntersection> +>dataset : Symbol(ScriptableContext.dataset, Decl(varianceCircularityHidesInvariance.ts, 15, 54)) +>UnionToIntersection : Symbol(UnionToIntersection, Decl(varianceCircularityHidesInvariance.ts, 12, 67)) +>ChartDataset : Symbol(ChartDataset, Decl(varianceCircularityHidesInvariance.ts, 56, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 15, 28)) +} +type Scriptable = (ctx: TContext) => T +>Scriptable : Symbol(Scriptable, Decl(varianceCircularityHidesInvariance.ts, 17, 1)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 18, 16)) +>TContext : Symbol(TContext, Decl(varianceCircularityHidesInvariance.ts, 18, 18)) +>ctx : Symbol(ctx, Decl(varianceCircularityHidesInvariance.ts, 18, 32)) +>TContext : Symbol(TContext, Decl(varianceCircularityHidesInvariance.ts, 18, 18)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 18, 16)) + +declare class Chart { +>Chart : Symbol(Chart, Decl(varianceCircularityHidesInvariance.ts, 18, 51)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 19, 20)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>TData : Symbol(TData, Decl(varianceCircularityHidesInvariance.ts, 19, 56)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 19, 20)) + + config: ChartConfigurationCustomTypesPerDataset +>config : Symbol(Chart.config, Decl(varianceCircularityHidesInvariance.ts, 19, 73)) +>ChartConfigurationCustomTypesPerDataset : Symbol(ChartConfigurationCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 62, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 19, 20)) +} +interface Plugin { +>Plugin : Symbol(Plugin, Decl(varianceCircularityHidesInvariance.ts, 21, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 22, 17)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + id: string; +>id : Symbol(Plugin.id, Decl(varianceCircularityHidesInvariance.ts, 22, 43)) + + beforeDraw(chart: Chart): void +>beforeDraw : Symbol(Plugin.beforeDraw, Decl(varianceCircularityHidesInvariance.ts, 23, 15)) +>chart : Symbol(chart, Decl(varianceCircularityHidesInvariance.ts, 24, 15)) +>Chart : Symbol(Chart, Decl(varianceCircularityHidesInvariance.ts, 18, 51)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 22, 17)) +} +interface CoreChartOptions { +>CoreChartOptions : Symbol(CoreChartOptions, Decl(varianceCircularityHidesInvariance.ts, 25, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 26, 27)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + backgroundColor: Scriptable> +>backgroundColor : Symbol(CoreChartOptions.backgroundColor, Decl(varianceCircularityHidesInvariance.ts, 26, 53)) +>Scriptable : Symbol(Scriptable, Decl(varianceCircularityHidesInvariance.ts, 17, 1)) +>ScriptableContext : Symbol(ScriptableContext, Decl(varianceCircularityHidesInvariance.ts, 14, 36)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 26, 27)) +} +interface AnimationSpec { +>AnimationSpec : Symbol(AnimationSpec, Decl(varianceCircularityHidesInvariance.ts, 28, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 29, 24)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + delay: Scriptable> +>delay : Symbol(AnimationSpec.delay, Decl(varianceCircularityHidesInvariance.ts, 29, 50)) +>Scriptable : Symbol(Scriptable, Decl(varianceCircularityHidesInvariance.ts, 17, 1)) +>ScriptableContext : Symbol(ScriptableContext, Decl(varianceCircularityHidesInvariance.ts, 14, 36)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 29, 24)) +} +interface TooltipModel extends Element> { +>TooltipModel : Symbol(TooltipModel, Decl(varianceCircularityHidesInvariance.ts, 31, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 32, 23)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>Element : Symbol(Element, Decl(varianceCircularityHidesInvariance.ts, 0, 0)) +>AnyObject : Symbol(AnyObject, Decl(varianceCircularityHidesInvariance.ts, 13, 115)) +>TooltipOptions : Symbol(TooltipOptions, Decl(varianceCircularityHidesInvariance.ts, 37, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 32, 23)) + + chart: Chart +>chart : Symbol(TooltipModel.chart, Decl(varianceCircularityHidesInvariance.ts, 32, 99)) +>Chart : Symbol(Chart, Decl(varianceCircularityHidesInvariance.ts, 18, 51)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 32, 23)) +} +interface TooltipDatasetCallbacks> { +>TooltipDatasetCallbacks : Symbol(TooltipDatasetCallbacks, Decl(varianceCircularityHidesInvariance.ts, 34, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 35, 34)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>Model : Symbol(Model, Decl(varianceCircularityHidesInvariance.ts, 35, 58)) +>TooltipModel : Symbol(TooltipModel, Decl(varianceCircularityHidesInvariance.ts, 31, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 35, 34)) + + (this: Model): void +>this : Symbol(this, Decl(varianceCircularityHidesInvariance.ts, 36, 5)) +>Model : Symbol(Model, Decl(varianceCircularityHidesInvariance.ts, 35, 58)) +} +interface TooltipOptions { +>TooltipOptions : Symbol(TooltipOptions, Decl(varianceCircularityHidesInvariance.ts, 37, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 38, 25)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + animation: AnimationSpec +>animation : Symbol(TooltipOptions.animation, Decl(varianceCircularityHidesInvariance.ts, 38, 51)) +>AnimationSpec : Symbol(AnimationSpec, Decl(varianceCircularityHidesInvariance.ts, 28, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 38, 25)) +} +interface TooltipDatasetOptions { +>TooltipDatasetOptions : Symbol(TooltipDatasetOptions, Decl(varianceCircularityHidesInvariance.ts, 40, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 41, 32)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + callbacks: TooltipDatasetCallbacks +>callbacks : Symbol(TooltipDatasetOptions.callbacks, Decl(varianceCircularityHidesInvariance.ts, 41, 58)) +>TooltipDatasetCallbacks : Symbol(TooltipDatasetCallbacks, Decl(varianceCircularityHidesInvariance.ts, 34, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 41, 32)) +} +interface PluginDatasetOptionsByType { +>PluginDatasetOptionsByType : Symbol(PluginDatasetOptionsByType, Decl(varianceCircularityHidesInvariance.ts, 43, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 44, 37)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + tooltip: TooltipDatasetOptions +>tooltip : Symbol(PluginDatasetOptionsByType.tooltip, Decl(varianceCircularityHidesInvariance.ts, 44, 63)) +>TooltipDatasetOptions : Symbol(TooltipDatasetOptions, Decl(varianceCircularityHidesInvariance.ts, 40, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 44, 37)) +} +interface ChartTypeRegistry { +>ChartTypeRegistry : Symbol(ChartTypeRegistry, Decl(varianceCircularityHidesInvariance.ts, 46, 1)) + + bar: { defaultDataPoint: [] } +>bar : Symbol(ChartTypeRegistry.bar, Decl(varianceCircularityHidesInvariance.ts, 47, 29)) +>defaultDataPoint : Symbol(defaultDataPoint, Decl(varianceCircularityHidesInvariance.ts, 48, 10)) + + line: { defaultDataPoint: null } +>line : Symbol(ChartTypeRegistry.line, Decl(varianceCircularityHidesInvariance.ts, 48, 33)) +>defaultDataPoint : Symbol(defaultDataPoint, Decl(varianceCircularityHidesInvariance.ts, 49, 11)) +} +type ChartType = keyof ChartTypeRegistry +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>ChartTypeRegistry : Symbol(ChartTypeRegistry, Decl(varianceCircularityHidesInvariance.ts, 46, 1)) + +type DatasetChartOptions = { [key in TType]: {} } +>DatasetChartOptions : Symbol(DatasetChartOptions, Decl(varianceCircularityHidesInvariance.ts, 51, 40)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 52, 25)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>key : Symbol(key, Decl(varianceCircularityHidesInvariance.ts, 52, 55)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 52, 25)) + +type ChartOptions = Exclude & DatasetChartOptions & TType>, undefined> +>ChartOptions : Symbol(ChartOptions, Decl(varianceCircularityHidesInvariance.ts, 52, 74)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 53, 18)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>Exclude : Symbol(Exclude, Decl(lib.es5.d.ts, --, --)) +>DeepPartial : Symbol(DeepPartial, Decl(varianceCircularityHidesInvariance.ts, 10, 42)) +>CoreChartOptions : Symbol(CoreChartOptions, Decl(varianceCircularityHidesInvariance.ts, 25, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 53, 18)) +>DatasetChartOptions : Symbol(DatasetChartOptions, Decl(varianceCircularityHidesInvariance.ts, 51, 40)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 53, 18)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 53, 18)) + +interface ChartDatasetProperties { +>ChartDatasetProperties : Symbol(ChartDatasetProperties, Decl(varianceCircularityHidesInvariance.ts, 53, 138)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 54, 33)) +>TData : Symbol(TData, Decl(varianceCircularityHidesInvariance.ts, 54, 39)) + + data: TData +>data : Symbol(ChartDatasetProperties.data, Decl(varianceCircularityHidesInvariance.ts, 54, 48)) +>TData : Symbol(TData, Decl(varianceCircularityHidesInvariance.ts, 54, 39)) +} +type ChartDataset = +>ChartDataset : Symbol(ChartDataset, Decl(varianceCircularityHidesInvariance.ts, 56, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 57, 18)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>TData : Symbol(TData, Decl(varianceCircularityHidesInvariance.ts, 57, 42)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 57, 18)) + + DeepPartial> & ChartDatasetProperties +>DeepPartial : Symbol(DeepPartial, Decl(varianceCircularityHidesInvariance.ts, 10, 42)) +>ChartTypeRegistry : Symbol(ChartTypeRegistry, Decl(varianceCircularityHidesInvariance.ts, 46, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 57, 18)) +>PluginDatasetOptionsByType : Symbol(PluginDatasetOptionsByType, Decl(varianceCircularityHidesInvariance.ts, 43, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 57, 18)) +>ChartDatasetProperties : Symbol(ChartDatasetProperties, Decl(varianceCircularityHidesInvariance.ts, 53, 138)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 57, 18)) +>TData : Symbol(TData, Decl(varianceCircularityHidesInvariance.ts, 57, 42)) + +type ChartDatasetCustomTypesPerDataset = DeepPartial> +>ChartDatasetCustomTypesPerDataset : Symbol(ChartDatasetCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 58, 116)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 59, 39)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>DeepPartial : Symbol(DeepPartial, Decl(varianceCircularityHidesInvariance.ts, 10, 42)) +>PluginDatasetOptionsByType : Symbol(PluginDatasetOptionsByType, Decl(varianceCircularityHidesInvariance.ts, 43, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 59, 39)) + +interface ChartDataCustomTypesPerDataset { +>ChartDataCustomTypesPerDataset : Symbol(ChartDataCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 59, 112)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 60, 41)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + datasets: ChartDatasetCustomTypesPerDataset +>datasets : Symbol(ChartDataCustomTypesPerDataset.datasets, Decl(varianceCircularityHidesInvariance.ts, 60, 67)) +>ChartDatasetCustomTypesPerDataset : Symbol(ChartDatasetCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 58, 116)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 60, 41)) +} +export interface ChartConfigurationCustomTypesPerDataset { +>ChartConfigurationCustomTypesPerDataset : Symbol(ChartConfigurationCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 62, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 63, 57)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + data: ChartDataCustomTypesPerDataset +>data : Symbol(ChartConfigurationCustomTypesPerDataset.data, Decl(varianceCircularityHidesInvariance.ts, 63, 83)) +>ChartDataCustomTypesPerDataset : Symbol(ChartDataCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 59, 112)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 63, 57)) + + options: ChartOptions +>options : Symbol(ChartConfigurationCustomTypesPerDataset.options, Decl(varianceCircularityHidesInvariance.ts, 64, 47)) +>ChartOptions : Symbol(ChartOptions, Decl(varianceCircularityHidesInvariance.ts, 52, 74)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 63, 57)) +} + +const p: Plugin<"bar"> = { id: "x", beforeDraw: (chart: Chart) => {} }; +>p : Symbol(p, Decl(varianceCircularityHidesInvariance.ts, 68, 5)) +>Plugin : Symbol(Plugin, Decl(varianceCircularityHidesInvariance.ts, 21, 1)) +>id : Symbol(id, Decl(varianceCircularityHidesInvariance.ts, 68, 26)) +>beforeDraw : Symbol(beforeDraw, Decl(varianceCircularityHidesInvariance.ts, 68, 35)) +>chart : Symbol(chart, Decl(varianceCircularityHidesInvariance.ts, 68, 49)) +>Chart : Symbol(Chart, Decl(varianceCircularityHidesInvariance.ts, 18, 51)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=default).types new file mode 100644 index 0000000000000..78c2a7fbee0a8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=default).types @@ -0,0 +1,131 @@ +//// [tests/cases/compiler/varianceCircularityHidesInvariance.ts] //// + +=== varianceCircularityHidesInvariance.ts === +// Reduced from chart.js typings (PeerTube, Unleash). Chart, TooltipModel and +// ScriptableContext form a variance circularity. ScriptableContext is in +// fact invariant: ScriptableContext<"bar" | "line"> is not assignable to +// ScriptableContext<"bar"> ('dataset.data' differs), so Chart<"bar"> is not +// assignable to Chart and the assignment below must be an error. +// Measuring variances from the circularity's entry, main recorded +// ScriptableContext/TooltipModel as bivariant (measured mid-cycle) and +// accepted it; main reports this error too when ScriptableContext's variance +// is measured first (e.g. after checking a ScriptableContext assignment). + +declare class Element { options: O } +>Element : Element +>options : O + +type DeepPartial = T extends Function ? T : T extends object ? _DeepPartialObject : undefined +>DeepPartial : DeepPartial + +type _DeepPartialObject = { [P in keyof T]?: DeepPartial } +>_DeepPartialObject : _DeepPartialObject + +type UnionToIntersection = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never +>UnionToIntersection : UnionToIntersection +>k : U +>k : I + +type AnyObject = Record +>AnyObject : AnyObject + +interface ScriptableContext { + dataset: UnionToIntersection> +>dataset : UnionToIntersection> +} +type Scriptable = (ctx: TContext) => T +>Scriptable : Scriptable +>ctx : TContext + +declare class Chart { +>Chart : Chart + + config: ChartConfigurationCustomTypesPerDataset +>config : ChartConfigurationCustomTypesPerDataset +} +interface Plugin { + id: string; +>id : string + + beforeDraw(chart: Chart): void +>beforeDraw : (chart: Chart) => void +>chart : Chart +} +interface CoreChartOptions { + backgroundColor: Scriptable> +>backgroundColor : Scriptable> +} +interface AnimationSpec { + delay: Scriptable> +>delay : Scriptable> +} +interface TooltipModel extends Element> { + chart: Chart +>chart : Chart +} +interface TooltipDatasetCallbacks> { + (this: Model): void +>this : Model +} +interface TooltipOptions { + animation: AnimationSpec +>animation : AnimationSpec +} +interface TooltipDatasetOptions { + callbacks: TooltipDatasetCallbacks +>callbacks : TooltipDatasetCallbacks> +} +interface PluginDatasetOptionsByType { + tooltip: TooltipDatasetOptions +>tooltip : TooltipDatasetOptions +} +interface ChartTypeRegistry { + bar: { defaultDataPoint: [] } +>bar : { defaultDataPoint: []; } +>defaultDataPoint : [] + + line: { defaultDataPoint: null } +>line : { defaultDataPoint: null; } +>defaultDataPoint : null +} +type ChartType = keyof ChartTypeRegistry +>ChartType : keyof ChartTypeRegistry + +type DatasetChartOptions = { [key in TType]: {} } +>DatasetChartOptions : DatasetChartOptions + +type ChartOptions = Exclude & DatasetChartOptions & TType>, undefined> +>ChartOptions : ChartOptions + +interface ChartDatasetProperties { + data: TData +>data : TData +} +type ChartDataset = +>ChartDataset : ChartDataset + + DeepPartial> & ChartDatasetProperties +type ChartDatasetCustomTypesPerDataset = DeepPartial> +>ChartDatasetCustomTypesPerDataset : _DeepPartialObject> + +interface ChartDataCustomTypesPerDataset { + datasets: ChartDatasetCustomTypesPerDataset +>datasets : _DeepPartialObject> +} +export interface ChartConfigurationCustomTypesPerDataset { + data: ChartDataCustomTypesPerDataset +>data : ChartDataCustomTypesPerDataset + + options: ChartOptions +>options : Exclude & DatasetChartOptions & TType>, undefined> +} + +const p: Plugin<"bar"> = { id: "x", beforeDraw: (chart: Chart) => {} }; +>p : Plugin<"bar"> +>{ id: "x", beforeDraw: (chart: Chart) => {} } : { id: string; beforeDraw: (chart: Chart) => void; } +>id : string +>"x" : "x" +>beforeDraw : (chart: Chart) => void +>(chart: Chart) => {} : (chart: Chart) => void +>chart : Chart + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..9d8fa95ef18da --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=typesfirst).symbols @@ -0,0 +1,279 @@ +//// [tests/cases/compiler/varianceCircularityHidesInvariance.ts] //// + +=== varianceCircularityHidesInvariance.ts === +// Reduced from chart.js typings (PeerTube, Unleash). Chart, TooltipModel and +// ScriptableContext form a variance circularity. ScriptableContext is in +// fact invariant: ScriptableContext<"bar" | "line"> is not assignable to +// ScriptableContext<"bar"> ('dataset.data' differs), so Chart<"bar"> is not +// assignable to Chart and the assignment below must be an error. +// Measuring variances from the circularity's entry, main recorded +// ScriptableContext/TooltipModel as bivariant (measured mid-cycle) and +// accepted it; main reports this error too when ScriptableContext's variance +// is measured first (e.g. after checking a ScriptableContext assignment). + +declare class Element { options: O } +>Element : Symbol(Element, Decl(varianceCircularityHidesInvariance.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 10, 22)) +>O : Symbol(O, Decl(varianceCircularityHidesInvariance.ts, 10, 24)) +>options : Symbol(Element.options, Decl(varianceCircularityHidesInvariance.ts, 10, 29)) +>O : Symbol(O, Decl(varianceCircularityHidesInvariance.ts, 10, 24)) + +type DeepPartial = T extends Function ? T : T extends object ? _DeepPartialObject : undefined +>DeepPartial : Symbol(DeepPartial, Decl(varianceCircularityHidesInvariance.ts, 10, 42)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 11, 17)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 11, 17)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.esnext.decorators.d.ts, --, --)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 11, 17)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 11, 17)) +>_DeepPartialObject : Symbol(_DeepPartialObject, Decl(varianceCircularityHidesInvariance.ts, 11, 99)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 11, 17)) + +type _DeepPartialObject = { [P in keyof T]?: DeepPartial } +>_DeepPartialObject : Symbol(_DeepPartialObject, Decl(varianceCircularityHidesInvariance.ts, 11, 99)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 12, 24)) +>P : Symbol(P, Decl(varianceCircularityHidesInvariance.ts, 12, 32)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 12, 24)) +>DeepPartial : Symbol(DeepPartial, Decl(varianceCircularityHidesInvariance.ts, 10, 42)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 12, 24)) +>P : Symbol(P, Decl(varianceCircularityHidesInvariance.ts, 12, 32)) + +type UnionToIntersection = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never +>UnionToIntersection : Symbol(UnionToIntersection, Decl(varianceCircularityHidesInvariance.ts, 12, 67)) +>U : Symbol(U, Decl(varianceCircularityHidesInvariance.ts, 13, 25)) +>U : Symbol(U, Decl(varianceCircularityHidesInvariance.ts, 13, 25)) +>k : Symbol(k, Decl(varianceCircularityHidesInvariance.ts, 13, 52)) +>U : Symbol(U, Decl(varianceCircularityHidesInvariance.ts, 13, 25)) +>k : Symbol(k, Decl(varianceCircularityHidesInvariance.ts, 13, 84)) +>I : Symbol(I, Decl(varianceCircularityHidesInvariance.ts, 13, 92)) +>I : Symbol(I, Decl(varianceCircularityHidesInvariance.ts, 13, 92)) + +type AnyObject = Record +>AnyObject : Symbol(AnyObject, Decl(varianceCircularityHidesInvariance.ts, 13, 115)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) + +interface ScriptableContext { +>ScriptableContext : Symbol(ScriptableContext, Decl(varianceCircularityHidesInvariance.ts, 14, 36)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 15, 28)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + dataset: UnionToIntersection> +>dataset : Symbol(ScriptableContext.dataset, Decl(varianceCircularityHidesInvariance.ts, 15, 54)) +>UnionToIntersection : Symbol(UnionToIntersection, Decl(varianceCircularityHidesInvariance.ts, 12, 67)) +>ChartDataset : Symbol(ChartDataset, Decl(varianceCircularityHidesInvariance.ts, 56, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 15, 28)) +} +type Scriptable = (ctx: TContext) => T +>Scriptable : Symbol(Scriptable, Decl(varianceCircularityHidesInvariance.ts, 17, 1)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 18, 16)) +>TContext : Symbol(TContext, Decl(varianceCircularityHidesInvariance.ts, 18, 18)) +>ctx : Symbol(ctx, Decl(varianceCircularityHidesInvariance.ts, 18, 32)) +>TContext : Symbol(TContext, Decl(varianceCircularityHidesInvariance.ts, 18, 18)) +>T : Symbol(T, Decl(varianceCircularityHidesInvariance.ts, 18, 16)) + +declare class Chart { +>Chart : Symbol(Chart, Decl(varianceCircularityHidesInvariance.ts, 18, 51)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 19, 20)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>TData : Symbol(TData, Decl(varianceCircularityHidesInvariance.ts, 19, 56)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 19, 20)) + + config: ChartConfigurationCustomTypesPerDataset +>config : Symbol(Chart.config, Decl(varianceCircularityHidesInvariance.ts, 19, 73)) +>ChartConfigurationCustomTypesPerDataset : Symbol(ChartConfigurationCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 62, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 19, 20)) +} +interface Plugin { +>Plugin : Symbol(Plugin, Decl(varianceCircularityHidesInvariance.ts, 21, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 22, 17)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + id: string; +>id : Symbol(Plugin.id, Decl(varianceCircularityHidesInvariance.ts, 22, 43)) + + beforeDraw(chart: Chart): void +>beforeDraw : Symbol(Plugin.beforeDraw, Decl(varianceCircularityHidesInvariance.ts, 23, 15)) +>chart : Symbol(chart, Decl(varianceCircularityHidesInvariance.ts, 24, 15)) +>Chart : Symbol(Chart, Decl(varianceCircularityHidesInvariance.ts, 18, 51)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 22, 17)) +} +interface CoreChartOptions { +>CoreChartOptions : Symbol(CoreChartOptions, Decl(varianceCircularityHidesInvariance.ts, 25, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 26, 27)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + backgroundColor: Scriptable> +>backgroundColor : Symbol(CoreChartOptions.backgroundColor, Decl(varianceCircularityHidesInvariance.ts, 26, 53)) +>Scriptable : Symbol(Scriptable, Decl(varianceCircularityHidesInvariance.ts, 17, 1)) +>ScriptableContext : Symbol(ScriptableContext, Decl(varianceCircularityHidesInvariance.ts, 14, 36)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 26, 27)) +} +interface AnimationSpec { +>AnimationSpec : Symbol(AnimationSpec, Decl(varianceCircularityHidesInvariance.ts, 28, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 29, 24)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + delay: Scriptable> +>delay : Symbol(AnimationSpec.delay, Decl(varianceCircularityHidesInvariance.ts, 29, 50)) +>Scriptable : Symbol(Scriptable, Decl(varianceCircularityHidesInvariance.ts, 17, 1)) +>ScriptableContext : Symbol(ScriptableContext, Decl(varianceCircularityHidesInvariance.ts, 14, 36)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 29, 24)) +} +interface TooltipModel extends Element> { +>TooltipModel : Symbol(TooltipModel, Decl(varianceCircularityHidesInvariance.ts, 31, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 32, 23)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>Element : Symbol(Element, Decl(varianceCircularityHidesInvariance.ts, 0, 0)) +>AnyObject : Symbol(AnyObject, Decl(varianceCircularityHidesInvariance.ts, 13, 115)) +>TooltipOptions : Symbol(TooltipOptions, Decl(varianceCircularityHidesInvariance.ts, 37, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 32, 23)) + + chart: Chart +>chart : Symbol(TooltipModel.chart, Decl(varianceCircularityHidesInvariance.ts, 32, 99)) +>Chart : Symbol(Chart, Decl(varianceCircularityHidesInvariance.ts, 18, 51)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 32, 23)) +} +interface TooltipDatasetCallbacks> { +>TooltipDatasetCallbacks : Symbol(TooltipDatasetCallbacks, Decl(varianceCircularityHidesInvariance.ts, 34, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 35, 34)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>Model : Symbol(Model, Decl(varianceCircularityHidesInvariance.ts, 35, 58)) +>TooltipModel : Symbol(TooltipModel, Decl(varianceCircularityHidesInvariance.ts, 31, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 35, 34)) + + (this: Model): void +>this : Symbol(this, Decl(varianceCircularityHidesInvariance.ts, 36, 5)) +>Model : Symbol(Model, Decl(varianceCircularityHidesInvariance.ts, 35, 58)) +} +interface TooltipOptions { +>TooltipOptions : Symbol(TooltipOptions, Decl(varianceCircularityHidesInvariance.ts, 37, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 38, 25)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + animation: AnimationSpec +>animation : Symbol(TooltipOptions.animation, Decl(varianceCircularityHidesInvariance.ts, 38, 51)) +>AnimationSpec : Symbol(AnimationSpec, Decl(varianceCircularityHidesInvariance.ts, 28, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 38, 25)) +} +interface TooltipDatasetOptions { +>TooltipDatasetOptions : Symbol(TooltipDatasetOptions, Decl(varianceCircularityHidesInvariance.ts, 40, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 41, 32)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + callbacks: TooltipDatasetCallbacks +>callbacks : Symbol(TooltipDatasetOptions.callbacks, Decl(varianceCircularityHidesInvariance.ts, 41, 58)) +>TooltipDatasetCallbacks : Symbol(TooltipDatasetCallbacks, Decl(varianceCircularityHidesInvariance.ts, 34, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 41, 32)) +} +interface PluginDatasetOptionsByType { +>PluginDatasetOptionsByType : Symbol(PluginDatasetOptionsByType, Decl(varianceCircularityHidesInvariance.ts, 43, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 44, 37)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + tooltip: TooltipDatasetOptions +>tooltip : Symbol(PluginDatasetOptionsByType.tooltip, Decl(varianceCircularityHidesInvariance.ts, 44, 63)) +>TooltipDatasetOptions : Symbol(TooltipDatasetOptions, Decl(varianceCircularityHidesInvariance.ts, 40, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 44, 37)) +} +interface ChartTypeRegistry { +>ChartTypeRegistry : Symbol(ChartTypeRegistry, Decl(varianceCircularityHidesInvariance.ts, 46, 1)) + + bar: { defaultDataPoint: [] } +>bar : Symbol(ChartTypeRegistry.bar, Decl(varianceCircularityHidesInvariance.ts, 47, 29)) +>defaultDataPoint : Symbol(defaultDataPoint, Decl(varianceCircularityHidesInvariance.ts, 48, 10)) + + line: { defaultDataPoint: null } +>line : Symbol(ChartTypeRegistry.line, Decl(varianceCircularityHidesInvariance.ts, 48, 33)) +>defaultDataPoint : Symbol(defaultDataPoint, Decl(varianceCircularityHidesInvariance.ts, 49, 11)) +} +type ChartType = keyof ChartTypeRegistry +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>ChartTypeRegistry : Symbol(ChartTypeRegistry, Decl(varianceCircularityHidesInvariance.ts, 46, 1)) + +type DatasetChartOptions = { [key in TType]: {} } +>DatasetChartOptions : Symbol(DatasetChartOptions, Decl(varianceCircularityHidesInvariance.ts, 51, 40)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 52, 25)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>key : Symbol(key, Decl(varianceCircularityHidesInvariance.ts, 52, 55)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 52, 25)) + +type ChartOptions = Exclude & DatasetChartOptions & TType>, undefined> +>ChartOptions : Symbol(ChartOptions, Decl(varianceCircularityHidesInvariance.ts, 52, 74)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 53, 18)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>Exclude : Symbol(Exclude, Decl(lib.es5.d.ts, --, --)) +>DeepPartial : Symbol(DeepPartial, Decl(varianceCircularityHidesInvariance.ts, 10, 42)) +>CoreChartOptions : Symbol(CoreChartOptions, Decl(varianceCircularityHidesInvariance.ts, 25, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 53, 18)) +>DatasetChartOptions : Symbol(DatasetChartOptions, Decl(varianceCircularityHidesInvariance.ts, 51, 40)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 53, 18)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 53, 18)) + +interface ChartDatasetProperties { +>ChartDatasetProperties : Symbol(ChartDatasetProperties, Decl(varianceCircularityHidesInvariance.ts, 53, 138)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 54, 33)) +>TData : Symbol(TData, Decl(varianceCircularityHidesInvariance.ts, 54, 39)) + + data: TData +>data : Symbol(ChartDatasetProperties.data, Decl(varianceCircularityHidesInvariance.ts, 54, 48)) +>TData : Symbol(TData, Decl(varianceCircularityHidesInvariance.ts, 54, 39)) +} +type ChartDataset = +>ChartDataset : Symbol(ChartDataset, Decl(varianceCircularityHidesInvariance.ts, 56, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 57, 18)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>TData : Symbol(TData, Decl(varianceCircularityHidesInvariance.ts, 57, 42)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 57, 18)) + + DeepPartial> & ChartDatasetProperties +>DeepPartial : Symbol(DeepPartial, Decl(varianceCircularityHidesInvariance.ts, 10, 42)) +>ChartTypeRegistry : Symbol(ChartTypeRegistry, Decl(varianceCircularityHidesInvariance.ts, 46, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 57, 18)) +>PluginDatasetOptionsByType : Symbol(PluginDatasetOptionsByType, Decl(varianceCircularityHidesInvariance.ts, 43, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 57, 18)) +>ChartDatasetProperties : Symbol(ChartDatasetProperties, Decl(varianceCircularityHidesInvariance.ts, 53, 138)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 57, 18)) +>TData : Symbol(TData, Decl(varianceCircularityHidesInvariance.ts, 57, 42)) + +type ChartDatasetCustomTypesPerDataset = DeepPartial> +>ChartDatasetCustomTypesPerDataset : Symbol(ChartDatasetCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 58, 116)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 59, 39)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) +>DeepPartial : Symbol(DeepPartial, Decl(varianceCircularityHidesInvariance.ts, 10, 42)) +>PluginDatasetOptionsByType : Symbol(PluginDatasetOptionsByType, Decl(varianceCircularityHidesInvariance.ts, 43, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 59, 39)) + +interface ChartDataCustomTypesPerDataset { +>ChartDataCustomTypesPerDataset : Symbol(ChartDataCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 59, 112)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 60, 41)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + datasets: ChartDatasetCustomTypesPerDataset +>datasets : Symbol(ChartDataCustomTypesPerDataset.datasets, Decl(varianceCircularityHidesInvariance.ts, 60, 67)) +>ChartDatasetCustomTypesPerDataset : Symbol(ChartDatasetCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 58, 116)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 60, 41)) +} +export interface ChartConfigurationCustomTypesPerDataset { +>ChartConfigurationCustomTypesPerDataset : Symbol(ChartConfigurationCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 62, 1)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 63, 57)) +>ChartType : Symbol(ChartType, Decl(varianceCircularityHidesInvariance.ts, 50, 1)) + + data: ChartDataCustomTypesPerDataset +>data : Symbol(ChartConfigurationCustomTypesPerDataset.data, Decl(varianceCircularityHidesInvariance.ts, 63, 83)) +>ChartDataCustomTypesPerDataset : Symbol(ChartDataCustomTypesPerDataset, Decl(varianceCircularityHidesInvariance.ts, 59, 112)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 63, 57)) + + options: ChartOptions +>options : Symbol(ChartConfigurationCustomTypesPerDataset.options, Decl(varianceCircularityHidesInvariance.ts, 64, 47)) +>ChartOptions : Symbol(ChartOptions, Decl(varianceCircularityHidesInvariance.ts, 52, 74)) +>TType : Symbol(TType, Decl(varianceCircularityHidesInvariance.ts, 63, 57)) +} + +const p: Plugin<"bar"> = { id: "x", beforeDraw: (chart: Chart) => {} }; +>p : Symbol(p, Decl(varianceCircularityHidesInvariance.ts, 68, 5)) +>Plugin : Symbol(Plugin, Decl(varianceCircularityHidesInvariance.ts, 21, 1)) +>id : Symbol(id, Decl(varianceCircularityHidesInvariance.ts, 68, 26)) +>beforeDraw : Symbol(beforeDraw, Decl(varianceCircularityHidesInvariance.ts, 68, 35)) +>chart : Symbol(chart, Decl(varianceCircularityHidesInvariance.ts, 68, 49)) +>Chart : Symbol(Chart, Decl(varianceCircularityHidesInvariance.ts, 18, 51)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=typesfirst).types new file mode 100644 index 0000000000000..78c2a7fbee0a8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCircularityHidesInvariance(checkorder=typesfirst).types @@ -0,0 +1,131 @@ +//// [tests/cases/compiler/varianceCircularityHidesInvariance.ts] //// + +=== varianceCircularityHidesInvariance.ts === +// Reduced from chart.js typings (PeerTube, Unleash). Chart, TooltipModel and +// ScriptableContext form a variance circularity. ScriptableContext is in +// fact invariant: ScriptableContext<"bar" | "line"> is not assignable to +// ScriptableContext<"bar"> ('dataset.data' differs), so Chart<"bar"> is not +// assignable to Chart and the assignment below must be an error. +// Measuring variances from the circularity's entry, main recorded +// ScriptableContext/TooltipModel as bivariant (measured mid-cycle) and +// accepted it; main reports this error too when ScriptableContext's variance +// is measured first (e.g. after checking a ScriptableContext assignment). + +declare class Element { options: O } +>Element : Element +>options : O + +type DeepPartial = T extends Function ? T : T extends object ? _DeepPartialObject : undefined +>DeepPartial : DeepPartial + +type _DeepPartialObject = { [P in keyof T]?: DeepPartial } +>_DeepPartialObject : _DeepPartialObject + +type UnionToIntersection = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never +>UnionToIntersection : UnionToIntersection +>k : U +>k : I + +type AnyObject = Record +>AnyObject : AnyObject + +interface ScriptableContext { + dataset: UnionToIntersection> +>dataset : UnionToIntersection> +} +type Scriptable = (ctx: TContext) => T +>Scriptable : Scriptable +>ctx : TContext + +declare class Chart { +>Chart : Chart + + config: ChartConfigurationCustomTypesPerDataset +>config : ChartConfigurationCustomTypesPerDataset +} +interface Plugin { + id: string; +>id : string + + beforeDraw(chart: Chart): void +>beforeDraw : (chart: Chart) => void +>chart : Chart +} +interface CoreChartOptions { + backgroundColor: Scriptable> +>backgroundColor : Scriptable> +} +interface AnimationSpec { + delay: Scriptable> +>delay : Scriptable> +} +interface TooltipModel extends Element> { + chart: Chart +>chart : Chart +} +interface TooltipDatasetCallbacks> { + (this: Model): void +>this : Model +} +interface TooltipOptions { + animation: AnimationSpec +>animation : AnimationSpec +} +interface TooltipDatasetOptions { + callbacks: TooltipDatasetCallbacks +>callbacks : TooltipDatasetCallbacks> +} +interface PluginDatasetOptionsByType { + tooltip: TooltipDatasetOptions +>tooltip : TooltipDatasetOptions +} +interface ChartTypeRegistry { + bar: { defaultDataPoint: [] } +>bar : { defaultDataPoint: []; } +>defaultDataPoint : [] + + line: { defaultDataPoint: null } +>line : { defaultDataPoint: null; } +>defaultDataPoint : null +} +type ChartType = keyof ChartTypeRegistry +>ChartType : keyof ChartTypeRegistry + +type DatasetChartOptions = { [key in TType]: {} } +>DatasetChartOptions : DatasetChartOptions + +type ChartOptions = Exclude & DatasetChartOptions & TType>, undefined> +>ChartOptions : ChartOptions + +interface ChartDatasetProperties { + data: TData +>data : TData +} +type ChartDataset = +>ChartDataset : ChartDataset + + DeepPartial> & ChartDatasetProperties +type ChartDatasetCustomTypesPerDataset = DeepPartial> +>ChartDatasetCustomTypesPerDataset : _DeepPartialObject> + +interface ChartDataCustomTypesPerDataset { + datasets: ChartDatasetCustomTypesPerDataset +>datasets : _DeepPartialObject> +} +export interface ChartConfigurationCustomTypesPerDataset { + data: ChartDataCustomTypesPerDataset +>data : ChartDataCustomTypesPerDataset + + options: ChartOptions +>options : Exclude & DatasetChartOptions & TType>, undefined> +} + +const p: Plugin<"bar"> = { id: "x", beforeDraw: (chart: Chart) => {} }; +>p : Plugin<"bar"> +>{ id: "x", beforeDraw: (chart: Chart) => {} } : { id: string; beforeDraw: (chart: Chart) => void; } +>id : string +>"x" : "x" +>beforeDraw : (chart: Chart) => void +>(chart: Chart) => {} : (chart: Chart) => void +>chart : Chart + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.errors.txt b/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.errors.txt new file mode 100644 index 0000000000000..fed3dca53a0ed --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.errors.txt @@ -0,0 +1,25 @@ +first.ts(3,1): error TS2322: Type 'Box' is not assignable to type 'Box'. + Type 'number' is not assignable to type 'string'. + + +==== first.ts (1 errors) ==== + declare let b1: Box; + declare let b2: Box; + b1 = b2; + ~~ +!!! error TS2322: Type 'Box' is not assignable to type 'Box'. +!!! error TS2322: Type 'number' is not assignable to type 'string'. + +==== box.ts (0 errors) ==== + declare let a1: Box; + declare let a2: Box; + declare const cond: boolean; + class Box { + value!: T; + m() { + if (cond) return a1; + return a2; + } + } + const r = new Box().m(); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.js b/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.js new file mode 100644 index 0000000000000..1cc3125377745 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/varianceCycleCachedResults.ts] //// + +//// [first.ts] +declare let b1: Box; +declare let b2: Box; +b1 = b2; + +//// [box.ts] +declare let a1: Box; +declare let a2: Box; +declare const cond: boolean; +class Box { + value!: T; + m() { + if (cond) return a1; + return a2; + } +} +const r = new Box().m(); + + +//// [first.js] +"use strict"; +b1 = b2; +//// [box.js] +"use strict"; +class Box { + value; + m() { + if (cond) + return a1; + return a2; + } +} +const r = new Box().m(); diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.symbols b/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.symbols new file mode 100644 index 0000000000000..84c44e9268207 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.symbols @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/varianceCycleCachedResults.ts] //// + +=== first.ts === +declare let b1: Box; +>b1 : Symbol(b1, Decl(first.ts, 0, 11)) +>Box : Symbol(Box, Decl(box.ts, 2, 28)) + +declare let b2: Box; +>b2 : Symbol(b2, Decl(first.ts, 1, 11)) +>Box : Symbol(Box, Decl(box.ts, 2, 28)) + +b1 = b2; +>b1 : Symbol(b1, Decl(first.ts, 0, 11)) +>b2 : Symbol(b2, Decl(first.ts, 1, 11)) + +=== box.ts === +declare let a1: Box; +>a1 : Symbol(a1, Decl(box.ts, 0, 11)) +>Box : Symbol(Box, Decl(box.ts, 2, 28)) + +declare let a2: Box; +>a2 : Symbol(a2, Decl(box.ts, 1, 11)) +>Box : Symbol(Box, Decl(box.ts, 2, 28)) + +declare const cond: boolean; +>cond : Symbol(cond, Decl(box.ts, 2, 13)) + +class Box { +>Box : Symbol(Box, Decl(box.ts, 2, 28)) +>T : Symbol(T, Decl(box.ts, 3, 10)) + + value!: T; +>value : Symbol(Box.value, Decl(box.ts, 3, 14)) +>T : Symbol(T, Decl(box.ts, 3, 10)) + + m() { +>m : Symbol(Box.m, Decl(box.ts, 4, 14)) + + if (cond) return a1; +>cond : Symbol(cond, Decl(box.ts, 2, 13)) +>a1 : Symbol(a1, Decl(box.ts, 0, 11)) + + return a2; +>a2 : Symbol(a2, Decl(box.ts, 1, 11)) + } +} +const r = new Box().m(); +>r : Symbol(r, Decl(box.ts, 10, 5)) +>new Box().m : Symbol(Box.m, Decl(box.ts, 4, 14)) +>Box : Symbol(Box, Decl(box.ts, 2, 28)) +>m : Symbol(Box.m, Decl(box.ts, 4, 14)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.types b/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.types new file mode 100644 index 0000000000000..c5448fc75d3ab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleCachedResults.types @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/varianceCycleCachedResults.ts] //// + +=== first.ts === +declare let b1: Box; +>b1 : Box + +declare let b2: Box; +>b2 : Box + +b1 = b2; +>b1 = b2 : Box +>b1 : Box +>b2 : Box + +=== box.ts === +declare let a1: Box; +>a1 : Box + +declare let a2: Box; +>a2 : Box + +declare const cond: boolean; +>cond : boolean + +class Box { +>Box : Box + + value!: T; +>value : T + + m() { +>m : () => Box + + if (cond) return a1; +>cond : boolean +>a1 : Box + + return a2; +>a2 : Box + } +} +const r = new Box().m(); +>r : Box +>new Box().m() : Box +>new Box().m : () => Box +>new Box() : Box +>Box : typeof Box +>m : () => Box + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.errors.txt b/tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.errors.txt new file mode 100644 index 0000000000000..570f693fae100 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.errors.txt @@ -0,0 +1,31 @@ +varianceCycleDiscardedDiagnostics.ts(14,5): error TS7022: 'Value' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + + +==== varianceCycleDiscardedDiagnostics.ts (1 errors) ==== + // Measuring the variances of Bar resolves the type of Value, which picks an + // overload by relating Foo to Foo while the variances of Bar are + // still being measured. Diagnostics from that attempt must not outlive it, + // and the result must not depend on whether Value or the variances of Bar + // are needed first. + + interface A { a: string } + interface B { foo: string } + declare function pick(x: Foo): A; + declare function pick(x: object): B; + + class Bar { + x!: T; + Value = pick(new Foo(this)).foo; + ~~~~~ +!!! error TS7022: 'Value' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + } + + class Foo { + bar!: Bar; + constructor(bar: Bar) { + this.bar = bar; + } + } + + const v: number = new Bar().Value; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.symbols b/tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.symbols new file mode 100644 index 0000000000000..437eb30b0dc81 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.symbols @@ -0,0 +1,73 @@ +//// [tests/cases/compiler/varianceCycleDiscardedDiagnostics.ts] //// + +=== varianceCycleDiscardedDiagnostics.ts === +// Measuring the variances of Bar resolves the type of Value, which picks an +// overload by relating Foo to Foo while the variances of Bar are +// still being measured. Diagnostics from that attempt must not outlive it, +// and the result must not depend on whether Value or the variances of Bar +// are needed first. + +interface A { a: string } +>A : Symbol(A, Decl(varianceCycleDiscardedDiagnostics.ts, 0, 0)) +>a : Symbol(A.a, Decl(varianceCycleDiscardedDiagnostics.ts, 6, 13)) + +interface B { foo: string } +>B : Symbol(B, Decl(varianceCycleDiscardedDiagnostics.ts, 6, 25)) +>foo : Symbol(B.foo, Decl(varianceCycleDiscardedDiagnostics.ts, 7, 13)) + +declare function pick(x: Foo): A; +>pick : Symbol(pick, Decl(varianceCycleDiscardedDiagnostics.ts, 7, 27), Decl(varianceCycleDiscardedDiagnostics.ts, 8, 41)) +>x : Symbol(x, Decl(varianceCycleDiscardedDiagnostics.ts, 8, 22)) +>Foo : Symbol(Foo, Decl(varianceCycleDiscardedDiagnostics.ts, 14, 1)) +>A : Symbol(A, Decl(varianceCycleDiscardedDiagnostics.ts, 0, 0)) + +declare function pick(x: object): B; +>pick : Symbol(pick, Decl(varianceCycleDiscardedDiagnostics.ts, 7, 27), Decl(varianceCycleDiscardedDiagnostics.ts, 8, 41)) +>x : Symbol(x, Decl(varianceCycleDiscardedDiagnostics.ts, 9, 22)) +>B : Symbol(B, Decl(varianceCycleDiscardedDiagnostics.ts, 6, 25)) + +class Bar { +>Bar : Symbol(Bar, Decl(varianceCycleDiscardedDiagnostics.ts, 9, 36)) +>T : Symbol(T, Decl(varianceCycleDiscardedDiagnostics.ts, 11, 10)) + + x!: T; +>x : Symbol(Bar.x, Decl(varianceCycleDiscardedDiagnostics.ts, 11, 14)) +>T : Symbol(T, Decl(varianceCycleDiscardedDiagnostics.ts, 11, 10)) + + Value = pick(new Foo(this)).foo; +>Value : Symbol(Bar.Value, Decl(varianceCycleDiscardedDiagnostics.ts, 12, 10)) +>pick(new Foo(this)).foo : Symbol(B.foo, Decl(varianceCycleDiscardedDiagnostics.ts, 7, 13)) +>pick : Symbol(pick, Decl(varianceCycleDiscardedDiagnostics.ts, 7, 27), Decl(varianceCycleDiscardedDiagnostics.ts, 8, 41)) +>Foo : Symbol(Foo, Decl(varianceCycleDiscardedDiagnostics.ts, 14, 1)) +>this : Symbol(Bar, Decl(varianceCycleDiscardedDiagnostics.ts, 9, 36)) +>foo : Symbol(B.foo, Decl(varianceCycleDiscardedDiagnostics.ts, 7, 13)) +} + +class Foo { +>Foo : Symbol(Foo, Decl(varianceCycleDiscardedDiagnostics.ts, 14, 1)) +>T : Symbol(T, Decl(varianceCycleDiscardedDiagnostics.ts, 16, 10)) + + bar!: Bar; +>bar : Symbol(Foo.bar, Decl(varianceCycleDiscardedDiagnostics.ts, 16, 14)) +>Bar : Symbol(Bar, Decl(varianceCycleDiscardedDiagnostics.ts, 9, 36)) +>T : Symbol(T, Decl(varianceCycleDiscardedDiagnostics.ts, 16, 10)) + + constructor(bar: Bar) { +>bar : Symbol(bar, Decl(varianceCycleDiscardedDiagnostics.ts, 18, 16)) +>Bar : Symbol(Bar, Decl(varianceCycleDiscardedDiagnostics.ts, 9, 36)) +>T : Symbol(T, Decl(varianceCycleDiscardedDiagnostics.ts, 16, 10)) + + this.bar = bar; +>this.bar : Symbol(Foo.bar, Decl(varianceCycleDiscardedDiagnostics.ts, 16, 14)) +>this : Symbol(Foo, Decl(varianceCycleDiscardedDiagnostics.ts, 14, 1)) +>bar : Symbol(Foo.bar, Decl(varianceCycleDiscardedDiagnostics.ts, 16, 14)) +>bar : Symbol(bar, Decl(varianceCycleDiscardedDiagnostics.ts, 18, 16)) + } +} + +const v: number = new Bar().Value; +>v : Symbol(v, Decl(varianceCycleDiscardedDiagnostics.ts, 23, 5)) +>new Bar().Value : Symbol(Bar.Value, Decl(varianceCycleDiscardedDiagnostics.ts, 12, 10)) +>Bar : Symbol(Bar, Decl(varianceCycleDiscardedDiagnostics.ts, 9, 36)) +>Value : Symbol(Bar.Value, Decl(varianceCycleDiscardedDiagnostics.ts, 12, 10)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.types b/tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.types new file mode 100644 index 0000000000000..6d56cf12120d4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleDiscardedDiagnostics.types @@ -0,0 +1,65 @@ +//// [tests/cases/compiler/varianceCycleDiscardedDiagnostics.ts] //// + +=== varianceCycleDiscardedDiagnostics.ts === +// Measuring the variances of Bar resolves the type of Value, which picks an +// overload by relating Foo to Foo while the variances of Bar are +// still being measured. Diagnostics from that attempt must not outlive it, +// and the result must not depend on whether Value or the variances of Bar +// are needed first. + +interface A { a: string } +>a : string + +interface B { foo: string } +>foo : string + +declare function pick(x: Foo): A; +>pick : { (x: Foo): A; (x: object): B; } +>x : Foo + +declare function pick(x: object): B; +>pick : { (x: Foo): A; (x: object): B; } +>x : object + +class Bar { +>Bar : Bar + + x!: T; +>x : T + + Value = pick(new Foo(this)).foo; +>Value : any +>pick(new Foo(this)).foo : string +>pick(new Foo(this)) : B +>pick : { (x: Foo): A; (x: object): B; } +>new Foo(this) : Foo +>Foo : typeof Foo +>this : this +>foo : string +} + +class Foo { +>Foo : Foo + + bar!: Bar; +>bar : Bar + + constructor(bar: Bar) { +>bar : Bar + + this.bar = bar; +>this.bar = bar : Bar +>this.bar : Bar +>this : this +>bar : Bar +>bar : Bar + } +} + +const v: number = new Bar().Value; +>v : number +>new Bar().Value : any +>new Bar() : Bar +>Bar : typeof Bar +>Value : any + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=default).symbols new file mode 100644 index 0000000000000..b6711c2e9b95b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=default).symbols @@ -0,0 +1,132 @@ +//// [tests/cases/compiler/varianceCycleEnteredAfterCanonicalEntry.ts] //// + +=== varianceCycleEnteredAfterCanonicalEntry.ts === +// Reduced from capnweb's RpcStub types (cloudflare-os). Measuring the variance +// of Stubify enters a circularity (Stubify -> Stub -> Provider -> +// MethodOrProperty -> Result -> RpcPromise -> Stubify) whose canonical entry is +// Stub, so the measurement from Stubify is discarded and the circularity +// measured again from Stub. The discarded measurement once ran to completion, +// which on the full types took long enough to exceed the instantiation limit. + +interface StubBase { +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 7, 19)) + + brand: T; +>brand : Symbol(StubBase.brand, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 7, 33)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 7, 19)) +} +type Stub = T extends object ? Provider & StubBase : StubBase; +>Stub : Symbol(Stub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 9, 1)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 10)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 10)) +>Provider : Symbol(Provider, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 125)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 10)) +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 10)) +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 10)) + +type Stubify = T extends StubBase ? T : T extends Function ? Stub : T; +>Stubify : Symbol(Stubify, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 74)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.esnext.decorators.d.ts, --, --)) +>Stub : Symbol(Stub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 9, 1)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) + +type RpcPromise = Promise> & Provider & StubBase; +>RpcPromise : Symbol(RpcPromise, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 81)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 16)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Stubify : Symbol(Stubify, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 74)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 16)) +>Provider : Symbol(Provider, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 125)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 16)) +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 16)) + +type Result = R extends StubBase ? Result : RpcPromise; +>Result : Symbol(Result, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 69)) +>R : Symbol(R, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 12)) +>R : Symbol(R, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 12)) +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>U : Symbol(U, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 41)) +>Result : Symbol(Result, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 69)) +>U : Symbol(U, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 41)) +>RpcPromise : Symbol(RpcPromise, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 81)) +>R : Symbol(R, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 12)) + +type MethodOrProperty = V extends (...args: infer P) => infer R ? (...args: P) => Result> : Result>; +>MethodOrProperty : Symbol(MethodOrProperty, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 73)) +>V : Symbol(V, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 22)) +>V : Symbol(V, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 22)) +>args : Symbol(args, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 38)) +>P : Symbol(P, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 52)) +>R : Symbol(R, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 64)) +>args : Symbol(args, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 70)) +>P : Symbol(P, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 52)) +>Result : Symbol(Result, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 69)) +>Awaited : Symbol(Awaited, Decl(lib.es5.d.ts, --, --)) +>R : Symbol(R, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 64)) +>Result : Symbol(Result, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 69)) +>Awaited : Symbol(Awaited, Decl(lib.es5.d.ts, --, --)) +>V : Symbol(V, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 22)) + +type Provider = { [K in keyof T]: MethodOrProperty }; +>Provider : Symbol(Provider, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 125)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 14)) +>K : Symbol(K, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 22)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 14)) +>MethodOrProperty : Symbol(MethodOrProperty, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 73)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 14)) +>K : Symbol(K, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 22)) + +function f(x: Stubify, y: Stubify) { +>f : Symbol(f, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 62)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 11)) +>x : Symbol(x, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 14)) +>Stubify : Symbol(Stubify, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 74)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 11)) +>y : Symbol(y, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 28)) +>Stubify : Symbol(Stubify, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 74)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 11)) + + y = x; +>y : Symbol(y, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 28)) +>x : Symbol(x, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 14)) + + x = y; +>x : Symbol(x, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 14)) +>y : Symbol(y, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 28)) +} + +declare const api: Stub<{ sub(): Promise> }>; +>api : Symbol(api, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 13)) +>Stub : Symbol(Stub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 9, 1)) +>sub : Symbol(sub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 25)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Stub : Symbol(Stub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 9, 1)) + +export async function g() { +>g : Symbol(g, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 54)) + + await api.sub(); +>api.sub : Symbol(sub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 25)) +>api : Symbol(api, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 13)) +>sub : Symbol(sub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 25)) + + api.sub().then(s => s); +>api.sub().then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>api.sub : Symbol(sub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 25)) +>api : Symbol(api, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 13)) +>sub : Symbol(sub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 25)) +>then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 25, 17)) +>s : Symbol(s, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 25, 17)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=default).types new file mode 100644 index 0000000000000..41efe3567475b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=default).types @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/varianceCycleEnteredAfterCanonicalEntry.ts] //// + +=== varianceCycleEnteredAfterCanonicalEntry.ts === +// Reduced from capnweb's RpcStub types (cloudflare-os). Measuring the variance +// of Stubify enters a circularity (Stubify -> Stub -> Provider -> +// MethodOrProperty -> Result -> RpcPromise -> Stubify) whose canonical entry is +// Stub, so the measurement from Stubify is discarded and the circularity +// measured again from Stub. The discarded measurement once ran to completion, +// which on the full types took long enough to exceed the instantiation limit. + +interface StubBase { + brand: T; +>brand : T +} +type Stub = T extends object ? Provider & StubBase : StubBase; +>Stub : Stub + +type Stubify = T extends StubBase ? T : T extends Function ? Stub : T; +>Stubify : Stubify + +type RpcPromise = Promise> & Provider & StubBase; +>RpcPromise : RpcPromise + +type Result = R extends StubBase ? Result : RpcPromise; +>Result : Result + +type MethodOrProperty = V extends (...args: infer P) => infer R ? (...args: P) => Result> : Result>; +>MethodOrProperty : MethodOrProperty +>args : P +>args : P + +type Provider = { [K in keyof T]: MethodOrProperty }; +>Provider : Provider + +function f(x: Stubify, y: Stubify) { +>f : (x: Stubify, y: Stubify) => void +>x : Stubify +>y : Stubify | undefined + + y = x; +>y = x : Stubify +>y : Stubify | undefined +>x : Stubify + + x = y; +>x = y : Stubify +>x : Stubify +>y : Stubify +} + +declare const api: Stub<{ sub(): Promise> }>; +>api : Provider<{ sub(): Promise>; }> & StubBase<{ sub(): Promise>; }> +>sub : () => Promise> + +export async function g() { +>g : () => Promise + + await api.sub(); +>await api.sub() : {} +>api.sub() : RpcPromise<{}> +>api.sub : () => RpcPromise<{}> +>api : Provider<{ sub(): Promise>; }> & StubBase<{ sub(): Promise>; }> +>sub : () => RpcPromise<{}> + + api.sub().then(s => s); +>api.sub().then(s => s) : Promise<{}> +>api.sub().then : (onfulfilled?: ((value: {}) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise +>api.sub() : RpcPromise<{}> +>api.sub : () => RpcPromise<{}> +>api : Provider<{ sub(): Promise>; }> & StubBase<{ sub(): Promise>; }> +>sub : () => RpcPromise<{}> +>then : (onfulfilled?: ((value: {}) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise +>s => s : (s: {}) => {} +>s : {} +>s : {} +} + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..b6711c2e9b95b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=typesfirst).symbols @@ -0,0 +1,132 @@ +//// [tests/cases/compiler/varianceCycleEnteredAfterCanonicalEntry.ts] //// + +=== varianceCycleEnteredAfterCanonicalEntry.ts === +// Reduced from capnweb's RpcStub types (cloudflare-os). Measuring the variance +// of Stubify enters a circularity (Stubify -> Stub -> Provider -> +// MethodOrProperty -> Result -> RpcPromise -> Stubify) whose canonical entry is +// Stub, so the measurement from Stubify is discarded and the circularity +// measured again from Stub. The discarded measurement once ran to completion, +// which on the full types took long enough to exceed the instantiation limit. + +interface StubBase { +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 7, 19)) + + brand: T; +>brand : Symbol(StubBase.brand, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 7, 33)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 7, 19)) +} +type Stub = T extends object ? Provider & StubBase : StubBase; +>Stub : Symbol(Stub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 9, 1)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 10)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 10)) +>Provider : Symbol(Provider, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 125)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 10)) +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 10)) +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 10)) + +type Stubify = T extends StubBase ? T : T extends Function ? Stub : T; +>Stubify : Symbol(Stubify, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 74)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) +>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.esnext.decorators.d.ts, --, --)) +>Stub : Symbol(Stub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 9, 1)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 13)) + +type RpcPromise = Promise> & Provider & StubBase; +>RpcPromise : Symbol(RpcPromise, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 81)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 16)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Stubify : Symbol(Stubify, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 74)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 16)) +>Provider : Symbol(Provider, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 125)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 16)) +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 16)) + +type Result = R extends StubBase ? Result : RpcPromise; +>Result : Symbol(Result, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 69)) +>R : Symbol(R, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 12)) +>R : Symbol(R, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 12)) +>StubBase : Symbol(StubBase, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 0, 0)) +>U : Symbol(U, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 41)) +>Result : Symbol(Result, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 69)) +>U : Symbol(U, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 41)) +>RpcPromise : Symbol(RpcPromise, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 11, 81)) +>R : Symbol(R, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 12)) + +type MethodOrProperty = V extends (...args: infer P) => infer R ? (...args: P) => Result> : Result>; +>MethodOrProperty : Symbol(MethodOrProperty, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 73)) +>V : Symbol(V, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 22)) +>V : Symbol(V, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 22)) +>args : Symbol(args, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 38)) +>P : Symbol(P, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 52)) +>R : Symbol(R, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 64)) +>args : Symbol(args, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 70)) +>P : Symbol(P, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 52)) +>Result : Symbol(Result, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 69)) +>Awaited : Symbol(Awaited, Decl(lib.es5.d.ts, --, --)) +>R : Symbol(R, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 64)) +>Result : Symbol(Result, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 12, 69)) +>Awaited : Symbol(Awaited, Decl(lib.es5.d.ts, --, --)) +>V : Symbol(V, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 22)) + +type Provider = { [K in keyof T]: MethodOrProperty }; +>Provider : Symbol(Provider, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 14, 125)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 14)) +>K : Symbol(K, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 22)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 14)) +>MethodOrProperty : Symbol(MethodOrProperty, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 13, 73)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 14)) +>K : Symbol(K, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 22)) + +function f(x: Stubify, y: Stubify) { +>f : Symbol(f, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 15, 62)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 11)) +>x : Symbol(x, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 14)) +>Stubify : Symbol(Stubify, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 74)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 11)) +>y : Symbol(y, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 28)) +>Stubify : Symbol(Stubify, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 10, 74)) +>T : Symbol(T, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 11)) + + y = x; +>y : Symbol(y, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 28)) +>x : Symbol(x, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 14)) + + x = y; +>x : Symbol(x, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 14)) +>y : Symbol(y, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 17, 28)) +} + +declare const api: Stub<{ sub(): Promise> }>; +>api : Symbol(api, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 13)) +>Stub : Symbol(Stub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 9, 1)) +>sub : Symbol(sub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 25)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Stub : Symbol(Stub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 9, 1)) + +export async function g() { +>g : Symbol(g, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 54)) + + await api.sub(); +>api.sub : Symbol(sub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 25)) +>api : Symbol(api, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 13)) +>sub : Symbol(sub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 25)) + + api.sub().then(s => s); +>api.sub().then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>api.sub : Symbol(sub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 25)) +>api : Symbol(api, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 13)) +>sub : Symbol(sub, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 22, 25)) +>then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 25, 17)) +>s : Symbol(s, Decl(varianceCycleEnteredAfterCanonicalEntry.ts, 25, 17)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=typesfirst).types new file mode 100644 index 0000000000000..41efe3567475b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleEnteredAfterCanonicalEntry(checkorder=typesfirst).types @@ -0,0 +1,77 @@ +//// [tests/cases/compiler/varianceCycleEnteredAfterCanonicalEntry.ts] //// + +=== varianceCycleEnteredAfterCanonicalEntry.ts === +// Reduced from capnweb's RpcStub types (cloudflare-os). Measuring the variance +// of Stubify enters a circularity (Stubify -> Stub -> Provider -> +// MethodOrProperty -> Result -> RpcPromise -> Stubify) whose canonical entry is +// Stub, so the measurement from Stubify is discarded and the circularity +// measured again from Stub. The discarded measurement once ran to completion, +// which on the full types took long enough to exceed the instantiation limit. + +interface StubBase { + brand: T; +>brand : T +} +type Stub = T extends object ? Provider & StubBase : StubBase; +>Stub : Stub + +type Stubify = T extends StubBase ? T : T extends Function ? Stub : T; +>Stubify : Stubify + +type RpcPromise = Promise> & Provider & StubBase; +>RpcPromise : RpcPromise + +type Result = R extends StubBase ? Result : RpcPromise; +>Result : Result + +type MethodOrProperty = V extends (...args: infer P) => infer R ? (...args: P) => Result> : Result>; +>MethodOrProperty : MethodOrProperty +>args : P +>args : P + +type Provider = { [K in keyof T]: MethodOrProperty }; +>Provider : Provider + +function f(x: Stubify, y: Stubify) { +>f : (x: Stubify, y: Stubify) => void +>x : Stubify +>y : Stubify | undefined + + y = x; +>y = x : Stubify +>y : Stubify | undefined +>x : Stubify + + x = y; +>x = y : Stubify +>x : Stubify +>y : Stubify +} + +declare const api: Stub<{ sub(): Promise> }>; +>api : Provider<{ sub(): Promise>; }> & StubBase<{ sub(): Promise>; }> +>sub : () => Promise> + +export async function g() { +>g : () => Promise + + await api.sub(); +>await api.sub() : {} +>api.sub() : RpcPromise<{}> +>api.sub : () => RpcPromise<{}> +>api : Provider<{ sub(): Promise>; }> & StubBase<{ sub(): Promise>; }> +>sub : () => RpcPromise<{}> + + api.sub().then(s => s); +>api.sub().then(s => s) : Promise<{}> +>api.sub().then : (onfulfilled?: ((value: {}) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise +>api.sub() : RpcPromise<{}> +>api.sub : () => RpcPromise<{}> +>api : Provider<{ sub(): Promise>; }> & StubBase<{ sub(): Promise>; }> +>sub : () => RpcPromise<{}> +>then : (onfulfilled?: ((value: {}) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise +>s => s : (s: {}) => {} +>s : {} +>s : {} +} + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.errors.txt b/tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.errors.txt new file mode 100644 index 0000000000000..3093fe2786a2e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.errors.txt @@ -0,0 +1,78 @@ +barFirst.ts(9,1): error TS2322: Type 'Bar<"lit">' is not assignable to type 'Bar'. + Type 'string' is not assignable to type '"lit"'. +barFirst.ts(10,1): error TS2322: Type 'Foo' is not assignable to type 'Foo<"lit">'. + Types of property 'x' are incompatible. + Type 'string' is not assignable to type '"lit"'. +barFirst.ts(11,1): error TS2322: Type 'Foo<"lit">' is not assignable to type 'Foo'. + Types of property 'b' are incompatible. + Type 'Bar>' is not assignable to type 'Bar>'. + Type 'Foo' is not assignable to type 'Foo<"lit">'. + Types of property 'x' are incompatible. + Type 'string' is not assignable to type '"lit"'. +fooFirst.ts(8,1): error TS2322: Type 'Foo' is not assignable to type 'Foo<"lit">'. + Types of property 'x' are incompatible. + Type 'string' is not assignable to type '"lit"'. +fooFirst.ts(9,1): error TS2322: Type 'Foo<"lit">' is not assignable to type 'Foo'. + Types of property 'b' are incompatible. + Type 'Bar>' is not assignable to type 'Bar>'. + Type 'Foo' is not assignable to type 'Foo<"lit">'. + Types of property 'x' are incompatible. + Type 'string' is not assignable to type '"lit"'. +fooFirst.ts(11,1): error TS2322: Type 'Bar<"lit">' is not assignable to type 'Bar'. + Type 'string' is not assignable to type '"lit"'. + + +==== fooFirst.ts (3 errors) ==== + export {}; + + interface Foo { x: T; b: Bar> } + interface Bar { f: (u: U) => void; foo: Foo> } + + declare let fs: Foo, fl: Foo<"lit">; + declare let bs: Bar, bl: Bar<"lit">; + fl = fs; // Error + ~~ +!!! error TS2322: Type 'Foo' is not assignable to type 'Foo<"lit">'. +!!! error TS2322: Types of property 'x' are incompatible. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + fs = fl; // Error + ~~ +!!! error TS2322: Type 'Foo<"lit">' is not assignable to type 'Foo'. +!!! error TS2322: Types of property 'b' are incompatible. +!!! error TS2322: Type 'Bar>' is not assignable to type 'Bar>'. +!!! error TS2322: Type 'Foo' is not assignable to type 'Foo<"lit">'. +!!! error TS2322: Types of property 'x' are incompatible. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + bl = bs; // Error + bs = bl; // Error + ~~ +!!! error TS2322: Type 'Bar<"lit">' is not assignable to type 'Bar'. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + +==== barFirst.ts (3 errors) ==== + export {}; + + interface Foo { x: T; b: Bar> } + interface Bar { f: (u: U) => void; foo: Foo> } + + declare let fs: Foo, fl: Foo<"lit">; + declare let bs: Bar, bl: Bar<"lit">; + bl = bs; // Error + bs = bl; // Error + ~~ +!!! error TS2322: Type 'Bar<"lit">' is not assignable to type 'Bar'. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + fl = fs; // Error + ~~ +!!! error TS2322: Type 'Foo' is not assignable to type 'Foo<"lit">'. +!!! error TS2322: Types of property 'x' are incompatible. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + fs = fl; // Error + ~~ +!!! error TS2322: Type 'Foo<"lit">' is not assignable to type 'Foo'. +!!! error TS2322: Types of property 'b' are incompatible. +!!! error TS2322: Type 'Bar>' is not assignable to type 'Bar>'. +!!! error TS2322: Type 'Foo' is not assignable to type 'Foo<"lit">'. +!!! error TS2322: Types of property 'x' are incompatible. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.symbols b/tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.symbols new file mode 100644 index 0000000000000..478f02d4a04a7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.symbols @@ -0,0 +1,106 @@ +//// [tests/cases/compiler/varianceCycleEntryOrder.ts] //// + +=== fooFirst.ts === +export {}; + +interface Foo { x: T; b: Bar> } +>Foo : Symbol(Foo, Decl(fooFirst.ts, 0, 10)) +>T : Symbol(T, Decl(fooFirst.ts, 2, 14)) +>x : Symbol(Foo.x, Decl(fooFirst.ts, 2, 18)) +>T : Symbol(T, Decl(fooFirst.ts, 2, 14)) +>b : Symbol(Foo.b, Decl(fooFirst.ts, 2, 24)) +>Bar : Symbol(Bar, Decl(fooFirst.ts, 2, 41)) +>Foo : Symbol(Foo, Decl(fooFirst.ts, 0, 10)) +>T : Symbol(T, Decl(fooFirst.ts, 2, 14)) + +interface Bar { f: (u: U) => void; foo: Foo> } +>Bar : Symbol(Bar, Decl(fooFirst.ts, 2, 41)) +>U : Symbol(U, Decl(fooFirst.ts, 3, 14)) +>f : Symbol(Bar.f, Decl(fooFirst.ts, 3, 18)) +>u : Symbol(u, Decl(fooFirst.ts, 3, 23)) +>U : Symbol(U, Decl(fooFirst.ts, 3, 14)) +>foo : Symbol(Bar.foo, Decl(fooFirst.ts, 3, 37)) +>Foo : Symbol(Foo, Decl(fooFirst.ts, 0, 10)) +>Bar : Symbol(Bar, Decl(fooFirst.ts, 2, 41)) +>U : Symbol(U, Decl(fooFirst.ts, 3, 14)) + +declare let fs: Foo, fl: Foo<"lit">; +>fs : Symbol(fs, Decl(fooFirst.ts, 5, 11)) +>Foo : Symbol(Foo, Decl(fooFirst.ts, 0, 10)) +>fl : Symbol(fl, Decl(fooFirst.ts, 5, 28)) +>Foo : Symbol(Foo, Decl(fooFirst.ts, 0, 10)) + +declare let bs: Bar, bl: Bar<"lit">; +>bs : Symbol(bs, Decl(fooFirst.ts, 6, 11)) +>Bar : Symbol(Bar, Decl(fooFirst.ts, 2, 41)) +>bl : Symbol(bl, Decl(fooFirst.ts, 6, 28)) +>Bar : Symbol(Bar, Decl(fooFirst.ts, 2, 41)) + +fl = fs; // Error +>fl : Symbol(fl, Decl(fooFirst.ts, 5, 28)) +>fs : Symbol(fs, Decl(fooFirst.ts, 5, 11)) + +fs = fl; // Error +>fs : Symbol(fs, Decl(fooFirst.ts, 5, 11)) +>fl : Symbol(fl, Decl(fooFirst.ts, 5, 28)) + +bl = bs; // Error +>bl : Symbol(bl, Decl(fooFirst.ts, 6, 28)) +>bs : Symbol(bs, Decl(fooFirst.ts, 6, 11)) + +bs = bl; // Error +>bs : Symbol(bs, Decl(fooFirst.ts, 6, 11)) +>bl : Symbol(bl, Decl(fooFirst.ts, 6, 28)) + +=== barFirst.ts === +export {}; + +interface Foo { x: T; b: Bar> } +>Foo : Symbol(Foo, Decl(barFirst.ts, 0, 10)) +>T : Symbol(T, Decl(barFirst.ts, 2, 14)) +>x : Symbol(Foo.x, Decl(barFirst.ts, 2, 18)) +>T : Symbol(T, Decl(barFirst.ts, 2, 14)) +>b : Symbol(Foo.b, Decl(barFirst.ts, 2, 24)) +>Bar : Symbol(Bar, Decl(barFirst.ts, 2, 41)) +>Foo : Symbol(Foo, Decl(barFirst.ts, 0, 10)) +>T : Symbol(T, Decl(barFirst.ts, 2, 14)) + +interface Bar { f: (u: U) => void; foo: Foo> } +>Bar : Symbol(Bar, Decl(barFirst.ts, 2, 41)) +>U : Symbol(U, Decl(barFirst.ts, 3, 14)) +>f : Symbol(Bar.f, Decl(barFirst.ts, 3, 18)) +>u : Symbol(u, Decl(barFirst.ts, 3, 23)) +>U : Symbol(U, Decl(barFirst.ts, 3, 14)) +>foo : Symbol(Bar.foo, Decl(barFirst.ts, 3, 37)) +>Foo : Symbol(Foo, Decl(barFirst.ts, 0, 10)) +>Bar : Symbol(Bar, Decl(barFirst.ts, 2, 41)) +>U : Symbol(U, Decl(barFirst.ts, 3, 14)) + +declare let fs: Foo, fl: Foo<"lit">; +>fs : Symbol(fs, Decl(barFirst.ts, 5, 11)) +>Foo : Symbol(Foo, Decl(barFirst.ts, 0, 10)) +>fl : Symbol(fl, Decl(barFirst.ts, 5, 28)) +>Foo : Symbol(Foo, Decl(barFirst.ts, 0, 10)) + +declare let bs: Bar, bl: Bar<"lit">; +>bs : Symbol(bs, Decl(barFirst.ts, 6, 11)) +>Bar : Symbol(Bar, Decl(barFirst.ts, 2, 41)) +>bl : Symbol(bl, Decl(barFirst.ts, 6, 28)) +>Bar : Symbol(Bar, Decl(barFirst.ts, 2, 41)) + +bl = bs; // Error +>bl : Symbol(bl, Decl(barFirst.ts, 6, 28)) +>bs : Symbol(bs, Decl(barFirst.ts, 6, 11)) + +bs = bl; // Error +>bs : Symbol(bs, Decl(barFirst.ts, 6, 11)) +>bl : Symbol(bl, Decl(barFirst.ts, 6, 28)) + +fl = fs; // Error +>fl : Symbol(fl, Decl(barFirst.ts, 5, 28)) +>fs : Symbol(fs, Decl(barFirst.ts, 5, 11)) + +fs = fl; // Error +>fs : Symbol(fs, Decl(barFirst.ts, 5, 11)) +>fl : Symbol(fl, Decl(barFirst.ts, 5, 28)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.types b/tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.types new file mode 100644 index 0000000000000..3e1522dd51543 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleEntryOrder.types @@ -0,0 +1,82 @@ +//// [tests/cases/compiler/varianceCycleEntryOrder.ts] //// + +=== fooFirst.ts === +export {}; + +interface Foo { x: T; b: Bar> } +>x : T +>b : Bar> + +interface Bar { f: (u: U) => void; foo: Foo> } +>f : (u: U) => void +>u : U +>foo : Foo> + +declare let fs: Foo, fl: Foo<"lit">; +>fs : Foo +>fl : Foo<"lit"> + +declare let bs: Bar, bl: Bar<"lit">; +>bs : Bar +>bl : Bar<"lit"> + +fl = fs; // Error +>fl = fs : Foo +>fl : Foo<"lit"> +>fs : Foo + +fs = fl; // Error +>fs = fl : Foo<"lit"> +>fs : Foo +>fl : Foo<"lit"> + +bl = bs; // Error +>bl = bs : Bar +>bl : Bar<"lit"> +>bs : Bar + +bs = bl; // Error +>bs = bl : Bar<"lit"> +>bs : Bar +>bl : Bar<"lit"> + +=== barFirst.ts === +export {}; + +interface Foo { x: T; b: Bar> } +>x : T +>b : Bar> + +interface Bar { f: (u: U) => void; foo: Foo> } +>f : (u: U) => void +>u : U +>foo : Foo> + +declare let fs: Foo, fl: Foo<"lit">; +>fs : Foo +>fl : Foo<"lit"> + +declare let bs: Bar, bl: Bar<"lit">; +>bs : Bar +>bl : Bar<"lit"> + +bl = bs; // Error +>bl = bs : Bar +>bl : Bar<"lit"> +>bs : Bar + +bs = bl; // Error +>bs = bl : Bar<"lit"> +>bs : Bar +>bl : Bar<"lit"> + +fl = fs; // Error +>fl = fs : Foo +>fl : Foo<"lit"> +>fs : Foo + +fs = fl; // Error +>fs = fl : Foo<"lit"> +>fs : Foo +>fl : Foo<"lit"> + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..a4b4156676094 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=default).symbols @@ -0,0 +1,96 @@ +//// [tests/cases/compiler/varianceCycleMeasuredFromAliasCheckOrder.ts] //// + +=== varianceCycleMeasuredFromAliasCheckOrder.ts === +// Settings, Hover and Renderer refer to each other. Relating two +// instantiations of Hover measures the variances of the cycle starting +// from Hover, and whether a Renderer is a Renderer must not +// depend on whether the types were requested before (64635). + +type Attrs = { [name: string]: any }; +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>name : Symbol(name, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 16)) + +interface Settings { +>Settings : Symbol(Settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 37)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 43)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) + + hover: Hover; +>hover : Symbol(Settings.hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 70)) +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 43)) + + reducer: (data: N) => void; +>reducer : Symbol(Settings.reducer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 8, 23)) +>data : Symbol(data, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 9, 14)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) + + program: (renderer: Renderer) => void; +>program : Symbol(Settings.program, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 9, 31)) +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 10, 14)) +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 43)) +} +interface Renderer { +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 19)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 43)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) + + getSettings(): Settings; +>getSettings : Symbol(Renderer.getSettings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 70)) +>Settings : Symbol(Settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 37)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 19)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 43)) +} +type Hover = (settings: Settings) => void; +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 11)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 35)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>settings : Symbol(settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 64)) +>Settings : Symbol(Settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 37)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 11)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 35)) + +type NodeAttrs = { x: number }; +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) +>x : Symbol(x, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 17, 18)) + +declare const hover: Hover; +>hover : Symbol(hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 19, 13)) +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) + +const h: Hover = hover; +>h : Symbol(h, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 20, 5)) +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) +>hover : Symbol(hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 19, 13)) + +declare function fit(renderer: Renderer): void; +>fit : Symbol(fit, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 20, 38)) +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 22, 21)) +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) + +declare const renderer: Renderer; +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 23, 13)) +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) + +fit(renderer); +>fit : Symbol(fit, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 20, 38)) +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 23, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..26b7744f9a06d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=default).types @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/varianceCycleMeasuredFromAliasCheckOrder.ts] //// + +=== varianceCycleMeasuredFromAliasCheckOrder.ts === +// Settings, Hover and Renderer refer to each other. Relating two +// instantiations of Hover measures the variances of the cycle starting +// from Hover, and whether a Renderer is a Renderer must not +// depend on whether the types were requested before (64635). + +type Attrs = { [name: string]: any }; +>Attrs : Attrs +>name : string + +interface Settings { + hover: Hover; +>hover : Hover + + reducer: (data: N) => void; +>reducer : (data: N) => void +>data : N + + program: (renderer: Renderer) => void; +>program : (renderer: Renderer) => void +>renderer : Renderer +} +interface Renderer { + getSettings(): Settings; +>getSettings : () => Settings +} +type Hover = (settings: Settings) => void; +>Hover : Hover +>settings : Settings + +type NodeAttrs = { x: number }; +>NodeAttrs : NodeAttrs +>x : number + +declare const hover: Hover; +>hover : Hover + +const h: Hover = hover; +>h : Hover +>hover : Hover + +declare function fit(renderer: Renderer): void; +>fit : (renderer: Renderer) => void +>renderer : Renderer + +declare const renderer: Renderer; +>renderer : Renderer + +fit(renderer); +>fit(renderer) : void +>fit : (renderer: Renderer) => void +>renderer : Renderer + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..390b2d117163b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,35 @@ +varianceCycleMeasuredFromAliasCheckOrder.ts(25,5): error TS2345: Argument of type 'Renderer' is not assignable to parameter of type 'Renderer'. + Property 'x' is missing in type 'Attrs' but required in type 'NodeAttrs'. + + +==== varianceCycleMeasuredFromAliasCheckOrder.ts (1 errors) ==== + // Settings, Hover and Renderer refer to each other. Relating two + // instantiations of Hover measures the variances of the cycle starting + // from Hover, and whether a Renderer is a Renderer must not + // depend on whether the types were requested before (64635). + + type Attrs = { [name: string]: any }; + + interface Settings { + hover: Hover; + reducer: (data: N) => void; + program: (renderer: Renderer) => void; + } + interface Renderer { + getSettings(): Settings; + } + type Hover = (settings: Settings) => void; + + type NodeAttrs = { x: number }; + + declare const hover: Hover; + const h: Hover = hover; + + declare function fit(renderer: Renderer): void; + declare const renderer: Renderer; + fit(renderer); + ~~~~~~~~ +!!! error TS2345: Argument of type 'Renderer' is not assignable to parameter of type 'Renderer'. +!!! error TS2345: Property 'x' is missing in type 'Attrs' but required in type 'NodeAttrs'. +!!! related TS2728 varianceCycleMeasuredFromAliasCheckOrder.ts:18:20: 'x' is declared here. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..a4b4156676094 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).symbols @@ -0,0 +1,96 @@ +//// [tests/cases/compiler/varianceCycleMeasuredFromAliasCheckOrder.ts] //// + +=== varianceCycleMeasuredFromAliasCheckOrder.ts === +// Settings, Hover and Renderer refer to each other. Relating two +// instantiations of Hover measures the variances of the cycle starting +// from Hover, and whether a Renderer is a Renderer must not +// depend on whether the types were requested before (64635). + +type Attrs = { [name: string]: any }; +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>name : Symbol(name, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 16)) + +interface Settings { +>Settings : Symbol(Settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 37)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 43)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) + + hover: Hover; +>hover : Symbol(Settings.hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 70)) +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 43)) + + reducer: (data: N) => void; +>reducer : Symbol(Settings.reducer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 8, 23)) +>data : Symbol(data, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 9, 14)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) + + program: (renderer: Renderer) => void; +>program : Symbol(Settings.program, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 9, 31)) +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 10, 14)) +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 43)) +} +interface Renderer { +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 19)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 43)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) + + getSettings(): Settings; +>getSettings : Symbol(Renderer.getSettings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 70)) +>Settings : Symbol(Settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 37)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 19)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 43)) +} +type Hover = (settings: Settings) => void; +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 11)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 35)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>settings : Symbol(settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 64)) +>Settings : Symbol(Settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 37)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 11)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 35)) + +type NodeAttrs = { x: number }; +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) +>x : Symbol(x, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 17, 18)) + +declare const hover: Hover; +>hover : Symbol(hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 19, 13)) +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) + +const h: Hover = hover; +>h : Symbol(h, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 20, 5)) +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) +>hover : Symbol(hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 19, 13)) + +declare function fit(renderer: Renderer): void; +>fit : Symbol(fit, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 20, 38)) +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 22, 21)) +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) + +declare const renderer: Renderer; +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 23, 13)) +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) + +fit(renderer); +>fit : Symbol(fit, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 20, 38)) +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 23, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..26b7744f9a06d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=editorfirst).types @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/varianceCycleMeasuredFromAliasCheckOrder.ts] //// + +=== varianceCycleMeasuredFromAliasCheckOrder.ts === +// Settings, Hover and Renderer refer to each other. Relating two +// instantiations of Hover measures the variances of the cycle starting +// from Hover, and whether a Renderer is a Renderer must not +// depend on whether the types were requested before (64635). + +type Attrs = { [name: string]: any }; +>Attrs : Attrs +>name : string + +interface Settings { + hover: Hover; +>hover : Hover + + reducer: (data: N) => void; +>reducer : (data: N) => void +>data : N + + program: (renderer: Renderer) => void; +>program : (renderer: Renderer) => void +>renderer : Renderer +} +interface Renderer { + getSettings(): Settings; +>getSettings : () => Settings +} +type Hover = (settings: Settings) => void; +>Hover : Hover +>settings : Settings + +type NodeAttrs = { x: number }; +>NodeAttrs : NodeAttrs +>x : number + +declare const hover: Hover; +>hover : Hover + +const h: Hover = hover; +>h : Hover +>hover : Hover + +declare function fit(renderer: Renderer): void; +>fit : (renderer: Renderer) => void +>renderer : Renderer + +declare const renderer: Renderer; +>renderer : Renderer + +fit(renderer); +>fit(renderer) : void +>fit : (renderer: Renderer) => void +>renderer : Renderer + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..390b2d117163b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,35 @@ +varianceCycleMeasuredFromAliasCheckOrder.ts(25,5): error TS2345: Argument of type 'Renderer' is not assignable to parameter of type 'Renderer'. + Property 'x' is missing in type 'Attrs' but required in type 'NodeAttrs'. + + +==== varianceCycleMeasuredFromAliasCheckOrder.ts (1 errors) ==== + // Settings, Hover and Renderer refer to each other. Relating two + // instantiations of Hover measures the variances of the cycle starting + // from Hover, and whether a Renderer is a Renderer must not + // depend on whether the types were requested before (64635). + + type Attrs = { [name: string]: any }; + + interface Settings { + hover: Hover; + reducer: (data: N) => void; + program: (renderer: Renderer) => void; + } + interface Renderer { + getSettings(): Settings; + } + type Hover = (settings: Settings) => void; + + type NodeAttrs = { x: number }; + + declare const hover: Hover; + const h: Hover = hover; + + declare function fit(renderer: Renderer): void; + declare const renderer: Renderer; + fit(renderer); + ~~~~~~~~ +!!! error TS2345: Argument of type 'Renderer' is not assignable to parameter of type 'Renderer'. +!!! error TS2345: Property 'x' is missing in type 'Attrs' but required in type 'NodeAttrs'. +!!! related TS2728 varianceCycleMeasuredFromAliasCheckOrder.ts:18:20: 'x' is declared here. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..a4b4156676094 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,96 @@ +//// [tests/cases/compiler/varianceCycleMeasuredFromAliasCheckOrder.ts] //// + +=== varianceCycleMeasuredFromAliasCheckOrder.ts === +// Settings, Hover and Renderer refer to each other. Relating two +// instantiations of Hover measures the variances of the cycle starting +// from Hover, and whether a Renderer is a Renderer must not +// depend on whether the types were requested before (64635). + +type Attrs = { [name: string]: any }; +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>name : Symbol(name, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 16)) + +interface Settings { +>Settings : Symbol(Settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 37)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 43)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) + + hover: Hover; +>hover : Symbol(Settings.hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 70)) +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 43)) + + reducer: (data: N) => void; +>reducer : Symbol(Settings.reducer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 8, 23)) +>data : Symbol(data, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 9, 14)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) + + program: (renderer: Renderer) => void; +>program : Symbol(Settings.program, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 9, 31)) +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 10, 14)) +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 19)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 7, 43)) +} +interface Renderer { +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 19)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 43)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) + + getSettings(): Settings; +>getSettings : Symbol(Renderer.getSettings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 70)) +>Settings : Symbol(Settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 37)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 19)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 12, 43)) +} +type Hover = (settings: Settings) => void; +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 11)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 35)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>Attrs : Symbol(Attrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 0, 0)) +>settings : Symbol(settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 64)) +>Settings : Symbol(Settings, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 5, 37)) +>N : Symbol(N, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 11)) +>E : Symbol(E, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 35)) + +type NodeAttrs = { x: number }; +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) +>x : Symbol(x, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 17, 18)) + +declare const hover: Hover; +>hover : Symbol(hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 19, 13)) +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) + +const h: Hover = hover; +>h : Symbol(h, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 20, 5)) +>Hover : Symbol(Hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 14, 1)) +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) +>hover : Symbol(hover, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 19, 13)) + +declare function fit(renderer: Renderer): void; +>fit : Symbol(fit, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 20, 38)) +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 22, 21)) +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) + +declare const renderer: Renderer; +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 23, 13)) +>Renderer : Symbol(Renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 11, 1)) +>NodeAttrs : Symbol(NodeAttrs, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 15, 98)) + +fit(renderer); +>fit : Symbol(fit, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 20, 38)) +>renderer : Symbol(renderer, Decl(varianceCycleMeasuredFromAliasCheckOrder.ts, 23, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..26b7744f9a06d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleMeasuredFromAliasCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,55 @@ +//// [tests/cases/compiler/varianceCycleMeasuredFromAliasCheckOrder.ts] //// + +=== varianceCycleMeasuredFromAliasCheckOrder.ts === +// Settings, Hover and Renderer refer to each other. Relating two +// instantiations of Hover measures the variances of the cycle starting +// from Hover, and whether a Renderer is a Renderer must not +// depend on whether the types were requested before (64635). + +type Attrs = { [name: string]: any }; +>Attrs : Attrs +>name : string + +interface Settings { + hover: Hover; +>hover : Hover + + reducer: (data: N) => void; +>reducer : (data: N) => void +>data : N + + program: (renderer: Renderer) => void; +>program : (renderer: Renderer) => void +>renderer : Renderer +} +interface Renderer { + getSettings(): Settings; +>getSettings : () => Settings +} +type Hover = (settings: Settings) => void; +>Hover : Hover +>settings : Settings + +type NodeAttrs = { x: number }; +>NodeAttrs : NodeAttrs +>x : number + +declare const hover: Hover; +>hover : Hover + +const h: Hover = hover; +>h : Hover +>hover : Hover + +declare function fit(renderer: Renderer): void; +>fit : (renderer: Renderer) => void +>renderer : Renderer + +declare const renderer: Renderer; +>renderer : Renderer + +fit(renderer); +>fit(renderer) : void +>fit : (renderer: Renderer) => void +>renderer : Renderer + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleRedoKeepsDiscardLog.symbols b/tsc/testdata/baselines/reference/compiler/varianceCycleRedoKeepsDiscardLog.symbols new file mode 100644 index 0000000000000..eb4907af8e1b1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleRedoKeepsDiscardLog.symbols @@ -0,0 +1,999 @@ +//// [tests/cases/compiler/varianceCycleRedoKeepsDiscardLog.ts] //// + +=== json-logic-js.d.ts === +export as namespace jsonFactory; +>jsonFactory : Symbol(jsonFactory, Decl(json-logic-js.d.ts, 0, 0)) + +// Disable auto-export +export {}; + +type RenameToIn = { +>RenameToIn : Symbol(RenameToIn, Decl(json-logic-js.d.ts, 3, 10)) +>T : Symbol(T, Decl(json-logic-js.d.ts, 5, 16)) + + [K in keyof T as K extends `in${Uppercase}${Lowercase}` ? `in` : K]: T[K]; +>K : Symbol(K, Decl(json-logic-js.d.ts, 6, 5)) +>T : Symbol(T, Decl(json-logic-js.d.ts, 5, 16)) +>K : Symbol(K, Decl(json-logic-js.d.ts, 6, 5)) +>Uppercase : Symbol(Uppercase, Decl(lib.es5.d.ts, --, --)) +>Lowercase : Symbol(Lowercase, Decl(lib.es5.d.ts, --, --)) +>K : Symbol(K, Decl(json-logic-js.d.ts, 6, 5)) +>T : Symbol(T, Decl(json-logic-js.d.ts, 5, 16)) +>K : Symbol(K, Decl(json-logic-js.d.ts, 6, 5)) + +}; + +/** + * This is a utility type used below for the "if" operation. + * Original: https://stackoverflow.com/a/68373774/765987 + */ +type MAXIMUM_ALLOWED_BOUNDARY = 80; +>MAXIMUM_ALLOWED_BOUNDARY : Symbol(MAXIMUM_ALLOWED_BOUNDARY, Decl(json-logic-js.d.ts, 7, 2)) + +type Mapped< +>Mapped : Symbol(Mapped, Decl(json-logic-js.d.ts, 13, 35)) + + Tuple extends unknown[], +>Tuple : Symbol(Tuple, Decl(json-logic-js.d.ts, 14, 12)) + + Result extends unknown[] = [], +>Result : Symbol(Result, Decl(json-logic-js.d.ts, 15, 28)) + + Count extends readonly number[] = [], +>Count : Symbol(Count, Decl(json-logic-js.d.ts, 16, 34)) + +> = Count["length"] extends MAXIMUM_ALLOWED_BOUNDARY ? Result +>Count : Symbol(Count, Decl(json-logic-js.d.ts, 16, 34)) +>MAXIMUM_ALLOWED_BOUNDARY : Symbol(MAXIMUM_ALLOWED_BOUNDARY, Decl(json-logic-js.d.ts, 7, 2)) +>Result : Symbol(Result, Decl(json-logic-js.d.ts, 15, 28)) + + : Tuple extends [] ? [] +>Tuple : Symbol(Tuple, Decl(json-logic-js.d.ts, 14, 12)) + + : Result extends [] ? Mapped +>Result : Symbol(Result, Decl(json-logic-js.d.ts, 15, 28)) +>Mapped : Symbol(Mapped, Decl(json-logic-js.d.ts, 13, 35)) +>Tuple : Symbol(Tuple, Decl(json-logic-js.d.ts, 14, 12)) +>Tuple : Symbol(Tuple, Decl(json-logic-js.d.ts, 14, 12)) +>Count : Symbol(Count, Decl(json-logic-js.d.ts, 16, 34)) + + : Mapped; +>Mapped : Symbol(Mapped, Decl(json-logic-js.d.ts, 13, 35)) +>Tuple : Symbol(Tuple, Decl(json-logic-js.d.ts, 14, 12)) +>Result : Symbol(Result, Decl(json-logic-js.d.ts, 15, 28)) +>Result : Symbol(Result, Decl(json-logic-js.d.ts, 15, 28)) +>Tuple : Symbol(Tuple, Decl(json-logic-js.d.ts, 14, 12)) +>Count : Symbol(Count, Decl(json-logic-js.d.ts, 16, 34)) + +/** + * Used for the "if" operation, which takes an array of odd length + * and a minimum of three (3) elements. + */ +type AnyArrayOfOddLengthMin3 = [any, ...Mapped<[any, any]>]; +>AnyArrayOfOddLengthMin3 : Symbol(AnyArrayOfOddLengthMin3, Decl(json-logic-js.d.ts, 21, 67)) +>Mapped : Symbol(Mapped, Decl(json-logic-js.d.ts, 13, 35)) + +export type ReservedOperations = +>ReservedOperations : Symbol(ReservedOperations, Decl(json-logic-js.d.ts, 26, 60)) + + | "var" + | "missing" + | "missing_some" + | "if" + | "==" + | "===" + | "!=" + | "!==" + | "!" + | "!!" + | "or" + | "and" + | ">" + | ">=" + | "<" + | "<=" + | "max" + | "min" + | "+" + | "-" + | "*" + | "/" + | "%" + | "map" + | "filter" + | "reduce" + | "all" + | "none" + | "some" + | "merge" + | "in" + | "cat" + | "substr" + | "log"; + +/** + * This can be an object with any key except the reserved keys. + * TODO: Find a way to limit this type to exactly one (1) key, since + * json-logic-js enforces it. See: + * https://github.com/jwadhams/json-logic-js/blob/2.0.2/logic.js#L180 + */ +export type AdditionalOperation = Partial> & { [k: string]: any }; +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>ReservedOperations : Symbol(ReservedOperations, Decl(json-logic-js.d.ts, 26, 60)) +>k : Symbol(k, Decl(json-logic-js.d.ts, 70, 82)) + +export interface AllReservedOperationsInterface { +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) + + var: RulesLogic | [RulesLogic] | [RulesLogic, any] | [RulesLogic, any]; +>var : Symbol(AllReservedOperationsInterface.var, Decl(json-logic-js.d.ts, 72, 93)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + missing: RulesLogic | any[]; +>missing : Symbol(AllReservedOperationsInterface.missing, Decl(json-logic-js.d.ts, 73, 107)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + missing_some: [RulesLogic, RulesLogic | any[]]; +>missing_some : Symbol(AllReservedOperationsInterface.missing_some, Decl(json-logic-js.d.ts, 74, 40)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + if: AnyArrayOfOddLengthMin3; +>if : Symbol(AllReservedOperationsInterface.if, Decl(json-logic-js.d.ts, 75, 67)) +>AnyArrayOfOddLengthMin3 : Symbol(AnyArrayOfOddLengthMin3, Decl(json-logic-js.d.ts, 21, 67)) + + "==": [any, any]; +>"==" : Symbol(AllReservedOperationsInterface["=="], Decl(json-logic-js.d.ts, 76, 32)) + + "===": [any, any]; +>"===" : Symbol(AllReservedOperationsInterface["==="], Decl(json-logic-js.d.ts, 77, 21)) + + "!=": [any, any]; +>"!=" : Symbol(AllReservedOperationsInterface["!="], Decl(json-logic-js.d.ts, 78, 22)) + + "!==": [any, any]; +>"!==" : Symbol(AllReservedOperationsInterface["!=="], Decl(json-logic-js.d.ts, 79, 21)) + + "!": any; +>"!" : Symbol(AllReservedOperationsInterface["!"], Decl(json-logic-js.d.ts, 80, 22)) + + "!!": any; +>"!!" : Symbol(AllReservedOperationsInterface["!!"], Decl(json-logic-js.d.ts, 81, 13)) + + or: Array>; +>or : Symbol(AllReservedOperationsInterface.or, Decl(json-logic-js.d.ts, 82, 14)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + and: Array>; +>and : Symbol(AllReservedOperationsInterface.and, Decl(json-logic-js.d.ts, 83, 34)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + ">": [RulesLogic, RulesLogic]; +>">" : Symbol(AllReservedOperationsInterface[">"], Decl(json-logic-js.d.ts, 84, 35)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + ">=": [RulesLogic, RulesLogic]; +>">=" : Symbol(AllReservedOperationsInterface[">="], Decl(json-logic-js.d.ts, 85, 50)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + "<": [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic]; +>"<" : Symbol(AllReservedOperationsInterface["<"], Decl(json-logic-js.d.ts, 86, 51)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + "<=": [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic]; +>"<=" : Symbol(AllReservedOperationsInterface["<="], Decl(json-logic-js.d.ts, 87, 113)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + max: Array>; +>max : Symbol(AllReservedOperationsInterface.max, Decl(json-logic-js.d.ts, 88, 114)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + min: Array>; +>min : Symbol(AllReservedOperationsInterface.min, Decl(json-logic-js.d.ts, 89, 35)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + "+": Array> | RulesLogic; +>"+" : Symbol(AllReservedOperationsInterface["+"], Decl(json-logic-js.d.ts, 90, 35)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + "-": Array> | RulesLogic; +>"-" : Symbol(AllReservedOperationsInterface["-"], Decl(json-logic-js.d.ts, 91, 56)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + "*": Array> | RulesLogic; +>"*" : Symbol(AllReservedOperationsInterface["*"], Decl(json-logic-js.d.ts, 92, 56)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + "/": Array> | RulesLogic; +>"/" : Symbol(AllReservedOperationsInterface["/"], Decl(json-logic-js.d.ts, 93, 56)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + "%": [RulesLogic, RulesLogic]; +>"%" : Symbol(AllReservedOperationsInterface["%"], Decl(json-logic-js.d.ts, 94, 56)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + map: [RulesLogic, RulesLogic]; +>map : Symbol(AllReservedOperationsInterface.map, Decl(json-logic-js.d.ts, 95, 50)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + filter: [RulesLogic, RulesLogic]; +>filter : Symbol(AllReservedOperationsInterface.filter, Decl(json-logic-js.d.ts, 96, 50)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + reduce: [RulesLogic, RulesLogic, RulesLogic]; +>reduce : Symbol(AllReservedOperationsInterface.reduce, Decl(json-logic-js.d.ts, 97, 53)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + all: [Array>, RulesLogic] | [RulesLogic, RulesLogic]; +>all : Symbol(AllReservedOperationsInterface.all, Decl(json-logic-js.d.ts, 98, 73)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + none: [Array>, RulesLogic] | [RulesLogic, RulesLogic]; +>none : Symbol(AllReservedOperationsInterface.none, Decl(json-logic-js.d.ts, 99, 100)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + some: [Array>, RulesLogic] | [RulesLogic, RulesLogic]; +>some : Symbol(AllReservedOperationsInterface.some, Decl(json-logic-js.d.ts, 100, 101)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + merge: Array> | RulesLogic>; +>merge : Symbol(AllReservedOperationsInterface.merge, Decl(json-logic-js.d.ts, 101, 101)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + inArray: [RulesLogic, Array>]; +>inArray : Symbol(AllReservedOperationsInterface.inArray, Decl(json-logic-js.d.ts, 102, 65)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + inString: [RulesLogic, RulesLogic]; +>inString : Symbol(AllReservedOperationsInterface.inString, Decl(json-logic-js.d.ts, 103, 61)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + cat: Array>; +>cat : Symbol(AllReservedOperationsInterface.cat, Decl(json-logic-js.d.ts, 104, 55)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + substr: [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic]; +>substr : Symbol(AllReservedOperationsInterface.substr, Decl(json-logic-js.d.ts, 105, 35)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) + + log: RulesLogic; +>log : Symbol(AllReservedOperationsInterface.log, Decl(json-logic-js.d.ts, 106, 116)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 72, 48)) +} + +export type JsonLogicVar = Pick< +>JsonLogicVar : Symbol(JsonLogicVar, Decl(json-logic-js.d.ts, 108, 1)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 110, 25)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 110, 25)) + + "var" +>; +export type JsonLogicMissing = Pick< +>JsonLogicMissing : Symbol(JsonLogicMissing, Decl(json-logic-js.d.ts, 113, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 114, 29)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 114, 29)) + + "missing" +>; +export type JsonLogicMissingSome = Pick< +>JsonLogicMissingSome : Symbol(JsonLogicMissingSome, Decl(json-logic-js.d.ts, 117, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 118, 33)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 118, 33)) + + "missing_some" +>; +export type JsonLogicIf = Pick; +>JsonLogicIf : Symbol(JsonLogicIf, Decl(json-logic-js.d.ts, 121, 2)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) + +export type JsonLogicEqual = Pick; +>JsonLogicEqual : Symbol(JsonLogicEqual, Decl(json-logic-js.d.ts, 122, 69)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) + +export type JsonLogicStrictEqual = Pick; +>JsonLogicStrictEqual : Symbol(JsonLogicStrictEqual, Decl(json-logic-js.d.ts, 123, 72)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) + +export type JsonLogicNotEqual = Pick; +>JsonLogicStrictNotEqual : Symbol(JsonLogicStrictNotEqual, Decl(json-logic-js.d.ts, 125, 75)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) + +export type JsonLogicNegation = Pick; +>JsonLogicNegation : Symbol(JsonLogicNegation, Decl(json-logic-js.d.ts, 126, 82)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) + +export type JsonLogicDoubleNegation = Pick; +>JsonLogicDoubleNegation : Symbol(JsonLogicDoubleNegation, Decl(json-logic-js.d.ts, 127, 74)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) + +export type JsonLogicOr = Pick< +>JsonLogicOr : Symbol(JsonLogicOr, Decl(json-logic-js.d.ts, 128, 81)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 129, 24)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 129, 24)) + + "or" +>; +export type JsonLogicAnd = Pick< +>JsonLogicAnd : Symbol(JsonLogicAnd, Decl(json-logic-js.d.ts, 132, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 133, 25)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 133, 25)) + + "and" +>; +export type JsonLogicGreaterThan = Pick< +>JsonLogicGreaterThan : Symbol(JsonLogicGreaterThan, Decl(json-logic-js.d.ts, 136, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 137, 33)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 137, 33)) + + ">" +>; +export type JsonLogicGreaterThanOrEqual = Pick< +>JsonLogicGreaterThanOrEqual : Symbol(JsonLogicGreaterThanOrEqual, Decl(json-logic-js.d.ts, 140, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 141, 40)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 141, 40)) + + ">=" +>; +export type JsonLogicLessThan = Pick< +>JsonLogicLessThan : Symbol(JsonLogicLessThan, Decl(json-logic-js.d.ts, 144, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 145, 30)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 145, 30)) + + "<" +>; +export type JsonLogicLessThanOrEqual = Pick< +>JsonLogicLessThanOrEqual : Symbol(JsonLogicLessThanOrEqual, Decl(json-logic-js.d.ts, 148, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 149, 37)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 149, 37)) + + "<=" +>; +export type JsonLogicMax = Pick< +>JsonLogicMax : Symbol(JsonLogicMax, Decl(json-logic-js.d.ts, 152, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 153, 25)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 153, 25)) + + "max" +>; +export type JsonLogicMin = Pick< +>JsonLogicMin : Symbol(JsonLogicMin, Decl(json-logic-js.d.ts, 156, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 157, 25)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 157, 25)) + + "min" +>; +export type JsonLogicSum = Pick< +>JsonLogicSum : Symbol(JsonLogicSum, Decl(json-logic-js.d.ts, 160, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 161, 25)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 161, 25)) + + "+" +>; +export type JsonLogicDifference = Pick< +>JsonLogicDifference : Symbol(JsonLogicDifference, Decl(json-logic-js.d.ts, 164, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 165, 32)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 165, 32)) + + "-" +>; +export type JsonLogicProduct = Pick< +>JsonLogicProduct : Symbol(JsonLogicProduct, Decl(json-logic-js.d.ts, 168, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 169, 29)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 169, 29)) + + "*" +>; +export type JsonLogicQuotient = Pick< +>JsonLogicQuotient : Symbol(JsonLogicQuotient, Decl(json-logic-js.d.ts, 172, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 173, 30)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 173, 30)) + + "/" +>; +export type JsonLogicRemainder = Pick< +>JsonLogicRemainder : Symbol(JsonLogicRemainder, Decl(json-logic-js.d.ts, 176, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 177, 31)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 177, 31)) + + "%" +>; +export type JsonLogicMap = Pick< +>JsonLogicMap : Symbol(JsonLogicMap, Decl(json-logic-js.d.ts, 180, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 181, 25)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 181, 25)) + + "map" +>; +export type JsonLogicFilter = Pick< +>JsonLogicFilter : Symbol(JsonLogicFilter, Decl(json-logic-js.d.ts, 184, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 185, 28)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 185, 28)) + + "filter" +>; +export type JsonLogicReduce = Pick< +>JsonLogicReduce : Symbol(JsonLogicReduce, Decl(json-logic-js.d.ts, 188, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 189, 28)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 189, 28)) + + "reduce" +>; +export type JsonLogicAll = Pick< +>JsonLogicAll : Symbol(JsonLogicAll, Decl(json-logic-js.d.ts, 192, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 193, 25)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 193, 25)) + + "all" +>; +export type JsonLogicNone = Pick< +>JsonLogicNone : Symbol(JsonLogicNone, Decl(json-logic-js.d.ts, 196, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 197, 26)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 197, 26)) + + "none" +>; +export type JsonLogicSome = Pick< +>JsonLogicSome : Symbol(JsonLogicSome, Decl(json-logic-js.d.ts, 200, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 201, 26)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 201, 26)) + + "some" +>; +export type JsonLogicMerge = Pick< +>JsonLogicMerge : Symbol(JsonLogicMerge, Decl(json-logic-js.d.ts, 204, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 205, 27)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 205, 27)) + + "merge" +>; +export type JsonLogicInArray = RenameToIn< +>JsonLogicInArray : Symbol(JsonLogicInArray, Decl(json-logic-js.d.ts, 208, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 209, 29)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>RenameToIn : Symbol(RenameToIn, Decl(json-logic-js.d.ts, 3, 10)) + + Pick, "inArray"> +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 209, 29)) + +>; +export type JsonLogicInString = RenameToIn< +>JsonLogicInString : Symbol(JsonLogicInString, Decl(json-logic-js.d.ts, 211, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 212, 30)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>RenameToIn : Symbol(RenameToIn, Decl(json-logic-js.d.ts, 3, 10)) + + Pick, "inString"> +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 212, 30)) + +>; +export type JsonLogicCat = Pick< +>JsonLogicCat : Symbol(JsonLogicCat, Decl(json-logic-js.d.ts, 214, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 215, 25)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 215, 25)) + + "cat" +>; +export type JsonLogicSubstr = Pick< +>JsonLogicSubstr : Symbol(JsonLogicSubstr, Decl(json-logic-js.d.ts, 218, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 219, 28)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 219, 28)) + + "substr" +>; +export type JsonLogicLog = Pick< +>JsonLogicLog : Symbol(JsonLogicLog, Decl(json-logic-js.d.ts, 222, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 223, 25)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) + + AllReservedOperationsInterface, +>AllReservedOperationsInterface : Symbol(AllReservedOperationsInterface, Decl(json-logic-js.d.ts, 70, 100)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 223, 25)) + + "log" +>; + +export type RulesLogic = +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) + + | boolean + | string + | number + | null + // Accessing Data - https://jsonlogic.com/operations.html#accessing-data + | JsonLogicVar +>JsonLogicVar : Symbol(JsonLogicVar, Decl(json-logic-js.d.ts, 108, 1)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicMissing +>JsonLogicMissing : Symbol(JsonLogicMissing, Decl(json-logic-js.d.ts, 113, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicMissingSome +>JsonLogicMissingSome : Symbol(JsonLogicMissingSome, Decl(json-logic-js.d.ts, 117, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + // Logic and Boolean Operations - https://jsonlogic.com/operations.html#logic-and-boolean-operations + | JsonLogicIf +>JsonLogicIf : Symbol(JsonLogicIf, Decl(json-logic-js.d.ts, 121, 2)) + + | JsonLogicEqual +>JsonLogicEqual : Symbol(JsonLogicEqual, Decl(json-logic-js.d.ts, 122, 69)) + + | JsonLogicStrictEqual +>JsonLogicStrictEqual : Symbol(JsonLogicStrictEqual, Decl(json-logic-js.d.ts, 123, 72)) + + | JsonLogicNotEqual +>JsonLogicNotEqual : Symbol(JsonLogicNotEqual, Decl(json-logic-js.d.ts, 124, 79)) + + | JsonLogicStrictNotEqual +>JsonLogicStrictNotEqual : Symbol(JsonLogicStrictNotEqual, Decl(json-logic-js.d.ts, 125, 75)) + + | JsonLogicNegation +>JsonLogicNegation : Symbol(JsonLogicNegation, Decl(json-logic-js.d.ts, 126, 82)) + + | JsonLogicDoubleNegation +>JsonLogicDoubleNegation : Symbol(JsonLogicDoubleNegation, Decl(json-logic-js.d.ts, 127, 74)) + + | JsonLogicOr +>JsonLogicOr : Symbol(JsonLogicOr, Decl(json-logic-js.d.ts, 128, 81)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicAnd +>JsonLogicAnd : Symbol(JsonLogicAnd, Decl(json-logic-js.d.ts, 132, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + // Numeric Operations - https://jsonlogic.com/operations.html#numeric-operations + | JsonLogicGreaterThan +>JsonLogicGreaterThan : Symbol(JsonLogicGreaterThan, Decl(json-logic-js.d.ts, 136, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicGreaterThanOrEqual +>JsonLogicGreaterThanOrEqual : Symbol(JsonLogicGreaterThanOrEqual, Decl(json-logic-js.d.ts, 140, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicLessThan +>JsonLogicLessThan : Symbol(JsonLogicLessThan, Decl(json-logic-js.d.ts, 144, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicLessThanOrEqual +>JsonLogicLessThanOrEqual : Symbol(JsonLogicLessThanOrEqual, Decl(json-logic-js.d.ts, 148, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicMax +>JsonLogicMax : Symbol(JsonLogicMax, Decl(json-logic-js.d.ts, 152, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicMin +>JsonLogicMin : Symbol(JsonLogicMin, Decl(json-logic-js.d.ts, 156, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicSum +>JsonLogicSum : Symbol(JsonLogicSum, Decl(json-logic-js.d.ts, 160, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicDifference +>JsonLogicDifference : Symbol(JsonLogicDifference, Decl(json-logic-js.d.ts, 164, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicProduct +>JsonLogicProduct : Symbol(JsonLogicProduct, Decl(json-logic-js.d.ts, 168, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicQuotient +>JsonLogicQuotient : Symbol(JsonLogicQuotient, Decl(json-logic-js.d.ts, 172, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicRemainder +>JsonLogicRemainder : Symbol(JsonLogicRemainder, Decl(json-logic-js.d.ts, 176, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + // Array Operations - https://jsonlogic.com/operations.html#array-operations + | JsonLogicMap +>JsonLogicMap : Symbol(JsonLogicMap, Decl(json-logic-js.d.ts, 180, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicFilter +>JsonLogicFilter : Symbol(JsonLogicFilter, Decl(json-logic-js.d.ts, 184, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicReduce +>JsonLogicReduce : Symbol(JsonLogicReduce, Decl(json-logic-js.d.ts, 188, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicAll +>JsonLogicAll : Symbol(JsonLogicAll, Decl(json-logic-js.d.ts, 192, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicNone +>JsonLogicNone : Symbol(JsonLogicNone, Decl(json-logic-js.d.ts, 196, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicSome +>JsonLogicSome : Symbol(JsonLogicSome, Decl(json-logic-js.d.ts, 200, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicMerge +>JsonLogicMerge : Symbol(JsonLogicMerge, Decl(json-logic-js.d.ts, 204, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicInArray +>JsonLogicInArray : Symbol(JsonLogicInArray, Decl(json-logic-js.d.ts, 208, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + // String Operations - https://jsonlogic.com/operations.html#string-operations + | JsonLogicInString +>JsonLogicInString : Symbol(JsonLogicInString, Decl(json-logic-js.d.ts, 211, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicCat +>JsonLogicCat : Symbol(JsonLogicCat, Decl(json-logic-js.d.ts, 214, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + | JsonLogicSubstr +>JsonLogicSubstr : Symbol(JsonLogicSubstr, Decl(json-logic-js.d.ts, 218, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + // Miscellaneous - https://jsonlogic.com/operations.html#miscellaneous + | JsonLogicLog +>JsonLogicLog : Symbol(JsonLogicLog, Decl(json-logic-js.d.ts, 222, 2)) +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + + // Adding Operations (https://jsonlogic.com/add_operation.html) + | AddOps; +>AddOps : Symbol(AddOps, Decl(json-logic-js.d.ts, 228, 23)) + +export function add_operation(name: string, code: (...args: any[]) => any): void; +>add_operation : Symbol(add_operation, Decl(json-logic-js.d.ts, 275, 13)) +>name : Symbol(name, Decl(json-logic-js.d.ts, 277, 30)) +>code : Symbol(code, Decl(json-logic-js.d.ts, 277, 43)) +>args : Symbol(args, Decl(json-logic-js.d.ts, 277, 51)) + +export function apply(logic: RulesLogic, data?: unknown): any; +>apply : Symbol(apply, Decl(json-logic-js.d.ts, 277, 81)) +>logic : Symbol(logic, Decl(json-logic-js.d.ts, 278, 22)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>AdditionalOperation : Symbol(AdditionalOperation, Decl(json-logic-js.d.ts, 62, 12)) +>data : Symbol(data, Decl(json-logic-js.d.ts, 278, 61)) + +export function rm_operation(name: string): void; +>rm_operation : Symbol(rm_operation, Decl(json-logic-js.d.ts, 278, 83)) +>name : Symbol(name, Decl(json-logic-js.d.ts, 279, 29)) + +// These functions are undocumented, but are exported by the real package +// so they're typed here for completeness. +export function is_logic(logic: any): logic is RulesLogic; +>is_logic : Symbol(is_logic, Decl(json-logic-js.d.ts, 279, 49)) +>logic : Symbol(logic, Decl(json-logic-js.d.ts, 283, 25)) +>logic : Symbol(logic, Decl(json-logic-js.d.ts, 283, 25)) +>RulesLogic : Symbol(RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) + +export function truthy(value: any): boolean; +>truthy : Symbol(truthy, Decl(json-logic-js.d.ts, 283, 58)) +>value : Symbol(value, Decl(json-logic-js.d.ts, 284, 23)) + +export function get_operator(logic: Record): string; +>get_operator : Symbol(get_operator, Decl(json-logic-js.d.ts, 284, 44)) +>logic : Symbol(logic, Decl(json-logic-js.d.ts, 285, 29)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) + +export function get_values(logic: Record): any; +>get_values : Symbol(get_values, Decl(json-logic-js.d.ts, 285, 65)) +>logic : Symbol(logic, Decl(json-logic-js.d.ts, 286, 27)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) + +export function uses_data(logic: Record): any[]; +>uses_data : Symbol(uses_data, Decl(json-logic-js.d.ts, 286, 60)) +>logic : Symbol(logic, Decl(json-logic-js.d.ts, 287, 26)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) + +export function rule_like(rule: any, pattern: any): boolean; +>rule_like : Symbol(rule_like, Decl(json-logic-js.d.ts, 287, 61)) +>rule : Symbol(rule, Decl(json-logic-js.d.ts, 288, 26)) +>pattern : Symbol(pattern, Decl(json-logic-js.d.ts, 288, 36)) + +=== main.ts === +import * as jsonLogic from "./json-logic-js"; +>jsonLogic : Symbol(jsonLogic, Decl(main.ts, 0, 6)) + +type StartsWithAndEndsWith = +>StartsWithAndEndsWith : Symbol(StartsWithAndEndsWith, Decl(main.ts, 0, 45)) + + | { startsWith: [JsonLogicWithAdditionalOperations, JsonLogicWithAdditionalOperations] } +>startsWith : Symbol(startsWith, Decl(main.ts, 3, 7)) +>JsonLogicWithAdditionalOperations : Symbol(JsonLogicWithAdditionalOperations, Decl(main.ts, 4, 91)) +>JsonLogicWithAdditionalOperations : Symbol(JsonLogicWithAdditionalOperations, Decl(main.ts, 4, 91)) + + | { endsWith: [JsonLogicWithAdditionalOperations, JsonLogicWithAdditionalOperations] }; +>endsWith : Symbol(endsWith, Decl(main.ts, 4, 7)) +>JsonLogicWithAdditionalOperations : Symbol(JsonLogicWithAdditionalOperations, Decl(main.ts, 4, 91)) +>JsonLogicWithAdditionalOperations : Symbol(JsonLogicWithAdditionalOperations, Decl(main.ts, 4, 91)) + +type JsonLogicWithAdditionalOperations = jsonLogic.RulesLogic; +>JsonLogicWithAdditionalOperations : Symbol(JsonLogicWithAdditionalOperations, Decl(main.ts, 4, 91)) +>jsonLogic : Symbol(jsonLogic, Decl(main.ts, 0, 6)) +>RulesLogic : Symbol(jsonLogic.RulesLogic, Decl(json-logic-js.d.ts, 226, 2)) +>StartsWithAndEndsWith : Symbol(StartsWithAndEndsWith, Decl(main.ts, 0, 45)) + +const jsonExtendedLogic: JsonLogicWithAdditionalOperations = { +>jsonExtendedLogic : Symbol(jsonExtendedLogic, Decl(main.ts, 6, 5)) +>JsonLogicWithAdditionalOperations : Symbol(JsonLogicWithAdditionalOperations, Decl(main.ts, 4, 91)) + + and: [{ startsWith: ["Springfield", "Spring"] }, { endsWith: ["Springfield", "field"] }], +>and : Symbol(and, Decl(main.ts, 6, 62)) +>startsWith : Symbol(startsWith, Decl(main.ts, 7, 11)) +>endsWith : Symbol(endsWith, Decl(main.ts, 7, 54)) + +}; +jsonLogic.apply(jsonExtendedLogic); +>jsonLogic.apply : Symbol(jsonLogic.apply, Decl(json-logic-js.d.ts, 277, 81)) +>jsonLogic : Symbol(jsonLogic, Decl(main.ts, 0, 6)) +>apply : Symbol(jsonLogic.apply, Decl(json-logic-js.d.ts, 277, 81)) +>jsonExtendedLogic : Symbol(jsonExtendedLogic, Decl(main.ts, 6, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleRedoKeepsDiscardLog.types b/tsc/testdata/baselines/reference/compiler/varianceCycleRedoKeepsDiscardLog.types new file mode 100644 index 0000000000000..0d5ee0db7b1f7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleRedoKeepsDiscardLog.types @@ -0,0 +1,518 @@ +//// [tests/cases/compiler/varianceCycleRedoKeepsDiscardLog.ts] //// + +=== json-logic-js.d.ts === +export as namespace jsonFactory; +>jsonFactory : typeof import("./json-logic-js") + +// Disable auto-export +export {}; + +type RenameToIn = { +>RenameToIn : RenameToIn + + [K in keyof T as K extends `in${Uppercase}${Lowercase}` ? `in` : K]: T[K]; +}; + +/** + * This is a utility type used below for the "if" operation. + * Original: https://stackoverflow.com/a/68373774/765987 + */ +type MAXIMUM_ALLOWED_BOUNDARY = 80; +>MAXIMUM_ALLOWED_BOUNDARY : 80 + +type Mapped< +>Mapped : Mapped + + Tuple extends unknown[], + Result extends unknown[] = [], + Count extends readonly number[] = [], +> = Count["length"] extends MAXIMUM_ALLOWED_BOUNDARY ? Result + : Tuple extends [] ? [] + : Result extends [] ? Mapped + : Mapped; +/** + * Used for the "if" operation, which takes an array of odd length + * and a minimum of three (3) elements. + */ +type AnyArrayOfOddLengthMin3 = [any, ...Mapped<[any, any]>]; +>AnyArrayOfOddLengthMin3 : [any, any, any] | [any, any, any, any, any] | [any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +export type ReservedOperations = +>ReservedOperations : ReservedOperations + + | "var" + | "missing" + | "missing_some" + | "if" + | "==" + | "===" + | "!=" + | "!==" + | "!" + | "!!" + | "or" + | "and" + | ">" + | ">=" + | "<" + | "<=" + | "max" + | "min" + | "+" + | "-" + | "*" + | "/" + | "%" + | "map" + | "filter" + | "reduce" + | "all" + | "none" + | "some" + | "merge" + | "in" + | "cat" + | "substr" + | "log"; + +/** + * This can be an object with any key except the reserved keys. + * TODO: Find a way to limit this type to exactly one (1) key, since + * json-logic-js enforces it. See: + * https://github.com/jwadhams/json-logic-js/blob/2.0.2/logic.js#L180 + */ +export type AdditionalOperation = Partial> & { [k: string]: any }; +>AdditionalOperation : AdditionalOperation +>k : string + +export interface AllReservedOperationsInterface { + var: RulesLogic | [RulesLogic] | [RulesLogic, any] | [RulesLogic, any]; +>var : [RulesLogic] | [RulesLogic, any] | RulesLogic + + missing: RulesLogic | any[]; +>missing : any[] | RulesLogic + + missing_some: [RulesLogic, RulesLogic | any[]]; +>missing_some : [RulesLogic, any[] | RulesLogic] + + if: AnyArrayOfOddLengthMin3; +>if : [any, any, any] | [any, any, any, any, any] | [any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] | [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + + "==": [any, any]; +>"==" : [any, any] + + "===": [any, any]; +>"===" : [any, any] + + "!=": [any, any]; +>"!=" : [any, any] + + "!==": [any, any]; +>"!==" : [any, any] + + "!": any; +>"!" : any + + "!!": any; +>"!!" : any + + or: Array>; +>or : RulesLogic[] + + and: Array>; +>and : RulesLogic[] + + ">": [RulesLogic, RulesLogic]; +>">" : [RulesLogic, RulesLogic] + + ">=": [RulesLogic, RulesLogic]; +>">=" : [RulesLogic, RulesLogic] + + "<": [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic]; +>"<" : [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic] + + "<=": [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic]; +>"<=" : [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic] + + max: Array>; +>max : RulesLogic[] + + min: Array>; +>min : RulesLogic[] + + "+": Array> | RulesLogic; +>"+" : RulesLogic[] | RulesLogic + + "-": Array> | RulesLogic; +>"-" : RulesLogic[] | RulesLogic + + "*": Array> | RulesLogic; +>"*" : RulesLogic[] | RulesLogic + + "/": Array> | RulesLogic; +>"/" : RulesLogic[] | RulesLogic + + "%": [RulesLogic, RulesLogic]; +>"%" : [RulesLogic, RulesLogic] + + map: [RulesLogic, RulesLogic]; +>map : [RulesLogic, RulesLogic] + + filter: [RulesLogic, RulesLogic]; +>filter : [RulesLogic, RulesLogic] + + reduce: [RulesLogic, RulesLogic, RulesLogic]; +>reduce : [RulesLogic, RulesLogic, RulesLogic] + + all: [Array>, RulesLogic] | [RulesLogic, RulesLogic]; +>all : [RulesLogic[], RulesLogic] | [RulesLogic, RulesLogic] + + none: [Array>, RulesLogic] | [RulesLogic, RulesLogic]; +>none : [RulesLogic[], RulesLogic] | [RulesLogic, RulesLogic] + + some: [Array>, RulesLogic] | [RulesLogic, RulesLogic]; +>some : [RulesLogic[], RulesLogic] | [RulesLogic, RulesLogic] + + merge: Array> | RulesLogic>; +>merge : (RulesLogic[] | RulesLogic)[] + + inArray: [RulesLogic, Array>]; +>inArray : [RulesLogic, RulesLogic[]] + + inString: [RulesLogic, RulesLogic]; +>inString : [RulesLogic, RulesLogic] + + cat: Array>; +>cat : RulesLogic[] + + substr: [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic]; +>substr : [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic] + + log: RulesLogic; +>log : RulesLogic +} + +export type JsonLogicVar = Pick< +>JsonLogicVar : JsonLogicVar + + AllReservedOperationsInterface, + "var" +>; +export type JsonLogicMissing = Pick< +>JsonLogicMissing : JsonLogicMissing + + AllReservedOperationsInterface, + "missing" +>; +export type JsonLogicMissingSome = Pick< +>JsonLogicMissingSome : JsonLogicMissingSome + + AllReservedOperationsInterface, + "missing_some" +>; +export type JsonLogicIf = Pick; +>JsonLogicIf : JsonLogicIf + +export type JsonLogicEqual = Pick; +>JsonLogicEqual : JsonLogicEqual + +export type JsonLogicStrictEqual = Pick; +>JsonLogicStrictEqual : JsonLogicStrictEqual + +export type JsonLogicNotEqual = Pick; +>JsonLogicStrictNotEqual : JsonLogicStrictNotEqual + +export type JsonLogicNegation = Pick; +>JsonLogicNegation : JsonLogicNegation + +export type JsonLogicDoubleNegation = Pick; +>JsonLogicDoubleNegation : JsonLogicDoubleNegation + +export type JsonLogicOr = Pick< +>JsonLogicOr : JsonLogicOr + + AllReservedOperationsInterface, + "or" +>; +export type JsonLogicAnd = Pick< +>JsonLogicAnd : JsonLogicAnd + + AllReservedOperationsInterface, + "and" +>; +export type JsonLogicGreaterThan = Pick< +>JsonLogicGreaterThan : JsonLogicGreaterThan + + AllReservedOperationsInterface, + ">" +>; +export type JsonLogicGreaterThanOrEqual = Pick< +>JsonLogicGreaterThanOrEqual : JsonLogicGreaterThanOrEqual + + AllReservedOperationsInterface, + ">=" +>; +export type JsonLogicLessThan = Pick< +>JsonLogicLessThan : JsonLogicLessThan + + AllReservedOperationsInterface, + "<" +>; +export type JsonLogicLessThanOrEqual = Pick< +>JsonLogicLessThanOrEqual : JsonLogicLessThanOrEqual + + AllReservedOperationsInterface, + "<=" +>; +export type JsonLogicMax = Pick< +>JsonLogicMax : JsonLogicMax + + AllReservedOperationsInterface, + "max" +>; +export type JsonLogicMin = Pick< +>JsonLogicMin : JsonLogicMin + + AllReservedOperationsInterface, + "min" +>; +export type JsonLogicSum = Pick< +>JsonLogicSum : JsonLogicSum + + AllReservedOperationsInterface, + "+" +>; +export type JsonLogicDifference = Pick< +>JsonLogicDifference : JsonLogicDifference + + AllReservedOperationsInterface, + "-" +>; +export type JsonLogicProduct = Pick< +>JsonLogicProduct : JsonLogicProduct + + AllReservedOperationsInterface, + "*" +>; +export type JsonLogicQuotient = Pick< +>JsonLogicQuotient : JsonLogicQuotient + + AllReservedOperationsInterface, + "/" +>; +export type JsonLogicRemainder = Pick< +>JsonLogicRemainder : JsonLogicRemainder + + AllReservedOperationsInterface, + "%" +>; +export type JsonLogicMap = Pick< +>JsonLogicMap : JsonLogicMap + + AllReservedOperationsInterface, + "map" +>; +export type JsonLogicFilter = Pick< +>JsonLogicFilter : JsonLogicFilter + + AllReservedOperationsInterface, + "filter" +>; +export type JsonLogicReduce = Pick< +>JsonLogicReduce : JsonLogicReduce + + AllReservedOperationsInterface, + "reduce" +>; +export type JsonLogicAll = Pick< +>JsonLogicAll : JsonLogicAll + + AllReservedOperationsInterface, + "all" +>; +export type JsonLogicNone = Pick< +>JsonLogicNone : JsonLogicNone + + AllReservedOperationsInterface, + "none" +>; +export type JsonLogicSome = Pick< +>JsonLogicSome : JsonLogicSome + + AllReservedOperationsInterface, + "some" +>; +export type JsonLogicMerge = Pick< +>JsonLogicMerge : JsonLogicMerge + + AllReservedOperationsInterface, + "merge" +>; +export type JsonLogicInArray = RenameToIn< +>JsonLogicInArray : RenameToIn, "inArray">> + + Pick, "inArray"> +>; +export type JsonLogicInString = RenameToIn< +>JsonLogicInString : RenameToIn, "inString">> + + Pick, "inString"> +>; +export type JsonLogicCat = Pick< +>JsonLogicCat : JsonLogicCat + + AllReservedOperationsInterface, + "cat" +>; +export type JsonLogicSubstr = Pick< +>JsonLogicSubstr : JsonLogicSubstr + + AllReservedOperationsInterface, + "substr" +>; +export type JsonLogicLog = Pick< +>JsonLogicLog : JsonLogicLog + + AllReservedOperationsInterface, + "log" +>; + +export type RulesLogic = +>RulesLogic : RulesLogic + + | boolean + | string + | number + | null + // Accessing Data - https://jsonlogic.com/operations.html#accessing-data + | JsonLogicVar + | JsonLogicMissing + | JsonLogicMissingSome + // Logic and Boolean Operations - https://jsonlogic.com/operations.html#logic-and-boolean-operations + | JsonLogicIf + | JsonLogicEqual + | JsonLogicStrictEqual + | JsonLogicNotEqual + | JsonLogicStrictNotEqual + | JsonLogicNegation + | JsonLogicDoubleNegation + | JsonLogicOr + | JsonLogicAnd + // Numeric Operations - https://jsonlogic.com/operations.html#numeric-operations + | JsonLogicGreaterThan + | JsonLogicGreaterThanOrEqual + | JsonLogicLessThan + | JsonLogicLessThanOrEqual + | JsonLogicMax + | JsonLogicMin + | JsonLogicSum + | JsonLogicDifference + | JsonLogicProduct + | JsonLogicQuotient + | JsonLogicRemainder + // Array Operations - https://jsonlogic.com/operations.html#array-operations + | JsonLogicMap + | JsonLogicFilter + | JsonLogicReduce + | JsonLogicAll + | JsonLogicNone + | JsonLogicSome + | JsonLogicMerge + | JsonLogicInArray + // String Operations - https://jsonlogic.com/operations.html#string-operations + | JsonLogicInString + | JsonLogicCat + | JsonLogicSubstr + // Miscellaneous - https://jsonlogic.com/operations.html#miscellaneous + | JsonLogicLog + // Adding Operations (https://jsonlogic.com/add_operation.html) + | AddOps; + +export function add_operation(name: string, code: (...args: any[]) => any): void; +>add_operation : (name: string, code: (...args: any[]) => any) => void +>name : string +>code : (...args: any[]) => any +>args : any[] + +export function apply(logic: RulesLogic, data?: unknown): any; +>apply : (logic: RulesLogic, data?: unknown) => any +>logic : RulesLogic +>data : unknown + +export function rm_operation(name: string): void; +>rm_operation : (name: string) => void +>name : string + +// These functions are undocumented, but are exported by the real package +// so they're typed here for completeness. +export function is_logic(logic: any): logic is RulesLogic; +>is_logic : (logic: any) => logic is RulesLogic +>logic : any + +export function truthy(value: any): boolean; +>truthy : (value: any) => boolean +>value : any + +export function get_operator(logic: Record): string; +>get_operator : (logic: Record) => string +>logic : Record + +export function get_values(logic: Record): any; +>get_values : (logic: Record) => any +>logic : Record + +export function uses_data(logic: Record): any[]; +>uses_data : (logic: Record) => any[] +>logic : Record + +export function rule_like(rule: any, pattern: any): boolean; +>rule_like : (rule: any, pattern: any) => boolean +>rule : any +>pattern : any + +=== main.ts === +import * as jsonLogic from "./json-logic-js"; +>jsonLogic : typeof jsonLogic + +type StartsWithAndEndsWith = +>StartsWithAndEndsWith : StartsWithAndEndsWith + + | { startsWith: [JsonLogicWithAdditionalOperations, JsonLogicWithAdditionalOperations] } +>startsWith : [JsonLogicWithAdditionalOperations, JsonLogicWithAdditionalOperations] + + | { endsWith: [JsonLogicWithAdditionalOperations, JsonLogicWithAdditionalOperations] }; +>endsWith : [JsonLogicWithAdditionalOperations, JsonLogicWithAdditionalOperations] + +type JsonLogicWithAdditionalOperations = jsonLogic.RulesLogic; +>JsonLogicWithAdditionalOperations : JsonLogicWithAdditionalOperations +>jsonLogic : any + +const jsonExtendedLogic: JsonLogicWithAdditionalOperations = { +>jsonExtendedLogic : JsonLogicWithAdditionalOperations +>{ and: [{ startsWith: ["Springfield", "Spring"] }, { endsWith: ["Springfield", "field"] }],} : { and: ({ startsWith: [string, string]; } | { endsWith: [string, string]; })[]; } + + and: [{ startsWith: ["Springfield", "Spring"] }, { endsWith: ["Springfield", "field"] }], +>and : ({ startsWith: [string, string]; } | { endsWith: [string, string]; })[] +>[{ startsWith: ["Springfield", "Spring"] }, { endsWith: ["Springfield", "field"] }] : ({ startsWith: [string, string]; } | { endsWith: [string, string]; })[] +>{ startsWith: ["Springfield", "Spring"] } : { startsWith: [string, string]; } +>startsWith : [string, string] +>["Springfield", "Spring"] : [string, string] +>"Springfield" : "Springfield" +>"Spring" : "Spring" +>{ endsWith: ["Springfield", "field"] } : { endsWith: [string, string]; } +>endsWith : [string, string] +>["Springfield", "field"] : [string, string] +>"Springfield" : "Springfield" +>"field" : "field" + +}; +jsonLogic.apply(jsonExtendedLogic); +>jsonLogic.apply(jsonExtendedLogic) : any +>jsonLogic.apply : (logic: jsonLogic.RulesLogic, data?: unknown) => any +>jsonLogic : typeof jsonLogic +>apply : (logic: jsonLogic.RulesLogic, data?: unknown) => any +>jsonExtendedLogic : jsonLogic.JsonLogicAnd + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.errors.txt b/tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.errors.txt new file mode 100644 index 0000000000000..85a24505357b2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.errors.txt @@ -0,0 +1,86 @@ +maFirst.ts(8,1): error TS2322: Type 'MA<{ p: string; }>' is not assignable to type 'MA<{ p: "lit"; }>'. + The types of 'x.p' are incompatible between these types. + Type 'string' is not assignable to type '"lit"'. +maFirst.ts(9,1): error TS2322: Type 'MA<{ p: "lit"; }>' is not assignable to type 'MA<{ p: string; }>'. + Types of property 'b' are incompatible. + Type 'MB>' is not assignable to type 'MB>'. + Type 'MA<{ p: string; }>' is not assignable to type 'MA<{ p: "lit"; }>'. + The types of 'x.p' are incompatible between these types. + Type 'string' is not assignable to type '"lit"'. +maFirst.ts(11,1): error TS2322: Type 'MB<{ p: "lit"; }>' is not assignable to type 'MB<{ p: string; }>'. + Type '{ p: string; }' is not assignable to type '{ p: "lit"; }'. + Types of property 'p' are incompatible. + Type 'string' is not assignable to type '"lit"'. +mbFirst.ts(9,1): error TS2322: Type 'MB<{ p: "lit"; }>' is not assignable to type 'MB<{ p: string; }>'. + Type '{ p: string; }' is not assignable to type '{ p: "lit"; }'. + Types of property 'p' are incompatible. + Type 'string' is not assignable to type '"lit"'. +mbFirst.ts(10,1): error TS2322: Type 'MA<{ p: string; }>' is not assignable to type 'MA<{ p: "lit"; }>'. + The types of 'x.p' are incompatible between these types. + Type 'string' is not assignable to type '"lit"'. +mbFirst.ts(11,1): error TS2322: Type 'MA<{ p: "lit"; }>' is not assignable to type 'MA<{ p: string; }>'. + Types of property 'b' are incompatible. + Type 'MB>' is not assignable to type 'MB>'. + Type 'MA<{ p: string; }>' is not assignable to type 'MA<{ p: "lit"; }>'. + The types of 'x.p' are incompatible between these types. + Type 'string' is not assignable to type '"lit"'. + + +==== maFirst.ts (3 errors) ==== + export {}; + + type MA = { x: { [K in keyof T]-?: T[K] }; b: MB> }; + type MB = { f: (u: U) => void; a: MA> }; + + declare let as: MA<{ p: string }>, al: MA<{ p: "lit" }>; + declare let bs: MB<{ p: string }>, bl: MB<{ p: "lit" }>; + al = as; + ~~ +!!! error TS2322: Type 'MA<{ p: string; }>' is not assignable to type 'MA<{ p: "lit"; }>'. +!!! error TS2322: The types of 'x.p' are incompatible between these types. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + as = al; + ~~ +!!! error TS2322: Type 'MA<{ p: "lit"; }>' is not assignable to type 'MA<{ p: string; }>'. +!!! error TS2322: Types of property 'b' are incompatible. +!!! error TS2322: Type 'MB>' is not assignable to type 'MB>'. +!!! error TS2322: Type 'MA<{ p: string; }>' is not assignable to type 'MA<{ p: "lit"; }>'. +!!! error TS2322: The types of 'x.p' are incompatible between these types. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + bl = bs; + bs = bl; + ~~ +!!! error TS2322: Type 'MB<{ p: "lit"; }>' is not assignable to type 'MB<{ p: string; }>'. +!!! error TS2322: Type '{ p: string; }' is not assignable to type '{ p: "lit"; }'. +!!! error TS2322: Types of property 'p' are incompatible. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + +==== mbFirst.ts (3 errors) ==== + export {}; + + type MA = { x: { [K in keyof T]-?: T[K] }; b: MB> }; + type MB = { f: (u: U) => void; a: MA> }; + + declare let as: MA<{ p: string }>, al: MA<{ p: "lit" }>; + declare let bs: MB<{ p: string }>, bl: MB<{ p: "lit" }>; + bl = bs; + bs = bl; + ~~ +!!! error TS2322: Type 'MB<{ p: "lit"; }>' is not assignable to type 'MB<{ p: string; }>'. +!!! error TS2322: Type '{ p: string; }' is not assignable to type '{ p: "lit"; }'. +!!! error TS2322: Types of property 'p' are incompatible. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + al = as; + ~~ +!!! error TS2322: Type 'MA<{ p: string; }>' is not assignable to type 'MA<{ p: "lit"; }>'. +!!! error TS2322: The types of 'x.p' are incompatible between these types. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + as = al; + ~~ +!!! error TS2322: Type 'MA<{ p: "lit"; }>' is not assignable to type 'MA<{ p: string; }>'. +!!! error TS2322: Types of property 'b' are incompatible. +!!! error TS2322: Type 'MB>' is not assignable to type 'MB>'. +!!! error TS2322: Type 'MA<{ p: string; }>' is not assignable to type 'MA<{ p: "lit"; }>'. +!!! error TS2322: The types of 'x.p' are incompatible between these types. +!!! error TS2322: Type 'string' is not assignable to type '"lit"'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.symbols b/tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.symbols new file mode 100644 index 0000000000000..6859a8dde928b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.symbols @@ -0,0 +1,120 @@ +//// [tests/cases/compiler/varianceCycleStructuralFallback.ts] //// + +=== maFirst.ts === +export {}; + +type MA = { x: { [K in keyof T]-?: T[K] }; b: MB> }; +>MA : Symbol(MA, Decl(maFirst.ts, 0, 10)) +>T : Symbol(T, Decl(maFirst.ts, 2, 8)) +>x : Symbol(x, Decl(maFirst.ts, 2, 14)) +>K : Symbol(K, Decl(maFirst.ts, 2, 21)) +>T : Symbol(T, Decl(maFirst.ts, 2, 8)) +>T : Symbol(T, Decl(maFirst.ts, 2, 8)) +>K : Symbol(K, Decl(maFirst.ts, 2, 21)) +>b : Symbol(b, Decl(maFirst.ts, 2, 45)) +>MB : Symbol(MB, Decl(maFirst.ts, 2, 61)) +>MA : Symbol(MA, Decl(maFirst.ts, 0, 10)) +>T : Symbol(T, Decl(maFirst.ts, 2, 8)) + +type MB = { f: (u: U) => void; a: MA> }; +>MB : Symbol(MB, Decl(maFirst.ts, 2, 61)) +>U : Symbol(U, Decl(maFirst.ts, 3, 8)) +>f : Symbol(f, Decl(maFirst.ts, 3, 14)) +>u : Symbol(u, Decl(maFirst.ts, 3, 19)) +>U : Symbol(U, Decl(maFirst.ts, 3, 8)) +>a : Symbol(a, Decl(maFirst.ts, 3, 33)) +>MA : Symbol(MA, Decl(maFirst.ts, 0, 10)) +>MB : Symbol(MB, Decl(maFirst.ts, 2, 61)) +>U : Symbol(U, Decl(maFirst.ts, 3, 8)) + +declare let as: MA<{ p: string }>, al: MA<{ p: "lit" }>; +>as : Symbol(as, Decl(maFirst.ts, 5, 11)) +>MA : Symbol(MA, Decl(maFirst.ts, 0, 10)) +>p : Symbol(p, Decl(maFirst.ts, 5, 20)) +>al : Symbol(al, Decl(maFirst.ts, 5, 34)) +>MA : Symbol(MA, Decl(maFirst.ts, 0, 10)) +>p : Symbol(p, Decl(maFirst.ts, 5, 43)) + +declare let bs: MB<{ p: string }>, bl: MB<{ p: "lit" }>; +>bs : Symbol(bs, Decl(maFirst.ts, 6, 11)) +>MB : Symbol(MB, Decl(maFirst.ts, 2, 61)) +>p : Symbol(p, Decl(maFirst.ts, 6, 20)) +>bl : Symbol(bl, Decl(maFirst.ts, 6, 34)) +>MB : Symbol(MB, Decl(maFirst.ts, 2, 61)) +>p : Symbol(p, Decl(maFirst.ts, 6, 43)) + +al = as; +>al : Symbol(al, Decl(maFirst.ts, 5, 34)) +>as : Symbol(as, Decl(maFirst.ts, 5, 11)) + +as = al; +>as : Symbol(as, Decl(maFirst.ts, 5, 11)) +>al : Symbol(al, Decl(maFirst.ts, 5, 34)) + +bl = bs; +>bl : Symbol(bl, Decl(maFirst.ts, 6, 34)) +>bs : Symbol(bs, Decl(maFirst.ts, 6, 11)) + +bs = bl; +>bs : Symbol(bs, Decl(maFirst.ts, 6, 11)) +>bl : Symbol(bl, Decl(maFirst.ts, 6, 34)) + +=== mbFirst.ts === +export {}; + +type MA = { x: { [K in keyof T]-?: T[K] }; b: MB> }; +>MA : Symbol(MA, Decl(mbFirst.ts, 0, 10)) +>T : Symbol(T, Decl(mbFirst.ts, 2, 8)) +>x : Symbol(x, Decl(mbFirst.ts, 2, 14)) +>K : Symbol(K, Decl(mbFirst.ts, 2, 21)) +>T : Symbol(T, Decl(mbFirst.ts, 2, 8)) +>T : Symbol(T, Decl(mbFirst.ts, 2, 8)) +>K : Symbol(K, Decl(mbFirst.ts, 2, 21)) +>b : Symbol(b, Decl(mbFirst.ts, 2, 45)) +>MB : Symbol(MB, Decl(mbFirst.ts, 2, 61)) +>MA : Symbol(MA, Decl(mbFirst.ts, 0, 10)) +>T : Symbol(T, Decl(mbFirst.ts, 2, 8)) + +type MB = { f: (u: U) => void; a: MA> }; +>MB : Symbol(MB, Decl(mbFirst.ts, 2, 61)) +>U : Symbol(U, Decl(mbFirst.ts, 3, 8)) +>f : Symbol(f, Decl(mbFirst.ts, 3, 14)) +>u : Symbol(u, Decl(mbFirst.ts, 3, 19)) +>U : Symbol(U, Decl(mbFirst.ts, 3, 8)) +>a : Symbol(a, Decl(mbFirst.ts, 3, 33)) +>MA : Symbol(MA, Decl(mbFirst.ts, 0, 10)) +>MB : Symbol(MB, Decl(mbFirst.ts, 2, 61)) +>U : Symbol(U, Decl(mbFirst.ts, 3, 8)) + +declare let as: MA<{ p: string }>, al: MA<{ p: "lit" }>; +>as : Symbol(as, Decl(mbFirst.ts, 5, 11)) +>MA : Symbol(MA, Decl(mbFirst.ts, 0, 10)) +>p : Symbol(p, Decl(mbFirst.ts, 5, 20)) +>al : Symbol(al, Decl(mbFirst.ts, 5, 34)) +>MA : Symbol(MA, Decl(mbFirst.ts, 0, 10)) +>p : Symbol(p, Decl(mbFirst.ts, 5, 43)) + +declare let bs: MB<{ p: string }>, bl: MB<{ p: "lit" }>; +>bs : Symbol(bs, Decl(mbFirst.ts, 6, 11)) +>MB : Symbol(MB, Decl(mbFirst.ts, 2, 61)) +>p : Symbol(p, Decl(mbFirst.ts, 6, 20)) +>bl : Symbol(bl, Decl(mbFirst.ts, 6, 34)) +>MB : Symbol(MB, Decl(mbFirst.ts, 2, 61)) +>p : Symbol(p, Decl(mbFirst.ts, 6, 43)) + +bl = bs; +>bl : Symbol(bl, Decl(mbFirst.ts, 6, 34)) +>bs : Symbol(bs, Decl(mbFirst.ts, 6, 11)) + +bs = bl; +>bs : Symbol(bs, Decl(mbFirst.ts, 6, 11)) +>bl : Symbol(bl, Decl(mbFirst.ts, 6, 34)) + +al = as; +>al : Symbol(al, Decl(mbFirst.ts, 5, 34)) +>as : Symbol(as, Decl(mbFirst.ts, 5, 11)) + +as = al; +>as : Symbol(as, Decl(mbFirst.ts, 5, 11)) +>al : Symbol(al, Decl(mbFirst.ts, 5, 34)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.types b/tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.types new file mode 100644 index 0000000000000..e40fcb80e2fea --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceCycleStructuralFallback.types @@ -0,0 +1,94 @@ +//// [tests/cases/compiler/varianceCycleStructuralFallback.ts] //// + +=== maFirst.ts === +export {}; + +type MA = { x: { [K in keyof T]-?: T[K] }; b: MB> }; +>MA : MA +>x : { [K in keyof T]-?: T[K]; } +>b : MB> + +type MB = { f: (u: U) => void; a: MA> }; +>MB : MB +>f : (u: U) => void +>u : U +>a : MA> + +declare let as: MA<{ p: string }>, al: MA<{ p: "lit" }>; +>as : MA<{ p: string; }> +>p : string +>al : MA<{ p: "lit"; }> +>p : "lit" + +declare let bs: MB<{ p: string }>, bl: MB<{ p: "lit" }>; +>bs : MB<{ p: string; }> +>p : string +>bl : MB<{ p: "lit"; }> +>p : "lit" + +al = as; +>al = as : MA<{ p: string; }> +>al : MA<{ p: "lit"; }> +>as : MA<{ p: string; }> + +as = al; +>as = al : MA<{ p: "lit"; }> +>as : MA<{ p: string; }> +>al : MA<{ p: "lit"; }> + +bl = bs; +>bl = bs : MB<{ p: string; }> +>bl : MB<{ p: "lit"; }> +>bs : MB<{ p: string; }> + +bs = bl; +>bs = bl : MB<{ p: "lit"; }> +>bs : MB<{ p: string; }> +>bl : MB<{ p: "lit"; }> + +=== mbFirst.ts === +export {}; + +type MA = { x: { [K in keyof T]-?: T[K] }; b: MB> }; +>MA : MA +>x : { [K in keyof T]-?: T[K]; } +>b : MB> + +type MB = { f: (u: U) => void; a: MA> }; +>MB : MB +>f : (u: U) => void +>u : U +>a : MA> + +declare let as: MA<{ p: string }>, al: MA<{ p: "lit" }>; +>as : MA<{ p: string; }> +>p : string +>al : MA<{ p: "lit"; }> +>p : "lit" + +declare let bs: MB<{ p: string }>, bl: MB<{ p: "lit" }>; +>bs : MB<{ p: string; }> +>p : string +>bl : MB<{ p: "lit"; }> +>p : "lit" + +bl = bs; +>bl = bs : MB<{ p: string; }> +>bl : MB<{ p: "lit"; }> +>bs : MB<{ p: string; }> + +bs = bl; +>bs = bl : MB<{ p: "lit"; }> +>bs : MB<{ p: string; }> +>bl : MB<{ p: "lit"; }> + +al = as; +>al = as : MA<{ p: string; }> +>al : MA<{ p: "lit"; }> +>as : MA<{ p: string; }> + +as = al; +>as = al : MA<{ p: "lit"; }> +>as : MA<{ p: string; }> +>al : MA<{ p: "lit"; }> + diff --git a/tsc/testdata/baselines/reference/compiler/varianceDeclarationOrder.symbols b/tsc/testdata/baselines/reference/compiler/varianceDeclarationOrder.symbols new file mode 100644 index 0000000000000..a35b1188b91ef --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceDeclarationOrder.symbols @@ -0,0 +1,126 @@ +//// [tests/cases/compiler/varianceDeclarationOrder.ts] //// + +=== refFirst.ts === +type M = { kind: "m" }; +>M : Symbol(M, Decl(refFirst.ts, 0, 0)) +>kind : Symbol(kind, Decl(refFirst.ts, 0, 10)) + +type Filtered = { [K in keyof T as T[K] extends M ? K : never]: T[K] }; +>Filtered : Symbol(Filtered, Decl(refFirst.ts, 0, 23)) +>T : Symbol(T, Decl(refFirst.ts, 1, 14)) +>K : Symbol(K, Decl(refFirst.ts, 1, 22)) +>T : Symbol(T, Decl(refFirst.ts, 1, 14)) +>T : Symbol(T, Decl(refFirst.ts, 1, 14)) +>K : Symbol(K, Decl(refFirst.ts, 1, 22)) +>M : Symbol(M, Decl(refFirst.ts, 0, 0)) +>K : Symbol(K, Decl(refFirst.ts, 1, 22)) +>T : Symbol(T, Decl(refFirst.ts, 1, 14)) +>K : Symbol(K, Decl(refFirst.ts, 1, 22)) + +interface Config { measure: keyof T } +>Config : Symbol(Config, Decl(refFirst.ts, 1, 74)) +>T : Symbol(T, Decl(refFirst.ts, 2, 17)) +>measure : Symbol(Config.measure, Decl(refFirst.ts, 2, 21)) +>T : Symbol(T, Decl(refFirst.ts, 2, 17)) + +interface Ref { dataset: DS, N> } +>Ref : Symbol(Ref, Decl(refFirst.ts, 2, 40)) +>N : Symbol(N, Decl(refFirst.ts, 3, 14)) +>dataset : Symbol(Ref.dataset, Decl(refFirst.ts, 3, 18)) +>DS : Symbol(DS, Decl(refFirst.ts, 3, 54)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>M : Symbol(M, Decl(refFirst.ts, 0, 0)) +>N : Symbol(N, Decl(refFirst.ts, 3, 14)) + +interface DS { +>DS : Symbol(DS, Decl(refFirst.ts, 3, 54)) +>T : Symbol(T, Decl(refFirst.ts, 4, 13)) +>N : Symbol(N, Decl(refFirst.ts, 4, 15)) + + a(config: Config>): void; +>a : Symbol(DS.a, Decl(refFirst.ts, 4, 20)) +>config : Symbol(config, Decl(refFirst.ts, 5, 6)) +>Config : Symbol(Config, Decl(refFirst.ts, 1, 74)) +>Filtered : Symbol(Filtered, Decl(refFirst.ts, 0, 23)) +>T : Symbol(T, Decl(refFirst.ts, 4, 13)) + + b: Ref; +>b : Symbol(DS.b, Decl(refFirst.ts, 5, 41)) +>Ref : Symbol(Ref, Decl(refFirst.ts, 2, 40)) +>N : Symbol(N, Decl(refFirst.ts, 4, 15)) +} +declare const x: DS<{ total: M }, string>; +>x : Symbol(x, Decl(refFirst.ts, 8, 13)) +>DS : Symbol(DS, Decl(refFirst.ts, 3, 54)) +>total : Symbol(total, Decl(refFirst.ts, 8, 21)) +>M : Symbol(M, Decl(refFirst.ts, 0, 0)) + +export const y: DS, string> = x; +>y : Symbol(y, Decl(refFirst.ts, 9, 12)) +>DS : Symbol(DS, Decl(refFirst.ts, 3, 54)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>M : Symbol(M, Decl(refFirst.ts, 0, 0)) +>x : Symbol(x, Decl(refFirst.ts, 8, 13)) + +=== dsFirst.ts === +type M = { kind: "m" }; +>M : Symbol(M, Decl(dsFirst.ts, 0, 0)) +>kind : Symbol(kind, Decl(dsFirst.ts, 0, 10)) + +type Filtered = { [K in keyof T as T[K] extends M ? K : never]: T[K] }; +>Filtered : Symbol(Filtered, Decl(dsFirst.ts, 0, 23)) +>T : Symbol(T, Decl(dsFirst.ts, 1, 14)) +>K : Symbol(K, Decl(dsFirst.ts, 1, 22)) +>T : Symbol(T, Decl(dsFirst.ts, 1, 14)) +>T : Symbol(T, Decl(dsFirst.ts, 1, 14)) +>K : Symbol(K, Decl(dsFirst.ts, 1, 22)) +>M : Symbol(M, Decl(dsFirst.ts, 0, 0)) +>K : Symbol(K, Decl(dsFirst.ts, 1, 22)) +>T : Symbol(T, Decl(dsFirst.ts, 1, 14)) +>K : Symbol(K, Decl(dsFirst.ts, 1, 22)) + +interface Config { measure: keyof T } +>Config : Symbol(Config, Decl(dsFirst.ts, 1, 74)) +>T : Symbol(T, Decl(dsFirst.ts, 2, 17)) +>measure : Symbol(Config.measure, Decl(dsFirst.ts, 2, 21)) +>T : Symbol(T, Decl(dsFirst.ts, 2, 17)) + +interface DS { +>DS : Symbol(DS, Decl(dsFirst.ts, 2, 40)) +>T : Symbol(T, Decl(dsFirst.ts, 3, 13)) +>N : Symbol(N, Decl(dsFirst.ts, 3, 15)) + + a(config: Config>): void; +>a : Symbol(DS.a, Decl(dsFirst.ts, 3, 20)) +>config : Symbol(config, Decl(dsFirst.ts, 4, 6)) +>Config : Symbol(Config, Decl(dsFirst.ts, 1, 74)) +>Filtered : Symbol(Filtered, Decl(dsFirst.ts, 0, 23)) +>T : Symbol(T, Decl(dsFirst.ts, 3, 13)) + + b: Ref; +>b : Symbol(DS.b, Decl(dsFirst.ts, 4, 41)) +>Ref : Symbol(Ref, Decl(dsFirst.ts, 6, 1)) +>N : Symbol(N, Decl(dsFirst.ts, 3, 15)) +} +interface Ref { dataset: DS, N> } +>Ref : Symbol(Ref, Decl(dsFirst.ts, 6, 1)) +>N : Symbol(N, Decl(dsFirst.ts, 7, 14)) +>dataset : Symbol(Ref.dataset, Decl(dsFirst.ts, 7, 18)) +>DS : Symbol(DS, Decl(dsFirst.ts, 2, 40)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>M : Symbol(M, Decl(dsFirst.ts, 0, 0)) +>N : Symbol(N, Decl(dsFirst.ts, 7, 14)) + +declare const x: DS<{ total: M }, string>; +>x : Symbol(x, Decl(dsFirst.ts, 8, 13)) +>DS : Symbol(DS, Decl(dsFirst.ts, 2, 40)) +>total : Symbol(total, Decl(dsFirst.ts, 8, 21)) +>M : Symbol(M, Decl(dsFirst.ts, 0, 0)) + +export const y: DS, string> = x; +>y : Symbol(y, Decl(dsFirst.ts, 9, 12)) +>DS : Symbol(DS, Decl(dsFirst.ts, 2, 40)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>M : Symbol(M, Decl(dsFirst.ts, 0, 0)) +>x : Symbol(x, Decl(dsFirst.ts, 8, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceDeclarationOrder.types b/tsc/testdata/baselines/reference/compiler/varianceDeclarationOrder.types new file mode 100644 index 0000000000000..c084cea2f9d50 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceDeclarationOrder.types @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/varianceDeclarationOrder.ts] //// + +=== refFirst.ts === +type M = { kind: "m" }; +>M : M +>kind : "m" + +type Filtered = { [K in keyof T as T[K] extends M ? K : never]: T[K] }; +>Filtered : Filtered + +interface Config { measure: keyof T } +>measure : keyof T + +interface Ref { dataset: DS, N> } +>dataset : DS, N> + +interface DS { + a(config: Config>): void; +>a : (config: Config>) => void +>config : Config> + + b: Ref; +>b : Ref +} +declare const x: DS<{ total: M }, string>; +>x : DS<{ total: M; }, string> +>total : M + +export const y: DS, string> = x; +>y : DS, string> +>x : DS<{ total: M; }, string> + +=== dsFirst.ts === +type M = { kind: "m" }; +>M : M +>kind : "m" + +type Filtered = { [K in keyof T as T[K] extends M ? K : never]: T[K] }; +>Filtered : Filtered + +interface Config { measure: keyof T } +>measure : keyof T + +interface DS { + a(config: Config>): void; +>a : (config: Config>) => void +>config : Config> + + b: Ref; +>b : Ref +} +interface Ref { dataset: DS, N> } +>dataset : DS, N> + +declare const x: DS<{ total: M }, string>; +>x : DS<{ total: M; }, string> +>total : M + +export const y: DS, string> = x; +>y : DS, string> +>x : DS<{ total: M; }, string> + diff --git a/tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.errors.txt b/tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.errors.txt new file mode 100644 index 0000000000000..d3d975854426a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.errors.txt @@ -0,0 +1,63 @@ +varianceMeasuredWithinCircularity.ts(24,5): error TS2322: Type 'Selection' is not assignable to type 'Selection'. + Types of property 'join' are incompatible. + Type '(enter: string | ((elem: Selection) => Selection | TransitionLike)) => Selection' is not assignable to type '(enter: string | ((elem: Selection) => Selection | TransitionLike)) => Selection'. + Types of parameters 'enter' and 'enter' are incompatible. + Type 'string | ((elem: Selection) => Selection | TransitionLike)' is not assignable to type 'string | ((elem: Selection) => Selection | TransitionLike)'. + Type '(elem: Selection) => Selection | TransitionLike' is not assignable to type 'string | ((elem: Selection) => Selection | TransitionLike)'. + Type '(elem: Selection) => Selection | TransitionLike' is not assignable to type '(elem: Selection) => Selection | TransitionLike'. + Type 'Selection | TransitionLike' is not assignable to type 'Selection | TransitionLike'. + Type 'Selection' is not assignable to type 'Selection | TransitionLike'. + Type 'Selection' is not assignable to type 'Selection'. + Types of property 'data' are incompatible. + Type '(key: (parent: Base) => string) => Selection' is not assignable to type '(key: (parent: Derived) => string) => Selection'. + Types of parameters 'key' and 'key' are incompatible. + Types of parameters 'parent' and 'parent' are incompatible. + Property 'derived' is missing in type 'Base' but required in type 'Derived'. + + +==== varianceMeasuredWithinCircularity.ts (1 errors) ==== + // The variances of Selection and TransitionLike depend on each other. + // The callback of `data` requires Selection to be covariant in P, while + // `join` passes Selection to a callback, which then requires it to + // be contravariant in P, so Selection is invariant in P. TransitionLike + // reaches P of a Selection through `selection().children()`, so it is + // invariant in G. Both must hold whichever variance is measured first. + + export {}; + + interface Base { base: string } + interface Derived extends Base { derived: string } + + interface Selection { + data(key: (parent: P) => string): Selection; + join(enter: string | ((elem: Selection) => Selection | TransitionLike)): Selection; + children(): Selection; + } + + interface TransitionLike { + selection(): Selection; + } + + declare let s1: Selection; + let s2: Selection = s1; + ~~ +!!! error TS2322: Type 'Selection' is not assignable to type 'Selection'. +!!! error TS2322: Types of property 'join' are incompatible. +!!! error TS2322: Type '(enter: string | ((elem: Selection) => Selection | TransitionLike)) => Selection' is not assignable to type '(enter: string | ((elem: Selection) => Selection | TransitionLike)) => Selection'. +!!! error TS2322: Types of parameters 'enter' and 'enter' are incompatible. +!!! error TS2322: Type 'string | ((elem: Selection) => Selection | TransitionLike)' is not assignable to type 'string | ((elem: Selection) => Selection | TransitionLike)'. +!!! error TS2322: Type '(elem: Selection) => Selection | TransitionLike' is not assignable to type 'string | ((elem: Selection) => Selection | TransitionLike)'. +!!! error TS2322: Type '(elem: Selection) => Selection | TransitionLike' is not assignable to type '(elem: Selection) => Selection | TransitionLike'. +!!! error TS2322: Type 'Selection | TransitionLike' is not assignable to type 'Selection | TransitionLike'. +!!! error TS2322: Type 'Selection' is not assignable to type 'Selection | TransitionLike'. +!!! error TS2322: Type 'Selection' is not assignable to type 'Selection'. +!!! error TS2322: Types of property 'data' are incompatible. +!!! error TS2322: Type '(key: (parent: Base) => string) => Selection' is not assignable to type '(key: (parent: Derived) => string) => Selection'. +!!! error TS2322: Types of parameters 'key' and 'key' are incompatible. +!!! error TS2322: Types of parameters 'parent' and 'parent' are incompatible. +!!! error TS2322: Property 'derived' is missing in type 'Base' but required in type 'Derived'. +!!! related TS2728 varianceMeasuredWithinCircularity.ts:11:34: 'derived' is declared here. + + declare let t1: TransitionLike; + let t2: TransitionLike = t1; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.symbols b/tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.symbols new file mode 100644 index 0000000000000..23cef834c47e8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.symbols @@ -0,0 +1,89 @@ +//// [tests/cases/compiler/varianceMeasuredWithinCircularity.ts] //// + +=== varianceMeasuredWithinCircularity.ts === +// The variances of Selection and TransitionLike depend on each other. +// The callback of `data` requires Selection to be covariant in P, while +// `join` passes Selection to a callback, which then requires it to +// be contravariant in P, so Selection is invariant in P. TransitionLike +// reaches P of a Selection through `selection().children()`, so it is +// invariant in G. Both must hold whichever variance is measured first. + +export {}; + +interface Base { base: string } +>Base : Symbol(Base, Decl(varianceMeasuredWithinCircularity.ts, 7, 10)) +>base : Symbol(Base.base, Decl(varianceMeasuredWithinCircularity.ts, 9, 16)) + +interface Derived extends Base { derived: string } +>Derived : Symbol(Derived, Decl(varianceMeasuredWithinCircularity.ts, 9, 31)) +>Base : Symbol(Base, Decl(varianceMeasuredWithinCircularity.ts, 7, 10)) +>derived : Symbol(Derived.derived, Decl(varianceMeasuredWithinCircularity.ts, 10, 32)) + +interface Selection { +>Selection : Symbol(Selection, Decl(varianceMeasuredWithinCircularity.ts, 10, 50)) +>G : Symbol(G, Decl(varianceMeasuredWithinCircularity.ts, 12, 20)) +>P : Symbol(P, Decl(varianceMeasuredWithinCircularity.ts, 12, 22)) + + data(key: (parent: P) => string): Selection; +>data : Symbol(Selection.data, Decl(varianceMeasuredWithinCircularity.ts, 12, 27)) +>key : Symbol(key, Decl(varianceMeasuredWithinCircularity.ts, 13, 9)) +>parent : Symbol(parent, Decl(varianceMeasuredWithinCircularity.ts, 13, 15)) +>P : Symbol(P, Decl(varianceMeasuredWithinCircularity.ts, 12, 22)) +>Selection : Symbol(Selection, Decl(varianceMeasuredWithinCircularity.ts, 10, 50)) +>G : Symbol(G, Decl(varianceMeasuredWithinCircularity.ts, 12, 20)) +>P : Symbol(P, Decl(varianceMeasuredWithinCircularity.ts, 12, 22)) + + join(enter: string | ((elem: Selection) => Selection | TransitionLike)): Selection; +>join : Symbol(Selection.join, Decl(varianceMeasuredWithinCircularity.ts, 13, 54)) +>enter : Symbol(enter, Decl(varianceMeasuredWithinCircularity.ts, 14, 9)) +>elem : Symbol(elem, Decl(varianceMeasuredWithinCircularity.ts, 14, 27)) +>Selection : Symbol(Selection, Decl(varianceMeasuredWithinCircularity.ts, 10, 50)) +>G : Symbol(G, Decl(varianceMeasuredWithinCircularity.ts, 12, 20)) +>P : Symbol(P, Decl(varianceMeasuredWithinCircularity.ts, 12, 22)) +>Selection : Symbol(Selection, Decl(varianceMeasuredWithinCircularity.ts, 10, 50)) +>G : Symbol(G, Decl(varianceMeasuredWithinCircularity.ts, 12, 20)) +>P : Symbol(P, Decl(varianceMeasuredWithinCircularity.ts, 12, 22)) +>TransitionLike : Symbol(TransitionLike, Decl(varianceMeasuredWithinCircularity.ts, 16, 1)) +>G : Symbol(G, Decl(varianceMeasuredWithinCircularity.ts, 12, 20)) +>Selection : Symbol(Selection, Decl(varianceMeasuredWithinCircularity.ts, 10, 50)) +>G : Symbol(G, Decl(varianceMeasuredWithinCircularity.ts, 12, 20)) +>P : Symbol(P, Decl(varianceMeasuredWithinCircularity.ts, 12, 22)) + + children(): Selection; +>children : Symbol(Selection.children, Decl(varianceMeasuredWithinCircularity.ts, 14, 108)) +>Selection : Symbol(Selection, Decl(varianceMeasuredWithinCircularity.ts, 10, 50)) +>G : Symbol(G, Decl(varianceMeasuredWithinCircularity.ts, 12, 20)) +} + +interface TransitionLike { +>TransitionLike : Symbol(TransitionLike, Decl(varianceMeasuredWithinCircularity.ts, 16, 1)) +>G : Symbol(G, Decl(varianceMeasuredWithinCircularity.ts, 18, 25)) + + selection(): Selection; +>selection : Symbol(TransitionLike.selection, Decl(varianceMeasuredWithinCircularity.ts, 18, 29)) +>Selection : Symbol(Selection, Decl(varianceMeasuredWithinCircularity.ts, 10, 50)) +>G : Symbol(G, Decl(varianceMeasuredWithinCircularity.ts, 18, 25)) +} + +declare let s1: Selection; +>s1 : Symbol(s1, Decl(varianceMeasuredWithinCircularity.ts, 22, 11)) +>Selection : Symbol(Selection, Decl(varianceMeasuredWithinCircularity.ts, 10, 50)) +>Derived : Symbol(Derived, Decl(varianceMeasuredWithinCircularity.ts, 9, 31)) + +let s2: Selection = s1; +>s2 : Symbol(s2, Decl(varianceMeasuredWithinCircularity.ts, 23, 3)) +>Selection : Symbol(Selection, Decl(varianceMeasuredWithinCircularity.ts, 10, 50)) +>Base : Symbol(Base, Decl(varianceMeasuredWithinCircularity.ts, 7, 10)) +>s1 : Symbol(s1, Decl(varianceMeasuredWithinCircularity.ts, 22, 11)) + +declare let t1: TransitionLike; +>t1 : Symbol(t1, Decl(varianceMeasuredWithinCircularity.ts, 25, 11)) +>TransitionLike : Symbol(TransitionLike, Decl(varianceMeasuredWithinCircularity.ts, 16, 1)) +>Derived : Symbol(Derived, Decl(varianceMeasuredWithinCircularity.ts, 9, 31)) + +let t2: TransitionLike = t1; +>t2 : Symbol(t2, Decl(varianceMeasuredWithinCircularity.ts, 26, 3)) +>TransitionLike : Symbol(TransitionLike, Decl(varianceMeasuredWithinCircularity.ts, 16, 1)) +>Base : Symbol(Base, Decl(varianceMeasuredWithinCircularity.ts, 7, 10)) +>t1 : Symbol(t1, Decl(varianceMeasuredWithinCircularity.ts, 25, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.types b/tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.types new file mode 100644 index 0000000000000..e6075d898565c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceMeasuredWithinCircularity.types @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/varianceMeasuredWithinCircularity.ts] //// + +=== varianceMeasuredWithinCircularity.ts === +// The variances of Selection and TransitionLike depend on each other. +// The callback of `data` requires Selection to be covariant in P, while +// `join` passes Selection to a callback, which then requires it to +// be contravariant in P, so Selection is invariant in P. TransitionLike +// reaches P of a Selection through `selection().children()`, so it is +// invariant in G. Both must hold whichever variance is measured first. + +export {}; + +interface Base { base: string } +>base : string + +interface Derived extends Base { derived: string } +>derived : string + +interface Selection { + data(key: (parent: P) => string): Selection; +>data : (key: (parent: P) => string) => Selection +>key : (parent: P) => string +>parent : P + + join(enter: string | ((elem: Selection) => Selection | TransitionLike)): Selection; +>join : (enter: string | ((elem: Selection) => Selection | TransitionLike)) => Selection +>enter : string | ((elem: Selection) => Selection | TransitionLike) +>elem : Selection + + children(): Selection; +>children : () => Selection +} + +interface TransitionLike { + selection(): Selection; +>selection : () => Selection +} + +declare let s1: Selection; +>s1 : Selection + +let s2: Selection = s1; +>s2 : Selection +>s1 : Selection + +declare let t1: TransitionLike; +>t1 : TransitionLike + +let t2: TransitionLike = t1; +>t2 : TransitionLike +>t1 : TransitionLike + diff --git a/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=default).symbols new file mode 100644 index 0000000000000..c191ffdb6c463 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=default).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/varianceSupersededMeasurementKeepsOtherComparisons.ts] //// + +=== varianceSupersededMeasurementKeepsOtherComparisons.ts === +// Reduced from zod v4 with LangGraph's `register` augmentation +// (langchain-ai/openwiki). Measuring the variance of B reaches A, which is +// smaller, so the measurement is superseded and measured again from A. While +// it finishes, comparing the parameters of `m` re-enters B, and its return +// type resolves `Check>`, whose comparison is not part of the +// measurement. It must still compare as it would from scratch, as the +// resolved conditional type is kept. + +declare let b1: B; +>b1 : Symbol(b1, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 8, 11)) +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) + +declare let b2: B<"s">; +>b2 : Symbol(b2, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 9, 11)) +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) + +b1 = b2; +>b1 : Symbol(b1, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 8, 11)) +>b2 : Symbol(b2, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 9, 11)) + +interface A { m(x: B): Check>; } +>A : Symbol(A, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 10, 8)) +>T : Symbol(T, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 12)) +>m : Symbol(A.m, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 16)) +>x : Symbol(x, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 19)) +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) +>T : Symbol(T, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 12)) +>Check : Symbol(Check, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 27)) +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) + +interface B { a: A; } +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) +>T : Symbol(T, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 12)) +>a : Symbol(B.a, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 16)) +>A : Symbol(A, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 10, 8)) +>T : Symbol(T, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 12)) + +type Check = U extends { a: unknown } ? "yes" : "no"; +>Check : Symbol(Check, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 27)) +>U : Symbol(U, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 14, 11)) +>U : Symbol(U, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 14, 11)) +>a : Symbol(a, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 14, 27)) + +const v: Check> = "yes"; +>v : Symbol(v, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 16, 5)) +>Check : Symbol(Check, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 27)) +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=default).types new file mode 100644 index 0000000000000..0e07b1ec22a18 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=default).types @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/varianceSupersededMeasurementKeepsOtherComparisons.ts] //// + +=== varianceSupersededMeasurementKeepsOtherComparisons.ts === +// Reduced from zod v4 with LangGraph's `register` augmentation +// (langchain-ai/openwiki). Measuring the variance of B reaches A, which is +// smaller, so the measurement is superseded and measured again from A. While +// it finishes, comparing the parameters of `m` re-enters B, and its return +// type resolves `Check>`, whose comparison is not part of the +// measurement. It must still compare as it would from scratch, as the +// resolved conditional type is kept. + +declare let b1: B; +>b1 : B + +declare let b2: B<"s">; +>b2 : B<"s"> + +b1 = b2; +>b1 = b2 : B<"s"> +>b1 : B +>b2 : B<"s"> + +interface A { m(x: B): Check>; } +>m : (x: B) => Check> +>x : B + +interface B { a: A; } +>a : A + +type Check = U extends { a: unknown } ? "yes" : "no"; +>Check : Check +>a : unknown + +const v: Check> = "yes"; +>v : "yes" +>"yes" : "yes" + diff --git a/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..c191ffdb6c463 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=typesfirst).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/varianceSupersededMeasurementKeepsOtherComparisons.ts] //// + +=== varianceSupersededMeasurementKeepsOtherComparisons.ts === +// Reduced from zod v4 with LangGraph's `register` augmentation +// (langchain-ai/openwiki). Measuring the variance of B reaches A, which is +// smaller, so the measurement is superseded and measured again from A. While +// it finishes, comparing the parameters of `m` re-enters B, and its return +// type resolves `Check>`, whose comparison is not part of the +// measurement. It must still compare as it would from scratch, as the +// resolved conditional type is kept. + +declare let b1: B; +>b1 : Symbol(b1, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 8, 11)) +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) + +declare let b2: B<"s">; +>b2 : Symbol(b2, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 9, 11)) +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) + +b1 = b2; +>b1 : Symbol(b1, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 8, 11)) +>b2 : Symbol(b2, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 9, 11)) + +interface A { m(x: B): Check>; } +>A : Symbol(A, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 10, 8)) +>T : Symbol(T, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 12)) +>m : Symbol(A.m, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 16)) +>x : Symbol(x, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 19)) +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) +>T : Symbol(T, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 12)) +>Check : Symbol(Check, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 27)) +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) + +interface B { a: A; } +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) +>T : Symbol(T, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 12)) +>a : Symbol(B.a, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 16)) +>A : Symbol(A, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 10, 8)) +>T : Symbol(T, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 12)) + +type Check = U extends { a: unknown } ? "yes" : "no"; +>Check : Symbol(Check, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 27)) +>U : Symbol(U, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 14, 11)) +>U : Symbol(U, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 14, 11)) +>a : Symbol(a, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 14, 27)) + +const v: Check> = "yes"; +>v : Symbol(v, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 16, 5)) +>Check : Symbol(Check, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 13, 27)) +>B : Symbol(B, Decl(varianceSupersededMeasurementKeepsOtherComparisons.ts, 12, 48)) + diff --git a/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=typesfirst).types new file mode 100644 index 0000000000000..0e07b1ec22a18 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/varianceSupersededMeasurementKeepsOtherComparisons(checkorder=typesfirst).types @@ -0,0 +1,37 @@ +//// [tests/cases/compiler/varianceSupersededMeasurementKeepsOtherComparisons.ts] //// + +=== varianceSupersededMeasurementKeepsOtherComparisons.ts === +// Reduced from zod v4 with LangGraph's `register` augmentation +// (langchain-ai/openwiki). Measuring the variance of B reaches A, which is +// smaller, so the measurement is superseded and measured again from A. While +// it finishes, comparing the parameters of `m` re-enters B, and its return +// type resolves `Check>`, whose comparison is not part of the +// measurement. It must still compare as it would from scratch, as the +// resolved conditional type is kept. + +declare let b1: B; +>b1 : B + +declare let b2: B<"s">; +>b2 : B<"s"> + +b1 = b2; +>b1 = b2 : B<"s"> +>b1 : B +>b2 : B<"s"> + +interface A { m(x: B): Check>; } +>m : (x: B) => Check> +>x : B + +interface B { a: A; } +>a : A + +type Check = U extends { a: unknown } ? "yes" : "no"; +>Check : Check +>a : unknown + +const v: Check> = "yes"; +>v : "yes" +>"yes" : "yes" + diff --git a/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).errors.txt new file mode 100644 index 0000000000000..5529a3e5e68c6 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).errors.txt @@ -0,0 +1,149 @@ +dependentDestructuredVariablesReferenceInDeclaration1.ts(4,9): error TS2322: Type '{ c: number; f: any; }' is not assignable to type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(4,11): error TS2339: Property 'c' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(4,14): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(4,14): error TS7022: 'f' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +dependentDestructuredVariablesReferenceInDeclaration1.ts(4,45): error TS2448: Block-scoped variable 'f' used before its declaration. +dependentDestructuredVariablesReferenceInDeclaration1.ts(9,9): error TS2322: Type '{ c: number; f: () => any; }' is not assignable to type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(9,11): error TS2339: Property 'c' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(9,14): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(14,9): error TS2322: Type '{ c: number; f: number; g: number; }' is not assignable to type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(14,11): error TS2339: Property 'c' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(14,14): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(14,17): error TS2339: Property 'g' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,9): error TS2322: Type '{ c: number; f: number; }' is not assignable to type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,11): error TS2339: Property 'c' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,14): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,14): error TS2451: Cannot redeclare block-scoped variable 'f'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,17): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,17): error TS2451: Cannot redeclare block-scoped variable 'f'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(25,9): error TS2322: Type '{ c: number; f: number; }' is not assignable to type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(25,11): error TS2339: Property 'c' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(25,14): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(25,17): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(30,14): error TS7022: 'f' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +dependentDestructuredVariablesReferenceInDeclaration1.ts(30,71): error TS2448: Block-scoped variable 'f' used before its declaration. +dependentDestructuredVariablesReferenceInDeclaration1.ts(58,14): error TS2451: Cannot redeclare block-scoped variable 'f'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(58,17): error TS2451: Cannot redeclare block-scoped variable 'f'. + + +==== dependentDestructuredVariablesReferenceInDeclaration1.ts (26 errors) ==== + // https://github.com/microsoft/TypeScript/issues/62993 + + { + const { c, f }: string | number = { c: 0, f }; + ~~~~~~~~ +!!! error TS2322: Type '{ c: number; f: any; }' is not assignable to type 'string | number'. + ~ +!!! error TS2339: Property 'c' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + ~ +!!! error TS7022: 'f' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~ +!!! error TS2448: Block-scoped variable 'f' used before its declaration. +!!! related TS2728 dependentDestructuredVariablesReferenceInDeclaration1.ts:4:14: 'f' is declared here. + f; + } + + { + const { c, f }: string | number = { c: 0, f: () => f }; + ~~~~~~~~ +!!! error TS2322: Type '{ c: number; f: () => any; }' is not assignable to type 'string | number'. + ~ +!!! error TS2339: Property 'c' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + f; + } + + { + const { c, f, g = f }: string | number = { c: 0, f: 0, g: 0 }; + ~~~~~~~~~~~~~~~ +!!! error TS2322: Type '{ c: number; f: number; g: number; }' is not assignable to type 'string | number'. + ~ +!!! error TS2339: Property 'c' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'g' does not exist on type 'string | number'. + f; + g; + } + + { + const { c, f, f }: string | number = { c: 0, f: 0 }; + ~~~~~~~~~~~ +!!! error TS2322: Type '{ c: number; f: number; }' is not assignable to type 'string | number'. + ~ +!!! error TS2339: Property 'c' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + ~ +!!! error TS2451: Cannot redeclare block-scoped variable 'f'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + ~ +!!! error TS2451: Cannot redeclare block-scoped variable 'f'. + f; + } + + { + const { c, f, f: g }: string | number = { c: 0, f: 0 }; + ~~~~~~~~~~~~~~ +!!! error TS2322: Type '{ c: number; f: number; }' is not assignable to type 'string | number'. + ~ +!!! error TS2339: Property 'c' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + g; + } + + { + const { c, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f }; + ~ +!!! error TS7022: 'f' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~ +!!! error TS2448: Block-scoped variable 'f' used before its declaration. +!!! related TS2728 dependentDestructuredVariablesReferenceInDeclaration1.ts:30:14: 'f' is declared here. + f; + } + + { + const { c, f }: { c: 0; f: () => unknown } | { c: 1; f: string } = { + c: 0, + f: () => f, + }; + f; + } + + { + const { + c, + f, + g = f, + }: + | { c: 0; f: bigint; g?: bigint | number } + | { c: 1; f: number; g: string } = { + c: 0, + f: 10n, + }; + f; + g; + } + + { + const { c, f, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; + ~ +!!! error TS2451: Cannot redeclare block-scoped variable 'f'. + ~ +!!! error TS2451: Cannot redeclare block-scoped variable 'f'. + f; + } + + { + const { c, f, f: g }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; + g; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).symbols b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).symbols new file mode 100644 index 0000000000000..dd70a6b10cfe7 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).symbols @@ -0,0 +1,175 @@ +//// [tests/cases/conformance/controlFlow/dependentDestructuredVariablesReferenceInDeclaration1.ts] //// + +=== dependentDestructuredVariablesReferenceInDeclaration1.ts === +// https://github.com/microsoft/TypeScript/issues/62993 + +{ + const { c, f }: string | number = { c: 0, f }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 3, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 3, 12)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 3, 37)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 3, 43)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 3, 12)) +} + +{ + const { c, f }: string | number = { c: 0, f: () => f }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 12)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 37)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 43)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 12)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 12)) +} + +{ + const { c, f, g = f }: string | number = { c: 0, f: 0, g: 0 }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 12)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 15)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 12)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 44)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 50)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 56)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 12)) + + g; +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 15)) +} + +{ + const { c, f, f }: string | number = { c: 0, f: 0 }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 12)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 15)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 40)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 46)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 12)) +} + +{ + const { c, f, f: g }: string | number = { c: 0, f: 0 }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 12)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 15)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 43)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 49)) + + g; +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 15)) +} + +{ + const { c, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 12)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 19)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 25)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 41)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 47)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 63)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 69)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 12)) +} + +{ + const { c, f }: { c: 0; f: () => unknown } | { c: 1; f: string } = { +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 12)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 19)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 25)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 48)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 54)) + + c: 0, +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 70)) + + f: () => f, +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 35, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 12)) + + }; + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 12)) +} + +{ + const { + c, +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 42, 9)) + + f, +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 43, 6)) + + g = f, +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 44, 6)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 43, 6)) + + }: + | { c: 0; f: bigint; g?: bigint | number } +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 47, 7)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 47, 13)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 47, 24)) + + | { c: 1; f: number; g: string } = { +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 48, 7)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 48, 13)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 48, 24)) + + c: 0, +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 48, 40)) + + f: 10n, +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 49, 9)) + + }; + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 43, 6)) + + g; +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 44, 6)) +} + +{ + const { c, f, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 12)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 15)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 22)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 28)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 44)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 50)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 66)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 72)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 12)) +} + +{ + const { c, f, f: g }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 12)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 31), Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 53)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 15)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 25)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 31)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 47)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 53)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 69)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 75)) + + g; +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 15)) +} + diff --git a/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).types b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).types new file mode 100644 index 0000000000000..1e1c61a26976d --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=default).types @@ -0,0 +1,205 @@ +//// [tests/cases/conformance/controlFlow/dependentDestructuredVariablesReferenceInDeclaration1.ts] //// + +=== dependentDestructuredVariablesReferenceInDeclaration1.ts === +// https://github.com/microsoft/TypeScript/issues/62993 + +{ + const { c, f }: string | number = { c: 0, f }; +>c : any +>f : any +>{ c: 0, f } : { c: number; f: any; } +>c : number +>0 : 0 +>f : any + + f; +>f : any +} + +{ + const { c, f }: string | number = { c: 0, f: () => f }; +>c : any +>f : any +>{ c: 0, f: () => f } : { c: number; f: () => any; } +>c : number +>0 : 0 +>f : () => any +>() => f : () => any +>f : any + + f; +>f : any +} + +{ + const { c, f, g = f }: string | number = { c: 0, f: 0, g: 0 }; +>c : any +>f : any +>g : any +>f : any +>{ c: 0, f: 0, g: 0 } : { c: number; f: number; g: number; } +>c : number +>0 : 0 +>f : number +>0 : 0 +>g : number +>0 : 0 + + f; +>f : any + + g; +>g : any +} + +{ + const { c, f, f }: string | number = { c: 0, f: 0 }; +>c : any +>f : any +>f : any +>{ c: 0, f: 0 } : { c: number; f: number; } +>c : number +>0 : 0 +>f : number +>0 : 0 + + f; +>f : any +} + +{ + const { c, f, f: g }: string | number = { c: 0, f: 0 }; +>c : any +>f : any +>f : any +>g : any +>{ c: 0, f: 0 } : { c: number; f: number; } +>c : number +>0 : 0 +>f : number +>0 : 0 + + g; +>g : any +} + +{ + const { c, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f }; +>c : 0 | 1 +>f : any +>c : 0 +>f : number +>c : 1 +>f : string +>{ c: 0, f } : { c: 0; f: any; } +>c : 0 +>0 : 0 +>f : any + + f; +>f : string | number +} + +{ + const { c, f }: { c: 0; f: () => unknown } | { c: 1; f: string } = { +>c : 0 | 1 +>f : string | (() => unknown) +>c : 0 +>f : () => unknown +>c : 1 +>f : string +>{ c: 0, f: () => f, } : { c: 0; f: () => string | (() => unknown); } + + c: 0, +>c : 0 +>0 : 0 + + f: () => f, +>f : () => string | (() => unknown) +>() => f : () => string | (() => unknown) +>f : string | (() => unknown) + + }; + f; +>f : () => unknown +} + +{ + const { + c, +>c : 0 | 1 + + f, +>f : number | bigint + + g = f, +>g : string | number | bigint +>f : number | bigint + + }: + | { c: 0; f: bigint; g?: bigint | number } +>c : 0 +>f : bigint +>g : number | bigint | undefined + + | { c: 1; f: number; g: string } = { +>c : 1 +>f : number +>g : string +>{ c: 0, f: 10n, } : { c: 0; f: bigint; } + + c: 0, +>c : 0 +>0 : 0 + + f: 10n, +>f : bigint +>10n : 10n + + }; + f; +>f : bigint + + g; +>g : string | number | bigint +} + +{ + const { c, f, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; +>c : 0 | 1 +>f : string | number +>f : string | number +>c : 0 +>f : number +>c : 1 +>f : string +>{ c: 0, f: 0 } : { c: 0; f: number; } +>c : 0 +>0 : 0 +>f : number +>0 : 0 + + f; +>f : number +} + +{ + const { c, f, f: g }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; +>c : 0 | 1 +>f : string | number +>f : any +>g : string | number +>c : 0 +>f : number +>c : 1 +>f : string +>{ c: 0, f: 0 } : { c: 0; f: number; } +>c : 0 +>0 : 0 +>f : number +>0 : 0 + + g; +>g : number +} + diff --git a/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..981a83e22c019 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).errors.txt @@ -0,0 +1,152 @@ +dependentDestructuredVariablesReferenceInDeclaration1.ts(4,9): error TS2322: Type '{ c: number; f: any; }' is not assignable to type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(4,11): error TS2339: Property 'c' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(4,14): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(4,14): error TS7022: 'f' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +dependentDestructuredVariablesReferenceInDeclaration1.ts(4,45): error TS2448: Block-scoped variable 'f' used before its declaration. +dependentDestructuredVariablesReferenceInDeclaration1.ts(9,9): error TS2322: Type '{ c: number; f: () => any; }' is not assignable to type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(9,11): error TS2339: Property 'c' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(9,14): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(14,9): error TS2322: Type '{ c: number; f: number; g: number; }' is not assignable to type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(14,11): error TS2339: Property 'c' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(14,14): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(14,17): error TS2339: Property 'g' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,9): error TS2322: Type '{ c: number; f: number; }' is not assignable to type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,11): error TS2339: Property 'c' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,14): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,14): error TS2451: Cannot redeclare block-scoped variable 'f'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,17): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(20,17): error TS2451: Cannot redeclare block-scoped variable 'f'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(25,9): error TS2322: Type '{ c: number; f: number; }' is not assignable to type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(25,11): error TS2339: Property 'c' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(25,14): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(25,17): error TS2339: Property 'f' does not exist on type 'string | number'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(30,14): error TS7022: 'f' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +dependentDestructuredVariablesReferenceInDeclaration1.ts(30,71): error TS2448: Block-scoped variable 'f' used before its declaration. +dependentDestructuredVariablesReferenceInDeclaration1.ts(35,14): error TS7022: 'f' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +dependentDestructuredVariablesReferenceInDeclaration1.ts(58,14): error TS2451: Cannot redeclare block-scoped variable 'f'. +dependentDestructuredVariablesReferenceInDeclaration1.ts(58,17): error TS2451: Cannot redeclare block-scoped variable 'f'. + + +==== dependentDestructuredVariablesReferenceInDeclaration1.ts (27 errors) ==== + // https://github.com/microsoft/TypeScript/issues/62993 + + { + const { c, f }: string | number = { c: 0, f }; + ~~~~~~~~ +!!! error TS2322: Type '{ c: number; f: any; }' is not assignable to type 'string | number'. + ~ +!!! error TS2339: Property 'c' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + ~ +!!! error TS7022: 'f' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~ +!!! error TS2448: Block-scoped variable 'f' used before its declaration. +!!! related TS2728 dependentDestructuredVariablesReferenceInDeclaration1.ts:4:14: 'f' is declared here. + f; + } + + { + const { c, f }: string | number = { c: 0, f: () => f }; + ~~~~~~~~ +!!! error TS2322: Type '{ c: number; f: () => any; }' is not assignable to type 'string | number'. + ~ +!!! error TS2339: Property 'c' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + f; + } + + { + const { c, f, g = f }: string | number = { c: 0, f: 0, g: 0 }; + ~~~~~~~~~~~~~~~ +!!! error TS2322: Type '{ c: number; f: number; g: number; }' is not assignable to type 'string | number'. + ~ +!!! error TS2339: Property 'c' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'g' does not exist on type 'string | number'. + f; + g; + } + + { + const { c, f, f }: string | number = { c: 0, f: 0 }; + ~~~~~~~~~~~ +!!! error TS2322: Type '{ c: number; f: number; }' is not assignable to type 'string | number'. + ~ +!!! error TS2339: Property 'c' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + ~ +!!! error TS2451: Cannot redeclare block-scoped variable 'f'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + ~ +!!! error TS2451: Cannot redeclare block-scoped variable 'f'. + f; + } + + { + const { c, f, f: g }: string | number = { c: 0, f: 0 }; + ~~~~~~~~~~~~~~ +!!! error TS2322: Type '{ c: number; f: number; }' is not assignable to type 'string | number'. + ~ +!!! error TS2339: Property 'c' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + ~ +!!! error TS2339: Property 'f' does not exist on type 'string | number'. + g; + } + + { + const { c, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f }; + ~ +!!! error TS7022: 'f' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + ~ +!!! error TS2448: Block-scoped variable 'f' used before its declaration. +!!! related TS2728 dependentDestructuredVariablesReferenceInDeclaration1.ts:30:14: 'f' is declared here. + f; + } + + { + const { c, f }: { c: 0; f: () => unknown } | { c: 1; f: string } = { + ~ +!!! error TS7022: 'f' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. + c: 0, + f: () => f, + }; + f; + } + + { + const { + c, + f, + g = f, + }: + | { c: 0; f: bigint; g?: bigint | number } + | { c: 1; f: number; g: string } = { + c: 0, + f: 10n, + }; + f; + g; + } + + { + const { c, f, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; + ~ +!!! error TS2451: Cannot redeclare block-scoped variable 'f'. + ~ +!!! error TS2451: Cannot redeclare block-scoped variable 'f'. + f; + } + + { + const { c, f, f: g }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; + g; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..dd70a6b10cfe7 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).symbols @@ -0,0 +1,175 @@ +//// [tests/cases/conformance/controlFlow/dependentDestructuredVariablesReferenceInDeclaration1.ts] //// + +=== dependentDestructuredVariablesReferenceInDeclaration1.ts === +// https://github.com/microsoft/TypeScript/issues/62993 + +{ + const { c, f }: string | number = { c: 0, f }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 3, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 3, 12)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 3, 37)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 3, 43)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 3, 12)) +} + +{ + const { c, f }: string | number = { c: 0, f: () => f }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 12)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 37)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 43)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 12)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 8, 12)) +} + +{ + const { c, f, g = f }: string | number = { c: 0, f: 0, g: 0 }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 12)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 15)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 12)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 44)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 50)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 56)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 12)) + + g; +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 13, 15)) +} + +{ + const { c, f, f }: string | number = { c: 0, f: 0 }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 12)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 15)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 40)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 46)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 19, 12)) +} + +{ + const { c, f, f: g }: string | number = { c: 0, f: 0 }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 12)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 15)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 43)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 49)) + + g; +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 24, 15)) +} + +{ + const { c, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 12)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 19)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 25)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 41)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 47)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 63)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 69)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 29, 12)) +} + +{ + const { c, f }: { c: 0; f: () => unknown } | { c: 1; f: string } = { +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 12)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 19)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 25)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 48)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 54)) + + c: 0, +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 70)) + + f: () => f, +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 35, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 12)) + + }; + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 34, 12)) +} + +{ + const { + c, +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 42, 9)) + + f, +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 43, 6)) + + g = f, +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 44, 6)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 43, 6)) + + }: + | { c: 0; f: bigint; g?: bigint | number } +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 47, 7)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 47, 13)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 47, 24)) + + | { c: 1; f: number; g: string } = { +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 48, 7)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 48, 13)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 48, 24)) + + c: 0, +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 48, 40)) + + f: 10n, +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 49, 9)) + + }; + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 43, 6)) + + g; +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 44, 6)) +} + +{ + const { c, f, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 12)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 15)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 22)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 28)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 44)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 50)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 66)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 72)) + + f; +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 57, 12)) +} + +{ + const { c, f, f: g }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 9)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 12)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 31), Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 53)) +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 15)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 25)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 31)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 47)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 53)) +>c : Symbol(c, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 69)) +>f : Symbol(f, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 75)) + + g; +>g : Symbol(g, Decl(dependentDestructuredVariablesReferenceInDeclaration1.ts, 62, 15)) +} + diff --git a/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).types new file mode 100644 index 0000000000000..fda8b5b052297 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/dependentDestructuredVariablesReferenceInDeclaration1(checkorder=typesfirst).types @@ -0,0 +1,205 @@ +//// [tests/cases/conformance/controlFlow/dependentDestructuredVariablesReferenceInDeclaration1.ts] //// + +=== dependentDestructuredVariablesReferenceInDeclaration1.ts === +// https://github.com/microsoft/TypeScript/issues/62993 + +{ + const { c, f }: string | number = { c: 0, f }; +>c : any +>f : any +>{ c: 0, f } : { c: number; f: any; } +>c : number +>0 : 0 +>f : any + + f; +>f : any +} + +{ + const { c, f }: string | number = { c: 0, f: () => f }; +>c : any +>f : any +>{ c: 0, f: () => f } : { c: number; f: () => any; } +>c : number +>0 : 0 +>f : () => any +>() => f : () => any +>f : any + + f; +>f : any +} + +{ + const { c, f, g = f }: string | number = { c: 0, f: 0, g: 0 }; +>c : any +>f : any +>g : any +>f : any +>{ c: 0, f: 0, g: 0 } : { c: number; f: number; g: number; } +>c : number +>0 : 0 +>f : number +>0 : 0 +>g : number +>0 : 0 + + f; +>f : any + + g; +>g : any +} + +{ + const { c, f, f }: string | number = { c: 0, f: 0 }; +>c : any +>f : any +>f : any +>{ c: 0, f: 0 } : { c: number; f: number; } +>c : number +>0 : 0 +>f : number +>0 : 0 + + f; +>f : any +} + +{ + const { c, f, f: g }: string | number = { c: 0, f: 0 }; +>c : any +>f : any +>f : any +>g : any +>{ c: 0, f: 0 } : { c: number; f: number; } +>c : number +>0 : 0 +>f : number +>0 : 0 + + g; +>g : any +} + +{ + const { c, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f }; +>c : 0 | 1 +>f : any +>c : 0 +>f : number +>c : 1 +>f : string +>{ c: 0, f } : { c: 0; f: any; } +>c : 0 +>0 : 0 +>f : any + + f; +>f : string | number +} + +{ + const { c, f }: { c: 0; f: () => unknown } | { c: 1; f: string } = { +>c : 0 | 1 +>f : any +>c : 0 +>f : () => unknown +>c : 1 +>f : string +>{ c: 0, f: () => f, } : { c: 0; f: () => string | (() => unknown); } + + c: 0, +>c : 0 +>0 : 0 + + f: () => f, +>f : () => string | (() => unknown) +>() => f : () => string | (() => unknown) +>f : string | (() => unknown) + + }; + f; +>f : () => unknown +} + +{ + const { + c, +>c : 0 | 1 + + f, +>f : number | bigint + + g = f, +>g : string | number | bigint +>f : number | bigint + + }: + | { c: 0; f: bigint; g?: bigint | number } +>c : 0 +>f : bigint +>g : number | bigint | undefined + + | { c: 1; f: number; g: string } = { +>c : 1 +>f : number +>g : string +>{ c: 0, f: 10n, } : { c: 0; f: bigint; } + + c: 0, +>c : 0 +>0 : 0 + + f: 10n, +>f : bigint +>10n : 10n + + }; + f; +>f : bigint + + g; +>g : string | number | bigint +} + +{ + const { c, f, f }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; +>c : 0 | 1 +>f : string | number +>f : string | number +>c : 0 +>f : number +>c : 1 +>f : string +>{ c: 0, f: 0 } : { c: 0; f: number; } +>c : 0 +>0 : 0 +>f : number +>0 : 0 + + f; +>f : number +} + +{ + const { c, f, f: g }: { c: 0; f: number } | { c: 1; f: string } = { c: 0, f: 0 }; +>c : 0 | 1 +>f : string | number +>f : any +>g : string | number +>c : 0 +>f : number +>c : 1 +>f : string +>{ c: 0, f: 0 } : { c: 0; f: number; } +>c : 0 +>0 : 0 +>f : number +>0 : 0 + + g; +>g : number +} + diff --git a/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).js b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).js new file mode 100644 index 0000000000000..c76356d188d89 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).js @@ -0,0 +1,126 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts] //// + +//// [destructuringWithLiteralInitializers.ts] +// (arg: { x: any, y: any }) => void +function f1({ x, y }) { } +f1({ x: 1, y: 1 }); + +// (arg: { x: any, y?: number }) => void +function f2({ x, y = 0 }) { } +f2({ x: 1 }); +f2({ x: 1, y: 1 }); + +// (arg: { x?: number, y?: number }) => void +function f3({ x = 0, y = 0 }) { } +f3({}); +f3({ x: 1 }); +f3({ y: 1 }); +f3({ x: 1, y: 1 }); + +// (arg?: { x: number, y: number }) => void +function f4({ x, y } = { x: 0, y: 0 }) { } +f4(); +f4({ x: 1, y: 1 }); + +// (arg?: { x: number, y?: number }) => void +function f5({ x, y = 0 } = { x: 0 }) { } +f5(); +f5({ x: 1 }); +f5({ x: 1, y: 1 }); + +// (arg?: { x?: number, y?: number }) => void +function f6({ x = 0, y = 0 } = {}) { } +f6(); +f6({}); +f6({ x: 1 }); +f6({ y: 1 }); +f6({ x: 1, y: 1 }); + +// (arg?: { a: { x?: number, y?: number } }) => void +function f7({ a: { x = 0, y = 0 } } = { a: {} }) { } +f7(); +f7({ a: {} }); +f7({ a: { x: 1 } }); +f7({ a: { y: 1 } }); +f7({ a: { x: 1, y: 1 } }); + +// (arg: [any, any]) => void +function g1([x, y]) { } +g1([1, 1]); + +// (arg: [number, number]) => void +function g2([x = 0, y = 0]) { } +g2([1, 1]); + +// (arg?: [number, number]) => void +function g3([x, y] = [0, 0]) { } +g3(); +g3([1, 1]); + +// (arg?: [number, number]) => void +function g4([x, y = 0] = [0]) { } +g4(); +g4([1, 1]); + +// (arg?: [number, number]) => void +function g5([x = 0, y = 0] = []) { } +g5(); +g5([1, 1]); + + +//// [destructuringWithLiteralInitializers.js] +"use strict"; +// (arg: { x: any, y: any }) => void +function f1({ x, y }) { } +f1({ x: 1, y: 1 }); +// (arg: { x: any, y?: number }) => void +function f2({ x, y = 0 }) { } +f2({ x: 1 }); +f2({ x: 1, y: 1 }); +// (arg: { x?: number, y?: number }) => void +function f3({ x = 0, y = 0 }) { } +f3({}); +f3({ x: 1 }); +f3({ y: 1 }); +f3({ x: 1, y: 1 }); +// (arg?: { x: number, y: number }) => void +function f4({ x, y } = { x: 0, y: 0 }) { } +f4(); +f4({ x: 1, y: 1 }); +// (arg?: { x: number, y?: number }) => void +function f5({ x, y = 0 } = { x: 0 }) { } +f5(); +f5({ x: 1 }); +f5({ x: 1, y: 1 }); +// (arg?: { x?: number, y?: number }) => void +function f6({ x = 0, y = 0 } = {}) { } +f6(); +f6({}); +f6({ x: 1 }); +f6({ y: 1 }); +f6({ x: 1, y: 1 }); +// (arg?: { a: { x?: number, y?: number } }) => void +function f7({ a: { x = 0, y = 0 } } = { a: {} }) { } +f7(); +f7({ a: {} }); +f7({ a: { x: 1 } }); +f7({ a: { y: 1 } }); +f7({ a: { x: 1, y: 1 } }); +// (arg: [any, any]) => void +function g1([x, y]) { } +g1([1, 1]); +// (arg: [number, number]) => void +function g2([x = 0, y = 0]) { } +g2([1, 1]); +// (arg?: [number, number]) => void +function g3([x, y] = [0, 0]) { } +g3(); +g3([1, 1]); +// (arg?: [number, number]) => void +function g4([x, y = 0] = [0]) { } +g4(); +g4([1, 1]); +// (arg?: [number, number]) => void +function g5([x = 0, y = 0] = []) { } +g5(); +g5([1, 1]); diff --git a/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).symbols b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).symbols new file mode 100644 index 0000000000000..17561c8c14d7b --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).symbols @@ -0,0 +1,196 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts] //// + +=== destructuringWithLiteralInitializers.ts === +// (arg: { x: any, y: any }) => void +function f1({ x, y }) { } +>f1 : Symbol(f1, Decl(destructuringWithLiteralInitializers.ts, 0, 0)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 1, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 1, 16)) + +f1({ x: 1, y: 1 }); +>f1 : Symbol(f1, Decl(destructuringWithLiteralInitializers.ts, 0, 0)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 2, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 2, 10)) + +// (arg: { x: any, y?: number }) => void +function f2({ x, y = 0 }) { } +>f2 : Symbol(f2, Decl(destructuringWithLiteralInitializers.ts, 2, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 5, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 5, 16)) + +f2({ x: 1 }); +>f2 : Symbol(f2, Decl(destructuringWithLiteralInitializers.ts, 2, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 6, 4)) + +f2({ x: 1, y: 1 }); +>f2 : Symbol(f2, Decl(destructuringWithLiteralInitializers.ts, 2, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 7, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 7, 10)) + +// (arg: { x?: number, y?: number }) => void +function f3({ x = 0, y = 0 }) { } +>f3 : Symbol(f3, Decl(destructuringWithLiteralInitializers.ts, 7, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 10, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 10, 20)) + +f3({}); +>f3 : Symbol(f3, Decl(destructuringWithLiteralInitializers.ts, 7, 19)) + +f3({ x: 1 }); +>f3 : Symbol(f3, Decl(destructuringWithLiteralInitializers.ts, 7, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 12, 4)) + +f3({ y: 1 }); +>f3 : Symbol(f3, Decl(destructuringWithLiteralInitializers.ts, 7, 19)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 13, 4)) + +f3({ x: 1, y: 1 }); +>f3 : Symbol(f3, Decl(destructuringWithLiteralInitializers.ts, 7, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 14, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 14, 10)) + +// (arg?: { x: number, y: number }) => void +function f4({ x, y } = { x: 0, y: 0 }) { } +>f4 : Symbol(f4, Decl(destructuringWithLiteralInitializers.ts, 14, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 17, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 17, 16)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 17, 24)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 17, 30)) + +f4(); +>f4 : Symbol(f4, Decl(destructuringWithLiteralInitializers.ts, 14, 19)) + +f4({ x: 1, y: 1 }); +>f4 : Symbol(f4, Decl(destructuringWithLiteralInitializers.ts, 14, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 19, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 19, 10)) + +// (arg?: { x: number, y?: number }) => void +function f5({ x, y = 0 } = { x: 0 }) { } +>f5 : Symbol(f5, Decl(destructuringWithLiteralInitializers.ts, 19, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 22, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 22, 16)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 22, 28)) + +f5(); +>f5 : Symbol(f5, Decl(destructuringWithLiteralInitializers.ts, 19, 19)) + +f5({ x: 1 }); +>f5 : Symbol(f5, Decl(destructuringWithLiteralInitializers.ts, 19, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 24, 4)) + +f5({ x: 1, y: 1 }); +>f5 : Symbol(f5, Decl(destructuringWithLiteralInitializers.ts, 19, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 25, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 25, 10)) + +// (arg?: { x?: number, y?: number }) => void +function f6({ x = 0, y = 0 } = {}) { } +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 28, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 28, 20)) + +f6(); +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) + +f6({}); +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) + +f6({ x: 1 }); +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 31, 4)) + +f6({ y: 1 }); +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 32, 4)) + +f6({ x: 1, y: 1 }); +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 33, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 33, 10)) + +// (arg?: { a: { x?: number, y?: number } }) => void +function f7({ a: { x = 0, y = 0 } } = { a: {} }) { } +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 36, 39)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 36, 18)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 36, 25)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 36, 39)) + +f7(); +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) + +f7({ a: {} }); +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 38, 4)) + +f7({ a: { x: 1 } }); +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 39, 4)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 39, 9)) + +f7({ a: { y: 1 } }); +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 40, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 40, 9)) + +f7({ a: { x: 1, y: 1 } }); +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 41, 4)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 41, 9)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 41, 15)) + +// (arg: [any, any]) => void +function g1([x, y]) { } +>g1 : Symbol(g1, Decl(destructuringWithLiteralInitializers.ts, 41, 26)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 44, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 44, 15)) + +g1([1, 1]); +>g1 : Symbol(g1, Decl(destructuringWithLiteralInitializers.ts, 41, 26)) + +// (arg: [number, number]) => void +function g2([x = 0, y = 0]) { } +>g2 : Symbol(g2, Decl(destructuringWithLiteralInitializers.ts, 45, 11)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 48, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 48, 19)) + +g2([1, 1]); +>g2 : Symbol(g2, Decl(destructuringWithLiteralInitializers.ts, 45, 11)) + +// (arg?: [number, number]) => void +function g3([x, y] = [0, 0]) { } +>g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 49, 11)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 52, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 52, 15)) + +g3(); +>g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 49, 11)) + +g3([1, 1]); +>g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 49, 11)) + +// (arg?: [number, number]) => void +function g4([x, y = 0] = [0]) { } +>g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 54, 11)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 57, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 57, 15)) + +g4(); +>g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 54, 11)) + +g4([1, 1]); +>g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 54, 11)) + +// (arg?: [number, number]) => void +function g5([x = 0, y = 0] = []) { } +>g5 : Symbol(g5, Decl(destructuringWithLiteralInitializers.ts, 59, 11)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 62, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 62, 19)) + +g5(); +>g5 : Symbol(g5, Decl(destructuringWithLiteralInitializers.ts, 59, 11)) + +g5([1, 1]); +>g5 : Symbol(g5, Decl(destructuringWithLiteralInitializers.ts, 59, 11)) + diff --git a/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).types b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).types new file mode 100644 index 0000000000000..d46ab82876d40 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=default).types @@ -0,0 +1,312 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts] //// + +=== destructuringWithLiteralInitializers.ts === +// (arg: { x: any, y: any }) => void +function f1({ x, y }) { } +>f1 : ({ x, y }: { x: any; y: any; }) => void +>x : any +>y : any + +f1({ x: 1, y: 1 }); +>f1({ x: 1, y: 1 }) : void +>f1 : ({ x, y }: { x: any; y: any; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg: { x: any, y?: number }) => void +function f2({ x, y = 0 }) { } +>f2 : ({ x, y }: { x: any; y?: number; }) => void +>x : any +>y : number +>0 : 0 + +f2({ x: 1 }); +>f2({ x: 1 }) : void +>f2 : ({ x, y }: { x: any; y?: number; }) => void +>{ x: 1 } : { x: number; } +>x : number +>1 : 1 + +f2({ x: 1, y: 1 }); +>f2({ x: 1, y: 1 }) : void +>f2 : ({ x, y }: { x: any; y?: number; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg: { x?: number, y?: number }) => void +function f3({ x = 0, y = 0 }) { } +>f3 : ({ x, y }: { x?: number; y?: number; }) => void +>x : number +>0 : 0 +>y : number +>0 : 0 + +f3({}); +>f3({}) : void +>f3 : ({ x, y }: { x?: number; y?: number; }) => void +>{} : {} + +f3({ x: 1 }); +>f3({ x: 1 }) : void +>f3 : ({ x, y }: { x?: number; y?: number; }) => void +>{ x: 1 } : { x: number; } +>x : number +>1 : 1 + +f3({ y: 1 }); +>f3({ y: 1 }) : void +>f3 : ({ x, y }: { x?: number; y?: number; }) => void +>{ y: 1 } : { y: number; } +>y : number +>1 : 1 + +f3({ x: 1, y: 1 }); +>f3({ x: 1, y: 1 }) : void +>f3 : ({ x, y }: { x?: number; y?: number; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg?: { x: number, y: number }) => void +function f4({ x, y } = { x: 0, y: 0 }) { } +>f4 : ({ x, y }?: { x: number; y: number; }) => void +>x : number +>y : number +>{ x: 0, y: 0 } : { x: number; y: number; } +>x : number +>0 : 0 +>y : number +>0 : 0 + +f4(); +>f4() : void +>f4 : ({ x, y }?: { x: number; y: number; }) => void + +f4({ x: 1, y: 1 }); +>f4({ x: 1, y: 1 }) : void +>f4 : ({ x, y }?: { x: number; y: number; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg?: { x: number, y?: number }) => void +function f5({ x, y = 0 } = { x: 0 }) { } +>f5 : ({ x, y }?: { x: number; y?: number; }) => void +>x : number +>y : number +>0 : 0 +>{ x: 0 } : { x: number; } +>x : number +>0 : 0 + +f5(); +>f5() : void +>f5 : ({ x, y }?: { x: number; y?: number; }) => void + +f5({ x: 1 }); +>f5({ x: 1 }) : void +>f5 : ({ x, y }?: { x: number; y?: number; }) => void +>{ x: 1 } : { x: number; } +>x : number +>1 : 1 + +f5({ x: 1, y: 1 }); +>f5({ x: 1, y: 1 }) : void +>f5 : ({ x, y }?: { x: number; y?: number; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg?: { x?: number, y?: number }) => void +function f6({ x = 0, y = 0 } = {}) { } +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void +>x : number +>0 : 0 +>y : number +>0 : 0 +>{} : {} + +f6(); +>f6() : void +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void + +f6({}); +>f6({}) : void +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void +>{} : {} + +f6({ x: 1 }); +>f6({ x: 1 }) : void +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void +>{ x: 1 } : { x: number; } +>x : number +>1 : 1 + +f6({ y: 1 }); +>f6({ y: 1 }) : void +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void +>{ y: 1 } : { y: number; } +>y : number +>1 : 1 + +f6({ x: 1, y: 1 }); +>f6({ x: 1, y: 1 }) : void +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg?: { a: { x?: number, y?: number } }) => void +function f7({ a: { x = 0, y = 0 } } = { a: {} }) { } +>f7 : ({ a: { x, y } }?: { a: {}; }) => void +>a : any +>x : number +>0 : 0 +>y : number +>0 : 0 +>{ a: {} } : { a: {}; } +>a : {} +>{} : {} + +f7(); +>f7() : void +>f7 : ({ a: { x, y } }?: { a: {}; }) => void + +f7({ a: {} }); +>f7({ a: {} }) : void +>f7 : ({ a: { x, y } }?: { a: {}; }) => void +>{ a: {} } : { a: {}; } +>a : {} +>{} : {} + +f7({ a: { x: 1 } }); +>f7({ a: { x: 1 } }) : void +>f7 : ({ a: { x, y } }?: { a: {}; }) => void +>{ a: { x: 1 } } : { a: { x: number; }; } +>a : { x: number; } +>{ x: 1 } : { x: number; } +>x : number +>1 : 1 + +f7({ a: { y: 1 } }); +>f7({ a: { y: 1 } }) : void +>f7 : ({ a: { x, y } }?: { a: {}; }) => void +>{ a: { y: 1 } } : { a: { y: number; }; } +>a : { y: number; } +>{ y: 1 } : { y: number; } +>y : number +>1 : 1 + +f7({ a: { x: 1, y: 1 } }); +>f7({ a: { x: 1, y: 1 } }) : void +>f7 : ({ a: { x, y } }?: { a: {}; }) => void +>{ a: { x: 1, y: 1 } } : { a: { x: number; y: number; }; } +>a : { x: number; y: number; } +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg: [any, any]) => void +function g1([x, y]) { } +>g1 : ([x, y]: [any, any]) => void +>x : any +>y : any + +g1([1, 1]); +>g1([1, 1]) : void +>g1 : ([x, y]: [any, any]) => void +>[1, 1] : [number, number] +>1 : 1 +>1 : 1 + +// (arg: [number, number]) => void +function g2([x = 0, y = 0]) { } +>g2 : ([x, y]: [number?, number?]) => void +>x : number +>0 : 0 +>y : number +>0 : 0 + +g2([1, 1]); +>g2([1, 1]) : void +>g2 : ([x, y]: [number?, number?]) => void +>[1, 1] : [number, number] +>1 : 1 +>1 : 1 + +// (arg?: [number, number]) => void +function g3([x, y] = [0, 0]) { } +>g3 : ([x, y]?: [number, number]) => void +>x : number +>y : number +>[0, 0] : [number, number] +>0 : 0 +>0 : 0 + +g3(); +>g3() : void +>g3 : ([x, y]?: [number, number]) => void + +g3([1, 1]); +>g3([1, 1]) : void +>g3 : ([x, y]?: [number, number]) => void +>[1, 1] : [number, number] +>1 : 1 +>1 : 1 + +// (arg?: [number, number]) => void +function g4([x, y = 0] = [0]) { } +>g4 : ([x, y]?: [number, number?]) => void +>x : number +>y : number +>0 : 0 +>[0] : [number] +>0 : 0 + +g4(); +>g4() : void +>g4 : ([x, y]?: [number, number?]) => void + +g4([1, 1]); +>g4([1, 1]) : void +>g4 : ([x, y]?: [number, number?]) => void +>[1, 1] : [number, number] +>1 : 1 +>1 : 1 + +// (arg?: [number, number]) => void +function g5([x = 0, y = 0] = []) { } +>g5 : ([x, y]?: [number?, number?]) => void +>x : number +>0 : 0 +>y : number +>0 : 0 +>[] : [] + +g5(); +>g5() : void +>g5 : ([x, y]?: [number?, number?]) => void + +g5([1, 1]); +>g5([1, 1]) : void +>g5 : ([x, y]?: [number?, number?]) => void +>[1, 1] : [number, number] +>1 : 1 +>1 : 1 + diff --git a/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..ee3b06edc611c --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).errors.txt @@ -0,0 +1,75 @@ +destructuringWithLiteralInitializers.ts(37,20): error TS2339: Property 'x' does not exist on type '{}'. +destructuringWithLiteralInitializers.ts(37,27): error TS2339: Property 'y' does not exist on type '{}'. + + +==== destructuringWithLiteralInitializers.ts (2 errors) ==== + // (arg: { x: any, y: any }) => void + function f1({ x, y }) { } + f1({ x: 1, y: 1 }); + + // (arg: { x: any, y?: number }) => void + function f2({ x, y = 0 }) { } + f2({ x: 1 }); + f2({ x: 1, y: 1 }); + + // (arg: { x?: number, y?: number }) => void + function f3({ x = 0, y = 0 }) { } + f3({}); + f3({ x: 1 }); + f3({ y: 1 }); + f3({ x: 1, y: 1 }); + + // (arg?: { x: number, y: number }) => void + function f4({ x, y } = { x: 0, y: 0 }) { } + f4(); + f4({ x: 1, y: 1 }); + + // (arg?: { x: number, y?: number }) => void + function f5({ x, y = 0 } = { x: 0 }) { } + f5(); + f5({ x: 1 }); + f5({ x: 1, y: 1 }); + + // (arg?: { x?: number, y?: number }) => void + function f6({ x = 0, y = 0 } = {}) { } + f6(); + f6({}); + f6({ x: 1 }); + f6({ y: 1 }); + f6({ x: 1, y: 1 }); + + // (arg?: { a: { x?: number, y?: number } }) => void + function f7({ a: { x = 0, y = 0 } } = { a: {} }) { } + ~ +!!! error TS2339: Property 'x' does not exist on type '{}'. + ~ +!!! error TS2339: Property 'y' does not exist on type '{}'. + f7(); + f7({ a: {} }); + f7({ a: { x: 1 } }); + f7({ a: { y: 1 } }); + f7({ a: { x: 1, y: 1 } }); + + // (arg: [any, any]) => void + function g1([x, y]) { } + g1([1, 1]); + + // (arg: [number, number]) => void + function g2([x = 0, y = 0]) { } + g2([1, 1]); + + // (arg?: [number, number]) => void + function g3([x, y] = [0, 0]) { } + g3(); + g3([1, 1]); + + // (arg?: [number, number]) => void + function g4([x, y = 0] = [0]) { } + g4(); + g4([1, 1]); + + // (arg?: [number, number]) => void + function g5([x = 0, y = 0] = []) { } + g5(); + g5([1, 1]); + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).js new file mode 100644 index 0000000000000..c76356d188d89 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).js @@ -0,0 +1,126 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts] //// + +//// [destructuringWithLiteralInitializers.ts] +// (arg: { x: any, y: any }) => void +function f1({ x, y }) { } +f1({ x: 1, y: 1 }); + +// (arg: { x: any, y?: number }) => void +function f2({ x, y = 0 }) { } +f2({ x: 1 }); +f2({ x: 1, y: 1 }); + +// (arg: { x?: number, y?: number }) => void +function f3({ x = 0, y = 0 }) { } +f3({}); +f3({ x: 1 }); +f3({ y: 1 }); +f3({ x: 1, y: 1 }); + +// (arg?: { x: number, y: number }) => void +function f4({ x, y } = { x: 0, y: 0 }) { } +f4(); +f4({ x: 1, y: 1 }); + +// (arg?: { x: number, y?: number }) => void +function f5({ x, y = 0 } = { x: 0 }) { } +f5(); +f5({ x: 1 }); +f5({ x: 1, y: 1 }); + +// (arg?: { x?: number, y?: number }) => void +function f6({ x = 0, y = 0 } = {}) { } +f6(); +f6({}); +f6({ x: 1 }); +f6({ y: 1 }); +f6({ x: 1, y: 1 }); + +// (arg?: { a: { x?: number, y?: number } }) => void +function f7({ a: { x = 0, y = 0 } } = { a: {} }) { } +f7(); +f7({ a: {} }); +f7({ a: { x: 1 } }); +f7({ a: { y: 1 } }); +f7({ a: { x: 1, y: 1 } }); + +// (arg: [any, any]) => void +function g1([x, y]) { } +g1([1, 1]); + +// (arg: [number, number]) => void +function g2([x = 0, y = 0]) { } +g2([1, 1]); + +// (arg?: [number, number]) => void +function g3([x, y] = [0, 0]) { } +g3(); +g3([1, 1]); + +// (arg?: [number, number]) => void +function g4([x, y = 0] = [0]) { } +g4(); +g4([1, 1]); + +// (arg?: [number, number]) => void +function g5([x = 0, y = 0] = []) { } +g5(); +g5([1, 1]); + + +//// [destructuringWithLiteralInitializers.js] +"use strict"; +// (arg: { x: any, y: any }) => void +function f1({ x, y }) { } +f1({ x: 1, y: 1 }); +// (arg: { x: any, y?: number }) => void +function f2({ x, y = 0 }) { } +f2({ x: 1 }); +f2({ x: 1, y: 1 }); +// (arg: { x?: number, y?: number }) => void +function f3({ x = 0, y = 0 }) { } +f3({}); +f3({ x: 1 }); +f3({ y: 1 }); +f3({ x: 1, y: 1 }); +// (arg?: { x: number, y: number }) => void +function f4({ x, y } = { x: 0, y: 0 }) { } +f4(); +f4({ x: 1, y: 1 }); +// (arg?: { x: number, y?: number }) => void +function f5({ x, y = 0 } = { x: 0 }) { } +f5(); +f5({ x: 1 }); +f5({ x: 1, y: 1 }); +// (arg?: { x?: number, y?: number }) => void +function f6({ x = 0, y = 0 } = {}) { } +f6(); +f6({}); +f6({ x: 1 }); +f6({ y: 1 }); +f6({ x: 1, y: 1 }); +// (arg?: { a: { x?: number, y?: number } }) => void +function f7({ a: { x = 0, y = 0 } } = { a: {} }) { } +f7(); +f7({ a: {} }); +f7({ a: { x: 1 } }); +f7({ a: { y: 1 } }); +f7({ a: { x: 1, y: 1 } }); +// (arg: [any, any]) => void +function g1([x, y]) { } +g1([1, 1]); +// (arg: [number, number]) => void +function g2([x = 0, y = 0]) { } +g2([1, 1]); +// (arg?: [number, number]) => void +function g3([x, y] = [0, 0]) { } +g3(); +g3([1, 1]); +// (arg?: [number, number]) => void +function g4([x, y = 0] = [0]) { } +g4(); +g4([1, 1]); +// (arg?: [number, number]) => void +function g5([x = 0, y = 0] = []) { } +g5(); +g5([1, 1]); diff --git a/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..17561c8c14d7b --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).symbols @@ -0,0 +1,196 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts] //// + +=== destructuringWithLiteralInitializers.ts === +// (arg: { x: any, y: any }) => void +function f1({ x, y }) { } +>f1 : Symbol(f1, Decl(destructuringWithLiteralInitializers.ts, 0, 0)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 1, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 1, 16)) + +f1({ x: 1, y: 1 }); +>f1 : Symbol(f1, Decl(destructuringWithLiteralInitializers.ts, 0, 0)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 2, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 2, 10)) + +// (arg: { x: any, y?: number }) => void +function f2({ x, y = 0 }) { } +>f2 : Symbol(f2, Decl(destructuringWithLiteralInitializers.ts, 2, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 5, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 5, 16)) + +f2({ x: 1 }); +>f2 : Symbol(f2, Decl(destructuringWithLiteralInitializers.ts, 2, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 6, 4)) + +f2({ x: 1, y: 1 }); +>f2 : Symbol(f2, Decl(destructuringWithLiteralInitializers.ts, 2, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 7, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 7, 10)) + +// (arg: { x?: number, y?: number }) => void +function f3({ x = 0, y = 0 }) { } +>f3 : Symbol(f3, Decl(destructuringWithLiteralInitializers.ts, 7, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 10, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 10, 20)) + +f3({}); +>f3 : Symbol(f3, Decl(destructuringWithLiteralInitializers.ts, 7, 19)) + +f3({ x: 1 }); +>f3 : Symbol(f3, Decl(destructuringWithLiteralInitializers.ts, 7, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 12, 4)) + +f3({ y: 1 }); +>f3 : Symbol(f3, Decl(destructuringWithLiteralInitializers.ts, 7, 19)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 13, 4)) + +f3({ x: 1, y: 1 }); +>f3 : Symbol(f3, Decl(destructuringWithLiteralInitializers.ts, 7, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 14, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 14, 10)) + +// (arg?: { x: number, y: number }) => void +function f4({ x, y } = { x: 0, y: 0 }) { } +>f4 : Symbol(f4, Decl(destructuringWithLiteralInitializers.ts, 14, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 17, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 17, 16)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 17, 24)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 17, 30)) + +f4(); +>f4 : Symbol(f4, Decl(destructuringWithLiteralInitializers.ts, 14, 19)) + +f4({ x: 1, y: 1 }); +>f4 : Symbol(f4, Decl(destructuringWithLiteralInitializers.ts, 14, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 19, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 19, 10)) + +// (arg?: { x: number, y?: number }) => void +function f5({ x, y = 0 } = { x: 0 }) { } +>f5 : Symbol(f5, Decl(destructuringWithLiteralInitializers.ts, 19, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 22, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 22, 16)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 22, 28)) + +f5(); +>f5 : Symbol(f5, Decl(destructuringWithLiteralInitializers.ts, 19, 19)) + +f5({ x: 1 }); +>f5 : Symbol(f5, Decl(destructuringWithLiteralInitializers.ts, 19, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 24, 4)) + +f5({ x: 1, y: 1 }); +>f5 : Symbol(f5, Decl(destructuringWithLiteralInitializers.ts, 19, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 25, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 25, 10)) + +// (arg?: { x?: number, y?: number }) => void +function f6({ x = 0, y = 0 } = {}) { } +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 28, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 28, 20)) + +f6(); +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) + +f6({}); +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) + +f6({ x: 1 }); +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 31, 4)) + +f6({ y: 1 }); +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 32, 4)) + +f6({ x: 1, y: 1 }); +>f6 : Symbol(f6, Decl(destructuringWithLiteralInitializers.ts, 25, 19)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 33, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 33, 10)) + +// (arg?: { a: { x?: number, y?: number } }) => void +function f7({ a: { x = 0, y = 0 } } = { a: {} }) { } +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 36, 39)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 36, 18)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 36, 25)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 36, 39)) + +f7(); +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) + +f7({ a: {} }); +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 38, 4)) + +f7({ a: { x: 1 } }); +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 39, 4)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 39, 9)) + +f7({ a: { y: 1 } }); +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 40, 4)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 40, 9)) + +f7({ a: { x: 1, y: 1 } }); +>f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19)) +>a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 41, 4)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 41, 9)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 41, 15)) + +// (arg: [any, any]) => void +function g1([x, y]) { } +>g1 : Symbol(g1, Decl(destructuringWithLiteralInitializers.ts, 41, 26)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 44, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 44, 15)) + +g1([1, 1]); +>g1 : Symbol(g1, Decl(destructuringWithLiteralInitializers.ts, 41, 26)) + +// (arg: [number, number]) => void +function g2([x = 0, y = 0]) { } +>g2 : Symbol(g2, Decl(destructuringWithLiteralInitializers.ts, 45, 11)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 48, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 48, 19)) + +g2([1, 1]); +>g2 : Symbol(g2, Decl(destructuringWithLiteralInitializers.ts, 45, 11)) + +// (arg?: [number, number]) => void +function g3([x, y] = [0, 0]) { } +>g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 49, 11)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 52, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 52, 15)) + +g3(); +>g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 49, 11)) + +g3([1, 1]); +>g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 49, 11)) + +// (arg?: [number, number]) => void +function g4([x, y = 0] = [0]) { } +>g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 54, 11)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 57, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 57, 15)) + +g4(); +>g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 54, 11)) + +g4([1, 1]); +>g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 54, 11)) + +// (arg?: [number, number]) => void +function g5([x = 0, y = 0] = []) { } +>g5 : Symbol(g5, Decl(destructuringWithLiteralInitializers.ts, 59, 11)) +>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 62, 13)) +>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 62, 19)) + +g5(); +>g5 : Symbol(g5, Decl(destructuringWithLiteralInitializers.ts, 59, 11)) + +g5([1, 1]); +>g5 : Symbol(g5, Decl(destructuringWithLiteralInitializers.ts, 59, 11)) + diff --git a/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).types new file mode 100644 index 0000000000000..45f5edceff50e --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/destructuringWithLiteralInitializers(checkorder=typesfirst).types @@ -0,0 +1,312 @@ +//// [tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts] //// + +=== destructuringWithLiteralInitializers.ts === +// (arg: { x: any, y: any }) => void +function f1({ x, y }) { } +>f1 : ({ x, y }: { x: any; y: any; }) => void +>x : any +>y : any + +f1({ x: 1, y: 1 }); +>f1({ x: 1, y: 1 }) : void +>f1 : ({ x, y }: { x: any; y: any; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg: { x: any, y?: number }) => void +function f2({ x, y = 0 }) { } +>f2 : ({ x, y }: { x: any; y?: number; }) => void +>x : any +>y : number +>0 : 0 + +f2({ x: 1 }); +>f2({ x: 1 }) : void +>f2 : ({ x, y }: { x: any; y?: number; }) => void +>{ x: 1 } : { x: number; } +>x : number +>1 : 1 + +f2({ x: 1, y: 1 }); +>f2({ x: 1, y: 1 }) : void +>f2 : ({ x, y }: { x: any; y?: number; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg: { x?: number, y?: number }) => void +function f3({ x = 0, y = 0 }) { } +>f3 : ({ x, y }: { x?: number; y?: number; }) => void +>x : number +>0 : 0 +>y : number +>0 : 0 + +f3({}); +>f3({}) : void +>f3 : ({ x, y }: { x?: number; y?: number; }) => void +>{} : {} + +f3({ x: 1 }); +>f3({ x: 1 }) : void +>f3 : ({ x, y }: { x?: number; y?: number; }) => void +>{ x: 1 } : { x: number; } +>x : number +>1 : 1 + +f3({ y: 1 }); +>f3({ y: 1 }) : void +>f3 : ({ x, y }: { x?: number; y?: number; }) => void +>{ y: 1 } : { y: number; } +>y : number +>1 : 1 + +f3({ x: 1, y: 1 }); +>f3({ x: 1, y: 1 }) : void +>f3 : ({ x, y }: { x?: number; y?: number; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg?: { x: number, y: number }) => void +function f4({ x, y } = { x: 0, y: 0 }) { } +>f4 : ({ x, y }?: { x: number; y: number; }) => void +>x : number +>y : number +>{ x: 0, y: 0 } : { x: number; y: number; } +>x : number +>0 : 0 +>y : number +>0 : 0 + +f4(); +>f4() : void +>f4 : ({ x, y }?: { x: number; y: number; }) => void + +f4({ x: 1, y: 1 }); +>f4({ x: 1, y: 1 }) : void +>f4 : ({ x, y }?: { x: number; y: number; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg?: { x: number, y?: number }) => void +function f5({ x, y = 0 } = { x: 0 }) { } +>f5 : ({ x, y }?: { x: number; y?: number; }) => void +>x : number +>y : number +>0 : 0 +>{ x: 0 } : { x: number; } +>x : number +>0 : 0 + +f5(); +>f5() : void +>f5 : ({ x, y }?: { x: number; y?: number; }) => void + +f5({ x: 1 }); +>f5({ x: 1 }) : void +>f5 : ({ x, y }?: { x: number; y?: number; }) => void +>{ x: 1 } : { x: number; } +>x : number +>1 : 1 + +f5({ x: 1, y: 1 }); +>f5({ x: 1, y: 1 }) : void +>f5 : ({ x, y }?: { x: number; y?: number; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg?: { x?: number, y?: number }) => void +function f6({ x = 0, y = 0 } = {}) { } +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void +>x : number +>0 : 0 +>y : number +>0 : 0 +>{} : {} + +f6(); +>f6() : void +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void + +f6({}); +>f6({}) : void +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void +>{} : {} + +f6({ x: 1 }); +>f6({ x: 1 }) : void +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void +>{ x: 1 } : { x: number; } +>x : number +>1 : 1 + +f6({ y: 1 }); +>f6({ y: 1 }) : void +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void +>{ y: 1 } : { y: number; } +>y : number +>1 : 1 + +f6({ x: 1, y: 1 }); +>f6({ x: 1, y: 1 }) : void +>f6 : ({ x, y }?: { x?: number; y?: number; }) => void +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg?: { a: { x?: number, y?: number } }) => void +function f7({ a: { x = 0, y = 0 } } = { a: {} }) { } +>f7 : ({ a: { x, y } }?: { a: {}; }) => void +>a : any +>x : any +>0 : 0 +>y : any +>0 : 0 +>{ a: {} } : { a: {}; } +>a : {} +>{} : {} + +f7(); +>f7() : void +>f7 : ({ a: { x, y } }?: { a: {}; }) => void + +f7({ a: {} }); +>f7({ a: {} }) : void +>f7 : ({ a: { x, y } }?: { a: {}; }) => void +>{ a: {} } : { a: {}; } +>a : {} +>{} : {} + +f7({ a: { x: 1 } }); +>f7({ a: { x: 1 } }) : void +>f7 : ({ a: { x, y } }?: { a: {}; }) => void +>{ a: { x: 1 } } : { a: { x: number; }; } +>a : { x: number; } +>{ x: 1 } : { x: number; } +>x : number +>1 : 1 + +f7({ a: { y: 1 } }); +>f7({ a: { y: 1 } }) : void +>f7 : ({ a: { x, y } }?: { a: {}; }) => void +>{ a: { y: 1 } } : { a: { y: number; }; } +>a : { y: number; } +>{ y: 1 } : { y: number; } +>y : number +>1 : 1 + +f7({ a: { x: 1, y: 1 } }); +>f7({ a: { x: 1, y: 1 } }) : void +>f7 : ({ a: { x, y } }?: { a: {}; }) => void +>{ a: { x: 1, y: 1 } } : { a: { x: number; y: number; }; } +>a : { x: number; y: number; } +>{ x: 1, y: 1 } : { x: number; y: number; } +>x : number +>1 : 1 +>y : number +>1 : 1 + +// (arg: [any, any]) => void +function g1([x, y]) { } +>g1 : ([x, y]: [any, any]) => void +>x : any +>y : any + +g1([1, 1]); +>g1([1, 1]) : void +>g1 : ([x, y]: [any, any]) => void +>[1, 1] : [number, number] +>1 : 1 +>1 : 1 + +// (arg: [number, number]) => void +function g2([x = 0, y = 0]) { } +>g2 : ([x, y]: [number?, number?]) => void +>x : number +>0 : 0 +>y : number +>0 : 0 + +g2([1, 1]); +>g2([1, 1]) : void +>g2 : ([x, y]: [number?, number?]) => void +>[1, 1] : [number, number] +>1 : 1 +>1 : 1 + +// (arg?: [number, number]) => void +function g3([x, y] = [0, 0]) { } +>g3 : ([x, y]?: [number, number]) => void +>x : number +>y : number +>[0, 0] : [number, number] +>0 : 0 +>0 : 0 + +g3(); +>g3() : void +>g3 : ([x, y]?: [number, number]) => void + +g3([1, 1]); +>g3([1, 1]) : void +>g3 : ([x, y]?: [number, number]) => void +>[1, 1] : [number, number] +>1 : 1 +>1 : 1 + +// (arg?: [number, number]) => void +function g4([x, y = 0] = [0]) { } +>g4 : ([x, y]?: [number, number?]) => void +>x : number +>y : number +>0 : 0 +>[0] : [number] +>0 : 0 + +g4(); +>g4() : void +>g4 : ([x, y]?: [number, number?]) => void + +g4([1, 1]); +>g4([1, 1]) : void +>g4 : ([x, y]?: [number, number?]) => void +>[1, 1] : [number, number] +>1 : 1 +>1 : 1 + +// (arg?: [number, number]) => void +function g5([x = 0, y = 0] = []) { } +>g5 : ([x, y]?: [number?, number?]) => void +>x : number +>0 : 0 +>y : number +>0 : 0 +>[] : [] + +g5(); +>g5() : void +>g5 : ([x, y]?: [number?, number?]) => void + +g5([1, 1]); +>g5([1, 1]) : void +>g5 : ([x, y]?: [number?, number?]) => void +>[1, 1] : [number, number] +>1 : 1 +>1 : 1 + diff --git a/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).errors.txt new file mode 100644 index 0000000000000..3427c0e358148 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).errors.txt @@ -0,0 +1,16 @@ +/foo.js(1,15): error TS1005: 'from' expected. +/foo.js(1,15): error TS1141: String literal expected. + + +==== /foo.js (2 errors) ==== + /** @import x = require("types") */ + ~ +!!! error TS1005: 'from' expected. + ~~~~~~~~~~~~~~~~~~ +!!! error TS1141: String literal expected. + +==== /types.ts (0 errors) ==== + export interface Foo { + a: number; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).symbols b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).symbols new file mode 100644 index 0000000000000..fbc59963b3da9 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/jsdoc/importTag13.ts] //// + +=== /foo.js === + +/** @import x = require("types") */ + diff --git a/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).types b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).types new file mode 100644 index 0000000000000..fbc59963b3da9 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=default).types @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/jsdoc/importTag13.ts] //// + +=== /foo.js === + +/** @import x = require("types") */ + diff --git a/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..de660063858df --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).errors.txt @@ -0,0 +1,19 @@ +/foo.js(1,15): error TS1005: 'from' expected. +/foo.js(1,15): error TS1141: String literal expected. +/foo.js(1,25): error TS2307: Cannot find module 'types' or its corresponding type declarations. + + +==== /foo.js (3 errors) ==== + /** @import x = require("types") */ + ~ +!!! error TS1005: 'from' expected. + ~~~~~~~~~~~~~~~~~~ +!!! error TS1141: String literal expected. + ~~~~~~~ +!!! error TS2307: Cannot find module 'types' or its corresponding type declarations. + +==== /types.ts (0 errors) ==== + export interface Foo { + a: number; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..fbc59963b3da9 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).symbols @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/jsdoc/importTag13.ts] //// + +=== /foo.js === + +/** @import x = require("types") */ + diff --git a/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).types new file mode 100644 index 0000000000000..fbc59963b3da9 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/importTag13(checkorder=typesfirst).types @@ -0,0 +1,6 @@ +//// [tests/cases/conformance/jsdoc/importTag13.ts] //// + +=== /foo.js === + +/** @import x = require("types") */ + diff --git a/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).errors.txt new file mode 100644 index 0000000000000..634c2349e1ecb --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).errors.txt @@ -0,0 +1,23 @@ +privateNameNestedClassFieldShadowing.ts(7,31): error TS18014: The property '#x' cannot be accessed on type 'Base' within this class because it is shadowed by another private identifier with the same spelling. + + +==== privateNameNestedClassFieldShadowing.ts (1 errors) ==== + class Base { + #x; + constructor() { + class Derived { + #x; + testBase(x: Base) { + console.log(x.#x); + ~~ +!!! error TS18014: The property '#x' cannot be accessed on type 'Base' within this class because it is shadowed by another private identifier with the same spelling. +!!! related TS18017 privateNameNestedClassFieldShadowing.ts:5:13: The shadowing declaration of '#x' is defined here +!!! related TS18018 privateNameNestedClassFieldShadowing.ts:2:5: The declaration of '#x' that you probably intended to use is defined here + } + testDerived(x: Derived) { + console.log(x.#x); + } + } + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).js b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).js new file mode 100644 index 0000000000000..4e0c843d1ebc9 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).js @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts] //// + +//// [privateNameNestedClassFieldShadowing.ts] +class Base { + #x; + constructor() { + class Derived { + #x; + testBase(x: Base) { + console.log(x.#x); + } + testDerived(x: Derived) { + console.log(x.#x); + } + } + } +} + + +//// [privateNameNestedClassFieldShadowing.js] +"use strict"; +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var _Base_x; +class Base { + constructor() { + var _Derived_x; + _Base_x.set(this, void 0); + class Derived { + constructor() { + _Derived_x.set(this, void 0); + } + testBase(x) { + console.log(__classPrivateFieldGet(x, _Derived_x, "f")); + } + testDerived(x) { + console.log(__classPrivateFieldGet(x, _Derived_x, "f")); + } + } + _Derived_x = new WeakMap(); + } +} +_Base_x = new WeakMap(); diff --git a/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).symbols b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).symbols new file mode 100644 index 0000000000000..33cee0bc25f14 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).symbols @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts] //// + +=== privateNameNestedClassFieldShadowing.ts === +class Base { +>Base : Symbol(Base, Decl(privateNameNestedClassFieldShadowing.ts, 0, 0)) + + #x; +>#x : Symbol(Base.#x, Decl(privateNameNestedClassFieldShadowing.ts, 0, 12)) + + constructor() { + class Derived { +>Derived : Symbol(Derived, Decl(privateNameNestedClassFieldShadowing.ts, 2, 19)) + + #x; +>#x : Symbol(Derived.#x, Decl(privateNameNestedClassFieldShadowing.ts, 3, 23)) + + testBase(x: Base) { +>testBase : Symbol(Derived.testBase, Decl(privateNameNestedClassFieldShadowing.ts, 4, 15)) +>x : Symbol(x, Decl(privateNameNestedClassFieldShadowing.ts, 5, 21)) +>Base : Symbol(Base, Decl(privateNameNestedClassFieldShadowing.ts, 0, 0)) + + console.log(x.#x); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>x : Symbol(x, Decl(privateNameNestedClassFieldShadowing.ts, 5, 21)) + } + testDerived(x: Derived) { +>testDerived : Symbol(Derived.testDerived, Decl(privateNameNestedClassFieldShadowing.ts, 7, 13)) +>x : Symbol(x, Decl(privateNameNestedClassFieldShadowing.ts, 8, 24)) +>Derived : Symbol(Derived, Decl(privateNameNestedClassFieldShadowing.ts, 2, 19)) + + console.log(x.#x); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>x.#x : Symbol(Derived.#x, Decl(privateNameNestedClassFieldShadowing.ts, 3, 23)) +>x : Symbol(x, Decl(privateNameNestedClassFieldShadowing.ts, 8, 24)) + } + } + } +} + diff --git a/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).types b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).types new file mode 100644 index 0000000000000..473319eee8b31 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=default).types @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts] //// + +=== privateNameNestedClassFieldShadowing.ts === +class Base { +>Base : Base + + #x; +>#x : any + + constructor() { + class Derived { +>Derived : Derived + + #x; +>#x : any + + testBase(x: Base) { +>testBase : (x: Base) => void +>x : Base + + console.log(x.#x); +>console.log(x.#x) : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>x.#x : any +>x : Base + } + testDerived(x: Derived) { +>testDerived : (x: Derived) => void +>x : Derived + + console.log(x.#x); +>console.log(x.#x) : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>x.#x : any +>x : Derived + } + } + } +} + diff --git a/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..d4d3aede55faf --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).errors.txt @@ -0,0 +1,23 @@ +privateNameNestedClassFieldShadowing.ts(7,31): error TS18014: The property '#x' cannot be accessed on type 'Base' within this class because it is shadowed by another private identifier with the same spelling. + + +==== privateNameNestedClassFieldShadowing.ts (1 errors) ==== + class Base { + #x; + constructor() { + class Derived { + #x; + testBase(x: Base) { + console.log(x.#x); + ~~ +!!! error TS18014: The property '#x' cannot be accessed on type 'Base' within this class because it is shadowed by another private identifier with the same spelling. +!!! related TS18018 privateNameNestedClassFieldShadowing.ts:2:5: The declaration of '#x' that you probably intended to use is defined here +!!! related TS18017 privateNameNestedClassFieldShadowing.ts:5:13: The shadowing declaration of '#x' is defined here + } + testDerived(x: Derived) { + console.log(x.#x); + } + } + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).js new file mode 100644 index 0000000000000..4e0c843d1ebc9 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).js @@ -0,0 +1,46 @@ +//// [tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts] //// + +//// [privateNameNestedClassFieldShadowing.ts] +class Base { + #x; + constructor() { + class Derived { + #x; + testBase(x: Base) { + console.log(x.#x); + } + testDerived(x: Derived) { + console.log(x.#x); + } + } + } +} + + +//// [privateNameNestedClassFieldShadowing.js] +"use strict"; +var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); +}; +var _Base_x; +class Base { + constructor() { + var _Derived_x; + _Base_x.set(this, void 0); + class Derived { + constructor() { + _Derived_x.set(this, void 0); + } + testBase(x) { + console.log(__classPrivateFieldGet(x, _Derived_x, "f")); + } + testDerived(x) { + console.log(__classPrivateFieldGet(x, _Derived_x, "f")); + } + } + _Derived_x = new WeakMap(); + } +} +_Base_x = new WeakMap(); diff --git a/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..33cee0bc25f14 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).symbols @@ -0,0 +1,43 @@ +//// [tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts] //// + +=== privateNameNestedClassFieldShadowing.ts === +class Base { +>Base : Symbol(Base, Decl(privateNameNestedClassFieldShadowing.ts, 0, 0)) + + #x; +>#x : Symbol(Base.#x, Decl(privateNameNestedClassFieldShadowing.ts, 0, 12)) + + constructor() { + class Derived { +>Derived : Symbol(Derived, Decl(privateNameNestedClassFieldShadowing.ts, 2, 19)) + + #x; +>#x : Symbol(Derived.#x, Decl(privateNameNestedClassFieldShadowing.ts, 3, 23)) + + testBase(x: Base) { +>testBase : Symbol(Derived.testBase, Decl(privateNameNestedClassFieldShadowing.ts, 4, 15)) +>x : Symbol(x, Decl(privateNameNestedClassFieldShadowing.ts, 5, 21)) +>Base : Symbol(Base, Decl(privateNameNestedClassFieldShadowing.ts, 0, 0)) + + console.log(x.#x); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>x : Symbol(x, Decl(privateNameNestedClassFieldShadowing.ts, 5, 21)) + } + testDerived(x: Derived) { +>testDerived : Symbol(Derived.testDerived, Decl(privateNameNestedClassFieldShadowing.ts, 7, 13)) +>x : Symbol(x, Decl(privateNameNestedClassFieldShadowing.ts, 8, 24)) +>Derived : Symbol(Derived, Decl(privateNameNestedClassFieldShadowing.ts, 2, 19)) + + console.log(x.#x); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>x.#x : Symbol(Derived.#x, Decl(privateNameNestedClassFieldShadowing.ts, 3, 23)) +>x : Symbol(x, Decl(privateNameNestedClassFieldShadowing.ts, 8, 24)) + } + } + } +} + diff --git a/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).types new file mode 100644 index 0000000000000..473319eee8b31 --- /dev/null +++ b/tsc/testdata/baselines/reference/conformance/privateNameNestedClassFieldShadowing(checkorder=typesfirst).types @@ -0,0 +1,44 @@ +//// [tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts] //// + +=== privateNameNestedClassFieldShadowing.ts === +class Base { +>Base : Base + + #x; +>#x : any + + constructor() { + class Derived { +>Derived : Derived + + #x; +>#x : any + + testBase(x: Base) { +>testBase : (x: Base) => void +>x : Base + + console.log(x.#x); +>console.log(x.#x) : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>x.#x : any +>x : Base + } + testDerived(x: Derived) { +>testDerived : (x: Derived) => void +>x : Derived + + console.log(x.#x); +>console.log(x.#x) : void +>console.log : (...data: any[]) => void +>console : Console +>log : (...data: any[]) => void +>x.#x : any +>x : Derived + } + } + } +} + diff --git a/tsc/testdata/tests/cases/compiler/baseConstraintDepthCheckOrder.ts b/tsc/testdata/tests/cases/compiler/baseConstraintDepthCheckOrder.ts new file mode 100644 index 0000000000000..967a50184dd64 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/baseConstraintDepthCheckOrder.ts @@ -0,0 +1,13 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// The base constraint of 'T0' is 60 type parameters deep and gives up after +// 50, while that of 'T20' is found 40 deep. Neither may depend on which was +// computed first: computing 'T0' first must not leave 'T20' without its +// constraint, and computing 'T20' first must not let 'T0' reuse it. + +function f(x: T0, y: T20) { + x.length; + y.length; +} diff --git a/tsc/testdata/tests/cases/compiler/bigintArbirtraryIdentifier.ts b/tsc/testdata/tests/cases/compiler/bigintArbirtraryIdentifier.ts index 9b281534212e8..63dfdce226f74 100644 --- a/tsc/testdata/tests/cases/compiler/bigintArbirtraryIdentifier.ts +++ b/tsc/testdata/tests/cases/compiler/bigintArbirtraryIdentifier.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: esnext // @module: esnext diff --git a/tsc/testdata/tests/cases/compiler/boundedRecursiveTypeInferredThroughClosure.ts b/tsc/testdata/tests/cases/compiler/boundedRecursiveTypeInferredThroughClosure.ts new file mode 100644 index 0000000000000..a2bf3a650cc06 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/boundedRecursiveTypeInferredThroughClosure.ts @@ -0,0 +1,83 @@ +// @strict: true +// @noEmit: true +// @target: esnext + +// The recursion of InferData and UnpackKeyValue is bounded by Next, so +// inferring it through a closure must not report it as infinite. + +type Prettify = { [K in keyof T]: T[K] } & {}; +type ExtractUndefined = { [K in keyof T]: undefined extends T[K] ? K : never }[keyof T]; +type ExtractDefined = { [K in keyof T]: undefined extends T[K] ? never : K }[keyof T]; +type Next = [1, 2, 3, 4, 5, 6]; +type JSONPrimitives = string | number | bigint | boolean | null | undefined; +type JSONValues = JSONPrimitives | CanBeSerialized; +type CanBeSerialized = { + toJSON(): T; +}; +type JSONDataTypes = JSONValues | JSONDataTypes[] | { + [key: string]: JSONDataTypes; +}; +type SerializeJSONObject = { + [K in ExtractDefined]: SerializeJSONTypes; +} & { + [K in ExtractUndefined]?: SerializeJSONTypes; +}; +interface ExtendedJSONTypes { +} +type NonAllowedJSTypes = Map | Set; +type ForcefullyAllowedTypes = { + [K in keyof ExtendedJSONTypes]: ExtendedJSONTypes[K]; +}[keyof ExtendedJSONTypes]; +type SerializeJSONOwnTypes = T extends JSONPrimitives ? T : T extends ForcefullyAllowedTypes ? T : T extends NonAllowedJSTypes ? never : T extends Array ? Array> : T extends object ? Prettify> : never; +type SerializeJSONTypes = T extends ForcefullyAllowedTypes ? T : T extends CanBeSerialized ? SerializeJSONOwnTypes : SerializeJSONOwnTypes; +interface ItemContract, MaxDepth extends Next[number], Variant extends string> { + $type: 'item'; + transformer: { + new (...args: any[]): Transformer; + }; + maxDepth: MaxDepth; + variant: Variant; +} +type UnpackKeyValue = [Value[0]] extends [never] ? SerializeJSONTypes : Value[0] extends ItemContract ? InferData | SerializeJSONTypes : SerializeJSONTypes; +type LimitDepth = [ + Value +] extends [never] ? Key : Value extends ItemContract ? MaxDepth extends Depth ? never : Key : Key; +type UnpackOptionalValues = { + [O in { + [K in keyof Data]: [undefined] extends [Data[K]] ? LimitDepth[0], MaxDepth, Depth> : never; + }[keyof Data]]?: UnpackKeyValue, MaxDepth, Depth>; +}; +type UnpackRequiredValues = { + [O in { + [K in keyof Data]: [undefined] extends [Data[K]] ? never : LimitDepth[0], MaxDepth, Depth>; + }[keyof Data]]: UnpackKeyValue, MaxDepth, Depth>; +}; +type SplitItm = [ + Extract>, + Exclude> +]; +type UnpackAsTopLevelItem = T extends ItemContract ? InferData : never; +type UnpackValues = Prettify & UnpackOptionalValues>; +type InferData = Transformer extends { + [K in Variant]: (...args: any[]) => unknown; +} ? UnpackValues>, MaxDepth, Depth> : never; +declare class Item, MaxDepth extends Next[number], Variant extends string> { + transformer: { new (...args: any[]): Transformer }; + maxDepth: MaxDepth; + variant: Variant; + $type: 'item'; + resolve(): Promise>; +} +type Ctor = { new (resource: any, ...rest: any[]): any }; +declare abstract class BaseTransformer { + static transform(this: Self, data: ConstructorParameters[0]): Item, 1, 'toObject'>; + constructor(resource: T); +} +class Size { +} +class SizeTransformer extends BaseTransformer { + toObject() { + } +} +declare function once(value: T): T; +once(() => SizeTransformer.transform(new Size())); diff --git a/tsc/testdata/tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts b/tsc/testdata/tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts index 9455c0156930f..bb7452f273d4f 100644 --- a/tsc/testdata/tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts +++ b/tsc/testdata/tests/cases/compiler/checkIndexConstraintOfJavascriptClassExpression.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @Filename: weird.js // @allowJs: true diff --git a/tsc/testdata/tests/cases/compiler/checkOrderAwaitedCycle.ts b/tsc/testdata/tests/cases/compiler/checkOrderAwaitedCycle.ts new file mode 100644 index 0000000000000..f39f63e9c1f54 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderAwaitedCycle.ts @@ -0,0 +1,21 @@ +// @strict: true +// @target: esnext +// @lib: esnext +// @noEmit: true +// @checkOrder: default, reverse, isolated, typesfirst + +// Awaiting a promise whose promised type refers back to it reports a +// circularity wherever it is awaited, whichever is awaited first. + +// @filename: a.ts +type S = string | Promise; +declare const s: S; +declare const p: Promise; +async function f1() { + const a: number = await p; +} + +// @filename: b.ts +async function f2() { + const b: number = await s; +} diff --git a/tsc/testdata/tests/cases/compiler/checkOrderCircularConstraint.ts b/tsc/testdata/tests/cases/compiler/checkOrderCircularConstraint.ts new file mode 100644 index 0000000000000..efca8e2390569 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderCircularConstraint.ts @@ -0,0 +1,14 @@ +// @checkOrder: default, reverse, isolated, typesfirst + +// A circular constraint of a declared type parameter is reported at its +// declaration, regardless of which use resolves the constraint first. + +class A { + foo() { + var x!: T; + var a = x.foo(); + var b = new x(123); + var c = x[1]; + var d = x(); + } +} diff --git a/tsc/testdata/tests/cases/compiler/checkOrderCircularDefaults.ts b/tsc/testdata/tests/cases/compiler/checkOrderCircularDefaults.ts new file mode 100644 index 0000000000000..0232579d1f4f7 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderCircularDefaults.ts @@ -0,0 +1,16 @@ +// @strict: true +// @declaration: true +// @checkOrder: default, reverse, isolated, typesfirst + +// Which type parameter of a cycle of defaults is circular must not depend +// on which default is resolved first. + +// @filename: a.ts +import type { B } from "./b"; +export interface A { a: T } +export declare const a: A; + +// @filename: b.ts +import type { A } from "./a"; +export interface B { b: U } +export declare const b: B; diff --git a/tsc/testdata/tests/cases/compiler/checkOrderEmitBeforeCheck.ts b/tsc/testdata/tests/cases/compiler/checkOrderEmitBeforeCheck.ts new file mode 100644 index 0000000000000..fd86103b859d3 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderEmitBeforeCheck.ts @@ -0,0 +1,19 @@ +// @target: es2015 +// @declaration: true +// @checkOrder: default, isolated + +// The circularity in the mapped type is found by checking the annotation of +// "each". Emitting first must not instead report it at the use import +// elision visits, nor cache the result without the error. +type NonOptionalKeys = { [P in keyof T]: undefined extends T[P] ? never : P }[keyof T]; +type Child = { [P in NonOptionalKeys]: T[P] } + +export interface ListWidget { + "type": "list", + "each": Child; +} + +type ListChild = Child + +declare let x: ListChild; +x.type; diff --git a/tsc/testdata/tests/cases/compiler/checkOrderEnumComputedMember.ts b/tsc/testdata/tests/cases/compiler/checkOrderEnumComputedMember.ts new file mode 100644 index 0000000000000..caaa6629db492 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderEnumComputedMember.ts @@ -0,0 +1,12 @@ +// @checkOrder: default, reverse, isolated, typesfirst +// @target: esnext +// @strict: true +// @declaration: true + +enum E { + A = 0, + B = E.A.valueOf(), + C = 1, +} + +const member: Extract = E.C; diff --git a/tsc/testdata/tests/cases/compiler/checkOrderLateBoundMembers.ts b/tsc/testdata/tests/cases/compiler/checkOrderLateBoundMembers.ts new file mode 100644 index 0000000000000..a0e4fa51e4348 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderLateBoundMembers.ts @@ -0,0 +1,13 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, reverse, isolated, typesfirst + +// Resolving the name in a computed property name looks it up in the members +// of the enclosing interface. That must not late-bind those same members, +// or the accessors would not merge with the property when asked first. +const foo = "foo" +interface I { + get [foo](): number; + foo: number; + set [foo](value: number); +} diff --git a/tsc/testdata/tests/cases/compiler/checkOrderModuleExportsAlias.ts b/tsc/testdata/tests/cases/compiler/checkOrderModuleExportsAlias.ts new file mode 100644 index 0000000000000..08d9142ed1bff --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderModuleExportsAlias.ts @@ -0,0 +1,8 @@ +// @checkOrder: default, reverse, isolated, typesfirst +// @allowJs: true +// @checkJs: true +// @declaration: true +// @outDir: ./out +// @filename: index.js +module.exports.i = function i() {} +module.exports.ii = module.exports.i; diff --git a/tsc/testdata/tests/cases/compiler/checkOrderParameterInTypeQuery.ts b/tsc/testdata/tests/cases/compiler/checkOrderParameterInTypeQuery.ts new file mode 100644 index 0000000000000..627a5ec7db84d --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderParameterInTypeQuery.ts @@ -0,0 +1,19 @@ +// @strict: true +// @target: esnext +// @checkOrder: default, reverse, isolated, typesfirst + +// Whether a parameter named in a reused return type annotation is the same +// symbol in the printed signature must not depend on whether the type of +// the parameter was resolved before the signature was instantiated. + +export class C2 { + #a = 1; + test1() { + class C { + test1(a: C2): typeof a.#a { + return 1; + } + } + return new C().test1(this); + } +} diff --git a/tsc/testdata/tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts b/tsc/testdata/tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts new file mode 100644 index 0000000000000..68f93ef70343d --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderRecursiveIndexedAccess.ts @@ -0,0 +1,21 @@ +// @noEmit: true +// @strict: true +// @checkOrder: default, reverse, isolated, typesfirst + +// @filename: recur.ts +export type Recur = + (T extends (unknown[]) ? {} : { [K in keyof T]?: Recur}) | + [...Recur[number][]]; + +// @filename: join.ts +import { Recur } from "./recur"; +export function join(l: Recur[]): Recur { + return ['marker', ...l]; +} + +// @filename: a.ts +import { Recur } from "./recur"; +import { join } from "./join"; +function a(l: Recur[]): void { + const x: Recur | undefined = join(l); +} diff --git a/tsc/testdata/tests/cases/compiler/checkOrderSpreadCycle.ts b/tsc/testdata/tests/cases/compiler/checkOrderSpreadCycle.ts new file mode 100644 index 0000000000000..b9c220019d68b --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderSpreadCycle.ts @@ -0,0 +1,31 @@ +// @checkOrder: default, reverse, isolated, typesfirst +// @strict: true +// @module: commonjs +// @target: es2020 +// @allowJs: true +// @declaration: true +// @outDir: /out +// @noImplicitReferences: true + +// @Filename: /ma.js +export { v as pa } from "./xa"; +export const ma = 1; + +// @Filename: /mb.js +export { v as pb } from "./xb"; +export const mb = 1; + +// @Filename: /xa.js +/** @type {typeof import("./mb")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + +// @Filename: /xb.js +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; + +// @Filename: /ia.js +/** @type {typeof import("./ma")} */ +const M = /** @type {any} */ (null); +module.exports = { v: { ...M } }; diff --git a/tsc/testdata/tests/cases/compiler/checkOrderStableInstantiationErrors.ts b/tsc/testdata/tests/cases/compiler/checkOrderStableInstantiationErrors.ts new file mode 100644 index 0000000000000..6228beba99973 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/checkOrderStableInstantiationErrors.ts @@ -0,0 +1,30 @@ +// @checkOrder: default, reverse, typesfirst +// @filename: lib.ts +export type Dec = + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; +export type Recur = + N extends 0 ? S : Recur, [S]>; + +// @filename: a.ts +import { Recur } from "./lib"; +export let a: Recur<5, "a">; + +// @filename: b.ts +import { Recur } from "./lib"; +export let b: Recur<5, "a">; + +// @filename: c.ts +class T { + declare a: A; + declare b: any; +} +class L extends T {} +export class X extends L { + declare a: 'a' | 'b'; + declare b: number; + m() { + this.a; + } +} diff --git a/tsc/testdata/tests/cases/compiler/circularAccessorAnnotations.ts b/tsc/testdata/tests/cases/compiler/circularAccessorAnnotations.ts index 01a0d10ffe3d7..76a644bb35537 100644 --- a/tsc/testdata/tests/cases/compiler/circularAccessorAnnotations.ts +++ b/tsc/testdata/tests/cases/compiler/circularAccessorAnnotations.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @strict: true // @declaration: true diff --git a/tsc/testdata/tests/cases/compiler/circularBaseTypesCheckOrder.ts b/tsc/testdata/tests/cases/compiler/circularBaseTypesCheckOrder.ts new file mode 100644 index 0000000000000..3ecee9e8f3fb4 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/circularBaseTypesCheckOrder.ts @@ -0,0 +1,25 @@ +// @noEmit: true +// @checkOrder: default, reverse, typesfirst, editorfirst + +// The base types of a cycle of interfaces are resolved as if the cycle +// were entered at the interface declared first, wherever it is entered: +// 'Base' has none, and the others keep theirs. + +declare let z: Derived2; +z.x; +z.y; + +interface Base extends Derived2 { + x: string; +} + +interface Derived extends Base { + y: string; +} + +interface Derived2 extends Derived { + z: string; +} + +declare let d: Derived; +d.x; diff --git a/tsc/testdata/tests/cases/compiler/circularIndexedPropertyInstantiation.ts b/tsc/testdata/tests/cases/compiler/circularIndexedPropertyInstantiation.ts new file mode 100644 index 0000000000000..3aa2e3f2b6f02 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/circularIndexedPropertyInstantiation.ts @@ -0,0 +1,6 @@ +// @target: es2015 +// Repro from #14837 + +type Foo = { "true": Foo> }[T]; +let f1: Foo<"true", {}>; +let f2: Foo<"false", {}>; \ No newline at end of file diff --git a/tsc/testdata/tests/cases/compiler/circularInitializerInference.ts b/tsc/testdata/tests/cases/compiler/circularInitializerInference.ts new file mode 100644 index 0000000000000..727b206a54e83 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/circularInitializerInference.ts @@ -0,0 +1,31 @@ +// @target: es2015 +// @strict: true, false + +export {}; + +type IsAny = 0 extends (1 & Type) ? true : false; +type Assert = Condition; + +var comma = (comma, 3); +type CommaInference = Assert>; + +var nestedComma = (comma, nestedComma, comma); +type NestedCommaInference = Assert>; + +var assignment = (assignment = 2); +type AssignmentInference = Assert>; + +var nestedAssignment = (nestedAssignment = nestedAssignment = 2); +type NestedAssignmentInference = Assert>; + +var conditional = conditional ? 0 : 1; +type ConditionalInference = Assert>; + +var logicalAnd = logicalAnd && ""; +type LogicalAndInference = Assert>; + +var propertyAccess = { member: propertyAccess.member }; +type PropertyAccessInference = Assert>; + +const nonCircular: number = 3; +type NonCircularInference = Assert extends false ? true : false>; \ No newline at end of file diff --git a/tsc/testdata/tests/cases/compiler/circularInlineMappedGenericTupleTypeNoCrash.ts b/tsc/testdata/tests/cases/compiler/circularInlineMappedGenericTupleTypeNoCrash.ts index 2bc4f70704151..251464912be0f 100644 --- a/tsc/testdata/tests/cases/compiler/circularInlineMappedGenericTupleTypeNoCrash.ts +++ b/tsc/testdata/tests/cases/compiler/circularInlineMappedGenericTupleTypeNoCrash.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @strict: true // @noEmit: true diff --git a/tsc/testdata/tests/cases/compiler/circularReturnThroughThisNarrowingCheckOrder.ts b/tsc/testdata/tests/cases/compiler/circularReturnThroughThisNarrowingCheckOrder.ts new file mode 100644 index 0000000000000..b88a1faa71b8b --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/circularReturnThroughThisNarrowingCheckOrder.ts @@ -0,0 +1,21 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst, editorfirst + +// Narrowing this by a type guard in a method relates the class to a +// derived class, whose members include the method being inferred. The +// circularity is reported whether the class or its methods are typed first +// (55069). + +declare function isDerived(p: Base): p is Derived; +class Base { + private add() { + if (isDerived(this)) { + if (this.name) return 1; + } + const w = this.add2(); + return w; + } + private add2() { return 2; } +} +class Derived extends Base { name = ""; } diff --git a/tsc/testdata/tests/cases/compiler/circularReturnTypeSubtypeReductionOrder.ts b/tsc/testdata/tests/cases/compiler/circularReturnTypeSubtypeReductionOrder.ts new file mode 100644 index 0000000000000..76e977a6505b1 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/circularReturnTypeSubtypeReductionOrder.ts @@ -0,0 +1,42 @@ +// @strict: true +// @target: esnext +// @noEmit: true + +// @filename: expression.ts +// Subtype reduction of rebuild's return type relates the class to A, +// which needs b's return type, which needs rebuild's: a cycle. Both +// members report it, whichever return type is requested first, as if +// rebuild's, declared first, were requested first. +interface A { + b(): A; + c: A; +} +declare const flag: boolean; +const A: new () => A = class { + rebuild() { + return flag ? this : new A(); + } + b() { + return this.rebuild(); + } + c() { + return this.rebuild; + } +}; +export {}; + +// @filename: declaration.ts +interface B { + b(): B; +} +declare const flag: boolean; +class K { + rebuild() { + return flag ? this : new B(); + } + b() { + return this.rebuild(); + } +} +const B: new () => B = K; +export {}; diff --git a/tsc/testdata/tests/cases/compiler/circularReturnTypeThroughCallArgumentRelation.ts b/tsc/testdata/tests/cases/compiler/circularReturnTypeThroughCallArgumentRelation.ts new file mode 100644 index 0000000000000..14bc012218d93 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/circularReturnTypeThroughCallArgumentRelation.ts @@ -0,0 +1,44 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default,typesfirst + +// Inferring a method's return type resolves a call whose argument check +// relates the method's own class to an interface containing that method, so +// the relation compares the method while its return type is in progress. +// TypeScript reads the in-progress return type as `any` there without failing +// it, and call resolution hides the resolutions below it, so no TS7023 is +// reported in any check order and the method gets the call's return type. +// (Reduced from meta/lexical HeadingNode.$config and effect SchemaAST getParser.) + +// Through a callback returning an instance (lexical). +interface Base { m(): unknown } +declare function config(config: { f?: () => Base }): void; + +declare const h: Heading; +const b: Base = h; + +class Heading { + m() { + return config({ f: () => create() }); + } +} + +declare function create(): Heading; + +const r: void = new Heading().m(); + +// Passing `this` directly (effect). +type Parser = (input: unknown) => unknown; +interface NullNode { readonly _tag: "Null"; getParser(): Parser } +interface UndefinedNode { readonly _tag: "Undefined"; getParser(): Parser } +type AST = NullNode | UndefinedNode; +declare function fromConst(ast: AST, value: unknown): Parser; + +const NullNode: new () => NullNode = class { + readonly _tag = "Null"; + getParser() { + return fromConst(this, null); + } +}; + +const p: Parser = new NullNode().getParser(); diff --git a/tsc/testdata/tests/cases/compiler/circularReturnTypeThroughCallbackArgument.ts b/tsc/testdata/tests/cases/compiler/circularReturnTypeThroughCallbackArgument.ts new file mode 100644 index 0000000000000..209bc9616d71d --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/circularReturnTypeThroughCallbackArgument.ts @@ -0,0 +1,27 @@ +// @strict: true,false +// @noEmit: true + +declare function fan(g: () => number): number; + +export function a(n: number) { + return fan(() => a(n)); +} + +declare function fanAll(g: () => Promise<{ ok: boolean }>): Promise<{ ok: boolean }>; + +export async function b(n: number) { + if (n > 0) { + return fanAll(() => b(n - 1)); + } + return { ok: true }; +} + +type Result = { success: boolean; [key: string]: unknown }; +interface Other { success: boolean; url: string } +declare function fanOut(generateOne: () => Promise): Promise; +declare const other: Other; + +export async function c(n: number) { + if (n) return other; + return fanOut(() => c(n - 1)); +} diff --git a/tsc/testdata/tests/cases/compiler/circularReturnTypeThroughUncontextualCallbackArgument.ts b/tsc/testdata/tests/cases/compiler/circularReturnTypeThroughUncontextualCallbackArgument.ts new file mode 100644 index 0000000000000..cd367b30e1c03 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/circularReturnTypeThroughUncontextualCallbackArgument.ts @@ -0,0 +1,22 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default,typesfirst + +// `getCreds`'s return type depends on resolving `materialize({ next })`, whose +// argument check needs the return type of the (non-contextually typed) arrow +// `next`, which calls `getCreds` again. TypeScript never reports this cycle in +// any order: call resolution hides the resolutions below it, and the relation +// reads an in-progress return type as `any` without failing it. So no TS7023, +// and `getCreds` returns `number`. (Reduced from OmniRoute auth.ts +// getProviderCredentials/selectNextLeaseCandidate.) + +const x = getCreds(); + +declare function materialize(extra: { next?: (id: string) => unknown }): number; + +function getCreds() { + const next = (id: string) => getCreds(); + return materialize({ next }); +} + +const n: number = getCreds(); diff --git a/tsc/testdata/tests/cases/compiler/circularScopeThunkReverseMapped.ts b/tsc/testdata/tests/cases/compiler/circularScopeThunkReverseMapped.ts new file mode 100644 index 0000000000000..273d8a44b93d3 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/circularScopeThunkReverseMapped.ts @@ -0,0 +1,26 @@ +// @strict: true +// @target: esnext +// @noEmit: true +// @checkOrder: default, typesfirst + +type Resolve = T extends () => infer R ? R : T; +type Validate = { [K in keyof def]: def[K] extends () => infer R ? () => R : def[K] }; +interface Scope { + type(k: k): Resolve; +} +interface Type { + pipe(f: (x: T) => U): Type; +} +declare function scope(def: Validate): Scope; +declare function type(x: T): Type; + +export const $ = scope({ + a: type("string").pipe(function (s) { return s.length; }), + b: () => $.type("a").pipe(function (n) { return n === 0; }), +}); + +// Entered from the function in the first property when queried in reverse +export const $2 = scope({ + a: type("string").pipe(function (s) { return s.length; }), + b: () => $2.type("a").pipe((n: number) => n === 0), +}); diff --git a/tsc/testdata/tests/cases/compiler/classCircularityDiagnostics.ts b/tsc/testdata/tests/cases/compiler/classCircularityDiagnostics.ts new file mode 100644 index 0000000000000..34977b5df2a3d --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/classCircularityDiagnostics.ts @@ -0,0 +1,48 @@ +// @target: esnext +// @noImplicitAny: true, false + +class Direct extends Direct { + static value = 1; + value = 2; +} + +const staticValue = Direct.value; +const instanceValue = new Direct().value; + +class First extends Second {} +class Second extends First {} + +const Expression = class Named extends Named {}; + +class NestedBase extends (class { + static value = 1; + value = 2; +}) {} + +const nestedStaticValue: number = NestedBase.value; +const nestedInstanceValue: number = new NestedBase().value; + +const SelfReferencingBase = class extends (class { + static self = SelfReferencingBase; +}) {}; + +const selfConstructor = SelfReferencingBase.self; + +function mixin {}>(base: Base) { + return class extends base { + static value = 1; + value = 2; + }; +} + +class Mixed extends mixin(NestedBase) {} + +const mixedStaticValue: number = Mixed.value; +const mixedInstanceValue: number = new Mixed().value; + +declare function makeBase(value: number): typeof NestedBase; +class InvalidBaseArgument extends makeBase("invalid") {} +const InvalidExpressionArgument = class extends makeBase("invalid") {}; + +declare function makeInvalidBase(value: number): number; +class InvalidConstructor extends makeInvalidBase("invalid") {} \ No newline at end of file diff --git a/tsc/testdata/tests/cases/compiler/clonedTypeParameterUnionOrder.ts b/tsc/testdata/tests/cases/compiler/clonedTypeParameterUnionOrder.ts new file mode 100644 index 0000000000000..3bfa464b30bde --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/clonedTypeParameterUnionOrder.ts @@ -0,0 +1,15 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, reverse, typesfirst + +// @filename: a.ts +interface Pair { a: A; b: B } +interface Box { m(x: T): Pair } +declare function call(f: (x: A) => R): (x: A) => R; +declare const bs: Box; +declare const bn: Box; +const n = call(bn.m); + +// @filename: b.ts +declare const c: boolean; +const r = c ? call(bs.m) : call(bn.m); diff --git a/tsc/testdata/tests/cases/compiler/constAssertionBindingPatternQueryOrder.ts b/tsc/testdata/tests/cases/compiler/constAssertionBindingPatternQueryOrder.ts new file mode 100644 index 0000000000000..42517d7d60024 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/constAssertionBindingPatternQueryOrder.ts @@ -0,0 +1,11 @@ +// @strict: true +// @target: esnext +// @lib: esnext +// @noEmit: true +// @checkOrder: default, typesfirst + +declare function settle(fn: () => T): Promise<{ [K in keyof T]: [Awaited] }>; + +async function f() { + const [[a], b] = await settle(() => [Promise.resolve(0), Promise.reject(1)] as const); +} diff --git a/tsc/testdata/tests/cases/compiler/contextualCheckReentryFromOuterTypeParameters.ts b/tsc/testdata/tests/cases/compiler/contextualCheckReentryFromOuterTypeParameters.ts new file mode 100644 index 0000000000000..4d185d6668c8a --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/contextualCheckReentryFromOuterTypeParameters.ts @@ -0,0 +1,17 @@ +// @strict: true +// @noEmit: true + +interface Argv { + command(builder: (args: Argv) => Argv, handler: (args: Arguments) => void): Argv; + option(key: K, options: O): Argv<{ [key in K]: O } & Check>; +} +type Arguments = { [key in keyof T]: T[key] } & { [key: string]: unknown }; +type Check = O extends {} ? {} : {}; +declare const yargs: Argv; + +yargs.command( + (yargs) => yargs.option("a", { type: "string" }), + (argv) => { + const a: { type: string } = argv.a; + }, +); diff --git a/tsc/testdata/tests/cases/compiler/contextualOuterTypeParameters.ts b/tsc/testdata/tests/cases/compiler/contextualOuterTypeParameters.ts index a6ff9ae0a6e48..3ca7c15a2d58c 100644 --- a/tsc/testdata/tests/cases/compiler/contextualOuterTypeParameters.ts +++ b/tsc/testdata/tests/cases/compiler/contextualOuterTypeParameters.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @strict: true // @noemit: true @@ -27,3 +28,8 @@ const obj: { f: (x: T) => void } = { type IsObject = { x: typeof t } extends { x: string } ? true : false; } }; + +f(function self(t) { + const s = self; + type P = Parameters; +}); diff --git a/tsc/testdata/tests/cases/compiler/contextualParameterDefaultReferenceCheckOrder.ts b/tsc/testdata/tests/cases/compiler/contextualParameterDefaultReferenceCheckOrder.ts new file mode 100644 index 0000000000000..9fd41e7b8b38e --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/contextualParameterDefaultReferenceCheckOrder.ts @@ -0,0 +1,7 @@ +// @checkOrder: default, typesfirst + +// x is contextually typed as 1, but its initializer widens it to number. The +// reference to x must have the same type whether it is queried before or +// after the function is checked. + +const f: (g: () => number, x: 1) => void = (g = () => x, x = 0) => {}; diff --git a/tsc/testdata/tests/cases/compiler/contextualParameterInCircularVariableInitializer.ts b/tsc/testdata/tests/cases/compiler/contextualParameterInCircularVariableInitializer.ts new file mode 100644 index 0000000000000..778d3f13cf9b3 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/contextualParameterInCircularVariableInitializer.ts @@ -0,0 +1,20 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default,typesfirst + +// The initializer of `store` refers to `store` from a callback, so resolving +// the type of `store` re-enters itself. `y` must still get its contextual +// type `string` from `Store` (zustand `create()(...)` pattern), with no +// TS7006, as in main and TS 6.0. + +declare function create(init: () => T): T; + +interface Store { + a: (x: boolean) => void; + b: (y: string) => void; +} + +const store = create(() => ({ + a: (x) => store.b(""), + b: (y) => {}, +})); diff --git a/tsc/testdata/tests/cases/compiler/contextualParameterInReturnTypeCycleOfGenericCall.ts b/tsc/testdata/tests/cases/compiler/contextualParameterInReturnTypeCycleOfGenericCall.ts new file mode 100644 index 0000000000000..aeec88e3ef5b1 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/contextualParameterInReturnTypeCycleOfGenericCall.ts @@ -0,0 +1,17 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default,typesfirst + +// Inferring `T` for `g` needs the return type of the arrow, whose body is a +// call to `f` that is contextually typed by that same return type, a cycle. +// `state` must still get the contextual type `number` (S inferred from +// `initialState`), as in main and TS 6.0 (redux-toolkit `createSlice` inside +// vitest `expect(() => ...)` pattern). + +declare function f S>>(options: { + initialState: S; + reducers: CR; +}): CR; +declare function g(a: T): void; + +g(() => f({ reducers: { a: (state) => state + 1 }, initialState: 0 })); diff --git a/tsc/testdata/tests/cases/compiler/contextualReturnArrayPatternCallback.ts b/tsc/testdata/tests/cases/compiler/contextualReturnArrayPatternCallback.ts index 04519047a9dc7..62b911890c1ed 100644 --- a/tsc/testdata/tests/cases/compiler/contextualReturnArrayPatternCallback.ts +++ b/tsc/testdata/tests/cases/compiler/contextualReturnArrayPatternCallback.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @strict: true interface Matcher { diff --git a/tsc/testdata/tests/cases/compiler/contextualThisAssertionCheckOrder.ts b/tsc/testdata/tests/cases/compiler/contextualThisAssertionCheckOrder.ts new file mode 100644 index 0000000000000..ecd4900e0930d --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/contextualThisAssertionCheckOrder.ts @@ -0,0 +1,21 @@ +// @strict: true +// @noEmit: true +// @allowUnreachableCode: false +// @checkOrder: default, typesfirst, editorfirst + +// A function expression's this is typed contextually, and calling an +// assertion or never-returning method through it narrows the same way +// whether or not the types in the call were requested first (42175). + +declare function makeContextualThisParameter(cb: (this: T) => any): void; + +makeContextualThisParameter<{ assert(v: any): asserts v }>(function () { + const v = Boolean(); + this.assert(v); + const w: true = v; +}); + +makeContextualThisParameter<{ returnNever(): never }>(function () { + this.returnNever(); + debugger; +}); diff --git a/tsc/testdata/tests/cases/compiler/cycleYieldThroughVarianceCheckOrder.ts b/tsc/testdata/tests/cases/compiler/cycleYieldThroughVarianceCheckOrder.ts new file mode 100644 index 0000000000000..7a15bdde8b6f7 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/cycleYieldThroughVarianceCheckOrder.ts @@ -0,0 +1,16 @@ +// @checkOrder: default, typesfirst + +// Resolving the base of E measures the variances of B, which needs the type +// of p, which needs the members of E. Whether p is circular must not depend +// on whether B is checked before the type of arg is queried. + +declare class B { + p: E["p"]; +} +declare class E extends mix(Base) { + p: number; +} +declare function mix object>(x: T): T; +declare class Base { + constructor(arg?: InstanceType); +} diff --git a/tsc/testdata/tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts b/tsc/testdata/tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts new file mode 100644 index 0000000000000..d03a10dee6041 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/deepIndexedAccessChainConstraintCheckOrder.ts @@ -0,0 +1,23 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, reverse, isolated, typesfirst + +// The base constraint of a chain of indexed accesses is found through the +// object type of each, all of which share the recursion identity of the +// type parameter. The chain is finite, so the property access is valid +// however deep the chain, and whichever declaration is checked first (65508). + +interface Box { a: Box; b: string } + +const f: typeof victim = (x: U, y: { b: string }) => x.b; + +function victim( + x: T, + y: T["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"] +): string { + return x.b + y.b; +} + +function lone(y: U["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]["a"]): string { + return y.b; +} diff --git a/tsc/testdata/tests/cases/compiler/deferredTypeReferenceCycleRollback.ts b/tsc/testdata/tests/cases/compiler/deferredTypeReferenceCycleRollback.ts new file mode 100644 index 0000000000000..a33318012116f --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/deferredTypeReferenceCycleRollback.ts @@ -0,0 +1,20 @@ +// @strict: true +// @noEmit: true + +// A cycle rollback used to reset the type of the Array> +// node while the deferred reference identified by that node survived, +// which crashed a later instantiation of it. + +declare function declare(): void; + +interface PluginObj { + visitor: Visit; +} +type Visit = VisitFn | VisitObj; +type VisitFn = (path: NodePath

) => void; +interface VisitObj {} +declare class NodePath { + parentPath: NodePath>; + get: Get; +} +type Get = T extends Array ? Array> : never; diff --git a/tsc/testdata/tests/cases/compiler/deleteExpressionMustBeOptional.ts b/tsc/testdata/tests/cases/compiler/deleteExpressionMustBeOptional.ts index 223e0027de3cb..3252460f3281f 100644 --- a/tsc/testdata/tests/cases/compiler/deleteExpressionMustBeOptional.ts +++ b/tsc/testdata/tests/cases/compiler/deleteExpressionMustBeOptional.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @strict: true, false diff --git a/tsc/testdata/tests/cases/compiler/dependentDestructuringBindingElementInitializer.ts b/tsc/testdata/tests/cases/compiler/dependentDestructuringBindingElementInitializer.ts index 7006dffe572ca..4272774ef918b 100644 --- a/tsc/testdata/tests/cases/compiler/dependentDestructuringBindingElementInitializer.ts +++ b/tsc/testdata/tests/cases/compiler/dependentDestructuringBindingElementInitializer.ts @@ -1,5 +1,6 @@ // @strict: true // @noEmit: true +// @checkOrder: default, typesfirst type U = | { kind: "a"; payload: number; extra?: unknown } diff --git a/tsc/testdata/tests/cases/compiler/distributiveConstraintOfCircularCheckType.ts b/tsc/testdata/tests/cases/compiler/distributiveConstraintOfCircularCheckType.ts new file mode 100644 index 0000000000000..8ca726e50e3ee --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/distributiveConstraintOfCircularCheckType.ts @@ -0,0 +1,17 @@ +// @strict: true +// @noEmit: true + +// The base constraint of Collect is circular, since its +// constraint includes Collect, whose constraint includes itself. +// Distributing Parameters over that constraint leads back into the +// circularity, so Parameters> must instead have the +// constraint of its branches, unknown[], and be spreadable. + +type Collect = + Result & F extends (arg: infer A) => infer R + ? Collect | (() => R) + : never; + +function pipe unknown>(args: Parameters>, f: F) { + f(...args); +} diff --git a/tsc/testdata/tests/cases/compiler/enumMemberTypeCacheConsistency.ts b/tsc/testdata/tests/cases/compiler/enumMemberTypeCacheConsistency.ts new file mode 100644 index 0000000000000..74c113fe04cde --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/enumMemberTypeCacheConsistency.ts @@ -0,0 +1,11 @@ +// @target: esnext +// @strict: true +// @declaration: true + +enum E { + A = 0, + B = E.A.valueOf(), + C = 1, +} + +const member: Extract = E.C; \ No newline at end of file diff --git a/tsc/testdata/tests/cases/compiler/evolvingArrayReadInLoopCondition.ts b/tsc/testdata/tests/cases/compiler/evolvingArrayReadInLoopCondition.ts new file mode 100644 index 0000000000000..dd6f0e7f1fea1 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/evolvingArrayReadInLoopCondition.ts @@ -0,0 +1,16 @@ +// @strict: true +// @noEmit: true + +// Narrowing by the condition needs the type of `seen` at the call, which +// depends on the analysis of the loop in progress for that same read. Once +// the loop is analyzed, `seen` is number[] there, so no error should say that +// its type cannot be determined. + +declare const x: number; +const seen = []; +for (let i = 0; i < 3; i++) { + if (!seen.some(s => true)) { + seen.push(x); + } +} +const result = seen; diff --git a/tsc/testdata/tests/cases/compiler/excessivelyLargeTupleSpread.ts b/tsc/testdata/tests/cases/compiler/excessivelyLargeTupleSpread.ts index aba0de7b9b952..d8ec361ce08f3 100644 --- a/tsc/testdata/tests/cases/compiler/excessivelyLargeTupleSpread.ts +++ b/tsc/testdata/tests/cases/compiler/excessivelyLargeTupleSpread.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // #41771 diff --git a/tsc/testdata/tests/cases/compiler/exhaustiveSwitchCheckCircularity.ts b/tsc/testdata/tests/cases/compiler/exhaustiveSwitchCheckCircularity.ts index 86492e6c43f58..f3215225893b1 100644 --- a/tsc/testdata/tests/cases/compiler/exhaustiveSwitchCheckCircularity.ts +++ b/tsc/testdata/tests/cases/compiler/exhaustiveSwitchCheckCircularity.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @strict: true diff --git a/tsc/testdata/tests/cases/compiler/exportAssignmentNestedVisibilityQueryOrder.ts b/tsc/testdata/tests/cases/compiler/exportAssignmentNestedVisibilityQueryOrder.ts new file mode 100644 index 0000000000000..9b4a415d9bcbb --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/exportAssignmentNestedVisibilityQueryOrder.ts @@ -0,0 +1,17 @@ +// @target: es2015 +// @module: commonjs +// @declaration: true +// @checkOrder: default,editorfirst + +namespace m { + export interface Inner { + x: number; + } + export interface Outer { + use: (inner: Inner) => Outer; + } +} +declare var m: { + (): m.Outer; +}; +export = m; diff --git a/tsc/testdata/tests/cases/compiler/fallbackToBindingPatternForTypeInference.ts b/tsc/testdata/tests/cases/compiler/fallbackToBindingPatternForTypeInference.ts index 446b9319461cc..1a5a311e5c0dc 100644 --- a/tsc/testdata/tests/cases/compiler/fallbackToBindingPatternForTypeInference.ts +++ b/tsc/testdata/tests/cases/compiler/fallbackToBindingPatternForTypeInference.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 declare function trans(f: (x: T) => string): number; trans(({a}) => a); diff --git a/tsc/testdata/tests/cases/compiler/fixingTypeParametersRepeatedly2.ts b/tsc/testdata/tests/cases/compiler/fixingTypeParametersRepeatedly2.ts index c1949e48bf2ff..acb671e7cb0c2 100644 --- a/tsc/testdata/tests/cases/compiler/fixingTypeParametersRepeatedly2.ts +++ b/tsc/testdata/tests/cases/compiler/fixingTypeParametersRepeatedly2.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @strict: false interface Base { diff --git a/tsc/testdata/tests/cases/compiler/flowLoopDepthCheckOrder.ts b/tsc/testdata/tests/cases/compiler/flowLoopDepthCheckOrder.ts new file mode 100644 index 0000000000000..4be32972e0a81 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/flowLoopDepthCheckOrder.ts @@ -0,0 +1,1028 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// A loop is analyzed once for all references to the same name and the +// result is cached, so its analysis must not depend on the reference that +// reached it first. 'deep' reaches the loop with little depth left. +// Analyzing the loop from there must not make 'x' inside it give up when +// 'deep' is queried first. + +declare function cond(): boolean; +declare let b: boolean; + +let x: string | number = 0; +while (cond()) { + if (typeof x === "string") { x = 1; } else { x = "a"; } + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} +} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +if (b) {} +const deep = x; diff --git a/tsc/testdata/tests/cases/compiler/flowLoopTooDeepCheckOrder.ts b/tsc/testdata/tests/cases/compiler/flowLoopTooDeepCheckOrder.ts new file mode 100644 index 0000000000000..b5287e1da984c --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/flowLoopTooDeepCheckOrder.ts @@ -0,0 +1,1123 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// The loop is too deep to analyze from any reference, so 'narrowed' gives +// up whether or not the reference in the loop analyzed the loop first. + +declare function cond(): boolean; +declare function isString(value: unknown): value is string; +declare let b: boolean; + +let w: string | number = 0; +while (cond()) { + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (typeof w === "string") { w = 1; } else { w = "a"; } + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} +} +if (isString(w)) { + const narrowed = w; +} diff --git a/tsc/testdata/tests/cases/compiler/genericCallReturnedFunctionParameterDefault.ts b/tsc/testdata/tests/cases/compiler/genericCallReturnedFunctionParameterDefault.ts new file mode 100644 index 0000000000000..91e8220f031aa --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/genericCallReturnedFunctionParameterDefault.ts @@ -0,0 +1,28 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default,typesfirst + +// The function returned from the callback of a generic call has a parameter +// with a default and no annotation. Once T is inferred, the contextual +// signature of the returned function is its own signature, but the parameter +// already has its type (boolean) from the initializer, computed while T was +// being inferred, so there is no circularity: no TS7022, and 'r()(1)' is an +// error. (Reduced from open-design ProjectView.tsx, useCallback returning +// '{ release: (recoverable = false) => ... }'.) + +declare function id(callback: T): T; + +id(() => { + return (x = false) => {}; +}); + +id(() => (y = false) => y); + +id(() => { + return { m(z = false) {} }; +}); + +const r = id(() => { + return (w = 0) => {}; +}); +r()(""); diff --git a/tsc/testdata/tests/cases/compiler/getterCircularityDiagnostics.ts b/tsc/testdata/tests/cases/compiler/getterCircularityDiagnostics.ts new file mode 100644 index 0000000000000..f5533c69336ad --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/getterCircularityDiagnostics.ts @@ -0,0 +1,14 @@ +// @target: es2015 +// @strict: true + +declare const props: Options; + +class Container { + get options() { + return { container: this, ...props } as Options; + } +} + +interface Options { + container?: Container; +} \ No newline at end of file diff --git a/tsc/testdata/tests/cases/compiler/getterReturnTypeQueryOrder.ts b/tsc/testdata/tests/cases/compiler/getterReturnTypeQueryOrder.ts new file mode 100644 index 0000000000000..25228f5dd95b5 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/getterReturnTypeQueryOrder.ts @@ -0,0 +1,15 @@ +// @target: es2015 +// @strict: true +// @checkOrder: default,editorfirst + +declare const props: Options; + +class Container { + get options() { + return { container: this, ...props } as Options; + } +} + +interface Options { + container?: Container; +} diff --git a/tsc/testdata/tests/cases/compiler/importAttributeValueCheckOrder.ts b/tsc/testdata/tests/cases/compiler/importAttributeValueCheckOrder.ts new file mode 100644 index 0000000000000..c932f5e489893 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/importAttributeValueCheckOrder.ts @@ -0,0 +1,8 @@ +// @checkOrder: default, typesfirst +// @target: esnext + +// The attribute value is invalid, which does not affect the module. Its +// missing module must be reported whether or not the type of x is queried +// before the import is checked. + +import x from "x" with { a: 0 }; diff --git a/tsc/testdata/tests/cases/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.ts b/tsc/testdata/tests/cases/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.ts new file mode 100644 index 0000000000000..c42fef6accd0b --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.ts @@ -0,0 +1,23 @@ +// @strict: true +// @noEmit: true +// @target: esnext + +// The type of data in TokenNode is assignable to its inherited index +// signature, which mentions it through an indexed access. + +interface BaseNode { + kind: string; + [key: string]: string | TokenNode["data"]; +} + +interface TokenNode extends BaseNode { + kind: 'token'; + data: TokenData; +} + +interface TokenData { + offset: number; + width: number; + leading_width: number; + trailing_width: number; +} diff --git a/tsc/testdata/tests/cases/compiler/indexedAccessAccessFlagsUnionOrder.ts b/tsc/testdata/tests/cases/compiler/indexedAccessAccessFlagsUnionOrder.ts new file mode 100644 index 0000000000000..b0876e1a14d68 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/indexedAccessAccessFlagsUnionOrder.ts @@ -0,0 +1,13 @@ +// @strict: true +// @noUncheckedIndexedAccess: true +// @noEmit: true +// @checkOrder: default, typesfirst + +function f, K extends keyof T>(obj: T, k: K, b: boolean) { + const x = b ? obj[k] : g(); + const s1: string = x; + const y = b ? g() : obj[k]; + const s2: string = y; +} + +declare function g(): T[K]; diff --git a/tsc/testdata/tests/cases/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts b/tsc/testdata/tests/cases/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts new file mode 100644 index 0000000000000..2ecccbeddd0a2 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts @@ -0,0 +1,10 @@ +// @checkOrder: default, typesfirst + +// The constraint of U is inferred from the constraint of the type parameter +// of S. Instantiating S with U needs the constraint of U, so whether U +// satisfies object must not depend on whether I is queried before its type +// arguments are checked. + +type Copy = { [K in keyof T]: T[K] }; +type S = Copy<{ x: 0 } & T>; +type I = {} extends S ? U : never; diff --git a/tsc/testdata/tests/cases/compiler/inferenceDeeplyNestedCheckOrder.ts b/tsc/testdata/tests/cases/compiler/inferenceDeeplyNestedCheckOrder.ts new file mode 100644 index 0000000000000..9771e61448026 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/inferenceDeeplyNestedCheckOrder.ts @@ -0,0 +1,23 @@ +// @strict: true +// @target: es2015 +// @noEmit: true + +// Inferring from string[][] to Iterable> recurses through the +// [Symbol.iterator] methods of both arrays. Whether that looks like expanding +// recursion must not depend on whether string[] was iterated beforehand. + +// @filename: first.ts +declare function flatten1(iterable: Iterable>): T[]; +declare const lists1: string[][]; +const flat1: null = flatten1(lists1); + +declare const items1: string[]; +for (const item of items1) {} + +// @filename: second.ts +declare const items2: number[]; +for (const item of items2) {} + +declare function flatten2(iterable: Iterable>): T[]; +declare const lists2: number[][]; +const flat2: null = flatten2(lists2); diff --git a/tsc/testdata/tests/cases/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.ts b/tsc/testdata/tests/cases/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.ts new file mode 100644 index 0000000000000..5688826ba7da9 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.ts @@ -0,0 +1,10 @@ +// @strict: true +// @noEmit: true +// @target: esnext + +// Inferring from Promise to PromiseLike | V must infer V as string, +// whichever order the union's members are in. + +declare function props(x: PromiseLike | V>>): Promise>; +declare const input: Promise>>; +const out: Promise> = props(input); diff --git a/tsc/testdata/tests/cases/compiler/inferenceThroughGenericAliasCallSignature.ts b/tsc/testdata/tests/cases/compiler/inferenceThroughGenericAliasCallSignature.ts new file mode 100644 index 0000000000000..2f807d184fcf6 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/inferenceThroughGenericAliasCallSignature.ts @@ -0,0 +1,58 @@ +// @strict: true +// @target: es2023 +// @noEmit: true + +// R is inferred from the return type of a function passed through a call +// signature of a generic type alias, and M from a recursive mapped result +// (64757). + +interface Effect { + readonly _A: () => A; + readonly _R: () => R; + [Symbol.iterator](): Iterator, A>; +} +declare function succeed(value: A): Effect; +declare function gen, AEff>( + body: () => Generator, +): () => Effect ? R : never>; + +interface Req { readonly url: string } +declare const req: Effect; + +type Make

= (m: Effect<() => Effect>) => [R]; +declare const make: Make; + +const r = make(succeed(gen(function* () { + yield* req; + return ""; +}))); +const check: [1] = r; // error message shows what R was inferred as + +type Payload = { scalars: object; objects: object }; + +type FindResult

= A extends { select: infer S extends object } + ? { + [K in keyof S]: S[K] extends object + ? P extends { objects: { [k in K]: (infer O)[] } } + ? FindResult[] + : never + : P['scalars'][K & keyof P['scalars']]; + } + : never; + +type MessagePayload = { objects: {}; scalars: { body: string } }; +type ConversationPayload = { objects: { messages: MessagePayload[] }; scalars: {} }; +type ThreadPayload = { objects: { conversations: ConversationPayload[] }; scalars: {} }; + +declare function findThread(args: A): FindResult; + +const thread = findThread({ + select: { conversations: { select: { messages: { select: { body: true } } } } }, +}); + +type ThreadRow = { conversations: Array<{ messages: Array }> }; + +declare function firstMessageViaAlias(thread: ThreadRow): M; +declare function firstMessageInline(thread: { conversations: Array<{ messages: Array }> }): M; + +const viaAlias: string = firstMessageViaAlias(thread).body; diff --git a/tsc/testdata/tests/cases/compiler/inferenceThroughNestedReferencesOfSameType.ts b/tsc/testdata/tests/cases/compiler/inferenceThroughNestedReferencesOfSameType.ts new file mode 100644 index 0000000000000..889efae8e61c3 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/inferenceThroughNestedReferencesOfSameType.ts @@ -0,0 +1,20 @@ +// @strict: true +// @target: es2023 +// @noEmit: true + +// Inferring from Promise> to Promise> reaches +// Promise>, through the next method of AsyncIterator. +// That Promise is not built from the first one, so inference must not stop +// there as though it were expanding without end. + +interface C { + [Symbol.asyncIterator](): C; + next(): Promise>; +} + +declare function g(x: Promise>): T; +declare const c: Promise>; +const n = g(c); + +declare function follow(open: () => Promise>, onFrame: (frame: T) => void): void; +follow(() => c, frame => frame.a); diff --git a/tsc/testdata/tests/cases/compiler/inferenceThroughSortOfFlattenedIterable.ts b/tsc/testdata/tests/cases/compiler/inferenceThroughSortOfFlattenedIterable.ts new file mode 100644 index 0000000000000..e769205507ed3 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/inferenceThroughSortOfFlattenedIterable.ts @@ -0,0 +1,21 @@ +// @strict: true +// @noEmit: true +// @target: esnext + +// Sorting the array made from a flattened iterable must keep its element type. + +function getAllValuesUnsorted(m: ReadonlyArray>): ReadonlyArray { + // OK + return Array.from(flatten(m.values())) +} + +function getAllValuesSorted(m: ReadonlyArray>): ReadonlyArray { + // Type 'unknown[]' is not assignable to type 'readonly string[]'. + return Array.from(flatten(m.values())).sort() +} + +function* flatten(a: Iterable>): Iterable { + for (const xs of a) + for (const x of xs) + yield x +} diff --git a/tsc/testdata/tests/cases/compiler/instantiationCouldContainTypeVariablesAfterCycle.ts b/tsc/testdata/tests/cases/compiler/instantiationCouldContainTypeVariablesAfterCycle.ts new file mode 100644 index 0000000000000..c845b6d929174 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/instantiationCouldContainTypeVariablesAfterCycle.ts @@ -0,0 +1,22 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default,typesfirst + +// Query is instantiated with only non-generic arguments, so it (and DeepPartial>) +// can't contain type variables, and inference from Meta must not structurally recurse into +// DeepPartial>. That recursion would expand the infinite DeepPartial and report +// TS5114. The carry-forward of the "could contain type variables" flag set at instantiation time +// must survive even when the instantiation is created inside a circularity that is later discarded. + +declare const a: Meta; +fromMetadata(a); +type DeepPartial = { [P in keyof T]: DeepPartial }; +type Nested = Nested[]; +interface Prop { owner: Meta } +interface Meta { + prop: Prop; + other: any; + query: Query; +} +type Query = { cond: Nested }; +declare function fromMetadata(meta: Meta | DeepPartial>): void; diff --git a/tsc/testdata/tests/cases/compiler/instantiationCountSharedCheckOrder.ts b/tsc/testdata/tests/cases/compiler/instantiationCountSharedCheckOrder.ts new file mode 100644 index 0000000000000..da9adbef59255 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/instantiationCountSharedCheckOrder.ts @@ -0,0 +1,14 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// Instantiating Wide<[], "a"> fresh takes over five million instantiations, +// which is too many. In program order Rest has already done all but about +// two million of them. Whether All takes too many must not depend on which +// comes first. + +type D = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; +type K = `${D}${D}${D}`; +type Wide = N["length"] extends 6 ? [I, J] : { [J2 in K]: Wide<[...N, 0], I, J2> }[K]; +type Rest = Wide<[0, 0], "a">; +type All = Wide<[], "a">; diff --git a/tsc/testdata/tests/cases/compiler/instantiationDepthSharedCheckOrder.ts b/tsc/testdata/tests/cases/compiler/instantiationDepthSharedCheckOrder.ts new file mode 100644 index 0000000000000..28d33bc515e68 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/instantiationDepthSharedCheckOrder.ts @@ -0,0 +1,14 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// Instantiating Deep<[]> fresh nests 100 instantiations of Deep, which is +// too deep. In program order each declaration finds the rest of the chain +// already instantiated by the one before it, so none of them nests more +// than 25. Whether DeepAll is too deep must not depend on which comes first. + +type Deep = N["length"] extends 100 ? never : Deep<[...N, 0]> | N["length"]; +type Deep75 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +type Deep50 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +type Deep25 = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +type DeepAll = Deep<[]>; diff --git a/tsc/testdata/tests/cases/compiler/instantiationExpressionConstraintCycleCheckOrder.ts b/tsc/testdata/tests/cases/compiler/instantiationExpressionConstraintCycleCheckOrder.ts new file mode 100644 index 0000000000000..e10b5e3a39e74 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/instantiationExpressionConstraintCycleCheckOrder.ts @@ -0,0 +1,24 @@ +// @checkOrder: default, typesfirst + +// Checking the type arguments of the instantiation expressions against their +// constraints needs the variances of A, which need the type of child. The +// constraint errors and the types of child must not depend on whether child +// is queried before A is checked. + +namespace InterfaceCycle { + declare function b(): U; + interface A { + value: T; + child: typeof b>; + } +} + +namespace ClassCycle { + class A { + value!: T; + child!: InstanceType>>; + static B = class B { + parent!: T; + }; + } +} diff --git a/tsc/testdata/tests/cases/compiler/instantiationExpressionConstraintInStaticClassExpression.ts b/tsc/testdata/tests/cases/compiler/instantiationExpressionConstraintInStaticClassExpression.ts new file mode 100644 index 0000000000000..34639716c8343 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/instantiationExpressionConstraintInStaticClassExpression.ts @@ -0,0 +1,15 @@ +// @strict: true +// @noEmit: true +// @target: esnext + +// A does not satisfy the constraint A of B, as T is not assignable to +// number, which must be reported. + +class A { + value!: T; + child!: InstanceType>>; // this should error + + static B = class B { + parent!: T; + }; +} diff --git a/tsc/testdata/tests/cases/compiler/instantiationLimitsCheckOrder.ts b/tsc/testdata/tests/cases/compiler/instantiationLimitsCheckOrder.ts new file mode 100644 index 0000000000000..d20851bc88553 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/instantiationLimitsCheckOrder.ts @@ -0,0 +1,19 @@ +// @noEmit: true + +// The depth limit on instantiations must not depend on what was +// instantiated before. The limit on the number of instantiations does, as +// it only stops runaway instantiations, so it is only tested for a single +// statement whose work nothing else shares. + +type D = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; +type K = `${D}${D}${D}`; + +// Several million instantiations, well over the limit, for one statement. +type Wide = N["length"] extends 8 ? I : { [J in K]: Wide<[...N, 0], [J, I][0]> }[K]; +type WideAll = Wide<[], "">; + +// Over a hundred nested instantiations, half of which already happened for +// another statement. +type Deep = N["length"] extends 60 ? never : Deep<[...N, 0]> | N["length"]; +type DeepTail = Deep<[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]>; +type DeepAll = Deep<[]>; diff --git a/tsc/testdata/tests/cases/compiler/instantiationStackLimitCheckOrder.ts b/tsc/testdata/tests/cases/compiler/instantiationStackLimitCheckOrder.ts new file mode 100644 index 0000000000000..a070915263117 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/instantiationStackLimitCheckOrder.ts @@ -0,0 +1,18 @@ +// @noEmit: true +// @target: esnext +// @checkOrder: default, typesfirst + +// F<[]> recurses forever, so instantiating it reaches the limit on the +// instantiation stack, wherever it is first instantiated. The instantiations +// in progress then fail as a whole, and none of them may be cached partly +// built for the other declaration to reuse. + +type F = T extends [unknown?, ...infer R] ? [0, ...F] : []; +type X = F<[]>; + +// The element type of A[] is resolved whenever first needed, inside the +// instantiation of the return type of flat or not. Reaching the limit while +// flattening it must fail the same instantiations either way. + +type A = A[]; +const r = ([] as A).flat(Infinity); diff --git a/tsc/testdata/tests/cases/compiler/intersectionBaseConstructorCycleCheckOrder.ts b/tsc/testdata/tests/cases/compiler/intersectionBaseConstructorCycleCheckOrder.ts new file mode 100644 index 0000000000000..891ce94838f81 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/intersectionBaseConstructorCycleCheckOrder.ts @@ -0,0 +1,8 @@ +// @checkOrder: default, typesfirst + +// The type of x depends on the members of C, which depend on its base B, +// whose members depend on the type of x. Whichever is resolved first, the +// cycle must be resolved the same way. + +declare const B: (new (x: C["p"]) => {}) & (new () => {}); +declare class C extends B { p: number; } diff --git a/tsc/testdata/tests/cases/compiler/jsElementAccessAssignmentChainCheckOrder.ts b/tsc/testdata/tests/cases/compiler/jsElementAccessAssignmentChainCheckOrder.ts new file mode 100644 index 0000000000000..140e62d2c5078 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/jsElementAccessAssignmentChainCheckOrder.ts @@ -0,0 +1,23 @@ +// @strict: true +// @noEmit: true +// @allowJs: true +// @checkJs: true +// @target: esnext +// @checkOrder: default, typesfirst, editorfirst +// @filename: bubble.js + +// Each element access on the right of a chained assignment reports its +// implicit any once, whichever of the assignments is typed first (64710, +// 64849). + +export class C { + /** @param {any} iScale @param {any} vScale @param {boolean} reset */ + updateElements(iScale, vScale, reset) { + const iAxis = iScale.axis; + const vAxis = vScale.axis; + const properties = {}; + const iPixel = properties[iAxis] = reset ? iScale.getPixelForDecimal(0.5) : iScale.getPixelForValue(1); + const vPixel = properties[vAxis] = reset ? vScale.getBasePixel() : vScale.getPixelForValue(2); + properties.skip = isNaN(iPixel) || isNaN(vPixel); + } +} diff --git a/tsc/testdata/tests/cases/compiler/jsdocLinkImportElisionQueryOrder.ts b/tsc/testdata/tests/cases/compiler/jsdocLinkImportElisionQueryOrder.ts new file mode 100644 index 0000000000000..c722eee6a0c8b --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/jsdocLinkImportElisionQueryOrder.ts @@ -0,0 +1,13 @@ +// @module: commonjs +// @target: es2015 +// @checkOrder: default,editorfirst +// @filename: /a.ts +export interface A {} + +// @filename: /b.ts +import * as a from "./a"; + +/** + * See {@link a.A}. + */ +export function foo() {} diff --git a/tsc/testdata/tests/cases/compiler/jsdocLinkToTypeCheckOrder.ts b/tsc/testdata/tests/cases/compiler/jsdocLinkToTypeCheckOrder.ts new file mode 100644 index 0000000000000..96c8d70e306f3 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/jsdocLinkToTypeCheckOrder.ts @@ -0,0 +1,17 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst, editorfirst + +// Names in JSDoc links resolve to types and namespaces without errors, +// whether or not the editor asked about the comment first (59401). + +interface TextDocument { uri: string; getText(): string } +namespace NS { export interface Inner { a: number } } + +/** + * Uses {@link TextDocument} and {@link TextDocument.getText}. + * Also {@link NS.Inner}. + */ +export function f(doc: TextDocument): string { + return doc.getText(); +} diff --git a/tsc/testdata/tests/cases/compiler/jsdocTypeTagOnContextuallyTypedFunction.ts b/tsc/testdata/tests/cases/compiler/jsdocTypeTagOnContextuallyTypedFunction.ts new file mode 100644 index 0000000000000..fdf0661ace752 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/jsdocTypeTagOnContextuallyTypedFunction.ts @@ -0,0 +1,17 @@ +// @allowJs: true +// @checkJs: true +// @noEmit: true +// @strict: true + +// @filename: a.js +/** @type {{ f: (a: string | number, ...rest: unknown[]) => string }} */ +const context = { f: (a) => "" }; + +context.f = + /** @type {(content: string, ...rest: [boolean?]) => string} */ + (content, ...rest) => content.toUpperCase() + rest.length; + +/** @type {(content: string | number) => string} */ +const g = + /** @type {(content: string) => string} */ + (content) => content.toUpperCase(); diff --git a/tsc/testdata/tests/cases/compiler/jsxImportSourceNonPragmaComment.tsx b/tsc/testdata/tests/cases/compiler/jsxImportSourceNonPragmaComment.tsx index 652316735d2e8..09c7889d5aa04 100644 --- a/tsc/testdata/tests/cases/compiler/jsxImportSourceNonPragmaComment.tsx +++ b/tsc/testdata/tests/cases/compiler/jsxImportSourceNonPragmaComment.tsx @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @module: commonjs // @target: es2015 // @jsx: preserve diff --git a/tsc/testdata/tests/cases/compiler/jsxIntrinsicElementsExtendsRecord.tsx b/tsc/testdata/tests/cases/compiler/jsxIntrinsicElementsExtendsRecord.tsx index 52bd71073ce20..2ddc4427d5056 100644 --- a/tsc/testdata/tests/cases/compiler/jsxIntrinsicElementsExtendsRecord.tsx +++ b/tsc/testdata/tests/cases/compiler/jsxIntrinsicElementsExtendsRecord.tsx @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @jsx: preserve diff --git a/tsc/testdata/tests/cases/compiler/keyofIndexSignatureCycleCheckOrder.ts b/tsc/testdata/tests/cases/compiler/keyofIndexSignatureCycleCheckOrder.ts new file mode 100644 index 0000000000000..1e940b2075e12 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/keyofIndexSignatureCycleCheckOrder.ts @@ -0,0 +1,10 @@ +// @noEmit: true +// @checkOrder: default, typesfirst + +// S and the index signature of C depend on each other. Resolving the members +// of C first gives S from the part of them available so far, and resolving S +// first must give the same result rather than fail it as circular. + +interface C { [k: string]: S; } +type S = keyof C; +const k: S = 123; diff --git a/tsc/testdata/tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts b/tsc/testdata/tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts new file mode 100644 index 0000000000000..ac88a17980203 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/keyofSelfReferentialIndexSignatureCheckOrder.ts @@ -0,0 +1,44 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, reverse, isolated, typesfirst + +// The index signature of each type refers to its own keyof, so resolving its +// members needs its keyof, which needs its members. Checking an interface +// with several bases, or a type with a class base, reads its declared +// members while they are incomplete. Its keyof, and its index signature, +// must not depend on whether keyof is needed before or after the type is +// checked (65543). + +interface A { a?: string; } +interface B { b?: number; } +class C { c?: string; } + +const k0: keyof P0 = 0; +interface P0 { a?: string; [key: string]: P0[keyof P0]; } +interface Q0 { a?: string; [key: string]: Q0[keyof Q0]; } +const j0: keyof Q0 = 0; + +const k1: keyof P1 = 0; +interface P1 extends A { [key: string]: P1[keyof P1]; } +interface Q1 extends A { [key: string]: Q1[keyof Q1]; } +const j1: keyof Q1 = 0; + +const k2: keyof P2 = 0; +interface P2 extends A, B { [key: string]: P2[keyof P2]; } +interface Q2 extends A, B { [key: string]: Q2[keyof Q2]; } +const j2: keyof Q2 = 0; + +const k3: keyof P3 = 0; +interface P3 extends C { [key: string]: P3[keyof P3]; } +interface Q3 extends C { [key: string]: Q3[keyof Q3]; } +const j3: keyof Q3 = 0; + +const k4: keyof P4 = 0; +class P4 extends C { b?: number; [key: string]: P4[keyof P4]; } +class Q4 extends C { b?: number; [key: string]: Q4[keyof Q4]; } +const j4: keyof Q4 = 0; + +declare const q2: Q2; +const v2 = q2.other; +declare const q3: Q3; +const v3 = q3.other; diff --git a/tsc/testdata/tests/cases/compiler/limitDeepInstantiations.ts b/tsc/testdata/tests/cases/compiler/limitDeepInstantiations.ts index ccb48dec686eb..ba5c710c6fed3 100644 --- a/tsc/testdata/tests/cases/compiler/limitDeepInstantiations.ts +++ b/tsc/testdata/tests/cases/compiler/limitDeepInstantiations.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // Repro from #14837 diff --git a/tsc/testdata/tests/cases/compiler/mappedTypeConstraintErrorsCheckOrder.ts b/tsc/testdata/tests/cases/compiler/mappedTypeConstraintErrorsCheckOrder.ts new file mode 100644 index 0000000000000..d01f036611970 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/mappedTypeConstraintErrorsCheckOrder.ts @@ -0,0 +1,17 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// A mapped type reports the errors of its constraint, here an instantiation +// that is too deep, at the mapped type, whichever node first requests it. + +type Dec = + N extends 5 ? 4 : N extends 4 ? 3 : N extends 3 ? 2 : + N extends 2 ? any : + N extends 1 ? 0 : 0; +type Recur = + N extends 0 ? S : Recur, [S]>; + +type Explode = { + [P in Recur<5, "a"> & string as `${P}_key`]: any; +}; diff --git a/tsc/testdata/tests/cases/compiler/methodOfObjectLiteralInGenericCallCheckOrder.ts b/tsc/testdata/tests/cases/compiler/methodOfObjectLiteralInGenericCallCheckOrder.ts new file mode 100644 index 0000000000000..dd3bb3fa38a61 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/methodOfObjectLiteralInGenericCallCheckOrder.ts @@ -0,0 +1,16 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst, editorfirst + +// Inference for Object.fromEntries goes through a generic call with an +// object literal method, and gives the same result whether or not the +// editor asked about the call first (43948). + +const id = (x: T): T => x; + +const keys: string[] = []; + +const result = Object.fromEntries(keys.map(k => [ + k, + id({ test() { } }), +])); diff --git a/tsc/testdata/tests/cases/compiler/mixinMethodsReferringToAppliedClassCheckOrder.ts b/tsc/testdata/tests/cases/compiler/mixinMethodsReferringToAppliedClassCheckOrder.ts new file mode 100644 index 0000000000000..361f6ef469923 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/mixinMethodsReferringToAppliedClassCheckOrder.ts @@ -0,0 +1,36 @@ +// @strict: true +// @noEmit: true +// @target: esnext +// @checkOrder: default, typesfirst, editorfirst + +// The mixin classes have methods referring to the class built from them, +// so checking the classes and typing their members first reach the same +// cycle in different places (55640). + +type ConstructorType = abstract new (...args: any[]) => T; + +function makeMixin, FinalConstructor>( + mixinFunction: (Base: TBase) => FinalConstructor +): (Base?: TBase) => FinalConstructor { + return (Base?: TBase) => { + // do other things with Base, this example is simplified + return mixinFunction(Base ?? (Object as any)); + }; +} + +const MixinF = makeMixin(>(Base: TBase) => { + abstract class Mixin extends Base { + foo(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } + } + return Mixin +}) + + +const Mixin2F = makeMixin(>(Base: TBase) => { + abstract class Mixin2 extends Base { + bar(foo: MixinApplied, extra: boolean): MixinApplied | boolean { return extra } + } + return Mixin2 +}) + +class MixinApplied extends Mixin2F(MixinF()) {} diff --git a/tsc/testdata/tests/cases/compiler/narrowedNeverAfterLoopWithAndCondition.ts b/tsc/testdata/tests/cases/compiler/narrowedNeverAfterLoopWithAndCondition.ts new file mode 100644 index 0000000000000..46b9086842fb1 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/narrowedNeverAfterLoopWithAndCondition.ts @@ -0,0 +1,22 @@ +// @strict: true +// @noEmit: true + +// value_def is never inside the if. With a && condition, main and +// Strada leak the loop analysis's incomplete never placeholder +// (silentNever), so the property access is silently allowed and only +// the assignment errors. With `while (x)` they report the access. +function f(x: boolean, y: boolean) { + let value_def: { last_ref: boolean } | null = null; + if (value_def) { + while (x && y); + value_def.last_ref = false; + } +} + +function g(x: boolean) { + let value_def: { last_ref: boolean } | null = null; + if (value_def) { + while (x); + value_def.last_ref = false; + } +} diff --git a/tsc/testdata/tests/cases/compiler/nestedCallContextualTypeCheckOrder.ts b/tsc/testdata/tests/cases/compiler/nestedCallContextualTypeCheckOrder.ts new file mode 100644 index 0000000000000..5f8c2da7a3dc4 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/nestedCallContextualTypeCheckOrder.ts @@ -0,0 +1,21 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// A generic call whose contextual type comes from an enclosing call is +// resolved after it, whichever is queried first, through every expression +// that passes the contextual type on. + +declare function outer(cb: (x: T) => void, v: T): void; +declare function outerObj(o: { cb: (x: T) => void; v: T }): void; +declare function outerGen(g: () => Generator<(x: T) => void>, v: T): void; +declare function wrap(f: U): U; +declare function tag(s: TemplateStringsArray, cb: (x: T) => void, v: T): void; +declare function tagWrap(s: TemplateStringsArray, f: U): U; + +outer(wrap((x) => x.toFixed())!, 1); +outerObj({ ...{ cb: wrap((x) => x.toFixed()) }, v: 1 }); +outer(([wrap((x) => x.toFixed())] as const)[0], 1); +tag`${wrap((x) => x.toFixed())}${1}`; +outer(tagWrap`${(x) => x.toFixed()}`, 1); +outerGen(function* () { yield wrap((x) => x.toFixed()); }, 1); diff --git a/tsc/testdata/tests/cases/compiler/nestedCallContextualTypeCheckOrderJsx.tsx b/tsc/testdata/tests/cases/compiler/nestedCallContextualTypeCheckOrderJsx.tsx new file mode 100644 index 0000000000000..81df629a1c7c3 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/nestedCallContextualTypeCheckOrderJsx.tsx @@ -0,0 +1,17 @@ +// @strict: true +// @noEmit: true +// @jsx: preserve +// @checkOrder: default, typesfirst + +// A generic call in a JSX attribute is resolved after the element, whichever +// is queried first. + +declare namespace JSX { + interface Element {} + interface IntrinsicElements {} +} +declare function Outer(props: { cb: (x: T) => void; v: T }): JSX.Element; +declare function wrap(f: U): U; + +const a = x.toFixed())} v={1} />; +const b = x.toFixed()) }} v={1} />; diff --git a/tsc/testdata/tests/cases/compiler/nestedGenericArrayAssignabilityAfterErrors.ts b/tsc/testdata/tests/cases/compiler/nestedGenericArrayAssignabilityAfterErrors.ts new file mode 100644 index 0000000000000..4c0a31553c354 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/nestedGenericArrayAssignabilityAfterErrors.ts @@ -0,0 +1,32 @@ +// @strict: true +// @noEmit: true +// @target: esnext + +// Assigning DataTypeThree to DataTypeThree, and likewise for +// DataTypeTwo, must be reported whether or not earlier assignments errored. + +type TypeA = number; +type TypeB = boolean; +type DataTypeTwo = { + one: Array<{ two: Array }>; +}; +type DataTypeThree = { + one: Array<{ two: Array<{ three: Array }> }>; +}; + +let testingThreeErr: DataTypeThree = { + one: [{ two: [{ three: [true] }] }] +}; +let testingTwoErr: DataTypeTwo = { + one: [{ two: [false] }] +}; + +let testingThree: DataTypeThree = { + one: [{ two: [{ three: [5] }] }] +}; +let t3a: DataTypeThree = testingThree; + +let testingTwo: DataTypeTwo = { + one: [{ two: [5] }] +}; +let t2a: DataTypeTwo = testingTwo; diff --git a/tsc/testdata/tests/cases/compiler/objectLiteralRegularAndWidenedCopyOrder.ts b/tsc/testdata/tests/cases/compiler/objectLiteralRegularAndWidenedCopyOrder.ts new file mode 100644 index 0000000000000..2074b9f29a2c4 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/objectLiteralRegularAndWidenedCopyOrder.ts @@ -0,0 +1,10 @@ +// @strict: true +// @checkOrder: default, typesfirst + +declare const b: boolean; +let x; +x = { a: 1 }; +let arr = []; +arr.push(x); // regular copy of the literal +const y = x; // widened copy of the literal +const z = b ? (b ? arr[0] : y) : { c: 1 }; diff --git a/tsc/testdata/tests/cases/compiler/objectRestUnionInstantiationOrder.ts b/tsc/testdata/tests/cases/compiler/objectRestUnionInstantiationOrder.ts new file mode 100644 index 0000000000000..9a8421765dd31 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/objectRestUnionInstantiationOrder.ts @@ -0,0 +1,11 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +function f(v: { k: "a"; a: T } | { k: "b"; b: number }) { + const { k, ...rest } = v; + return { all: rest, onlyB: "b" in rest ? rest : undefined }; +} +const o = f({ k: "a", a: "s" }); +const all = o.all; +const onlyB = o.onlyB; diff --git a/tsc/testdata/tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts b/tsc/testdata/tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts index 5c46a93180392..6265ebecee02e 100644 --- a/tsc/testdata/tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts +++ b/tsc/testdata/tests/cases/compiler/overloadresolutionWithConstraintCheckingDeferred.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @strict: false interface A { x } diff --git a/tsc/testdata/tests/cases/compiler/parameterBindingDefaultReferencesSiblingThroughCall.ts b/tsc/testdata/tests/cases/compiler/parameterBindingDefaultReferencesSiblingThroughCall.ts new file mode 100644 index 0000000000000..388af19a9c64c --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/parameterBindingDefaultReferencesSiblingThroughCall.ts @@ -0,0 +1,25 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default,typesfirst + +// A default in a destructured parameter that references a sibling element +// makes the sibling's type depend on itself: the type of 'a' comes from the +// parameter initializer '{}', which is padded with the types of the defaults, +// including 'b'. Main reports this cycle (TS7022 on 'a') for 'b = a', but not +// for 'b = id(a)', where the padding reuses the signature resolved while 'a' +// was treated as non-inferrable any during contextual typing of '{}', which +// gives 'b' the type 'unknown' (see tldraw TldrawApp.test.ts). + +declare function id(v: T): T; + +function direct({ a = 1 as number | undefined, b = a } = {}) { + const n: string = b; +} + +function viaCall({ a = 1 as number | undefined, b = id(a) } = {}) { + const n: string = b; +} + +function viaCallArray({ a = 1 as number | undefined, b = id([a]) } = {}) { + const n: string = b; +} diff --git a/tsc/testdata/tests/cases/compiler/pipeCallbackInferenceCheckOrder.ts b/tsc/testdata/tests/cases/compiler/pipeCallbackInferenceCheckOrder.ts new file mode 100644 index 0000000000000..f887dd29f3a6e --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/pipeCallbackInferenceCheckOrder.ts @@ -0,0 +1,109 @@ +// @strict: true +// @noEmit: true +// @target: esnext +// @lib: esnext +// @checkOrder: default, typesfirst, editorfirst + +// The callback of a pipe is inferred from the error union of the piped +// effect, also when signature help was requested for the call first +// (62183). + +export interface Pipeable { + pipe(this: A, ab: (_: A) => B): B; +} + +type Covariant = (_: never) => A; + +interface VarianceStruct { + readonly _V: string; + readonly _A: Covariant; + readonly _E: Covariant; + readonly _R: Covariant; +} + +declare const EffectTypeId: unique symbol; + +interface Variance { + readonly [EffectTypeId]: VarianceStruct; +} + +interface Effect + extends Variance, + Pipeable {} + +interface Class extends Pipeable { + new (): Fields; +} + +interface TaggedErrorClass extends Class { + readonly _tag: Tag; +} + +declare const TaggedError: (identifier?: string) => < + Tag extends string, + Fields +>( + tag: Tag, + fieldsOr: Fields +) => TaggedErrorClass< + Tag, + { + readonly _tag: Tag; + } +>; + +declare const log: ( + ...message: ReadonlyArray +) => Effect; + +export const categoriesKey = "@effect/error/categories"; + +export declare const withCategory: >( + ...categories: Categories +) => , Ret, C extends { new (...args: Args): Ret }>( + C: C +) => C & { + new (...args: Args): Ret & { + [categoriesKey]: { [Cat in Categories[number]]: true }; + }; +}; + +export type AllKeys = E extends { [categoriesKey]: infer Q } + ? keyof Q + : never; +export type ExtractAll = Cats extends any + ? Extract + : never; + +export declare const catchCategory: < + E, + const Categories extends Array>, + A2, + E2, + R2 +>( + ...args: [ + ...Categories, + f: (err: ExtractAll) => Effect + ] +) => ( + effect: Effect +) => Effect>, R | R2>; + +class FooError extends TaggedError()("FooError", {}).pipe( + withCategory("domain") +) {} + +class BarError extends TaggedError()("BarError", {}).pipe( + withCategory("system", "domain") +) {} + +class BazError extends TaggedError()("BazError", {}).pipe( + withCategory("system") +) {} + +declare const baz: ( + x: number +) => Effect; + +export const program = baz(1).pipe(catchCategory("domain", (_) => log(_._tag))); diff --git a/tsc/testdata/tests/cases/compiler/qualifiedNameCycleErrorCheckOrder.ts b/tsc/testdata/tests/cases/compiler/qualifiedNameCycleErrorCheckOrder.ts new file mode 100644 index 0000000000000..02928caa7865f --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/qualifiedNameCycleErrorCheckOrder.ts @@ -0,0 +1,8 @@ +// @checkOrder: default, typesfirst + +// Resolving n.T looks for a value n to suggest typeof, which needs the type of +// n, which is n.T. The missing member must be reported whichever is +// resolved first. + +declare const n: n.T; +declare namespace n {} diff --git a/tsc/testdata/tests/cases/compiler/recursiveGenericInterfaceDeclarationOrder.ts b/tsc/testdata/tests/cases/compiler/recursiveGenericInterfaceDeclarationOrder.ts new file mode 100644 index 0000000000000..6bf2640a5b429 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/recursiveGenericInterfaceDeclarationOrder.ts @@ -0,0 +1,17 @@ +// @strict: true +// @noEmit: true +// @target: esnext + +// The assignment is valid, as method parameters are compared bivariantly, and +// must be accepted whichever of the interfaces is declared first. + +type M = { kind: "m" }; +type Filtered = { [K in keyof T as T[K] extends M ? K : never]: T[K] }; +interface Config { measure: keyof T } +interface Ref { dataset: DS, N> } +interface DS { + a(config: Config>): void; + b: Ref; +} +declare const x: DS<{ total: M }, string>; +export const y: DS, string> = x; diff --git a/tsc/testdata/tests/cases/compiler/recursiveVarianceFixedPoint.ts b/tsc/testdata/tests/cases/compiler/recursiveVarianceFixedPoint.ts new file mode 100755 index 0000000000000..3a26019b2db52 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/recursiveVarianceFixedPoint.ts @@ -0,0 +1,159 @@ +// @strict: true +// @target: es2015 +// @noEmit: true + +// @filename: storeFirst.ts +export {}; + +interface Store { + value: T; + listener: Listener; +} +type Listener = (batch: Store) => void; + +declare let strings: Store; +declare let unknowns: Store; +declare let stringListener: Listener; +declare let unknownListener: Listener; + +unknowns = strings; // Error +unknownListener = stringListener; // Error + +// @filename: listenerFirst.ts +export {}; + +type Listener = (batch: Store) => void; +interface Store { + listener: Listener; + value: T; +} + +declare let strings: Store; +declare let unknowns: Store; +declare let stringListener: Listener; +declare let unknownListener: Listener; + +unknownListener = stringListener; // Error +unknowns = strings; // Error + +// @filename: columnDefFirst.ts +export {}; + +interface ColumnDef { + cell?: (column: Column) => void; +} +interface Column { + accessorFn?: (row: Row) => Value; + columnDef: ColumnDef; +} + +declare let stringColumn: ColumnDef<{ name: string }, string>; +declare let unknownColumn: ColumnDef<{ name: string }, unknown>; + +unknownColumn = stringColumn; // Error +stringColumn = unknownColumn; // Error + +// @filename: columnFirst.ts +export {}; + +interface Column { + columnDef: ColumnDef; + accessorFn?: (row: Row) => Value; +} +interface ColumnDef { + cell?: (column: Column) => void; +} + +declare let stringColumn: ColumnDef<{ name: string }, string>; +declare let unknownColumn: ColumnDef<{ name: string }, unknown>; + +unknownColumn = stringColumn; // Error +stringColumn = unknownColumn; // Error + +// @filename: positiveRecursion.ts +export {}; + +interface Tree { + readonly value: T; + readonly children: readonly Tree[]; + readonly metadata: Map; +} +interface Phantom { + next: Phantom; +} + +declare let stringTree: Tree; +declare let unknownTree: Tree; +declare let stringPhantom: Phantom; +declare let numberPhantom: Phantom; + +unknownTree = stringTree; +stringTree = unknownTree; // Error +stringPhantom = numberPhantom; +numberPhantom = stringPhantom; + +// @filename: nestedComposition.ts +export {}; + +interface Outer { + value: T; + next: Inner>; +} +interface Inner { + consume: (value: T) => void; +} + +declare let strings: Outer; +declare let unknowns: Outer; + +unknowns = strings; // Error +strings = unknowns; // Error + +// @filename: annotations.ts +export {}; + +interface AnnotatedTree { + readonly value: T; + readonly children: AnnotatedTree[]; +} +interface AnnotatedStore { + value: T; + listener: (batch: AnnotatedStore) => void; +} + +declare let stringTree: AnnotatedTree; +declare let unknownTree: AnnotatedTree; +declare let stringStore: AnnotatedStore; +declare let unknownStore: AnnotatedStore; + +unknownTree = stringTree; +stringTree = unknownTree; // Error +unknownStore = stringStore; // Error +stringStore = unknownStore; // Error + +// @filename: structuralMeasurement.ts +export {}; + +interface GenericMethod { + value: T; + next: (value: U) => GenericMethod; +} +interface Projected { + value: T["value"]; + next: Projected; +} +interface Method { + value: T; + accept(value: Method): void; +} + +declare let strings: GenericMethod; +declare let unknowns: GenericMethod; +declare let stringMethod: Method; +declare let unknownMethod: Method; +declare let projected: Projected<{ value: string; extra: number }>; + +unknowns = strings; +strings = unknowns; // Error +unknownMethod = stringMethod; +const widened: Projected<{ value: string }> = projected; diff --git a/tsc/testdata/tests/cases/compiler/relationComplexityError.ts b/tsc/testdata/tests/cases/compiler/relationComplexityError.ts index 7b83dcf8dc6fd..ac2c6c2559ab7 100644 --- a/tsc/testdata/tests/cases/compiler/relationComplexityError.ts +++ b/tsc/testdata/tests/cases/compiler/relationComplexityError.ts @@ -1,17 +1,32 @@ -// @target: es2015 -// @strict: true -// @noEmit: true - -// Repro from #55630 - -type Digits = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'; -type T1 = `${Digits}${Digits}${Digits}${Digits}` | undefined; -type T2 = { a: string } | { b: number }; - -function f1(x: T1, y: T1 & T2) { - x = y; -} - -function f2(x: T1 | null, y: T1 & T2) { - x = y; // Complexity error -} +// @target: es2015 +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// Repro from #55630 +// Every comparison that needs a comparison that is too complex is too complex +// itself, whether or not that comparison happened before. + +type Digits = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'; +type T1 = `${Digits}${Digits}${Digits}${Digits}` | undefined; +type T2 = { a: string } | { b: number }; + +function f0(x: { p: T1 | null }, y: { p: T1 & T2 }) { + x = y; // Complexity error +} + +function f1(x: T1, y: T1 & T2) { + x = y; +} + +function f2(x: T1 | null, y: T1 & T2) { + x = y; // Complexity error +} + +function f3(x: T1 | null, y: T1 & T2) { + x = y; // Complexity error +} + +function f4(x: { p: T1 | null }, y: { p: T1 & T2 }) { + x = y; // Complexity error +} diff --git a/tsc/testdata/tests/cases/compiler/relationComplexitySharedCheckOrder.ts b/tsc/testdata/tests/cases/compiler/relationComplexitySharedCheckOrder.ts new file mode 100644 index 0000000000000..ab295001276e9 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/relationComplexitySharedCheckOrder.ts @@ -0,0 +1,26 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// Relating y to x fresh caches too many comparisons. In program order the +// comparisons before it have cached all but a seventh of them. Whether +// relating y is too complex must not depend on which comes first. + +type D = '0' | '1' | '2' | '3' | '4' | '5' | '6'; +type T1 = `${D}${D}${D}${D}` | undefined; +type T2 = { a: string } | { b: number }; +declare let x: T1 | null; +declare const y1: (`${'0'}${D}${D}${D}` | undefined) & T2; +x = y1; +declare const y2: (`${'0' | '1'}${D}${D}${D}` | undefined) & T2; +x = y2; +declare const y3: (`${'0' | '1' | '2'}${D}${D}${D}` | undefined) & T2; +x = y3; +declare const y4: (`${'0' | '1' | '2' | '3'}${D}${D}${D}` | undefined) & T2; +x = y4; +declare const y5: (`${'0' | '1' | '2' | '3' | '4'}${D}${D}${D}` | undefined) & T2; +x = y5; +declare const y6: (`${'0' | '1' | '2' | '3' | '4' | '5'}${D}${D}${D}` | undefined) & T2; +x = y6; +declare const y: T1 & T2; +x = y; diff --git a/tsc/testdata/tests/cases/compiler/relationCycleNonMonotoneCheckOrder.ts b/tsc/testdata/tests/cases/compiler/relationCycleNonMonotoneCheckOrder.ts new file mode 100644 index 0000000000000..6bcea78d38558 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/relationCycleNonMonotoneCheckOrder.ts @@ -0,0 +1,98 @@ +// @strict: true +// @strictFunctionTypes: false +// @noEmit: true +// @checkOrder: default, typesfirst, editorfirst + +// 'S' relates to 'G' only if inferring 'T' from 'A' fails the constraint +// 'C', so that 'T' falls back to 'C'. Relating 'A' to 'C' compares 'S' to +// 'G' again, but 'A' fails 'C' on 'z' regardless. 'S' must relate to 'G' +// whether or not 'A' was compared to 'C' first. +namespace inferenceConstraint { + type A = { k?: "c"; f: S | G; z: number }; + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; + type S = (x: T) => T["k"]; + type G = (x: A) => "c" | G | number; + + declare let r1: S extends G ? true : false; + declare let r2: A extends C ? true : false; +} + +// As above, with method signatures, which are compared bivariantly. +namespace inferenceConstraintMethod { + type A = { k?: "c"; f: S | G; z: number }; + type C = { [s: string]: "c" | G | number; f: G; z: 1 }; + type S = { m(x: T): T["k"] }; + type G = { m(x: A): "c" | G | number }; + + declare let r1: S extends G ? true : false; + declare let r2: A extends C ? true : false; +} + +// 'S1' relates to 'G1' only if 'S2' does not relate to 'G2', and the +// reverse, so no answer is consistent for both. Each is answered as if +// compared first, assuming itself while relating the other, regardless +// of which assignment is checked first. +namespace inferenceConstraintMutual { + type A1 = { k?: "c"; f: S2 | G2 }; + type C1 = { [s: string]: "c" | G2; f: G2 }; + type S1 = (x: T) => T["k"]; + type G1 = (x: A1) => "c" | G2; + type A2 = { k?: "d"; f: S1 | G1 }; + type C2 = { [s: string]: "d" | G1; f: G1 }; + type S2 = (x: T) => T["k"]; + type G2 = (x: A2) => "d" | G1; + + declare let s1: S1; + declare let s2: S2; + let g1: G1 = s1; + let g2: G2 = s2; + declare let r1: S1 extends G1 ? true : false; + declare let r2: S2 extends G2 ? true : false; +} + +// 'Src' relates to the union 'Tgt' by discriminating on 'd'. The member +// '{ d: Y; y: number }' matches 'd: X' only if 'X' relates to 'Y', and +// relating 'X' to 'Y' compares 'Src' to 'Tgt' again before failing on +// 'q'. 'Src' must relate to 'Tgt' whether or not 'X' was compared to 'Y' +// first. +namespace discriminated { + interface X { p: Src; q: number } + interface Y { p: Tgt; q: 1 } + type Src = { d: "a" | X; y: string }; + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; + + declare let r1: Src extends Tgt ? true : false; + declare let r2: X extends Y ? true : false; +} + +// The excess property check of the object literal keeps the members of +// 'Outer' whose 'e' the literal's 'e' relates to, so 'w' is known only +// if 'Src' relates to 'Tgt' as above. +namespace excessPropertyDiscriminant { + interface X { p: Src; q: number } + interface Y { p: Tgt; q: 1 } + type Src = { d: "a" | X; y: string }; + type Tgt = { d: "a"; y: string } | { d: X; y: string } | { d: Y; y: number }; + type Outer = { e: "z" } | { e: Tgt; w: number } | { e: Src }; + + declare let src: Src; + let o: Outer = { e: src, w: 1 }; + declare let r2: X extends Y ? true : false; +} + +// Subtype reduction drops 'F' if it is a strict subtype of 'G'. Its +// optional parameter relates only if 'P' is not a strict subtype of 'Q', +// and relating 'P' to 'Q' compares 'F' to 'G' again before failing on +// 'z'. 'F' must be dropped whether or not 'P' was compared to 'Q' first. +namespace strictArity { + type P = { f: F | G; z: number }; + type Q = { f: G; z: 1 }; + type F = (x?: P) => 1; + type G = (x: Q | undefined) => number; + type WP = { a: P; b: string }; + type WQ = { a: Q }; + + declare let f: F, g: G, wp: WP, wq: WQ; + let a1 = [f, g]; + let a2 = [wp, wq]; +} diff --git a/tsc/testdata/tests/cases/compiler/relationDeeplyNestedCheckOrder.ts b/tsc/testdata/tests/cases/compiler/relationDeeplyNestedCheckOrder.ts new file mode 100644 index 0000000000000..638ea1b62008b --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/relationDeeplyNestedCheckOrder.ts @@ -0,0 +1,17 @@ +// @strict: true +// @noEmit: true + +// Relating 'B<{ a: string }>' to 'B<{ a: "lit" }>' eventually relates 'string' +// to '"lit"' through 'm0.m1.a.m0.m1', but only after measuring the variances +// of 'A', which gives up on deeply nested types. TypeScript reports an error +// for the 'B' assignment only when it is checked before the 'A' assignment; +// the result must not depend on which is checked first. + +type A = { m0: (x: B) => void; m1: { [K in keyof T]: B } }; +type B = { m0: A }; + +declare let a1: A<{ a: string }>, a2: A<{ a: "lit" }>; +declare let b1: B<{ a: string }>, b2: B<{ a: "lit" }>; + +a2 = a1; +b2 = b1; diff --git a/tsc/testdata/tests/cases/compiler/relationDepthSharedCheckOrder.ts b/tsc/testdata/tests/cases/compiler/relationDepthSharedCheckOrder.ts new file mode 100644 index 0000000000000..2f629c226fe3a --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/relationDepthSharedCheckOrder.ts @@ -0,0 +1,253 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// Relating I0 to J0 fresh nests a comparison 100 levels deep, where it is +// cut short and so succeeds. In program order Mid has already found that +// I60 is not related to J60. Whether I0 is related to J0 must not depend +// on which comes first. Conditional types relate without reporting errors, +// which would compute the comparison again. + +interface I0 { next: I1 } +interface J0 { next: J1 } +interface I1 { next: I2 } +interface J1 { next: J2 } +interface I2 { next: I3 } +interface J2 { next: J3 } +interface I3 { next: I4 } +interface J3 { next: J4 } +interface I4 { next: I5 } +interface J4 { next: J5 } +interface I5 { next: I6 } +interface J5 { next: J6 } +interface I6 { next: I7 } +interface J6 { next: J7 } +interface I7 { next: I8 } +interface J7 { next: J8 } +interface I8 { next: I9 } +interface J8 { next: J9 } +interface I9 { next: I10 } +interface J9 { next: J10 } +interface I10 { next: I11 } +interface J10 { next: J11 } +interface I11 { next: I12 } +interface J11 { next: J12 } +interface I12 { next: I13 } +interface J12 { next: J13 } +interface I13 { next: I14 } +interface J13 { next: J14 } +interface I14 { next: I15 } +interface J14 { next: J15 } +interface I15 { next: I16 } +interface J15 { next: J16 } +interface I16 { next: I17 } +interface J16 { next: J17 } +interface I17 { next: I18 } +interface J17 { next: J18 } +interface I18 { next: I19 } +interface J18 { next: J19 } +interface I19 { next: I20 } +interface J19 { next: J20 } +interface I20 { next: I21 } +interface J20 { next: J21 } +interface I21 { next: I22 } +interface J21 { next: J22 } +interface I22 { next: I23 } +interface J22 { next: J23 } +interface I23 { next: I24 } +interface J23 { next: J24 } +interface I24 { next: I25 } +interface J24 { next: J25 } +interface I25 { next: I26 } +interface J25 { next: J26 } +interface I26 { next: I27 } +interface J26 { next: J27 } +interface I27 { next: I28 } +interface J27 { next: J28 } +interface I28 { next: I29 } +interface J28 { next: J29 } +interface I29 { next: I30 } +interface J29 { next: J30 } +interface I30 { next: I31 } +interface J30 { next: J31 } +interface I31 { next: I32 } +interface J31 { next: J32 } +interface I32 { next: I33 } +interface J32 { next: J33 } +interface I33 { next: I34 } +interface J33 { next: J34 } +interface I34 { next: I35 } +interface J34 { next: J35 } +interface I35 { next: I36 } +interface J35 { next: J36 } +interface I36 { next: I37 } +interface J36 { next: J37 } +interface I37 { next: I38 } +interface J37 { next: J38 } +interface I38 { next: I39 } +interface J38 { next: J39 } +interface I39 { next: I40 } +interface J39 { next: J40 } +interface I40 { next: I41 } +interface J40 { next: J41 } +interface I41 { next: I42 } +interface J41 { next: J42 } +interface I42 { next: I43 } +interface J42 { next: J43 } +interface I43 { next: I44 } +interface J43 { next: J44 } +interface I44 { next: I45 } +interface J44 { next: J45 } +interface I45 { next: I46 } +interface J45 { next: J46 } +interface I46 { next: I47 } +interface J46 { next: J47 } +interface I47 { next: I48 } +interface J47 { next: J48 } +interface I48 { next: I49 } +interface J48 { next: J49 } +interface I49 { next: I50 } +interface J49 { next: J50 } +interface I50 { next: I51 } +interface J50 { next: J51 } +interface I51 { next: I52 } +interface J51 { next: J52 } +interface I52 { next: I53 } +interface J52 { next: J53 } +interface I53 { next: I54 } +interface J53 { next: J54 } +interface I54 { next: I55 } +interface J54 { next: J55 } +interface I55 { next: I56 } +interface J55 { next: J56 } +interface I56 { next: I57 } +interface J56 { next: J57 } +interface I57 { next: I58 } +interface J57 { next: J58 } +interface I58 { next: I59 } +interface J58 { next: J59 } +interface I59 { next: I60 } +interface J59 { next: J60 } +interface I60 { next: I61 } +interface J60 { next: J61 } +interface I61 { next: I62 } +interface J61 { next: J62 } +interface I62 { next: I63 } +interface J62 { next: J63 } +interface I63 { next: I64 } +interface J63 { next: J64 } +interface I64 { next: I65 } +interface J64 { next: J65 } +interface I65 { next: I66 } +interface J65 { next: J66 } +interface I66 { next: I67 } +interface J66 { next: J67 } +interface I67 { next: I68 } +interface J67 { next: J68 } +interface I68 { next: I69 } +interface J68 { next: J69 } +interface I69 { next: I70 } +interface J69 { next: J70 } +interface I70 { next: I71 } +interface J70 { next: J71 } +interface I71 { next: I72 } +interface J71 { next: J72 } +interface I72 { next: I73 } +interface J72 { next: J73 } +interface I73 { next: I74 } +interface J73 { next: J74 } +interface I74 { next: I75 } +interface J74 { next: J75 } +interface I75 { next: I76 } +interface J75 { next: J76 } +interface I76 { next: I77 } +interface J76 { next: J77 } +interface I77 { next: I78 } +interface J77 { next: J78 } +interface I78 { next: I79 } +interface J78 { next: J79 } +interface I79 { next: I80 } +interface J79 { next: J80 } +interface I80 { next: I81 } +interface J80 { next: J81 } +interface I81 { next: I82 } +interface J81 { next: J82 } +interface I82 { next: I83 } +interface J82 { next: J83 } +interface I83 { next: I84 } +interface J83 { next: J84 } +interface I84 { next: I85 } +interface J84 { next: J85 } +interface I85 { next: I86 } +interface J85 { next: J86 } +interface I86 { next: I87 } +interface J86 { next: J87 } +interface I87 { next: I88 } +interface J87 { next: J88 } +interface I88 { next: I89 } +interface J88 { next: J89 } +interface I89 { next: I90 } +interface J89 { next: J90 } +interface I90 { next: I91 } +interface J90 { next: J91 } +interface I91 { next: I92 } +interface J91 { next: J92 } +interface I92 { next: I93 } +interface J92 { next: J93 } +interface I93 { next: I94 } +interface J93 { next: J94 } +interface I94 { next: I95 } +interface J94 { next: J95 } +interface I95 { next: I96 } +interface J95 { next: J96 } +interface I96 { next: I97 } +interface J96 { next: J97 } +interface I97 { next: I98 } +interface J97 { next: J98 } +interface I98 { next: I99 } +interface J98 { next: J99 } +interface I99 { next: I100 } +interface J99 { next: J100 } +interface I100 { next: I101 } +interface J100 { next: J101 } +interface I101 { next: I102 } +interface J101 { next: J102 } +interface I102 { next: I103 } +interface J102 { next: J103 } +interface I103 { next: I104 } +interface J103 { next: J104 } +interface I104 { next: I105 } +interface J104 { next: J105 } +interface I105 { next: I106 } +interface J105 { next: J106 } +interface I106 { next: I107 } +interface J106 { next: J107 } +interface I107 { next: I108 } +interface J107 { next: J108 } +interface I108 { next: I109 } +interface J108 { next: J109 } +interface I109 { next: I110 } +interface J109 { next: J110 } +interface I110 { next: I111 } +interface J110 { next: J111 } +interface I111 { next: I112 } +interface J111 { next: J112 } +interface I112 { next: I113 } +interface J112 { next: J113 } +interface I113 { next: I114 } +interface J113 { next: J114 } +interface I114 { next: I115 } +interface J114 { next: J115 } +interface I115 { next: I116 } +interface J115 { next: J116 } +interface I116 { next: I117 } +interface J116 { next: J117 } +interface I117 { next: I118 } +interface J117 { next: J118 } +interface I118 { next: I119 } +interface J118 { next: J119 } +interface I119 { leaf: string } +interface J119 { leaf: number } + +type Mid = I60 extends J60 ? true : false; +type All = I0 extends J0 ? true : false; diff --git a/tsc/testdata/tests/cases/compiler/relationMaybeCheckOrder.ts b/tsc/testdata/tests/cases/compiler/relationMaybeCheckOrder.ts new file mode 100644 index 0000000000000..b56c53b300a7a --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/relationMaybeCheckOrder.ts @@ -0,0 +1,24 @@ +// @strict: true +// @noEmit: true + +// Relating to 'keyof M' rejects keys that relate only by assuming a +// comparison still in progress. Relating 'A' to 'B' assumes only itself +// along 'next', so it completes on its own and must be accepted whether +// or not the call to 'h' related 'A' to 'B' first. + +interface A { next: A; v: "a" } +interface B { next: B; v: string } +type M = { [K in keyof T as B]: 1 }; + +declare const a: A; +declare function h(x: B): 1; +declare function h(x: unknown): 2; + +function f() { + function g(x: keyof M): 1; + function g(x: unknown): 2; + function g(x: unknown) { return 1 as any; } + const r: 1 = g(a); +} + +const w: 1 = h(a); diff --git a/tsc/testdata/tests/cases/compiler/relationNestingSharedCheckOrder.ts b/tsc/testdata/tests/cases/compiler/relationNestingSharedCheckOrder.ts new file mode 100644 index 0000000000000..b92d749878450 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/relationNestingSharedCheckOrder.ts @@ -0,0 +1,15 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// Relating S to R fresh is cut short at deeply nested +// types before reaching next.leaf, and so succeeds. In program order Inner +// has already found that S<[string]> is not related to R<[string]>. Whether +// Outer succeeds must not depend on which comes first. Conditional types +// relate without reporting errors, which would compute the comparison again. + +type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; +type R = { next: R<[T]>; leaf: T }; + +type Inner = S<[string]> extends R<[string]> ? true : false; +type Outer = S extends R ? true : false; diff --git a/tsc/testdata/tests/cases/compiler/relationTruncatedCacheCheckOrder.ts b/tsc/testdata/tests/cases/compiler/relationTruncatedCacheCheckOrder.ts new file mode 100644 index 0000000000000..1332ce5a04d59 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/relationTruncatedCacheCheckOrder.ts @@ -0,0 +1,18 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst + +// Relating 'S<[string]>' to 'R<[string]>' from scratch reaches 'next.leaf' +// before giving up on deeply nested types, and fails there. Inside the +// relation of 'S' to 'R' it is one level deeper and is cut +// short instead. That truncated result must not be cached, so the error for +// 'q = p' must be reported whether or not 'y = x' was checked first. + +type S = { next: S<[T]>; leaf: T extends [[unknown]] ? number : T }; +type R = { next: R<[T]>; leaf: T }; + +declare let x: S, y: R; +declare let p: S<[string]>, q: R<[string]>; + +y = x; +q = p; diff --git a/tsc/testdata/tests/cases/compiler/restrictiveInstantiationOfRestrictiveConditional.ts b/tsc/testdata/tests/cases/compiler/restrictiveInstantiationOfRestrictiveConditional.ts new file mode 100644 index 0000000000000..7d06216a59546 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/restrictiveInstantiationOfRestrictiveConditional.ts @@ -0,0 +1,183 @@ +// @strict: true +// @exactOptionalPropertyTypes: true +// @module: nodenext +// @target: esnext +// @noEmit: true +// @skipLibCheck: true + +// @filename: arraySlice.d.ts +export type {ArraySlice}; +declare const tag: unique symbol; +type IsNever = [T] extends [never] ? true : false; +type IsEqual = + [A] extends [B] + ? [B] extends [A] + ? _IsEqual + : false + : false; +type _IsEqual = never; +type Primitive = + | null + | undefined + | string + | number + | boolean + | symbol + | bigint; +type UnknownArray = any; +type IfNotAnyOrNever = + IsNever extends true + ? 'ifNever' extends keyof Cases + ? Cases['ifNever'] + : never + : Cases['ifNot']; +type And = B; +type Not = any; +type MaxLength = never; +type HasNoStaticElements = unknown; +type CollapseLiterals = Union extends Primitive + ? Union extends infer Collapsed & {} + ? Collapsed + : Union + : Union; +type PositiveNumericStringGt = A; +type Absolute = _Absolute : N>; +type _Absolute = N extends bigint + ? `${N}` extends `-${infer Magnitude extends bigint}` + ? Magnitude + : N + : `${N}` extends `-${infer Magnitude extends number}` + ? Magnitude + : `${N}` extends '-Infinity' + ? PositiveInfinity + : `${number}` extends `${N}` ? number : N; +type GreaterThan = + _GreaterThan : A, B extends object ? UnwrapBrand : B>; +type _GreaterThan = + A extends _Numeric + ? B extends _Numeric + ? `${number}` extends `${A | B}` + ? boolean + : bigint extends A | B + ? boolean + : A extends PositiveInfinity + ? B extends PositiveInfinity ? false : true + : B extends NegativeInfinity + ? A extends NegativeInfinity ? false : true + : A extends NegativeInfinity + ? false + : B extends PositiveInfinity + ? false + : [IsNegative, IsNegative] extends infer Signs extends [boolean, boolean] + ? [true, false] extends Signs + ? false + : [false, true] extends Signs + ? true + : [false, false] extends Signs + ? PositiveNumericStringGt<`${A}`, `${B}`> + : PositiveNumericStringGt<`${Absolute}`, `${Absolute}`> + : never + : never + : never; +type IsReadonlyArray = never; +type UnionMember = + IsNever extends true + ? never + : (T extends any ? () => T : never) extends () => (infer R) + ? R + : never; +type TagContainer = { + readonly [tag]: Token; +}; +type Tag = unknown; +type RemoveAllTags = T extends TagContainer + ? RemoveAllTags>> + : T; +type RemoveTag> = + | { + [ThisTag in keyof T[typeof tag]]: T extends infer Underlying & Tag + ? [Underlying] extends [T] ? never : Underlying + : never + }[keyof T[typeof tag]] + | (T extends infer Underlying & TagContainer + ? [Underlying] extends [T] ? never : Underlying + : never); +type UnwrapBrand = IfNotAnyOrNever}>; +type _UnwrapBrand = T extends Primitive + ? CollapseLiterals ? RemoveAllTags : T> + : T; +type _Numeric = number | bigint; +type PositiveInfinity = unknown; +type NegativeInfinity = never; +type IsNegative = never; +type Sum = any; +type LessThanOrEqual = unknown; +type ArraySlice< + Array_ extends readonly unknown[], + Start extends number = never, + End extends number = never, +> = ArraySliceImplementation : Start, End>; +type ArraySliceImplementation< + Array_ extends readonly unknown[], + Start extends number, + End extends number, +> = Array_ extends unknown ? _ArraySlice : never; +type _ArraySlice< + Array_ extends readonly unknown[], + Start extends number = 0, + End extends number = Array_['length'], +> = And, IsEqual> extends true + ? Array_ + : number extends Array_['length'] + ? VariableLengthArraySliceHelper extends true ? 0 : Start, End extends PositiveInfinity ? never : End> + : `${number}` extends `${Start | End}` + ? UnknownLengthArraySlice + : ArraySliceResult extends true ? 0 : Start, IsEqual extends true ? MaxLength : End>>; +type ArraySliceResult = + IsReadonlyArray extends true ? Readonly : Sliced; +type VariableLengthArraySliceHelper< + Array_ extends readonly unknown[], + Start extends number, + End extends number, +> = And< + And>, Not>>, + IsEqual, true> +> extends true + ? [] + : And< + And>, Not>>, + IsEqual, true> + > extends true + ? HasNoStaticElements extends true + ? UnknownLengthArraySlice + : ArraySliceResult> + : UnknownLengthArraySlice; +type UnknownLengthArraySlice = any; +type ArraySliceHelper< + Array_ extends readonly unknown[], + Start extends number = 0, + End extends number = MaxLength, + ArrayLength extends number = MaxLength, +> = never; +type ArraySliceByPositiveIndex< + Array_ extends readonly unknown[], + Start extends number, + End extends number, + Result extends Array = [], +> = Start extends End + ? Result + : ArraySliceByPositiveIndex, End, [...Result, Array_[Start]]>; + +// @filename: main.ts +// Reduced from type-fest's ArraySlice. Inferring Value from the argument +// measures the variances of ArraySlice, which takes the restrictive +// instantiations of conditional types whose type parameters are already +// restrictive, many times over through the brand-unwrapping types. Such an +// instantiation must be the conditional type itself: making and evaluating +// a separate copy roughly triples the work, enough to exceed the +// instantiation count limit (TS2589) here. Smaller cases do not get near +// the limit either way, so the case is as large as the limit requires. +import type {ArraySlice} from './arraySlice.d.ts'; +declare function f(values: ArraySlice): void; +declare const x: ArraySlice; +f(x); diff --git a/tsc/testdata/tests/cases/compiler/returnTypeInferenceNotTooBroad.ts b/tsc/testdata/tests/cases/compiler/returnTypeInferenceNotTooBroad.ts index fb987440a546e..72c12f9dd0af5 100644 --- a/tsc/testdata/tests/cases/compiler/returnTypeInferenceNotTooBroad.ts +++ b/tsc/testdata/tests/cases/compiler/returnTypeInferenceNotTooBroad.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 type Signs = { kind: 'a'; a: 3; } | { kind: 'b'; b: 2; } | { kind: 'c'; c: 1; }; interface Opts { diff --git a/tsc/testdata/tests/cases/compiler/selfReferencingObjectLiteralErrorSharedChecker.ts b/tsc/testdata/tests/cases/compiler/selfReferencingObjectLiteralErrorSharedChecker.ts new file mode 100644 index 0000000000000..970b49e7fe02f --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/selfReferencingObjectLiteralErrorSharedChecker.ts @@ -0,0 +1,28 @@ +// @strict: true +// @noEmit: true +// @target: esnext +// @module: esnext +// @moduleResolution: bundler +// @checkers: 1 + +// The property chain in the arrow function reads the object literal it is +// part of. The missing property is an error in both files, also when one +// checker checks both, and b.ts's use of the literal comes after the literal +// was typed while checking a.ts (65483). + +// @filename: a.ts +import type { T } from "./b"; + +export const Obj = { + Updaters: { + Template: { + commitError: (v: T) => Obj.Updaters.Core.commitError(v), + }, + }, +}; + +// @filename: b.ts +import { Obj } from "./a"; + +export type T = number; +export const x = Obj.Updaters.Core.simpleModal; diff --git a/tsc/testdata/tests/cases/compiler/sharedMemberLayoutThisIntersectionBase.ts b/tsc/testdata/tests/cases/compiler/sharedMemberLayoutThisIntersectionBase.ts index 71209527ff35b..0d51e874d2db2 100644 --- a/tsc/testdata/tests/cases/compiler/sharedMemberLayoutThisIntersectionBase.ts +++ b/tsc/testdata/tests/cases/compiler/sharedMemberLayoutThisIntersectionBase.ts @@ -1,5 +1,6 @@ // @strict: true // @noEmit: true +// @checkOrder: default, typesfirst interface A { kind: string; m: this["kind"] } interface B { m: "a" } diff --git a/tsc/testdata/tests/cases/compiler/signatureHelpForCallInLoopCheckOrder.ts b/tsc/testdata/tests/cases/compiler/signatureHelpForCallInLoopCheckOrder.ts new file mode 100644 index 0000000000000..959c87a17eda1 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/signatureHelpForCallInLoopCheckOrder.ts @@ -0,0 +1,29 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst, editorfirst + +// The type of tmp depends on the type of cur in the loop, which depends on +// tmp. Signature help for the call analyzes the loop with the arguments +// typed so far, and the type it finds at the loop does not outlive the +// request (49529). + +interface XMLNode {} + +declare function accessArray(node: XMLNode, createIfNotExists: true): XMLNode; +declare function accessArray(node: XMLNode, createIfNotExists: boolean): XMLNode | undefined; +declare function accessCatalogEntry(createIfNotExists: boolean): XMLNode | undefined; + +function accessFieldValue(createIfNotExists: boolean): XMLNode | undefined { + let cur = accessCatalogEntry(createIfNotExists); + if (!cur) { + return undefined; + } + for (let i = 0; i < 5; ++i) { + let tmp = accessArray(cur, createIfNotExists); + if (!tmp) { + return undefined; + } + cur = tmp; + } + return cur; +} diff --git a/tsc/testdata/tests/cases/compiler/signatureHelpInNestedCallbackCheckOrder.ts b/tsc/testdata/tests/cases/compiler/signatureHelpInNestedCallbackCheckOrder.ts new file mode 100644 index 0000000000000..e312bf863acc0 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/signatureHelpInNestedCallbackCheckOrder.ts @@ -0,0 +1,23 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst, editorfirst + +// Signature help for the inner call resolves the outer call from within +// it, while the inner call is being resolved. The errors of that +// resolution are not reported once the call is checked (48135). + +interface Monad { Array: A[] } +type MonadIdentifier = keyof Monad + +declare const setBindArray: + (bind: (g: (a: A) => Monad["Array"]) => (fa: Monad["Array"]) => Monad["Array"]) => void + +setBindArray(g => fa => fa.flatMap(g)) + +declare const setBindGeneric: + + ( idenfier: I + , bind: (g: (a: A) => Monad[I]) => (fa: Monad[I]) => Monad[I] + ) => void + +setBindGeneric("Array", g => fa => fa.flatMap(g)) diff --git a/tsc/testdata/tests/cases/compiler/signatureHelpInferenceQueryOrder.ts b/tsc/testdata/tests/cases/compiler/signatureHelpInferenceQueryOrder.ts new file mode 100644 index 0000000000000..dbec9354b5994 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/signatureHelpInferenceQueryOrder.ts @@ -0,0 +1,11 @@ +// @target: es2015 +// @strict: false +// @checkOrder: default,editorfirst + +function f(y: T, y1: U, p: (z: U) => T, p1: (x: T) => U): [T, U] { return [y, p1(y)]; } +interface A { a: A; } +interface B extends A { b; } + +declare var a: A, b: B; + +var d = f(a, b, x => x, x => x); diff --git a/tsc/testdata/tests/cases/compiler/signatureHelpReverseMappedArgumentCheckOrder.ts b/tsc/testdata/tests/cases/compiler/signatureHelpReverseMappedArgumentCheckOrder.ts new file mode 100644 index 0000000000000..b0b3c8e908162 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/signatureHelpReverseMappedArgumentCheckOrder.ts @@ -0,0 +1,30 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst, editorfirst + +// Printing the candidates of signature help computes the members of the +// reverse mapped type inferred for the call, which resolves the call +// again. That happens within the request, and does not change what +// checking the call infers (29479). + +type Selector = (state: S, meta: number) => R; + +declare function createStructuredSelector(selectors: { + [K in keyof T]: Selector; +}): Selector; + +type State = { foo: number }; + +declare const mySelector: Selector + +const result1 = createStructuredSelector({ + mySelector: mySelector, +}); + +const result2 = createStructuredSelector({ + mySelector: (state: State) => true, +}); + +result2; + +export {}; diff --git a/tsc/testdata/tests/cases/compiler/substitutionInDeferredConditionalOfConditional.ts b/tsc/testdata/tests/cases/compiler/substitutionInDeferredConditionalOfConditional.ts new file mode 100644 index 0000000000000..689b6d3da6017 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/substitutionInDeferredConditionalOfConditional.ts @@ -0,0 +1,24 @@ +// @strict: true +// @noEmit: true + +// Children always produces a Record, so it satisfies NeedsRecord. Its +// true branch narrows S["states"] to Record even when S is +// a conditional type that is itself deferred. + +interface Schema { + states?: Record; +} +type Resolve, Segments extends readonly string[]> = + Segments extends [infer Head extends string, ...infer Rest extends string[]] + ? Head extends keyof S + ? Rest extends [] + ? S[Head] + : S[Head]["states"] extends Record + ? Resolve + : never + : never + : never; +type Split

= P extends `${infer Head}.${infer Tail}` ? [Head, Tail] : [P]; +type Children = S["states"] extends Record ? S["states"] : Record; +type NeedsRecord> = T; +type ChildrenAt, P extends string> = NeedsRecord>>>; diff --git a/tsc/testdata/tests/cases/compiler/tupleTooLargeReportedAtUses.ts b/tsc/testdata/tests/cases/compiler/tupleTooLargeReportedAtUses.ts new file mode 100644 index 0000000000000..b508553bdc791 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/tupleTooLargeReportedAtUses.ts @@ -0,0 +1,15 @@ +// @strict: true +// @noEmit: true +// @target: es2015 + +// The tuple type the alias builds is too large to represent (64384). The +// union type and its first constituent start at the same position, so they +// report the error at the same location. + +type BuildTuple = + T['length'] extends L ? T : BuildTuple; +type A = BuildTuple<3>; + +export class C { + p? = null! as A | string; +} diff --git a/tsc/testdata/tests/cases/compiler/typeParameterDefaultInCallInsideGenericCallback.ts b/tsc/testdata/tests/cases/compiler/typeParameterDefaultInCallInsideGenericCallback.ts new file mode 100644 index 0000000000000..f2f483ff8ee6f --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/typeParameterDefaultInCallInsideGenericCallback.ts @@ -0,0 +1,25 @@ +// @strict: true +// @noEmit: true +// @target: esnext + +// The default of T applies to the call inside the callback passed to another +// generic function as it does elsewhere, so data is accepted. + +declare function fetcher(cfg: unknown): Promise; + +type Routes = R extends 'x' ? { IN: { v: number }, OUT: string } : never; + +function executeFetch>( + route: R, + body?: T extends Record<'IN', any> ? T['IN'] : never +) { + return fetcher ? T['OUT'] : T>({ route, body }); +} + +declare function useCallback(cb: T, deps: unknown[]): T; + +export const cb = useCallback((data: { v: number }) => { + return executeFetch('x', data); +}, []); + +export const check: Promise = cb({ v: 1 }); diff --git a/tsc/testdata/tests/cases/compiler/typeParameterHasSelfAsConstraint.ts b/tsc/testdata/tests/cases/compiler/typeParameterHasSelfAsConstraint.ts index 3b2267f54389c..9c99dcb98fa60 100644 --- a/tsc/testdata/tests/cases/compiler/typeParameterHasSelfAsConstraint.ts +++ b/tsc/testdata/tests/cases/compiler/typeParameterHasSelfAsConstraint.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 function foo(x: T): number { return x; diff --git a/tsc/testdata/tests/cases/compiler/typeReferenceRecursionIdentityCheckOrder.ts b/tsc/testdata/tests/cases/compiler/typeReferenceRecursionIdentityCheckOrder.ts new file mode 100644 index 0000000000000..5de9a46c5bc90 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/typeReferenceRecursionIdentityCheckOrder.ts @@ -0,0 +1,16 @@ +// @noEmit: true +// @target: esnext +// @checkOrder: default, typesfirst + +// Comparing never[] to B<0> nests comparisons of the members of A and B. +// Whether they are cut short as deeply nested must not depend on whether the +// annotation of b is resolved before checking a instantiates slice. + +interface A { + slice(): B; + every(predicate: (value: T) => value is S): this is A; + flatMap(callback: (value: T) => U | readonly U[] | A): U[]; +} +interface B extends A {} +const a: A<0> = []; +const b: B<0> = []; diff --git a/tsc/testdata/tests/cases/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts b/tsc/testdata/tests/cases/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts index 6a4517411287d..d834c23767f8f 100644 --- a/tsc/testdata/tests/cases/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts +++ b/tsc/testdata/tests/cases/compiler/unusedLocalsOnFunctionDeclarationWithinFunctionDeclaration1.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 //@noUnusedLocals:true //@noUnusedParameters:true diff --git a/tsc/testdata/tests/cases/compiler/unusedTypeParameterQueryOrder.ts b/tsc/testdata/tests/cases/compiler/unusedTypeParameterQueryOrder.ts new file mode 100644 index 0000000000000..f9fa662fe35d9 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/unusedTypeParameterQueryOrder.ts @@ -0,0 +1,10 @@ +// @target: es2015 +// @noUnusedLocals: true +// @noUnusedParameters: true +// @checkOrder: default,editorfirst + +class A { + f() { + return () => {}; + } +} diff --git a/tsc/testdata/tests/cases/compiler/varianceCircularConsistency.ts b/tsc/testdata/tests/cases/compiler/varianceCircularConsistency.ts new file mode 100644 index 0000000000000..c6c3ccb148802 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceCircularConsistency.ts @@ -0,0 +1,29 @@ +// @strict: true +// @noEmit: true + +// Variances of these mutually recursive generics must not depend on values +// measured mid-cycle. Assigning `e` to `EntryPoint` must agree with +// assigning `e.root` to `EntryPoint["root"]`. + +interface Query {} +type Component

= P | ((props: P) => void); +interface Ref { + value: T; +} +interface Rep, Nested, Runtime, Extra> extends Readonly<{ + root: Ref>; +}> {} +type Preloaded = T extends Record> ? { [K in keyof T]: Unwrap> } : never; +interface Props extends Readonly<{ + nested: Preloaded; + queries: Queries; +}> {} +type EntryPointComponent, Nested, Runtime, Extra = {}> = Component>; +type Unwrap = C extends EntryPointComponent ? Readonly<{}> : {}; +type EntryPoint = Rep ? Q : never, never, never, never>; +type GetComponent = T extends EntryPoint ? C : never; + +declare const c: EntryPointComponent<{ q: { readonly variables: { slug: string } } }, {}, { onClick: () => void }>; +declare const e: EntryPoint; +const whole: EntryPoint = e; +const root: EntryPoint["root"] = e.root; diff --git a/tsc/testdata/tests/cases/compiler/varianceCircularityEnteredByInference.ts b/tsc/testdata/tests/cases/compiler/varianceCircularityEnteredByInference.ts new file mode 100644 index 0000000000000..69be126dcaf14 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceCircularityEnteredByInference.ts @@ -0,0 +1,51 @@ +// @strict: true +// @target: esnext +// @noEmit: true +// @checkOrder: default,typesfirst + +// AstObject and AstValue form a variance circularity. AstValue is covariant +// in T through typeBrand, and AstObject reaches it through getValue, so +// AstObject is not assignable to AstObject and the +// call below must be an error. Checking getValue first infers the type +// arguments of `new AstValue` from its return type, which measures AstValue +// first; AstObject, measured inside it, then sees T only in references to +// the types in progress, and main recorded it as independent of T and +// accepted the call. Main reports the error when AstObject's variance is +// measured first. + +export {}; + +type ObjectType = T extends object ? T : never; + +class AstObject { + constructor(private host: E) {} + + getObject(key: K): AstObject, E> { + return new AstObject, E>(this.host); + } + + getValue(key: K): AstValue { + return new AstValue(this.host); + } +} + +class AstValue { + declare typeBrand: T; + + constructor(private host: E) {} + + getObject(): AstObject, E> { + return new AstObject(this.host); + } +} + +interface Empty {} +interface WithDecorators { + decorators: string; +} + +declare function useDerived(obj: AstObject): void; + +function useBase(obj: AstObject) { + useDerived(obj); +} diff --git a/tsc/testdata/tests/cases/compiler/varianceCircularityHidesInvariance.ts b/tsc/testdata/tests/cases/compiler/varianceCircularityHidesInvariance.ts new file mode 100644 index 0000000000000..b76009f354e84 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceCircularityHidesInvariance.ts @@ -0,0 +1,74 @@ +// @strict: true +// @target: esnext +// @noEmit: true +// @checkOrder: default,typesfirst + +// Reduced from chart.js typings (PeerTube, Unleash). Chart, TooltipModel and +// ScriptableContext form a variance circularity. ScriptableContext is in +// fact invariant: ScriptableContext<"bar" | "line"> is not assignable to +// ScriptableContext<"bar"> ('dataset.data' differs), so Chart<"bar"> is not +// assignable to Chart and the assignment below must be an error. +// Measuring variances from the circularity's entry, main recorded +// ScriptableContext/TooltipModel as bivariant (measured mid-cycle) and +// accepted it; main reports this error too when ScriptableContext's variance +// is measured first (e.g. after checking a ScriptableContext assignment). + +declare class Element { options: O } +type DeepPartial = T extends Function ? T : T extends object ? _DeepPartialObject : undefined +type _DeepPartialObject = { [P in keyof T]?: DeepPartial } +type UnionToIntersection = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never +type AnyObject = Record +interface ScriptableContext { + dataset: UnionToIntersection> +} +type Scriptable = (ctx: TContext) => T +declare class Chart { + config: ChartConfigurationCustomTypesPerDataset +} +interface Plugin { + id: string; + beforeDraw(chart: Chart): void +} +interface CoreChartOptions { + backgroundColor: Scriptable> +} +interface AnimationSpec { + delay: Scriptable> +} +interface TooltipModel extends Element> { + chart: Chart +} +interface TooltipDatasetCallbacks> { + (this: Model): void +} +interface TooltipOptions { + animation: AnimationSpec +} +interface TooltipDatasetOptions { + callbacks: TooltipDatasetCallbacks +} +interface PluginDatasetOptionsByType { + tooltip: TooltipDatasetOptions +} +interface ChartTypeRegistry { + bar: { defaultDataPoint: [] } + line: { defaultDataPoint: null } +} +type ChartType = keyof ChartTypeRegistry +type DatasetChartOptions = { [key in TType]: {} } +type ChartOptions = Exclude & DatasetChartOptions & TType>, undefined> +interface ChartDatasetProperties { + data: TData +} +type ChartDataset = + DeepPartial> & ChartDatasetProperties +type ChartDatasetCustomTypesPerDataset = DeepPartial> +interface ChartDataCustomTypesPerDataset { + datasets: ChartDatasetCustomTypesPerDataset +} +export interface ChartConfigurationCustomTypesPerDataset { + data: ChartDataCustomTypesPerDataset + options: ChartOptions +} + +const p: Plugin<"bar"> = { id: "x", beforeDraw: (chart: Chart) => {} }; diff --git a/tsc/testdata/tests/cases/compiler/varianceCycleCachedResults.ts b/tsc/testdata/tests/cases/compiler/varianceCycleCachedResults.ts new file mode 100644 index 0000000000000..935dada6a890f --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceCycleCachedResults.ts @@ -0,0 +1,25 @@ +// @strict: true + +// Relating 'Box' to 'Box' measures the variances of 'Box', which +// resolves the return type of 'm', which relates 'Box' to 'Box' +// while those variances are incomplete, reducing the union to 'Box'. +// Resolving 'm' first measures the variances of 'Box' and resolves 'm' again +// inside, the same way, so 'm' returns 'Box' whichever is first. + +// @filename: first.ts +declare let b1: Box; +declare let b2: Box; +b1 = b2; + +// @filename: box.ts +declare let a1: Box; +declare let a2: Box; +declare const cond: boolean; +class Box { + value!: T; + m() { + if (cond) return a1; + return a2; + } +} +const r = new Box().m(); diff --git a/tsc/testdata/tests/cases/compiler/varianceCycleDiscardedDiagnostics.ts b/tsc/testdata/tests/cases/compiler/varianceCycleDiscardedDiagnostics.ts new file mode 100644 index 0000000000000..9b61b16136fc2 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceCycleDiscardedDiagnostics.ts @@ -0,0 +1,28 @@ +// @strict: true +// @target: es2022 +// @noEmit: true + +// Measuring the variances of Bar resolves the type of Value, which picks an +// overload by relating Foo to Foo while the variances of Bar are +// still being measured. Diagnostics from that attempt must not outlive it, +// and the result must not depend on whether Value or the variances of Bar +// are needed first. + +interface A { a: string } +interface B { foo: string } +declare function pick(x: Foo): A; +declare function pick(x: object): B; + +class Bar { + x!: T; + Value = pick(new Foo(this)).foo; +} + +class Foo { + bar!: Bar; + constructor(bar: Bar) { + this.bar = bar; + } +} + +const v: number = new Bar().Value; diff --git a/tsc/testdata/tests/cases/compiler/varianceCycleEnteredAfterCanonicalEntry.ts b/tsc/testdata/tests/cases/compiler/varianceCycleEnteredAfterCanonicalEntry.ts new file mode 100644 index 0000000000000..6ac9f01d74269 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceCycleEnteredAfterCanonicalEntry.ts @@ -0,0 +1,32 @@ +// @strict: true +// @target: esnext +// @noEmit: true +// @checkOrder: default,typesfirst + +// Reduced from capnweb's RpcStub types (cloudflare-os). Measuring the variance +// of Stubify enters a circularity (Stubify -> Stub -> Provider -> +// MethodOrProperty -> Result -> RpcPromise -> Stubify) whose canonical entry is +// Stub, so the measurement from Stubify is discarded and the circularity +// measured again from Stub. The discarded measurement once ran to completion, +// which on the full types took long enough to exceed the instantiation limit. + +interface StubBase { + brand: T; +} +type Stub = T extends object ? Provider & StubBase : StubBase; +type Stubify = T extends StubBase ? T : T extends Function ? Stub : T; +type RpcPromise = Promise> & Provider & StubBase; +type Result = R extends StubBase ? Result : RpcPromise; +type MethodOrProperty = V extends (...args: infer P) => infer R ? (...args: P) => Result> : Result>; +type Provider = { [K in keyof T]: MethodOrProperty }; + +function f(x: Stubify, y: Stubify) { + y = x; + x = y; +} + +declare const api: Stub<{ sub(): Promise> }>; +export async function g() { + await api.sub(); + api.sub().then(s => s); +} diff --git a/tsc/testdata/tests/cases/compiler/varianceCycleEntryOrder.ts b/tsc/testdata/tests/cases/compiler/varianceCycleEntryOrder.ts new file mode 100644 index 0000000000000..e7d881c167dcf --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceCycleEntryOrder.ts @@ -0,0 +1,32 @@ +// @strict: true +// @noEmit: true + +// Foo and Bar are both invariant: Foo through x and the contravariant +// use of Foo in Bar, and Bar through f and the invariant Foo>. +// Their variances should not depend on which is measured first. + +// @filename: fooFirst.ts +export {}; + +interface Foo { x: T; b: Bar> } +interface Bar { f: (u: U) => void; foo: Foo> } + +declare let fs: Foo, fl: Foo<"lit">; +declare let bs: Bar, bl: Bar<"lit">; +fl = fs; // Error +fs = fl; // Error +bl = bs; // Error +bs = bl; // Error + +// @filename: barFirst.ts +export {}; + +interface Foo { x: T; b: Bar> } +interface Bar { f: (u: U) => void; foo: Foo> } + +declare let fs: Foo, fl: Foo<"lit">; +declare let bs: Bar, bl: Bar<"lit">; +bl = bs; // Error +bs = bl; // Error +fl = fs; // Error +fs = fl; // Error diff --git a/tsc/testdata/tests/cases/compiler/varianceCycleMeasuredFromAliasCheckOrder.ts b/tsc/testdata/tests/cases/compiler/varianceCycleMeasuredFromAliasCheckOrder.ts new file mode 100644 index 0000000000000..4517562172d45 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceCycleMeasuredFromAliasCheckOrder.ts @@ -0,0 +1,29 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default, typesfirst, editorfirst + +// Settings, Hover and Renderer refer to each other. Relating two +// instantiations of Hover measures the variances of the cycle starting +// from Hover, and whether a Renderer is a Renderer must not +// depend on whether the types were requested before (64635). + +type Attrs = { [name: string]: any }; + +interface Settings { + hover: Hover; + reducer: (data: N) => void; + program: (renderer: Renderer) => void; +} +interface Renderer { + getSettings(): Settings; +} +type Hover = (settings: Settings) => void; + +type NodeAttrs = { x: number }; + +declare const hover: Hover; +const h: Hover = hover; + +declare function fit(renderer: Renderer): void; +declare const renderer: Renderer; +fit(renderer); diff --git a/tsc/testdata/tests/cases/compiler/varianceCycleRedoKeepsDiscardLog.ts b/tsc/testdata/tests/cases/compiler/varianceCycleRedoKeepsDiscardLog.ts new file mode 100644 index 0000000000000..201c3c562d110 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceCycleRedoKeepsDiscardLog.ts @@ -0,0 +1,312 @@ +// @strict: true +// @module: node16 +// @noEmit: true + +// The types of DefinitelyTyped's json-logic-js (MIT license). Measuring the +// variances of the RulesLogic circularity again from its canonical entry +// re-enters measurements whose own circularities may still be discarded, so +// what is cached while it is re-entered must be logged, or a discarded +// measurement leaves results behind and `apply` rejects its argument. + +// @filename: json-logic-js.d.ts +export as namespace jsonFactory; + +// Disable auto-export +export {}; + +type RenameToIn = { + [K in keyof T as K extends `in${Uppercase}${Lowercase}` ? `in` : K]: T[K]; +}; + +/** + * This is a utility type used below for the "if" operation. + * Original: https://stackoverflow.com/a/68373774/765987 + */ +type MAXIMUM_ALLOWED_BOUNDARY = 80; +type Mapped< + Tuple extends unknown[], + Result extends unknown[] = [], + Count extends readonly number[] = [], +> = Count["length"] extends MAXIMUM_ALLOWED_BOUNDARY ? Result + : Tuple extends [] ? [] + : Result extends [] ? Mapped + : Mapped; +/** + * Used for the "if" operation, which takes an array of odd length + * and a minimum of three (3) elements. + */ +type AnyArrayOfOddLengthMin3 = [any, ...Mapped<[any, any]>]; + +export type ReservedOperations = + | "var" + | "missing" + | "missing_some" + | "if" + | "==" + | "===" + | "!=" + | "!==" + | "!" + | "!!" + | "or" + | "and" + | ">" + | ">=" + | "<" + | "<=" + | "max" + | "min" + | "+" + | "-" + | "*" + | "/" + | "%" + | "map" + | "filter" + | "reduce" + | "all" + | "none" + | "some" + | "merge" + | "in" + | "cat" + | "substr" + | "log"; + +/** + * This can be an object with any key except the reserved keys. + * TODO: Find a way to limit this type to exactly one (1) key, since + * json-logic-js enforces it. See: + * https://github.com/jwadhams/json-logic-js/blob/2.0.2/logic.js#L180 + */ +export type AdditionalOperation = Partial> & { [k: string]: any }; + +export interface AllReservedOperationsInterface { + var: RulesLogic | [RulesLogic] | [RulesLogic, any] | [RulesLogic, any]; + missing: RulesLogic | any[]; + missing_some: [RulesLogic, RulesLogic | any[]]; + if: AnyArrayOfOddLengthMin3; + "==": [any, any]; + "===": [any, any]; + "!=": [any, any]; + "!==": [any, any]; + "!": any; + "!!": any; + or: Array>; + and: Array>; + ">": [RulesLogic, RulesLogic]; + ">=": [RulesLogic, RulesLogic]; + "<": [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic]; + "<=": [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic]; + max: Array>; + min: Array>; + "+": Array> | RulesLogic; + "-": Array> | RulesLogic; + "*": Array> | RulesLogic; + "/": Array> | RulesLogic; + "%": [RulesLogic, RulesLogic]; + map: [RulesLogic, RulesLogic]; + filter: [RulesLogic, RulesLogic]; + reduce: [RulesLogic, RulesLogic, RulesLogic]; + all: [Array>, RulesLogic] | [RulesLogic, RulesLogic]; + none: [Array>, RulesLogic] | [RulesLogic, RulesLogic]; + some: [Array>, RulesLogic] | [RulesLogic, RulesLogic]; + merge: Array> | RulesLogic>; + inArray: [RulesLogic, Array>]; + inString: [RulesLogic, RulesLogic]; + cat: Array>; + substr: [RulesLogic, RulesLogic] | [RulesLogic, RulesLogic, RulesLogic]; + log: RulesLogic; +} + +export type JsonLogicVar = Pick< + AllReservedOperationsInterface, + "var" +>; +export type JsonLogicMissing = Pick< + AllReservedOperationsInterface, + "missing" +>; +export type JsonLogicMissingSome = Pick< + AllReservedOperationsInterface, + "missing_some" +>; +export type JsonLogicIf = Pick; +export type JsonLogicEqual = Pick; +export type JsonLogicStrictEqual = Pick; +export type JsonLogicNotEqual = Pick; +export type JsonLogicNegation = Pick; +export type JsonLogicDoubleNegation = Pick; +export type JsonLogicOr = Pick< + AllReservedOperationsInterface, + "or" +>; +export type JsonLogicAnd = Pick< + AllReservedOperationsInterface, + "and" +>; +export type JsonLogicGreaterThan = Pick< + AllReservedOperationsInterface, + ">" +>; +export type JsonLogicGreaterThanOrEqual = Pick< + AllReservedOperationsInterface, + ">=" +>; +export type JsonLogicLessThan = Pick< + AllReservedOperationsInterface, + "<" +>; +export type JsonLogicLessThanOrEqual = Pick< + AllReservedOperationsInterface, + "<=" +>; +export type JsonLogicMax = Pick< + AllReservedOperationsInterface, + "max" +>; +export type JsonLogicMin = Pick< + AllReservedOperationsInterface, + "min" +>; +export type JsonLogicSum = Pick< + AllReservedOperationsInterface, + "+" +>; +export type JsonLogicDifference = Pick< + AllReservedOperationsInterface, + "-" +>; +export type JsonLogicProduct = Pick< + AllReservedOperationsInterface, + "*" +>; +export type JsonLogicQuotient = Pick< + AllReservedOperationsInterface, + "/" +>; +export type JsonLogicRemainder = Pick< + AllReservedOperationsInterface, + "%" +>; +export type JsonLogicMap = Pick< + AllReservedOperationsInterface, + "map" +>; +export type JsonLogicFilter = Pick< + AllReservedOperationsInterface, + "filter" +>; +export type JsonLogicReduce = Pick< + AllReservedOperationsInterface, + "reduce" +>; +export type JsonLogicAll = Pick< + AllReservedOperationsInterface, + "all" +>; +export type JsonLogicNone = Pick< + AllReservedOperationsInterface, + "none" +>; +export type JsonLogicSome = Pick< + AllReservedOperationsInterface, + "some" +>; +export type JsonLogicMerge = Pick< + AllReservedOperationsInterface, + "merge" +>; +export type JsonLogicInArray = RenameToIn< + Pick, "inArray"> +>; +export type JsonLogicInString = RenameToIn< + Pick, "inString"> +>; +export type JsonLogicCat = Pick< + AllReservedOperationsInterface, + "cat" +>; +export type JsonLogicSubstr = Pick< + AllReservedOperationsInterface, + "substr" +>; +export type JsonLogicLog = Pick< + AllReservedOperationsInterface, + "log" +>; + +export type RulesLogic = + | boolean + | string + | number + | null + // Accessing Data - https://jsonlogic.com/operations.html#accessing-data + | JsonLogicVar + | JsonLogicMissing + | JsonLogicMissingSome + // Logic and Boolean Operations - https://jsonlogic.com/operations.html#logic-and-boolean-operations + | JsonLogicIf + | JsonLogicEqual + | JsonLogicStrictEqual + | JsonLogicNotEqual + | JsonLogicStrictNotEqual + | JsonLogicNegation + | JsonLogicDoubleNegation + | JsonLogicOr + | JsonLogicAnd + // Numeric Operations - https://jsonlogic.com/operations.html#numeric-operations + | JsonLogicGreaterThan + | JsonLogicGreaterThanOrEqual + | JsonLogicLessThan + | JsonLogicLessThanOrEqual + | JsonLogicMax + | JsonLogicMin + | JsonLogicSum + | JsonLogicDifference + | JsonLogicProduct + | JsonLogicQuotient + | JsonLogicRemainder + // Array Operations - https://jsonlogic.com/operations.html#array-operations + | JsonLogicMap + | JsonLogicFilter + | JsonLogicReduce + | JsonLogicAll + | JsonLogicNone + | JsonLogicSome + | JsonLogicMerge + | JsonLogicInArray + // String Operations - https://jsonlogic.com/operations.html#string-operations + | JsonLogicInString + | JsonLogicCat + | JsonLogicSubstr + // Miscellaneous - https://jsonlogic.com/operations.html#miscellaneous + | JsonLogicLog + // Adding Operations (https://jsonlogic.com/add_operation.html) + | AddOps; + +export function add_operation(name: string, code: (...args: any[]) => any): void; +export function apply(logic: RulesLogic, data?: unknown): any; +export function rm_operation(name: string): void; + +// These functions are undocumented, but are exported by the real package +// so they're typed here for completeness. +export function is_logic(logic: any): logic is RulesLogic; +export function truthy(value: any): boolean; +export function get_operator(logic: Record): string; +export function get_values(logic: Record): any; +export function uses_data(logic: Record): any[]; +export function rule_like(rule: any, pattern: any): boolean; + +// @filename: main.ts +import * as jsonLogic from "./json-logic-js"; + +type StartsWithAndEndsWith = + | { startsWith: [JsonLogicWithAdditionalOperations, JsonLogicWithAdditionalOperations] } + | { endsWith: [JsonLogicWithAdditionalOperations, JsonLogicWithAdditionalOperations] }; +type JsonLogicWithAdditionalOperations = jsonLogic.RulesLogic; +const jsonExtendedLogic: JsonLogicWithAdditionalOperations = { + and: [{ startsWith: ["Springfield", "Spring"] }, { endsWith: ["Springfield", "field"] }], +}; +jsonLogic.apply(jsonExtendedLogic); diff --git a/tsc/testdata/tests/cases/compiler/varianceCycleStructuralFallback.ts b/tsc/testdata/tests/cases/compiler/varianceCycleStructuralFallback.ts new file mode 100644 index 0000000000000..e3d0f7deff7f5 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceCycleStructuralFallback.ts @@ -0,0 +1,33 @@ +// @strict: true +// @noEmit: true + +// The -? mapped type makes the variance of MA unmeasurable, so comparisons +// of instantiations of MA made while measuring the variances of MA and MB +// fall back to structural comparisons. The variances should not depend on +// which type is measured first. + +// @filename: maFirst.ts +export {}; + +type MA = { x: { [K in keyof T]-?: T[K] }; b: MB> }; +type MB = { f: (u: U) => void; a: MA> }; + +declare let as: MA<{ p: string }>, al: MA<{ p: "lit" }>; +declare let bs: MB<{ p: string }>, bl: MB<{ p: "lit" }>; +al = as; +as = al; +bl = bs; +bs = bl; + +// @filename: mbFirst.ts +export {}; + +type MA = { x: { [K in keyof T]-?: T[K] }; b: MB> }; +type MB = { f: (u: U) => void; a: MA> }; + +declare let as: MA<{ p: string }>, al: MA<{ p: "lit" }>; +declare let bs: MB<{ p: string }>, bl: MB<{ p: "lit" }>; +bl = bs; +bs = bl; +al = as; +as = al; diff --git a/tsc/testdata/tests/cases/compiler/varianceDeclarationOrder.ts b/tsc/testdata/tests/cases/compiler/varianceDeclarationOrder.ts new file mode 100644 index 0000000000000..077b736ce3fb4 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceDeclarationOrder.ts @@ -0,0 +1,30 @@ +// @strict: true +// @noEmit: true + +// https://github.com/microsoft/TypeScript/issues/64891 +// The variances of DS must not depend on whether Ref, which mentions DS, +// is declared first. + +// @filename: refFirst.ts +type M = { kind: "m" }; +type Filtered = { [K in keyof T as T[K] extends M ? K : never]: T[K] }; +interface Config { measure: keyof T } +interface Ref { dataset: DS, N> } +interface DS { + a(config: Config>): void; + b: Ref; +} +declare const x: DS<{ total: M }, string>; +export const y: DS, string> = x; + +// @filename: dsFirst.ts +type M = { kind: "m" }; +type Filtered = { [K in keyof T as T[K] extends M ? K : never]: T[K] }; +interface Config { measure: keyof T } +interface DS { + a(config: Config>): void; + b: Ref; +} +interface Ref { dataset: DS, N> } +declare const x: DS<{ total: M }, string>; +export const y: DS, string> = x; diff --git a/tsc/testdata/tests/cases/compiler/varianceMeasuredWithinCircularity.ts b/tsc/testdata/tests/cases/compiler/varianceMeasuredWithinCircularity.ts new file mode 100644 index 0000000000000..712ee43f4f782 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceMeasuredWithinCircularity.ts @@ -0,0 +1,30 @@ +// @strict: true +// @noEmit: true + +// The variances of Selection and TransitionLike depend on each other. +// The callback of `data` requires Selection to be covariant in P, while +// `join` passes Selection to a callback, which then requires it to +// be contravariant in P, so Selection is invariant in P. TransitionLike +// reaches P of a Selection through `selection().children()`, so it is +// invariant in G. Both must hold whichever variance is measured first. + +export {}; + +interface Base { base: string } +interface Derived extends Base { derived: string } + +interface Selection { + data(key: (parent: P) => string): Selection; + join(enter: string | ((elem: Selection) => Selection | TransitionLike)): Selection; + children(): Selection; +} + +interface TransitionLike { + selection(): Selection; +} + +declare let s1: Selection; +let s2: Selection = s1; + +declare let t1: TransitionLike; +let t2: TransitionLike = t1; diff --git a/tsc/testdata/tests/cases/compiler/varianceSupersededMeasurementKeepsOtherComparisons.ts b/tsc/testdata/tests/cases/compiler/varianceSupersededMeasurementKeepsOtherComparisons.ts new file mode 100644 index 0000000000000..c17ed38541bc4 --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/varianceSupersededMeasurementKeepsOtherComparisons.ts @@ -0,0 +1,21 @@ +// @strict: true +// @noEmit: true +// @checkOrder: default,typesfirst + +// Reduced from zod v4 with LangGraph's `register` augmentation +// (langchain-ai/openwiki). Measuring the variance of B reaches A, which is +// smaller, so the measurement is superseded and measured again from A. While +// it finishes, comparing the parameters of `m` re-enters B, and its return +// type resolves `Check>`, whose comparison is not part of the +// measurement. It must still compare as it would from scratch, as the +// resolved conditional type is kept. + +declare let b1: B; +declare let b2: B<"s">; +b1 = b2; + +interface A { m(x: B): Check>; } +interface B { a: A; } +type Check = U extends { a: unknown } ? "yes" : "no"; + +const v: Check> = "yes"; diff --git a/tsc/testdata/tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts b/tsc/testdata/tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts index 45e3ab2f45218..598881ff0189c 100644 --- a/tsc/testdata/tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts +++ b/tsc/testdata/tests/cases/conformance/classes/members/privateNames/privateNameNestedClassFieldShadowing.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @strict: false // @target: es2015 diff --git a/tsc/testdata/tests/cases/conformance/controlFlow/dependentDestructuredVariablesReferenceInDeclaration1.ts b/tsc/testdata/tests/cases/conformance/controlFlow/dependentDestructuredVariablesReferenceInDeclaration1.ts index d72cb1553711e..d3f2b2d3c8455 100644 --- a/tsc/testdata/tests/cases/conformance/controlFlow/dependentDestructuredVariablesReferenceInDeclaration1.ts +++ b/tsc/testdata/tests/cases/conformance/controlFlow/dependentDestructuredVariablesReferenceInDeclaration1.ts @@ -1,6 +1,7 @@ // @strict: true // @target: esnext // @noEmit: true +// @checkOrder: default, typesfirst // https://github.com/microsoft/TypeScript/issues/62993 diff --git a/tsc/testdata/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts b/tsc/testdata/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts index 613a3966e161f..ff48d5a86f727 100644 --- a/tsc/testdata/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts +++ b/tsc/testdata/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @strict: false // (arg: { x: any, y: any }) => void diff --git a/tsc/testdata/tests/cases/conformance/jsdoc/importTag13.ts b/tsc/testdata/tests/cases/conformance/jsdoc/importTag13.ts index 7ad42b8c9fee2..d811998b4c3c5 100644 --- a/tsc/testdata/tests/cases/conformance/jsdoc/importTag13.ts +++ b/tsc/testdata/tests/cases/conformance/jsdoc/importTag13.ts @@ -1,3 +1,4 @@ +// @checkOrder: default, typesfirst // @target: es2015 // @checkJs: true // @allowJs: true From 64d1197f9c151b03380c7ee3c4646ef21531afe0 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 16 Nov 2026 15:21:03 -0800 Subject: [PATCH 7/7] Fuzz more checker queries and language service requests The check order fuzzer only asked for types, symbols, contextual types and resolved signatures, plus a handful of editor requests, so order dependence reached through other entry points went unnoticed. An API client or an editor can ask for the type of a symbol, the members and base types of a declaration, or the apparent and awaited types of an expression, and find references, highlights, type definitions and implementations, all before anything is checked. Fuzz those too. Requests that search the whole program are asked only at declaration names, and the typesfirst check order keeps asking only the basic queries, so that it does not change what it covers. --- .../testutil/harnessutil/checkorderfuzz.go | 82 ++++++++++++++++++- .../testutil/harnessutil/checkorderfuzz_ls.go | 59 ++++++++++++- .../testutil/harnessutil/harnessutil.go | 2 +- 3 files changed, 136 insertions(+), 7 deletions(-) diff --git a/tsc/internal/testutil/harnessutil/checkorderfuzz.go b/tsc/internal/testutil/harnessutil/checkorderfuzz.go index e33977195e1cd..24b3770a055d4 100644 --- a/tsc/internal/testutil/harnessutil/checkorderfuzz.go +++ b/tsc/internal/testutil/harnessutil/checkorderfuzz.go @@ -42,6 +42,9 @@ const ( fuzzQuerySymbol fuzzQueryContextualType fuzzQuerySignature + fuzzQueryTypeOfSymbol + fuzzQueryMembers + fuzzQueryDerivedTypes fuzzQueryDiagnostics fuzzQueryEmit fuzzQueryHover @@ -49,6 +52,10 @@ const ( fuzzQuerySignatureHelp fuzzQueryCompletion fuzzQueryInlayHints + fuzzQueryReferences + fuzzQueryHighlights + fuzzQueryTypeDefinition + fuzzQueryImplementation ) var fuzzQueryKindNames = [...]string{ @@ -56,10 +63,17 @@ var fuzzQueryKindNames = [...]string{ fuzzQuerySymbol: "symbol", fuzzQueryContextualType: "contextual type", fuzzQuerySignature: "signature", + fuzzQueryTypeOfSymbol: "type of symbol", + fuzzQueryMembers: "members", + fuzzQueryDerivedTypes: "derived types", fuzzQueryHover: "hover", fuzzQueryDefinition: "definition", fuzzQuerySignatureHelp: "signature help", fuzzQueryCompletion: "completions", + fuzzQueryReferences: "references", + fuzzQueryHighlights: "highlights", + fuzzQueryTypeDefinition: "type definition", + fuzzQueryImplementation: "implementation", } func (q fuzzQuery) String() string { @@ -237,7 +251,20 @@ func fuzzHasType(node *ast.Node) bool { // fuzzNodeQueryKinds returns the kinds of query that apply to node. func fuzzNodeQueryKinds(node *ast.Node) []fuzzQueryKind { - kinds := make([]fuzzQueryKind, 0, 4) + kinds := fuzzBasicQueryKinds(node) + if ast.IsIdentifier(node) { + kinds = append(kinds, fuzzQueryTypeOfSymbol, fuzzQueryDerivedTypes) + if ast.IsDeclarationName(node) { + kinds = append(kinds, fuzzQueryMembers) + } + } + return fuzzLSNodeQueryKinds(node, kinds) +} + +// fuzzBasicQueryKinds returns the kinds of query that apply to node that +// the typesfirst check order asks of every node. +func fuzzBasicQueryKinds(node *ast.Node) []fuzzQueryKind { + kinds := make([]fuzzQueryKind, 0, 8) if fuzzHasType(node) { kinds = append(kinds, fuzzQueryType) if ast.IsExpression(node) { @@ -248,7 +275,7 @@ func fuzzNodeQueryKinds(node *ast.Node) []fuzzQueryKind { if ast.IsCallLikeExpression(node) { kinds = append(kinds, fuzzQuerySignature) } - return fuzzLSNodeQueryKinds(node, kinds) + return kinds } // fuzzSymbolIDs matches the symbol IDs that the names of unique symbol @@ -277,10 +304,61 @@ func fuzzQueryResultWithIDs(c *checker.Checker, node *ast.Node, kind fuzzQueryKi if signature := c.GetResolvedSignature(node); signature != nil { return c.SignatureToStringEx(signature, nil, checker.TypeFormatFlagsNone, nil) } + case fuzzQueryTypeOfSymbol: + if symbol := c.GetSymbolAtLocation(node); symbol != nil { + result := c.TypeToString(c.GetTypeOfSymbol(symbol)) + if symbol.Flags()&(ast.SymbolFlagsClass|ast.SymbolFlagsInterface|ast.SymbolFlagsTypeAlias|ast.SymbolFlagsEnum|ast.SymbolFlagsTypeParameter) != 0 { + result += "; declared " + c.TypeToString(c.GetDeclaredTypeOfSymbol(symbol)) + } + return result + } + case fuzzQueryMembers: + return fuzzMembers(c, node) + case fuzzQueryDerivedTypes: + t := c.GetTypeAtLocation(node) + var parts []string + for _, d := range []*checker.Type{c.GetApparentType(t), c.GetAwaitedType(t), c.GetBaseConstraintOfType(t)} { + if d == nil { + parts = append(parts, "none") + } else { + parts = append(parts, c.TypeToString(d)) + } + } + return strings.Join(parts, "; ") } return "" } +// fuzzMembers returns the properties, signatures and base types of the type +// of a declaration name, the first few of each. +func fuzzMembers(c *checker.Checker, node *ast.Node) string { + const limit = 12 + var b strings.Builder + t := c.GetTypeAtLocation(node) + for i, prop := range c.GetPropertiesOfType(t) { + if i == limit { + b.WriteString("...; ") + break + } + fmt.Fprintf(&b, "%s: %s; ", c.SymbolToString(prop), c.TypeToString(c.GetTypeOfSymbol(prop))) + } + for _, kind := range []checker.SignatureKind{checker.SignatureKindCall, checker.SignatureKindConstruct} { + for i, signature := range c.GetSignaturesOfType(t, kind) { + if i == limit { + b.WriteString("...; ") + break + } + fmt.Fprintf(&b, "%s; ", c.SignatureToStringEx(signature, nil, checker.TypeFormatFlagsNone, nil)) + } + } + if symbol := c.GetSymbolAtLocation(node); symbol != nil && symbol.Flags()&(ast.SymbolFlagsClass|ast.SymbolFlagsInterface) != 0 { + for _, base := range c.GetBaseTypes(c.GetDeclaredTypeOfSymbol(symbol)) { + fmt.Fprintf(&b, "base %s; ", c.TypeToString(base)) + } + } + return b.String() +} + // fuzzAssignCheckers returns, for half of the seeds, a random assignment of // files to up to four checkers, so that results cannot depend on which // files share a checker. diff --git a/tsc/internal/testutil/harnessutil/checkorderfuzz_ls.go b/tsc/internal/testutil/harnessutil/checkorderfuzz_ls.go index d949355a9d07b..d5158b0aec2db 100644 --- a/tsc/internal/testutil/harnessutil/checkorderfuzz_ls.go +++ b/tsc/internal/testutil/harnessutil/checkorderfuzz_ls.go @@ -22,9 +22,10 @@ import ( ) // Setting TS_CHECK_ORDER_FUZZ_LS=1 as well also makes language service -// requests queries: hover and definition at identifiers, signature help at -// arguments, member completions after property accesses, and the inlay hints -// of a file. Their results must not differ either. +// requests queries: hover, definition, type definition and highlights at +// identifiers, implementation and references at declaration names, signature +// help at arguments, member completions after property accesses, and the +// inlay hints of a file. Their results must not differ either. var fuzzLS = os.Getenv("TS_CHECK_ORDER_FUZZ_LS") != "" // fuzzLSNodeQueryKinds returns the kinds of language service request that @@ -34,7 +35,12 @@ func fuzzLSNodeQueryKinds(node *ast.Node, kinds []fuzzQueryKind) []fuzzQueryKind return kinds } if ast.IsIdentifier(node) { - kinds = append(kinds, fuzzQueryHover, fuzzQueryDefinition) + kinds = append(kinds, fuzzQueryHover, fuzzQueryDefinition, fuzzQueryTypeDefinition, fuzzQueryHighlights) + if ast.IsDeclarationName(node) { + // These search the whole program, so only declarations are + // asked, each of which their uses lead to. + kinds = append(kinds, fuzzQueryImplementation, fuzzQueryReferences) + } if ast.IsPropertyAccessExpression(node.Parent) && node.Parent.Name() == node { kinds = append(kinds, fuzzQueryCompletion) } @@ -113,6 +119,41 @@ func fuzzLSResult(ctx context.Context, lang *fuzzLSService, file *ast.SourceFile }) } result = completions + case fuzzQueryTypeDefinition, fuzzQueryImplementation: + var locations lsproto.LocationOrLocationsOrDefinitionLinksOrNull + if kind == fuzzQueryTypeDefinition { + locations, err = lang.ProvideTypeDefinition(ctx, uri, position(scanner.GetTokenPosOfNode(node, file, false))) + } else { + locations, err = lang.ProvideImplementations(ctx, &lsproto.ImplementationParams{ + TextDocument: lsproto.TextDocumentIdentifier{Uri: uri}, + Position: position(scanner.GetTokenPosOfNode(node, file, false)), + }, nil /*orchestrator*/) + } + if locations.Locations != nil { + fuzzSortByJSON(*locations.Locations) + } + if locations.DefinitionLinks != nil { + fuzzSortByJSON(*locations.DefinitionLinks) + } + result = locations + case fuzzQueryReferences: + var references lsproto.ReferencesResponse + references, err = lang.ProvideReferences(ctx, &lsproto.ReferenceParams{ + TextDocument: lsproto.TextDocumentIdentifier{Uri: uri}, + Position: position(scanner.GetTokenPosOfNode(node, file, false)), + Context: &lsproto.ReferenceContext{IncludeDeclaration: true}, + }, nil /*orchestrator*/) + if references.Locations != nil { + fuzzSortByJSON(*references.Locations) + } + result = references + case fuzzQueryHighlights: + var highlights lsproto.DocumentHighlightResponse + highlights, err = lang.ProvideDocumentHighlights(ctx, uri, position(scanner.GetTokenPosOfNode(node, file, false))) + if highlights.DocumentHighlights != nil { + fuzzSortByJSON(*highlights.DocumentHighlights) + } + result = highlights case fuzzQueryInlayHints: result, err = lang.ProvideInlayHint(ctx, &lsproto.InlayHintParams{ TextDocument: lsproto.TextDocumentIdentifier{Uri: uri}, @@ -132,6 +173,16 @@ func fuzzLSResult(ctx context.Context, lang *fuzzLSService, file *ast.SourceFile return string(text) } +// fuzzSortByJSON sorts locations, which requests find in no particular +// order. +func fuzzSortByJSON[T any](items []T) { + key := func(item T) string { + text, _ := json.Marshal(item) + return string(text) + } + slices.SortStableFunc(items, func(a, b T) int { return cmp.Compare(key(a), key(b)) }) +} + func fuzzSortText(item *lsproto.CompletionItem) string { if item.SortText == nil { return "" diff --git a/tsc/internal/testutil/harnessutil/harnessutil.go b/tsc/internal/testutil/harnessutil/harnessutil.go index eaec6c7286621..7ef7bfdf647fe 100644 --- a/tsc/internal/testutil/harnessutil/harnessutil.go +++ b/tsc/internal/testutil/harnessutil/harnessutil.go @@ -845,7 +845,7 @@ func queryNodes(c *checker.Checker, file *ast.SourceFile) { file.AsNode().ForEachChild(visit) for _, n := range slices.Backward(nodes) { if ast.IsExpressionNode(n) || n.Kind == ast.KindIdentifier || ast.IsDeclarationName(n) { - for _, kind := range fuzzNodeQueryKinds(n) { + for _, kind := range fuzzBasicQueryKinds(n) { fuzzQueryResult(c, n, kind) } }

+ +interface VisitObj {} +declare class NodePath { +>NodePath : NodePath + + parentPath: NodePath>; +>parentPath : NodePath> + + get: Get; +>get : Get +} +type Get = T extends Array ? Array> : never; +>Get : Get + diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).errors.txt b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).errors.txt new file mode 100644 index 0000000000000..a1514a254b857 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).errors.txt @@ -0,0 +1,47 @@ +deleteExpressionMustBeOptional.ts(34,10): error TS2339: Property 'j' does not exist on type 'Foo'. + + +==== deleteExpressionMustBeOptional.ts (1 errors) ==== + interface Foo { + a: number + b: number | undefined + c: number | null + d?: number + e: number | undefined | null + f?: number | undefined | null + g: unknown + h: any + i: never + } + + interface AA { + [s: string]: number + } + + type BB = { + [P in keyof any]: number + } + + declare const f: Foo + declare const a: AA + declare const b: BB + + delete f.a + delete f.b + delete f.c + delete f.d + delete f.e + delete f.f + delete f.g + delete f.h + delete f.i + delete f.j + ~ +!!! error TS2339: Property 'j' does not exist on type 'Foo'. + + delete a.a + delete a.b + + delete b.a + delete b.b + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).js b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).js new file mode 100644 index 0000000000000..262eac63738f9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).js @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +//// [deleteExpressionMustBeOptional.ts] +interface Foo { + a: number + b: number | undefined + c: number | null + d?: number + e: number | undefined | null + f?: number | undefined | null + g: unknown + h: any + i: never +} + +interface AA { + [s: string]: number +} + +type BB = { + [P in keyof any]: number +} + +declare const f: Foo +declare const a: AA +declare const b: BB + +delete f.a +delete f.b +delete f.c +delete f.d +delete f.e +delete f.f +delete f.g +delete f.h +delete f.i +delete f.j + +delete a.a +delete a.b + +delete b.a +delete b.b + + +//// [deleteExpressionMustBeOptional.js] +"use strict"; +delete f.a; +delete f.b; +delete f.c; +delete f.d; +delete f.e; +delete f.f; +delete f.g; +delete f.h; +delete f.i; +delete f.j; +delete a.a; +delete a.b; +delete b.a; +delete b.b; diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).symbols b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).symbols new file mode 100644 index 0000000000000..9182dec2bc43d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).symbols @@ -0,0 +1,124 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +=== deleteExpressionMustBeOptional.ts === +interface Foo { +>Foo : Symbol(Foo, Decl(deleteExpressionMustBeOptional.ts, 0, 0)) + + a: number +>a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) + + b: number | undefined +>b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) + + c: number | null +>c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) + + d?: number +>d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) + + e: number | undefined | null +>e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) + + f?: number | undefined | null +>f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) + + g: unknown +>g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) + + h: any +>h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) + + i: never +>i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) +} + +interface AA { +>AA : Symbol(AA, Decl(deleteExpressionMustBeOptional.ts, 10, 1)) + + [s: string]: number +>s : Symbol(s, Decl(deleteExpressionMustBeOptional.ts, 13, 5)) +} + +type BB = { +>BB : Symbol(BB, Decl(deleteExpressionMustBeOptional.ts, 14, 1)) + + [P in keyof any]: number +>P : Symbol(P, Decl(deleteExpressionMustBeOptional.ts, 17, 5)) +} + +declare const f: Foo +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>Foo : Symbol(Foo, Decl(deleteExpressionMustBeOptional.ts, 0, 0)) + +declare const a: AA +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>AA : Symbol(AA, Decl(deleteExpressionMustBeOptional.ts, 10, 1)) + +declare const b: BB +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) +>BB : Symbol(BB, Decl(deleteExpressionMustBeOptional.ts, 14, 1)) + +delete f.a +>f.a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) + +delete f.b +>f.b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) + +delete f.c +>f.c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) + +delete f.d +>f.d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) + +delete f.e +>f.e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) + +delete f.f +>f.f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) + +delete f.g +>f.g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) + +delete f.h +>f.h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) + +delete f.i +>f.i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) + +delete f.j +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) + +delete a.a +>a.a : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>a : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) + +delete a.b +>a.b : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>b : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) + +delete b.a +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) + +delete b.b +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).types b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).types new file mode 100644 index 0000000000000..3c0777475c7fc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=false).types @@ -0,0 +1,136 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +=== deleteExpressionMustBeOptional.ts === +interface Foo { + a: number +>a : number + + b: number | undefined +>b : number + + c: number | null +>c : number + + d?: number +>d : number + + e: number | undefined | null +>e : number + + f?: number | undefined | null +>f : number + + g: unknown +>g : unknown + + h: any +>h : any + + i: never +>i : never +} + +interface AA { + [s: string]: number +>s : string +} + +type BB = { +>BB : BB + + [P in keyof any]: number +} + +declare const f: Foo +>f : Foo + +declare const a: AA +>a : AA + +declare const b: BB +>b : BB + +delete f.a +>delete f.a : boolean +>f.a : number +>f : Foo +>a : number + +delete f.b +>delete f.b : boolean +>f.b : number +>f : Foo +>b : number + +delete f.c +>delete f.c : boolean +>f.c : number +>f : Foo +>c : number + +delete f.d +>delete f.d : boolean +>f.d : number +>f : Foo +>d : number + +delete f.e +>delete f.e : boolean +>f.e : number +>f : Foo +>e : number + +delete f.f +>delete f.f : boolean +>f.f : number +>f : Foo +>f : number + +delete f.g +>delete f.g : boolean +>f.g : unknown +>f : Foo +>g : unknown + +delete f.h +>delete f.h : boolean +>f.h : any +>f : Foo +>h : any + +delete f.i +>delete f.i : boolean +>f.i : never +>f : Foo +>i : never + +delete f.j +>delete f.j : boolean +>f.j : any +>f : Foo +>j : any + +delete a.a +>delete a.a : boolean +>a.a : number +>a : AA +>a : number + +delete a.b +>delete a.b : boolean +>a.b : number +>a : AA +>b : number + +delete b.a +>delete b.a : boolean +>b.a : number +>b : BB +>a : number + +delete b.b +>delete b.b : boolean +>b.b : number +>b : BB +>b : number + diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).errors.txt b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).errors.txt new file mode 100644 index 0000000000000..f3abcf0386f5b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).errors.txt @@ -0,0 +1,53 @@ +deleteExpressionMustBeOptional.ts(25,8): error TS2790: The operand of a 'delete' operator must be optional. +deleteExpressionMustBeOptional.ts(27,8): error TS2790: The operand of a 'delete' operator must be optional. +deleteExpressionMustBeOptional.ts(34,10): error TS2339: Property 'j' does not exist on type 'Foo'. + + +==== deleteExpressionMustBeOptional.ts (3 errors) ==== + interface Foo { + a: number + b: number | undefined + c: number | null + d?: number + e: number | undefined | null + f?: number | undefined | null + g: unknown + h: any + i: never + } + + interface AA { + [s: string]: number + } + + type BB = { + [P in keyof any]: number + } + + declare const f: Foo + declare const a: AA + declare const b: BB + + delete f.a + ~~~ +!!! error TS2790: The operand of a 'delete' operator must be optional. + delete f.b + delete f.c + ~~~ +!!! error TS2790: The operand of a 'delete' operator must be optional. + delete f.d + delete f.e + delete f.f + delete f.g + delete f.h + delete f.i + delete f.j + ~ +!!! error TS2339: Property 'j' does not exist on type 'Foo'. + + delete a.a + delete a.b + + delete b.a + delete b.b + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).js b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).js new file mode 100644 index 0000000000000..262eac63738f9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).js @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +//// [deleteExpressionMustBeOptional.ts] +interface Foo { + a: number + b: number | undefined + c: number | null + d?: number + e: number | undefined | null + f?: number | undefined | null + g: unknown + h: any + i: never +} + +interface AA { + [s: string]: number +} + +type BB = { + [P in keyof any]: number +} + +declare const f: Foo +declare const a: AA +declare const b: BB + +delete f.a +delete f.b +delete f.c +delete f.d +delete f.e +delete f.f +delete f.g +delete f.h +delete f.i +delete f.j + +delete a.a +delete a.b + +delete b.a +delete b.b + + +//// [deleteExpressionMustBeOptional.js] +"use strict"; +delete f.a; +delete f.b; +delete f.c; +delete f.d; +delete f.e; +delete f.f; +delete f.g; +delete f.h; +delete f.i; +delete f.j; +delete a.a; +delete a.b; +delete b.a; +delete b.b; diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).symbols b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).symbols new file mode 100644 index 0000000000000..9182dec2bc43d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).symbols @@ -0,0 +1,124 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +=== deleteExpressionMustBeOptional.ts === +interface Foo { +>Foo : Symbol(Foo, Decl(deleteExpressionMustBeOptional.ts, 0, 0)) + + a: number +>a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) + + b: number | undefined +>b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) + + c: number | null +>c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) + + d?: number +>d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) + + e: number | undefined | null +>e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) + + f?: number | undefined | null +>f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) + + g: unknown +>g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) + + h: any +>h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) + + i: never +>i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) +} + +interface AA { +>AA : Symbol(AA, Decl(deleteExpressionMustBeOptional.ts, 10, 1)) + + [s: string]: number +>s : Symbol(s, Decl(deleteExpressionMustBeOptional.ts, 13, 5)) +} + +type BB = { +>BB : Symbol(BB, Decl(deleteExpressionMustBeOptional.ts, 14, 1)) + + [P in keyof any]: number +>P : Symbol(P, Decl(deleteExpressionMustBeOptional.ts, 17, 5)) +} + +declare const f: Foo +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>Foo : Symbol(Foo, Decl(deleteExpressionMustBeOptional.ts, 0, 0)) + +declare const a: AA +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>AA : Symbol(AA, Decl(deleteExpressionMustBeOptional.ts, 10, 1)) + +declare const b: BB +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) +>BB : Symbol(BB, Decl(deleteExpressionMustBeOptional.ts, 14, 1)) + +delete f.a +>f.a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) + +delete f.b +>f.b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) + +delete f.c +>f.c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) + +delete f.d +>f.d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) + +delete f.e +>f.e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) + +delete f.f +>f.f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) + +delete f.g +>f.g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) + +delete f.h +>f.h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) + +delete f.i +>f.i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) + +delete f.j +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) + +delete a.a +>a.a : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>a : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) + +delete a.b +>a.b : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>b : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) + +delete b.a +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) + +delete b.b +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).types b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).types new file mode 100644 index 0000000000000..9a17de9e03b2e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=default,strict=true).types @@ -0,0 +1,136 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +=== deleteExpressionMustBeOptional.ts === +interface Foo { + a: number +>a : number + + b: number | undefined +>b : number | undefined + + c: number | null +>c : number | null + + d?: number +>d : number | undefined + + e: number | undefined | null +>e : number | null | undefined + + f?: number | undefined | null +>f : number | null | undefined + + g: unknown +>g : unknown + + h: any +>h : any + + i: never +>i : never +} + +interface AA { + [s: string]: number +>s : string +} + +type BB = { +>BB : BB + + [P in keyof any]: number +} + +declare const f: Foo +>f : Foo + +declare const a: AA +>a : AA + +declare const b: BB +>b : BB + +delete f.a +>delete f.a : boolean +>f.a : number +>f : Foo +>a : number + +delete f.b +>delete f.b : boolean +>f.b : number | undefined +>f : Foo +>b : number | undefined + +delete f.c +>delete f.c : boolean +>f.c : number | null +>f : Foo +>c : number | null + +delete f.d +>delete f.d : boolean +>f.d : number | undefined +>f : Foo +>d : number | undefined + +delete f.e +>delete f.e : boolean +>f.e : number | null | undefined +>f : Foo +>e : number | null | undefined + +delete f.f +>delete f.f : boolean +>f.f : number | null | undefined +>f : Foo +>f : number | null | undefined + +delete f.g +>delete f.g : boolean +>f.g : unknown +>f : Foo +>g : unknown + +delete f.h +>delete f.h : boolean +>f.h : any +>f : Foo +>h : any + +delete f.i +>delete f.i : boolean +>f.i : never +>f : Foo +>i : never + +delete f.j +>delete f.j : boolean +>f.j : any +>f : Foo +>j : any + +delete a.a +>delete a.a : boolean +>a.a : number +>a : AA +>a : number + +delete a.b +>delete a.b : boolean +>a.b : number +>a : AA +>b : number + +delete b.a +>delete b.a : boolean +>b.a : number +>b : BB +>a : number + +delete b.b +>delete b.b : boolean +>b.b : number +>b : BB +>b : number + diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).errors.txt b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).errors.txt new file mode 100644 index 0000000000000..a1514a254b857 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).errors.txt @@ -0,0 +1,47 @@ +deleteExpressionMustBeOptional.ts(34,10): error TS2339: Property 'j' does not exist on type 'Foo'. + + +==== deleteExpressionMustBeOptional.ts (1 errors) ==== + interface Foo { + a: number + b: number | undefined + c: number | null + d?: number + e: number | undefined | null + f?: number | undefined | null + g: unknown + h: any + i: never + } + + interface AA { + [s: string]: number + } + + type BB = { + [P in keyof any]: number + } + + declare const f: Foo + declare const a: AA + declare const b: BB + + delete f.a + delete f.b + delete f.c + delete f.d + delete f.e + delete f.f + delete f.g + delete f.h + delete f.i + delete f.j + ~ +!!! error TS2339: Property 'j' does not exist on type 'Foo'. + + delete a.a + delete a.b + + delete b.a + delete b.b + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).js b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).js new file mode 100644 index 0000000000000..262eac63738f9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).js @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +//// [deleteExpressionMustBeOptional.ts] +interface Foo { + a: number + b: number | undefined + c: number | null + d?: number + e: number | undefined | null + f?: number | undefined | null + g: unknown + h: any + i: never +} + +interface AA { + [s: string]: number +} + +type BB = { + [P in keyof any]: number +} + +declare const f: Foo +declare const a: AA +declare const b: BB + +delete f.a +delete f.b +delete f.c +delete f.d +delete f.e +delete f.f +delete f.g +delete f.h +delete f.i +delete f.j + +delete a.a +delete a.b + +delete b.a +delete b.b + + +//// [deleteExpressionMustBeOptional.js] +"use strict"; +delete f.a; +delete f.b; +delete f.c; +delete f.d; +delete f.e; +delete f.f; +delete f.g; +delete f.h; +delete f.i; +delete f.j; +delete a.a; +delete a.b; +delete b.a; +delete b.b; diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).symbols b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).symbols new file mode 100644 index 0000000000000..9182dec2bc43d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).symbols @@ -0,0 +1,124 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +=== deleteExpressionMustBeOptional.ts === +interface Foo { +>Foo : Symbol(Foo, Decl(deleteExpressionMustBeOptional.ts, 0, 0)) + + a: number +>a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) + + b: number | undefined +>b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) + + c: number | null +>c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) + + d?: number +>d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) + + e: number | undefined | null +>e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) + + f?: number | undefined | null +>f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) + + g: unknown +>g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) + + h: any +>h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) + + i: never +>i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) +} + +interface AA { +>AA : Symbol(AA, Decl(deleteExpressionMustBeOptional.ts, 10, 1)) + + [s: string]: number +>s : Symbol(s, Decl(deleteExpressionMustBeOptional.ts, 13, 5)) +} + +type BB = { +>BB : Symbol(BB, Decl(deleteExpressionMustBeOptional.ts, 14, 1)) + + [P in keyof any]: number +>P : Symbol(P, Decl(deleteExpressionMustBeOptional.ts, 17, 5)) +} + +declare const f: Foo +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>Foo : Symbol(Foo, Decl(deleteExpressionMustBeOptional.ts, 0, 0)) + +declare const a: AA +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>AA : Symbol(AA, Decl(deleteExpressionMustBeOptional.ts, 10, 1)) + +declare const b: BB +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) +>BB : Symbol(BB, Decl(deleteExpressionMustBeOptional.ts, 14, 1)) + +delete f.a +>f.a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) + +delete f.b +>f.b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) + +delete f.c +>f.c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) + +delete f.d +>f.d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) + +delete f.e +>f.e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) + +delete f.f +>f.f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) + +delete f.g +>f.g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) + +delete f.h +>f.h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) + +delete f.i +>f.i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) + +delete f.j +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) + +delete a.a +>a.a : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>a : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) + +delete a.b +>a.b : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>b : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) + +delete b.a +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) + +delete b.b +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).types b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).types new file mode 100644 index 0000000000000..3c0777475c7fc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=false).types @@ -0,0 +1,136 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +=== deleteExpressionMustBeOptional.ts === +interface Foo { + a: number +>a : number + + b: number | undefined +>b : number + + c: number | null +>c : number + + d?: number +>d : number + + e: number | undefined | null +>e : number + + f?: number | undefined | null +>f : number + + g: unknown +>g : unknown + + h: any +>h : any + + i: never +>i : never +} + +interface AA { + [s: string]: number +>s : string +} + +type BB = { +>BB : BB + + [P in keyof any]: number +} + +declare const f: Foo +>f : Foo + +declare const a: AA +>a : AA + +declare const b: BB +>b : BB + +delete f.a +>delete f.a : boolean +>f.a : number +>f : Foo +>a : number + +delete f.b +>delete f.b : boolean +>f.b : number +>f : Foo +>b : number + +delete f.c +>delete f.c : boolean +>f.c : number +>f : Foo +>c : number + +delete f.d +>delete f.d : boolean +>f.d : number +>f : Foo +>d : number + +delete f.e +>delete f.e : boolean +>f.e : number +>f : Foo +>e : number + +delete f.f +>delete f.f : boolean +>f.f : number +>f : Foo +>f : number + +delete f.g +>delete f.g : boolean +>f.g : unknown +>f : Foo +>g : unknown + +delete f.h +>delete f.h : boolean +>f.h : any +>f : Foo +>h : any + +delete f.i +>delete f.i : boolean +>f.i : never +>f : Foo +>i : never + +delete f.j +>delete f.j : boolean +>f.j : any +>f : Foo +>j : any + +delete a.a +>delete a.a : boolean +>a.a : number +>a : AA +>a : number + +delete a.b +>delete a.b : boolean +>a.b : number +>a : AA +>b : number + +delete b.a +>delete b.a : boolean +>b.a : number +>b : BB +>a : number + +delete b.b +>delete b.b : boolean +>b.b : number +>b : BB +>b : number + diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).errors.txt b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).errors.txt new file mode 100644 index 0000000000000..d3c1fd53cc93f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).errors.txt @@ -0,0 +1,59 @@ +deleteExpressionMustBeOptional.ts(25,8): error TS2790: The operand of a 'delete' operator must be optional. +deleteExpressionMustBeOptional.ts(27,8): error TS2790: The operand of a 'delete' operator must be optional. +deleteExpressionMustBeOptional.ts(34,10): error TS2339: Property 'j' does not exist on type 'Foo'. +deleteExpressionMustBeOptional.ts(36,8): error TS2790: The operand of a 'delete' operator must be optional. +deleteExpressionMustBeOptional.ts(37,8): error TS2790: The operand of a 'delete' operator must be optional. + + +==== deleteExpressionMustBeOptional.ts (5 errors) ==== + interface Foo { + a: number + b: number | undefined + c: number | null + d?: number + e: number | undefined | null + f?: number | undefined | null + g: unknown + h: any + i: never + } + + interface AA { + [s: string]: number + } + + type BB = { + [P in keyof any]: number + } + + declare const f: Foo + declare const a: AA + declare const b: BB + + delete f.a + ~~~ +!!! error TS2790: The operand of a 'delete' operator must be optional. + delete f.b + delete f.c + ~~~ +!!! error TS2790: The operand of a 'delete' operator must be optional. + delete f.d + delete f.e + delete f.f + delete f.g + delete f.h + delete f.i + delete f.j + ~ +!!! error TS2339: Property 'j' does not exist on type 'Foo'. + + delete a.a + ~~~ +!!! error TS2790: The operand of a 'delete' operator must be optional. + delete a.b + ~~~ +!!! error TS2790: The operand of a 'delete' operator must be optional. + + delete b.a + delete b.b + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).js b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).js new file mode 100644 index 0000000000000..262eac63738f9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).js @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +//// [deleteExpressionMustBeOptional.ts] +interface Foo { + a: number + b: number | undefined + c: number | null + d?: number + e: number | undefined | null + f?: number | undefined | null + g: unknown + h: any + i: never +} + +interface AA { + [s: string]: number +} + +type BB = { + [P in keyof any]: number +} + +declare const f: Foo +declare const a: AA +declare const b: BB + +delete f.a +delete f.b +delete f.c +delete f.d +delete f.e +delete f.f +delete f.g +delete f.h +delete f.i +delete f.j + +delete a.a +delete a.b + +delete b.a +delete b.b + + +//// [deleteExpressionMustBeOptional.js] +"use strict"; +delete f.a; +delete f.b; +delete f.c; +delete f.d; +delete f.e; +delete f.f; +delete f.g; +delete f.h; +delete f.i; +delete f.j; +delete a.a; +delete a.b; +delete b.a; +delete b.b; diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).symbols b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).symbols new file mode 100644 index 0000000000000..9182dec2bc43d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).symbols @@ -0,0 +1,124 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +=== deleteExpressionMustBeOptional.ts === +interface Foo { +>Foo : Symbol(Foo, Decl(deleteExpressionMustBeOptional.ts, 0, 0)) + + a: number +>a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) + + b: number | undefined +>b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) + + c: number | null +>c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) + + d?: number +>d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) + + e: number | undefined | null +>e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) + + f?: number | undefined | null +>f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) + + g: unknown +>g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) + + h: any +>h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) + + i: never +>i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) +} + +interface AA { +>AA : Symbol(AA, Decl(deleteExpressionMustBeOptional.ts, 10, 1)) + + [s: string]: number +>s : Symbol(s, Decl(deleteExpressionMustBeOptional.ts, 13, 5)) +} + +type BB = { +>BB : Symbol(BB, Decl(deleteExpressionMustBeOptional.ts, 14, 1)) + + [P in keyof any]: number +>P : Symbol(P, Decl(deleteExpressionMustBeOptional.ts, 17, 5)) +} + +declare const f: Foo +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>Foo : Symbol(Foo, Decl(deleteExpressionMustBeOptional.ts, 0, 0)) + +declare const a: AA +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>AA : Symbol(AA, Decl(deleteExpressionMustBeOptional.ts, 10, 1)) + +declare const b: BB +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) +>BB : Symbol(BB, Decl(deleteExpressionMustBeOptional.ts, 14, 1)) + +delete f.a +>f.a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>a : Symbol(Foo.a, Decl(deleteExpressionMustBeOptional.ts, 0, 15)) + +delete f.b +>f.b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>b : Symbol(Foo.b, Decl(deleteExpressionMustBeOptional.ts, 1, 13)) + +delete f.c +>f.c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>c : Symbol(Foo.c, Decl(deleteExpressionMustBeOptional.ts, 2, 25)) + +delete f.d +>f.d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>d : Symbol(Foo.d, Decl(deleteExpressionMustBeOptional.ts, 3, 20)) + +delete f.e +>f.e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>e : Symbol(Foo.e, Decl(deleteExpressionMustBeOptional.ts, 4, 14)) + +delete f.f +>f.f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>f : Symbol(Foo.f, Decl(deleteExpressionMustBeOptional.ts, 5, 32)) + +delete f.g +>f.g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>g : Symbol(Foo.g, Decl(deleteExpressionMustBeOptional.ts, 6, 33)) + +delete f.h +>f.h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>h : Symbol(Foo.h, Decl(deleteExpressionMustBeOptional.ts, 7, 14)) + +delete f.i +>f.i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) +>i : Symbol(Foo.i, Decl(deleteExpressionMustBeOptional.ts, 8, 10)) + +delete f.j +>f : Symbol(f, Decl(deleteExpressionMustBeOptional.ts, 20, 13)) + +delete a.a +>a.a : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>a : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) + +delete a.b +>a.b : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) +>a : Symbol(a, Decl(deleteExpressionMustBeOptional.ts, 21, 13)) +>b : Symbol(AA.__index, Decl(deleteExpressionMustBeOptional.ts, 12, 14)) + +delete b.a +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) + +delete b.b +>b : Symbol(b, Decl(deleteExpressionMustBeOptional.ts, 22, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).types b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).types new file mode 100644 index 0000000000000..9a17de9e03b2e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/deleteExpressionMustBeOptional(checkorder=typesfirst,strict=true).types @@ -0,0 +1,136 @@ +//// [tests/cases/compiler/deleteExpressionMustBeOptional.ts] //// + +=== deleteExpressionMustBeOptional.ts === +interface Foo { + a: number +>a : number + + b: number | undefined +>b : number | undefined + + c: number | null +>c : number | null + + d?: number +>d : number | undefined + + e: number | undefined | null +>e : number | null | undefined + + f?: number | undefined | null +>f : number | null | undefined + + g: unknown +>g : unknown + + h: any +>h : any + + i: never +>i : never +} + +interface AA { + [s: string]: number +>s : string +} + +type BB = { +>BB : BB + + [P in keyof any]: number +} + +declare const f: Foo +>f : Foo + +declare const a: AA +>a : AA + +declare const b: BB +>b : BB + +delete f.a +>delete f.a : boolean +>f.a : number +>f : Foo +>a : number + +delete f.b +>delete f.b : boolean +>f.b : number | undefined +>f : Foo +>b : number | undefined + +delete f.c +>delete f.c : boolean +>f.c : number | null +>f : Foo +>c : number | null + +delete f.d +>delete f.d : boolean +>f.d : number | undefined +>f : Foo +>d : number | undefined + +delete f.e +>delete f.e : boolean +>f.e : number | null | undefined +>f : Foo +>e : number | null | undefined + +delete f.f +>delete f.f : boolean +>f.f : number | null | undefined +>f : Foo +>f : number | null | undefined + +delete f.g +>delete f.g : boolean +>f.g : unknown +>f : Foo +>g : unknown + +delete f.h +>delete f.h : boolean +>f.h : any +>f : Foo +>h : any + +delete f.i +>delete f.i : boolean +>f.i : never +>f : Foo +>i : never + +delete f.j +>delete f.j : boolean +>f.j : any +>f : Foo +>j : any + +delete a.a +>delete a.a : boolean +>a.a : number +>a : AA +>a : number + +delete a.b +>delete a.b : boolean +>a.b : number +>a : AA +>b : number + +delete b.a +>delete b.a : boolean +>b.a : number +>b : BB +>a : number + +delete b.b +>delete b.b : boolean +>b.b : number +>b : BB +>b : number + diff --git a/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=default).symbols new file mode 100644 index 0000000000000..0aaf38011344f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=default).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/dependentDestructuringBindingElementInitializer.ts] //// + +=== dependentDestructuringBindingElementInitializer.ts === +type U = +>U : Symbol(U, Decl(dependentDestructuringBindingElementInitializer.ts, 0, 0)) + + | { kind: "a"; payload: number; extra?: unknown } +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 1, 7)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 1, 18)) +>extra : Symbol(extra, Decl(dependentDestructuringBindingElementInitializer.ts, 1, 35)) + + | { kind: "b"; payload: string; extra?: unknown }; +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 2, 7)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 2, 18)) +>extra : Symbol(extra, Decl(dependentDestructuringBindingElementInitializer.ts, 2, 35)) + +declare const u: U; +>u : Symbol(u, Decl(dependentDestructuringBindingElementInitializer.ts, 4, 13)) +>U : Symbol(U, Decl(dependentDestructuringBindingElementInitializer.ts, 0, 0)) + +const { + kind, +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 6, 7)) + + payload, +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 7, 9)) + + extra = kind === "a" ? payload.toFixed() : payload.toUpperCase(), +>extra : Symbol(extra, Decl(dependentDestructuringBindingElementInitializer.ts, 8, 12)) +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 6, 7)) +>payload.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 7, 9)) +>toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) +>payload.toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 7, 9)) +>toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) + +} = u; +>u : Symbol(u, Decl(dependentDestructuringBindingElementInitializer.ts, 4, 13)) + +function f({ +>f : Symbol(f, Decl(dependentDestructuringBindingElementInitializer.ts, 10, 6)) + + kind, +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 12, 12)) + + payload, +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 13, 9)) + + extra = kind === "a" ? payload.toFixed() : payload.toUpperCase(), +>extra : Symbol(extra, Decl(dependentDestructuringBindingElementInitializer.ts, 14, 12)) +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 12, 12)) +>payload.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 13, 9)) +>toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) +>payload.toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 13, 9)) +>toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) + +}: U) {} +>U : Symbol(U, Decl(dependentDestructuringBindingElementInitializer.ts, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=default).types new file mode 100644 index 0000000000000..0dcd3d8a64cef --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=default).types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/dependentDestructuringBindingElementInitializer.ts] //// + +=== dependentDestructuringBindingElementInitializer.ts === +type U = +>U : U + + | { kind: "a"; payload: number; extra?: unknown } +>kind : "a" +>payload : number +>extra : unknown + + | { kind: "b"; payload: string; extra?: unknown }; +>kind : "b" +>payload : string +>extra : unknown + +declare const u: U; +>u : U + +const { + kind, +>kind : "a" | "b" + + payload, +>payload : string | number + + extra = kind === "a" ? payload.toFixed() : payload.toUpperCase(), +>extra : unknown +>kind === "a" ? payload.toFixed() : payload.toUpperCase() : string +>kind === "a" : boolean +>kind : "a" | "b" +>"a" : "a" +>payload.toFixed() : string +>payload.toFixed : (fractionDigits?: number) => string +>payload : number +>toFixed : (fractionDigits?: number) => string +>payload.toUpperCase() : string +>payload.toUpperCase : () => string +>payload : string +>toUpperCase : () => string + +} = u; +>u : U + +function f({ +>f : ({ kind, payload, extra, }: U) => void + + kind, +>kind : "a" | "b" + + payload, +>payload : string | number + + extra = kind === "a" ? payload.toFixed() : payload.toUpperCase(), +>extra : unknown +>kind === "a" ? payload.toFixed() : payload.toUpperCase() : string +>kind === "a" : boolean +>kind : "a" | "b" +>"a" : "a" +>payload.toFixed() : string +>payload.toFixed : (fractionDigits?: number) => string +>payload : number +>toFixed : (fractionDigits?: number) => string +>payload.toUpperCase() : string +>payload.toUpperCase : () => string +>payload : string +>toUpperCase : () => string + +}: U) {} + diff --git a/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..0aaf38011344f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=typesfirst).symbols @@ -0,0 +1,62 @@ +//// [tests/cases/compiler/dependentDestructuringBindingElementInitializer.ts] //// + +=== dependentDestructuringBindingElementInitializer.ts === +type U = +>U : Symbol(U, Decl(dependentDestructuringBindingElementInitializer.ts, 0, 0)) + + | { kind: "a"; payload: number; extra?: unknown } +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 1, 7)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 1, 18)) +>extra : Symbol(extra, Decl(dependentDestructuringBindingElementInitializer.ts, 1, 35)) + + | { kind: "b"; payload: string; extra?: unknown }; +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 2, 7)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 2, 18)) +>extra : Symbol(extra, Decl(dependentDestructuringBindingElementInitializer.ts, 2, 35)) + +declare const u: U; +>u : Symbol(u, Decl(dependentDestructuringBindingElementInitializer.ts, 4, 13)) +>U : Symbol(U, Decl(dependentDestructuringBindingElementInitializer.ts, 0, 0)) + +const { + kind, +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 6, 7)) + + payload, +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 7, 9)) + + extra = kind === "a" ? payload.toFixed() : payload.toUpperCase(), +>extra : Symbol(extra, Decl(dependentDestructuringBindingElementInitializer.ts, 8, 12)) +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 6, 7)) +>payload.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 7, 9)) +>toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) +>payload.toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 7, 9)) +>toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) + +} = u; +>u : Symbol(u, Decl(dependentDestructuringBindingElementInitializer.ts, 4, 13)) + +function f({ +>f : Symbol(f, Decl(dependentDestructuringBindingElementInitializer.ts, 10, 6)) + + kind, +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 12, 12)) + + payload, +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 13, 9)) + + extra = kind === "a" ? payload.toFixed() : payload.toUpperCase(), +>extra : Symbol(extra, Decl(dependentDestructuringBindingElementInitializer.ts, 14, 12)) +>kind : Symbol(kind, Decl(dependentDestructuringBindingElementInitializer.ts, 12, 12)) +>payload.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 13, 9)) +>toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --)) +>payload.toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) +>payload : Symbol(payload, Decl(dependentDestructuringBindingElementInitializer.ts, 13, 9)) +>toUpperCase : Symbol(String.toUpperCase, Decl(lib.es5.d.ts, --, --)) + +}: U) {} +>U : Symbol(U, Decl(dependentDestructuringBindingElementInitializer.ts, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=typesfirst).types new file mode 100644 index 0000000000000..265e9b075cacf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/dependentDestructuringBindingElementInitializer(checkorder=typesfirst).types @@ -0,0 +1,70 @@ +//// [tests/cases/compiler/dependentDestructuringBindingElementInitializer.ts] //// + +=== dependentDestructuringBindingElementInitializer.ts === +type U = +>U : U + + | { kind: "a"; payload: number; extra?: unknown } +>kind : "a" +>payload : number +>extra : unknown + + | { kind: "b"; payload: string; extra?: unknown }; +>kind : "b" +>payload : string +>extra : unknown + +declare const u: U; +>u : U + +const { + kind, +>kind : "a" | "b" + + payload, +>payload : string | number + + extra = kind === "a" ? payload.toFixed() : payload.toUpperCase(), +>extra : any +>kind === "a" ? payload.toFixed() : payload.toUpperCase() : any +>kind === "a" : boolean +>kind : "a" | "b" +>"a" : "a" +>payload.toFixed() : string +>payload.toFixed : (fractionDigits?: number) => string +>payload : number +>toFixed : (fractionDigits?: number) => string +>payload.toUpperCase() : string +>payload.toUpperCase : () => string +>payload : string +>toUpperCase : () => string + +} = u; +>u : U + +function f({ +>f : ({ kind, payload, extra, }: U) => void + + kind, +>kind : "a" | "b" + + payload, +>payload : string | number + + extra = kind === "a" ? payload.toFixed() : payload.toUpperCase(), +>extra : unknown +>kind === "a" ? payload.toFixed() : payload.toUpperCase() : string +>kind === "a" : boolean +>kind : "a" | "b" +>"a" : "a" +>payload.toFixed() : string +>payload.toFixed : (fractionDigits?: number) => string +>payload : number +>toFixed : (fractionDigits?: number) => string +>payload.toUpperCase() : string +>payload.toUpperCase : () => string +>payload : string +>toUpperCase : () => string + +}: U) {} + diff --git a/tsc/testdata/baselines/reference/compiler/distributiveConstraintOfCircularCheckType.symbols b/tsc/testdata/baselines/reference/compiler/distributiveConstraintOfCircularCheckType.symbols new file mode 100644 index 0000000000000..06df0f2a50571 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/distributiveConstraintOfCircularCheckType.symbols @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/distributiveConstraintOfCircularCheckType.ts] //// + +=== distributiveConstraintOfCircularCheckType.ts === +// The base constraint of Collect is circular, since its +// constraint includes Collect, whose constraint includes itself. +// Distributing Parameters over that constraint leads back into the +// circularity, so Parameters> must instead have the +// constraint of its branches, unknown[], and be spreadable. + +type Collect = +>Collect : Symbol(Collect, Decl(distributiveConstraintOfCircularCheckType.ts, 0, 0)) +>F : Symbol(F, Decl(distributiveConstraintOfCircularCheckType.ts, 6, 13)) +>Result : Symbol(Result, Decl(distributiveConstraintOfCircularCheckType.ts, 6, 15)) + + Result & F extends (arg: infer A) => infer R +>Result : Symbol(Result, Decl(distributiveConstraintOfCircularCheckType.ts, 6, 15)) +>F : Symbol(F, Decl(distributiveConstraintOfCircularCheckType.ts, 6, 13)) +>arg : Symbol(arg, Decl(distributiveConstraintOfCircularCheckType.ts, 7, 24)) +>A : Symbol(A, Decl(distributiveConstraintOfCircularCheckType.ts, 7, 34)) +>R : Symbol(R, Decl(distributiveConstraintOfCircularCheckType.ts, 7, 46)) + + ? Collect | (() => R) +>Collect : Symbol(Collect, Decl(distributiveConstraintOfCircularCheckType.ts, 0, 0)) +>F : Symbol(F, Decl(distributiveConstraintOfCircularCheckType.ts, 6, 13)) +>F : Symbol(F, Decl(distributiveConstraintOfCircularCheckType.ts, 6, 13)) +>R : Symbol(R, Decl(distributiveConstraintOfCircularCheckType.ts, 7, 46)) + + : never; + +function pipe unknown>(args: Parameters>, f: F) { +>pipe : Symbol(pipe, Decl(distributiveConstraintOfCircularCheckType.ts, 9, 16)) +>F : Symbol(F, Decl(distributiveConstraintOfCircularCheckType.ts, 11, 14)) +>args : Symbol(args, Decl(distributiveConstraintOfCircularCheckType.ts, 11, 25)) +>args : Symbol(args, Decl(distributiveConstraintOfCircularCheckType.ts, 11, 51)) +>Parameters : Symbol(Parameters, Decl(lib.es5.d.ts, --, --)) +>Collect : Symbol(Collect, Decl(distributiveConstraintOfCircularCheckType.ts, 0, 0)) +>F : Symbol(F, Decl(distributiveConstraintOfCircularCheckType.ts, 11, 14)) +>f : Symbol(f, Decl(distributiveConstraintOfCircularCheckType.ts, 11, 89)) +>F : Symbol(F, Decl(distributiveConstraintOfCircularCheckType.ts, 11, 14)) + + f(...args); +>f : Symbol(f, Decl(distributiveConstraintOfCircularCheckType.ts, 11, 89)) +>args : Symbol(args, Decl(distributiveConstraintOfCircularCheckType.ts, 11, 51)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/distributiveConstraintOfCircularCheckType.types b/tsc/testdata/baselines/reference/compiler/distributiveConstraintOfCircularCheckType.types new file mode 100644 index 0000000000000..5a0f4a282fbac --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/distributiveConstraintOfCircularCheckType.types @@ -0,0 +1,31 @@ +//// [tests/cases/compiler/distributiveConstraintOfCircularCheckType.ts] //// + +=== distributiveConstraintOfCircularCheckType.ts === +// The base constraint of Collect is circular, since its +// constraint includes Collect, whose constraint includes itself. +// Distributing Parameters over that constraint leads back into the +// circularity, so Parameters> must instead have the +// constraint of its branches, unknown[], and be spreadable. + +type Collect = +>Collect : Collect + + Result & F extends (arg: infer A) => infer R +>arg : A + + ? Collect | (() => R) + : never; + +function pipe unknown>(args: Parameters>, f: F) { +>pipe : unknown>(args: Parameters>, f: F) => void +>args : any +>args : Parameters> +>f : F + + f(...args); +>f(...args) : unknown +>f : F +>...args : unknown +>args : Parameters> +} + diff --git a/tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.js b/tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.js new file mode 100644 index 0000000000000..774af8292c6a9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.js @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/enumMemberTypeCacheConsistency.ts] //// + +//// [enumMemberTypeCacheConsistency.ts] +enum E { + A = 0, + B = E.A.valueOf(), + C = 1, +} + +const member: Extract = E.C; + +//// [enumMemberTypeCacheConsistency.js] +"use strict"; +var E; +(function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = E.A.valueOf()] = "B"; + E[E["C"] = 1] = "C"; +})(E || (E = {})); +const member = E.C; + + +//// [enumMemberTypeCacheConsistency.d.ts] +declare enum E { + A = 0, + B, + C = 1 +} +declare const member: Extract; diff --git a/tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.symbols b/tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.symbols new file mode 100644 index 0000000000000..d527b2792f38e --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/enumMemberTypeCacheConsistency.ts] //// + +=== enumMemberTypeCacheConsistency.ts === +enum E { +>E : Symbol(E, Decl(enumMemberTypeCacheConsistency.ts, 0, 0)) + + A = 0, +>A : Symbol(E.A, Decl(enumMemberTypeCacheConsistency.ts, 0, 8)) + + B = E.A.valueOf(), +>B : Symbol(E.B, Decl(enumMemberTypeCacheConsistency.ts, 1, 10)) +>E.A.valueOf : Symbol(Number.valueOf, Decl(lib.es5.d.ts, --, --)) +>E.A : Symbol(E.A, Decl(enumMemberTypeCacheConsistency.ts, 0, 8)) +>E : Symbol(E, Decl(enumMemberTypeCacheConsistency.ts, 0, 0)) +>A : Symbol(E.A, Decl(enumMemberTypeCacheConsistency.ts, 0, 8)) +>valueOf : Symbol(Number.valueOf, Decl(lib.es5.d.ts, --, --)) + + C = 1, +>C : Symbol(E.C, Decl(enumMemberTypeCacheConsistency.ts, 2, 22)) +} + +const member: Extract = E.C; +>member : Symbol(member, Decl(enumMemberTypeCacheConsistency.ts, 6, 5)) +>Extract : Symbol(Extract, Decl(lib.es5.d.ts, --, --)) +>E : Symbol(E, Decl(enumMemberTypeCacheConsistency.ts, 0, 0)) +>E.C : Symbol(E.C, Decl(enumMemberTypeCacheConsistency.ts, 2, 22)) +>E : Symbol(E, Decl(enumMemberTypeCacheConsistency.ts, 0, 0)) +>C : Symbol(E.C, Decl(enumMemberTypeCacheConsistency.ts, 2, 22)) + diff --git a/tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.types b/tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.types new file mode 100644 index 0000000000000..118dbac02ec0b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/enumMemberTypeCacheConsistency.types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/enumMemberTypeCacheConsistency.ts] //// + +=== enumMemberTypeCacheConsistency.ts === +enum E { +>E : E + + A = 0, +>A : E.A +>0 : 0 + + B = E.A.valueOf(), +>B : E.B +>E.A.valueOf() : number +>E.A.valueOf : () => number +>E.A : E.A +>E : typeof E +>A : E.A +>valueOf : () => number + + C = 1, +>C : E.C +>1 : 1 +} + +const member: Extract = E.C; +>member : E.C +>E.C : E.C +>E : typeof E +>C : E.C + diff --git a/tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.errors.txt b/tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.errors.txt new file mode 100644 index 0000000000000..74a594964208d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.errors.txt @@ -0,0 +1,23 @@ +evolvingArrayReadInLoopCondition.ts(7,7): error TS7034: Variable 'seen' implicitly has type 'any[]' in some locations where its type cannot be determined. +evolvingArrayReadInLoopCondition.ts(9,10): error TS7005: Variable 'seen' implicitly has an 'any[]' type. + + +==== evolvingArrayReadInLoopCondition.ts (2 errors) ==== + // Narrowing by the condition needs the type of `seen` at the call, which + // depends on the analysis of the loop in progress for that same read. Once + // the loop is analyzed, `seen` is number[] there, so no error should say that + // its type cannot be determined. + + declare const x: number; + const seen = []; + ~~~~ +!!! error TS7034: Variable 'seen' implicitly has type 'any[]' in some locations where its type cannot be determined. + for (let i = 0; i < 3; i++) { + if (!seen.some(s => true)) { + ~~~~ +!!! error TS7005: Variable 'seen' implicitly has an 'any[]' type. + seen.push(x); + } + } + const result = seen; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.symbols b/tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.symbols new file mode 100644 index 0000000000000..f78b71ec020dd --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.symbols @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/evolvingArrayReadInLoopCondition.ts] //// + +=== evolvingArrayReadInLoopCondition.ts === +// Narrowing by the condition needs the type of `seen` at the call, which +// depends on the analysis of the loop in progress for that same read. Once +// the loop is analyzed, `seen` is number[] there, so no error should say that +// its type cannot be determined. + +declare const x: number; +>x : Symbol(x, Decl(evolvingArrayReadInLoopCondition.ts, 5, 13)) + +const seen = []; +>seen : Symbol(seen, Decl(evolvingArrayReadInLoopCondition.ts, 6, 5)) + +for (let i = 0; i < 3; i++) { +>i : Symbol(i, Decl(evolvingArrayReadInLoopCondition.ts, 7, 8)) +>i : Symbol(i, Decl(evolvingArrayReadInLoopCondition.ts, 7, 8)) +>i : Symbol(i, Decl(evolvingArrayReadInLoopCondition.ts, 7, 8)) + + if (!seen.some(s => true)) { +>seen.some : Symbol(Array.some, Decl(lib.es5.d.ts, --, --)) +>seen : Symbol(seen, Decl(evolvingArrayReadInLoopCondition.ts, 6, 5)) +>some : Symbol(Array.some, Decl(lib.es5.d.ts, --, --)) +>s : Symbol(s, Decl(evolvingArrayReadInLoopCondition.ts, 8, 19)) + + seen.push(x); +>seen.push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>seen : Symbol(seen, Decl(evolvingArrayReadInLoopCondition.ts, 6, 5)) +>push : Symbol(Array.push, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(evolvingArrayReadInLoopCondition.ts, 5, 13)) + } +} +const result = seen; +>result : Symbol(result, Decl(evolvingArrayReadInLoopCondition.ts, 12, 5)) +>seen : Symbol(seen, Decl(evolvingArrayReadInLoopCondition.ts, 6, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.types b/tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.types new file mode 100644 index 0000000000000..6b413578e01e5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/evolvingArrayReadInLoopCondition.types @@ -0,0 +1,46 @@ +//// [tests/cases/compiler/evolvingArrayReadInLoopCondition.ts] //// + +=== evolvingArrayReadInLoopCondition.ts === +// Narrowing by the condition needs the type of `seen` at the call, which +// depends on the analysis of the loop in progress for that same read. Once +// the loop is analyzed, `seen` is number[] there, so no error should say that +// its type cannot be determined. + +declare const x: number; +>x : number + +const seen = []; +>seen : any[] +>[] : never[] + +for (let i = 0; i < 3; i++) { +>i : number +>0 : 0 +>i < 3 : boolean +>i : number +>3 : 3 +>i++ : number +>i : number + + if (!seen.some(s => true)) { +>!seen.some(s => true) : boolean +>seen.some(s => true) : boolean +>seen.some : (predicate: (value: number, index: number, array: number[]) => unknown, thisArg?: any) => boolean +>seen : number[] +>some : (predicate: (value: number, index: number, array: number[]) => unknown, thisArg?: any) => boolean +>s => true : (s: number) => boolean +>s : number +>true : true + + seen.push(x); +>seen.push(x) : number +>seen.push : (...items: any[]) => number +>seen : any[] +>push : (...items: any[]) => number +>x : number + } +} +const result = seen; +>result : number[] +>seen : number[] + diff --git a/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread.errors.txt b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=default).errors.txt similarity index 100% rename from tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread.errors.txt rename to tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=default).errors.txt diff --git a/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread.js b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=default).js similarity index 100% rename from tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread.js rename to tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=default).js diff --git a/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread.symbols b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=default).symbols similarity index 100% rename from tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread.symbols rename to tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=default).symbols diff --git a/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread.types b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=default).types similarity index 100% rename from tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread.types rename to tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=default).types diff --git a/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..d1cdb35622f05 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).errors.txt @@ -0,0 +1,45 @@ +excessivelyLargeTupleSpread.ts(38,13): error TS2800: Expression produces a tuple type that is too large to represent. + + +==== excessivelyLargeTupleSpread.ts (1 errors) ==== + // #41771 + + type BuildTuple = + T['length'] extends L ? T : BuildTuple; + + type A = BuildTuple<3> + + type T0 = [any]; + type T1 = [...T0, ...T0]; + type T2 = [...T1, ...T1]; + type T3 = [...T2, ...T2]; + type T4 = [...T3, ...T3]; + type T5 = [...T4, ...T4]; + type T6 = [...T5, ...T5]; + type T7 = [...T6, ...T6]; + type T8 = [...T7, ...T7]; + type T9 = [...T8, ...T8]; + type T10 = [...T9, ...T9]; + type T11 = [...T10, ...T10]; + type T12 = [...T11, ...T11]; + type T13 = [...T12, ...T12]; + type T14 = [...T13, ...T13]; // 2^14 > 10,000 + + const a0 = [0] as const; + const a1 = [...a0, ...a0] as const; + const a2 = [...a1, ...a1] as const; + const a3 = [...a2, ...a2] as const; + const a4 = [...a3, ...a3] as const; + const a5 = [...a4, ...a4] as const; + const a6 = [...a5, ...a5] as const; + const a7 = [...a6, ...a6] as const; + const a8 = [...a7, ...a7] as const; + const a9 = [...a8, ...a8] as const; + const a10 = [...a9, ...a9] as const; + const a11 = [...a10, ...a10] as const; + const a12 = [...a11, ...a11] as const; + const a13 = [...a12, ...a12] as const; + const a14 = [...a13, ...a13] as const; // 2^14 > 10,000 + ~~~~~~~~~~~~~~~~ +!!! error TS2800: Expression produces a tuple type that is too large to represent. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).js new file mode 100644 index 0000000000000..bbb96dcc93129 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).js @@ -0,0 +1,61 @@ +//// [tests/cases/compiler/excessivelyLargeTupleSpread.ts] //// + +//// [excessivelyLargeTupleSpread.ts] +// #41771 + +type BuildTuple = + T['length'] extends L ? T : BuildTuple; + +type A = BuildTuple<3> + +type T0 = [any]; +type T1 = [...T0, ...T0]; +type T2 = [...T1, ...T1]; +type T3 = [...T2, ...T2]; +type T4 = [...T3, ...T3]; +type T5 = [...T4, ...T4]; +type T6 = [...T5, ...T5]; +type T7 = [...T6, ...T6]; +type T8 = [...T7, ...T7]; +type T9 = [...T8, ...T8]; +type T10 = [...T9, ...T9]; +type T11 = [...T10, ...T10]; +type T12 = [...T11, ...T11]; +type T13 = [...T12, ...T12]; +type T14 = [...T13, ...T13]; // 2^14 > 10,000 + +const a0 = [0] as const; +const a1 = [...a0, ...a0] as const; +const a2 = [...a1, ...a1] as const; +const a3 = [...a2, ...a2] as const; +const a4 = [...a3, ...a3] as const; +const a5 = [...a4, ...a4] as const; +const a6 = [...a5, ...a5] as const; +const a7 = [...a6, ...a6] as const; +const a8 = [...a7, ...a7] as const; +const a9 = [...a8, ...a8] as const; +const a10 = [...a9, ...a9] as const; +const a11 = [...a10, ...a10] as const; +const a12 = [...a11, ...a11] as const; +const a13 = [...a12, ...a12] as const; +const a14 = [...a13, ...a13] as const; // 2^14 > 10,000 + + +//// [excessivelyLargeTupleSpread.js] +"use strict"; +// #41771 +const a0 = [0]; +const a1 = [...a0, ...a0]; +const a2 = [...a1, ...a1]; +const a3 = [...a2, ...a2]; +const a4 = [...a3, ...a3]; +const a5 = [...a4, ...a4]; +const a6 = [...a5, ...a5]; +const a7 = [...a6, ...a6]; +const a8 = [...a7, ...a7]; +const a9 = [...a8, ...a8]; +const a10 = [...a9, ...a9]; +const a11 = [...a10, ...a10]; +const a12 = [...a11, ...a11]; +const a13 = [...a12, ...a12]; +const a14 = [...a13, ...a13]; // 2^14 > 10,000 diff --git a/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..629d43f9085cf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).symbols @@ -0,0 +1,184 @@ +//// [tests/cases/compiler/excessivelyLargeTupleSpread.ts] //// + +=== excessivelyLargeTupleSpread.ts === +// #41771 + +type BuildTuple = +>BuildTuple : Symbol(BuildTuple, Decl(excessivelyLargeTupleSpread.ts, 0, 0)) +>L : Symbol(L, Decl(excessivelyLargeTupleSpread.ts, 2, 16)) +>T : Symbol(T, Decl(excessivelyLargeTupleSpread.ts, 2, 33)) + + T['length'] extends L ? T : BuildTuple; +>T : Symbol(T, Decl(excessivelyLargeTupleSpread.ts, 2, 33)) +>L : Symbol(L, Decl(excessivelyLargeTupleSpread.ts, 2, 16)) +>T : Symbol(T, Decl(excessivelyLargeTupleSpread.ts, 2, 33)) +>BuildTuple : Symbol(BuildTuple, Decl(excessivelyLargeTupleSpread.ts, 0, 0)) +>L : Symbol(L, Decl(excessivelyLargeTupleSpread.ts, 2, 16)) +>T : Symbol(T, Decl(excessivelyLargeTupleSpread.ts, 2, 33)) +>T : Symbol(T, Decl(excessivelyLargeTupleSpread.ts, 2, 33)) + +type A = BuildTuple<3> +>A : Symbol(A, Decl(excessivelyLargeTupleSpread.ts, 3, 60)) +>BuildTuple : Symbol(BuildTuple, Decl(excessivelyLargeTupleSpread.ts, 0, 0)) + +type T0 = [any]; +>T0 : Symbol(T0, Decl(excessivelyLargeTupleSpread.ts, 5, 22)) + +type T1 = [...T0, ...T0]; +>T1 : Symbol(T1, Decl(excessivelyLargeTupleSpread.ts, 7, 16)) +>T0 : Symbol(T0, Decl(excessivelyLargeTupleSpread.ts, 5, 22)) +>T0 : Symbol(T0, Decl(excessivelyLargeTupleSpread.ts, 5, 22)) + +type T2 = [...T1, ...T1]; +>T2 : Symbol(T2, Decl(excessivelyLargeTupleSpread.ts, 8, 25)) +>T1 : Symbol(T1, Decl(excessivelyLargeTupleSpread.ts, 7, 16)) +>T1 : Symbol(T1, Decl(excessivelyLargeTupleSpread.ts, 7, 16)) + +type T3 = [...T2, ...T2]; +>T3 : Symbol(T3, Decl(excessivelyLargeTupleSpread.ts, 9, 25)) +>T2 : Symbol(T2, Decl(excessivelyLargeTupleSpread.ts, 8, 25)) +>T2 : Symbol(T2, Decl(excessivelyLargeTupleSpread.ts, 8, 25)) + +type T4 = [...T3, ...T3]; +>T4 : Symbol(T4, Decl(excessivelyLargeTupleSpread.ts, 10, 25)) +>T3 : Symbol(T3, Decl(excessivelyLargeTupleSpread.ts, 9, 25)) +>T3 : Symbol(T3, Decl(excessivelyLargeTupleSpread.ts, 9, 25)) + +type T5 = [...T4, ...T4]; +>T5 : Symbol(T5, Decl(excessivelyLargeTupleSpread.ts, 11, 25)) +>T4 : Symbol(T4, Decl(excessivelyLargeTupleSpread.ts, 10, 25)) +>T4 : Symbol(T4, Decl(excessivelyLargeTupleSpread.ts, 10, 25)) + +type T6 = [...T5, ...T5]; +>T6 : Symbol(T6, Decl(excessivelyLargeTupleSpread.ts, 12, 25)) +>T5 : Symbol(T5, Decl(excessivelyLargeTupleSpread.ts, 11, 25)) +>T5 : Symbol(T5, Decl(excessivelyLargeTupleSpread.ts, 11, 25)) + +type T7 = [...T6, ...T6]; +>T7 : Symbol(T7, Decl(excessivelyLargeTupleSpread.ts, 13, 25)) +>T6 : Symbol(T6, Decl(excessivelyLargeTupleSpread.ts, 12, 25)) +>T6 : Symbol(T6, Decl(excessivelyLargeTupleSpread.ts, 12, 25)) + +type T8 = [...T7, ...T7]; +>T8 : Symbol(T8, Decl(excessivelyLargeTupleSpread.ts, 14, 25)) +>T7 : Symbol(T7, Decl(excessivelyLargeTupleSpread.ts, 13, 25)) +>T7 : Symbol(T7, Decl(excessivelyLargeTupleSpread.ts, 13, 25)) + +type T9 = [...T8, ...T8]; +>T9 : Symbol(T9, Decl(excessivelyLargeTupleSpread.ts, 15, 25)) +>T8 : Symbol(T8, Decl(excessivelyLargeTupleSpread.ts, 14, 25)) +>T8 : Symbol(T8, Decl(excessivelyLargeTupleSpread.ts, 14, 25)) + +type T10 = [...T9, ...T9]; +>T10 : Symbol(T10, Decl(excessivelyLargeTupleSpread.ts, 16, 25)) +>T9 : Symbol(T9, Decl(excessivelyLargeTupleSpread.ts, 15, 25)) +>T9 : Symbol(T9, Decl(excessivelyLargeTupleSpread.ts, 15, 25)) + +type T11 = [...T10, ...T10]; +>T11 : Symbol(T11, Decl(excessivelyLargeTupleSpread.ts, 17, 26)) +>T10 : Symbol(T10, Decl(excessivelyLargeTupleSpread.ts, 16, 25)) +>T10 : Symbol(T10, Decl(excessivelyLargeTupleSpread.ts, 16, 25)) + +type T12 = [...T11, ...T11]; +>T12 : Symbol(T12, Decl(excessivelyLargeTupleSpread.ts, 18, 28)) +>T11 : Symbol(T11, Decl(excessivelyLargeTupleSpread.ts, 17, 26)) +>T11 : Symbol(T11, Decl(excessivelyLargeTupleSpread.ts, 17, 26)) + +type T13 = [...T12, ...T12]; +>T13 : Symbol(T13, Decl(excessivelyLargeTupleSpread.ts, 19, 28)) +>T12 : Symbol(T12, Decl(excessivelyLargeTupleSpread.ts, 18, 28)) +>T12 : Symbol(T12, Decl(excessivelyLargeTupleSpread.ts, 18, 28)) + +type T14 = [...T13, ...T13]; // 2^14 > 10,000 +>T14 : Symbol(T14, Decl(excessivelyLargeTupleSpread.ts, 20, 28)) +>T13 : Symbol(T13, Decl(excessivelyLargeTupleSpread.ts, 19, 28)) +>T13 : Symbol(T13, Decl(excessivelyLargeTupleSpread.ts, 19, 28)) + +const a0 = [0] as const; +>a0 : Symbol(a0, Decl(excessivelyLargeTupleSpread.ts, 23, 5)) +>const : Symbol(const) + +const a1 = [...a0, ...a0] as const; +>a1 : Symbol(a1, Decl(excessivelyLargeTupleSpread.ts, 24, 5)) +>a0 : Symbol(a0, Decl(excessivelyLargeTupleSpread.ts, 23, 5)) +>a0 : Symbol(a0, Decl(excessivelyLargeTupleSpread.ts, 23, 5)) +>const : Symbol(const) + +const a2 = [...a1, ...a1] as const; +>a2 : Symbol(a2, Decl(excessivelyLargeTupleSpread.ts, 25, 5)) +>a1 : Symbol(a1, Decl(excessivelyLargeTupleSpread.ts, 24, 5)) +>a1 : Symbol(a1, Decl(excessivelyLargeTupleSpread.ts, 24, 5)) +>const : Symbol(const) + +const a3 = [...a2, ...a2] as const; +>a3 : Symbol(a3, Decl(excessivelyLargeTupleSpread.ts, 26, 5)) +>a2 : Symbol(a2, Decl(excessivelyLargeTupleSpread.ts, 25, 5)) +>a2 : Symbol(a2, Decl(excessivelyLargeTupleSpread.ts, 25, 5)) +>const : Symbol(const) + +const a4 = [...a3, ...a3] as const; +>a4 : Symbol(a4, Decl(excessivelyLargeTupleSpread.ts, 27, 5)) +>a3 : Symbol(a3, Decl(excessivelyLargeTupleSpread.ts, 26, 5)) +>a3 : Symbol(a3, Decl(excessivelyLargeTupleSpread.ts, 26, 5)) +>const : Symbol(const) + +const a5 = [...a4, ...a4] as const; +>a5 : Symbol(a5, Decl(excessivelyLargeTupleSpread.ts, 28, 5)) +>a4 : Symbol(a4, Decl(excessivelyLargeTupleSpread.ts, 27, 5)) +>a4 : Symbol(a4, Decl(excessivelyLargeTupleSpread.ts, 27, 5)) +>const : Symbol(const) + +const a6 = [...a5, ...a5] as const; +>a6 : Symbol(a6, Decl(excessivelyLargeTupleSpread.ts, 29, 5)) +>a5 : Symbol(a5, Decl(excessivelyLargeTupleSpread.ts, 28, 5)) +>a5 : Symbol(a5, Decl(excessivelyLargeTupleSpread.ts, 28, 5)) +>const : Symbol(const) + +const a7 = [...a6, ...a6] as const; +>a7 : Symbol(a7, Decl(excessivelyLargeTupleSpread.ts, 30, 5)) +>a6 : Symbol(a6, Decl(excessivelyLargeTupleSpread.ts, 29, 5)) +>a6 : Symbol(a6, Decl(excessivelyLargeTupleSpread.ts, 29, 5)) +>const : Symbol(const) + +const a8 = [...a7, ...a7] as const; +>a8 : Symbol(a8, Decl(excessivelyLargeTupleSpread.ts, 31, 5)) +>a7 : Symbol(a7, Decl(excessivelyLargeTupleSpread.ts, 30, 5)) +>a7 : Symbol(a7, Decl(excessivelyLargeTupleSpread.ts, 30, 5)) +>const : Symbol(const) + +const a9 = [...a8, ...a8] as const; +>a9 : Symbol(a9, Decl(excessivelyLargeTupleSpread.ts, 32, 5)) +>a8 : Symbol(a8, Decl(excessivelyLargeTupleSpread.ts, 31, 5)) +>a8 : Symbol(a8, Decl(excessivelyLargeTupleSpread.ts, 31, 5)) +>const : Symbol(const) + +const a10 = [...a9, ...a9] as const; +>a10 : Symbol(a10, Decl(excessivelyLargeTupleSpread.ts, 33, 5)) +>a9 : Symbol(a9, Decl(excessivelyLargeTupleSpread.ts, 32, 5)) +>a9 : Symbol(a9, Decl(excessivelyLargeTupleSpread.ts, 32, 5)) +>const : Symbol(const) + +const a11 = [...a10, ...a10] as const; +>a11 : Symbol(a11, Decl(excessivelyLargeTupleSpread.ts, 34, 5)) +>a10 : Symbol(a10, Decl(excessivelyLargeTupleSpread.ts, 33, 5)) +>a10 : Symbol(a10, Decl(excessivelyLargeTupleSpread.ts, 33, 5)) +>const : Symbol(const) + +const a12 = [...a11, ...a11] as const; +>a12 : Symbol(a12, Decl(excessivelyLargeTupleSpread.ts, 35, 5)) +>a11 : Symbol(a11, Decl(excessivelyLargeTupleSpread.ts, 34, 5)) +>a11 : Symbol(a11, Decl(excessivelyLargeTupleSpread.ts, 34, 5)) +>const : Symbol(const) + +const a13 = [...a12, ...a12] as const; +>a13 : Symbol(a13, Decl(excessivelyLargeTupleSpread.ts, 36, 5)) +>a12 : Symbol(a12, Decl(excessivelyLargeTupleSpread.ts, 35, 5)) +>a12 : Symbol(a12, Decl(excessivelyLargeTupleSpread.ts, 35, 5)) +>const : Symbol(const) + +const a14 = [...a13, ...a13] as const; // 2^14 > 10,000 +>a14 : Symbol(a14, Decl(excessivelyLargeTupleSpread.ts, 37, 5)) +>a13 : Symbol(a13, Decl(excessivelyLargeTupleSpread.ts, 36, 5)) +>a13 : Symbol(a13, Decl(excessivelyLargeTupleSpread.ts, 36, 5)) +>const : Symbol(const) + diff --git a/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).types new file mode 100644 index 0000000000000..beb6075368e3f --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/excessivelyLargeTupleSpread(checkorder=typesfirst).types @@ -0,0 +1,190 @@ +//// [tests/cases/compiler/excessivelyLargeTupleSpread.ts] //// + +=== excessivelyLargeTupleSpread.ts === +// #41771 + +type BuildTuple = +>BuildTuple : BuildTuple + + T['length'] extends L ? T : BuildTuple; + +type A = BuildTuple<3> +>A : any + +type T0 = [any]; +>T0 : T0 + +type T1 = [...T0, ...T0]; +>T1 : [any, any] + +type T2 = [...T1, ...T1]; +>T2 : [any, any, any, any] + +type T3 = [...T2, ...T2]; +>T3 : [any, any, any, any, any, any, any, any] + +type T4 = [...T3, ...T3]; +>T4 : [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +type T5 = [...T4, ...T4]; +>T5 : [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +type T6 = [...T5, ...T5]; +>T6 : [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +type T7 = [...T6, ...T6]; +>T7 : [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +type T8 = [...T7, ...T7]; +>T8 : [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +type T9 = [...T8, ...T8]; +>T9 : [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +type T10 = [...T9, ...T9]; +>T10 : [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +type T11 = [...T10, ...T10]; +>T11 : [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +type T12 = [...T11, ...T11]; +>T12 : [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +type T13 = [...T12, ...T12]; +>T13 : [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any] + +type T14 = [...T13, ...T13]; // 2^14 > 10,000 +>T14 : any + +const a0 = [0] as const; +>a0 : readonly [0] +>[0] as const : readonly [0] +>[0] : readonly [0] +>0 : 0 + +const a1 = [...a0, ...a0] as const; +>a1 : readonly [0, 0] +>[...a0, ...a0] as const : readonly [0, 0] +>[...a0, ...a0] : readonly [0, 0] +>...a0 : 0 +>a0 : readonly [0] +>...a0 : 0 +>a0 : readonly [0] + +const a2 = [...a1, ...a1] as const; +>a2 : readonly [0, 0, 0, 0] +>[...a1, ...a1] as const : readonly [0, 0, 0, 0] +>[...a1, ...a1] : readonly [0, 0, 0, 0] +>...a1 : 0 +>a1 : readonly [0, 0] +>...a1 : 0 +>a1 : readonly [0, 0] + +const a3 = [...a2, ...a2] as const; +>a3 : readonly [0, 0, 0, 0, 0, 0, 0, 0] +>[...a2, ...a2] as const : readonly [0, 0, 0, 0, 0, 0, 0, 0] +>[...a2, ...a2] : readonly [0, 0, 0, 0, 0, 0, 0, 0] +>...a2 : 0 +>a2 : readonly [0, 0, 0, 0] +>...a2 : 0 +>a2 : readonly [0, 0, 0, 0] + +const a4 = [...a3, ...a3] as const; +>a4 : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +>[...a3, ...a3] as const : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +>[...a3, ...a3] : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +>...a3 : 0 +>a3 : readonly [0, 0, 0, 0, 0, 0, 0, 0] +>...a3 : 0 +>a3 : readonly [0, 0, 0, 0, 0, 0, 0, 0] + +const a5 = [...a4, ...a4] as const; +>a5 : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +>[...a4, ...a4] as const : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +>[...a4, ...a4] : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +>...a4 : 0 +>a4 : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +>...a4 : 0 +>a4 : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + +const a6 = [...a5, ...a5] as const; +>a6 : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +>[...a5, ...a5] as const : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +>[...a5, ...a5] : readonly [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + diff --git a/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).errors.txt new file mode 100644 index 0000000000000..a309088cfbee7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).errors.txt @@ -0,0 +1,43 @@ +exhaustiveSwitchCheckCircularity.ts(14,26): error TS2345: Argument of type '"bbb"' is not assignable to parameter of type 'never'. + + +==== exhaustiveSwitchCheckCircularity.ts (1 errors) ==== + // Repro from #47539 + + declare function isNever(n: never): boolean; + + function f() { + let foo: "aaa" | "bbb" = "aaa"; + while (true) { + switch (foo) { + case "aaa": + } + if (foo === "aaa") { + foo = "bbb"; + } + else if (isNever(foo)) { // Error expected + ~~~ +!!! error TS2345: Argument of type '"bbb"' is not assignable to parameter of type 'never'. + break; + } + } + } + + // Repro from #51688 + + declare function functionB(key: string): string; + + function functionC(): void { + let unionVal: "A" | "B" = "A"; + while (true) { + let key: string; + switch (unionVal) { + case "A": { + key = "AA"; + break; + } + } + functionB(key); + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).js new file mode 100644 index 0000000000000..8357fd67e0c74 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).js @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/exhaustiveSwitchCheckCircularity.ts] //// + +//// [exhaustiveSwitchCheckCircularity.ts] +// Repro from #47539 + +declare function isNever(n: never): boolean; + +function f() { + let foo: "aaa" | "bbb" = "aaa"; + while (true) { + switch (foo) { + case "aaa": + } + if (foo === "aaa") { + foo = "bbb"; + } + else if (isNever(foo)) { // Error expected + break; + } + } +} + +// Repro from #51688 + +declare function functionB(key: string): string; + +function functionC(): void { + let unionVal: "A" | "B" = "A"; + while (true) { + let key: string; + switch (unionVal) { + case "A": { + key = "AA"; + break; + } + } + functionB(key); + } +} + + +//// [exhaustiveSwitchCheckCircularity.js] +"use strict"; +// Repro from #47539 +function f() { + let foo = "aaa"; + while (true) { + switch (foo) { + case "aaa": + } + if (foo === "aaa") { + foo = "bbb"; + } + else if (isNever(foo)) { // Error expected + break; + } + } +} +function functionC() { + let unionVal = "A"; + while (true) { + let key; + switch (unionVal) { + case "A": { + key = "AA"; + break; + } + } + functionB(key); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).symbols new file mode 100644 index 0000000000000..61aad225f49ab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).symbols @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/exhaustiveSwitchCheckCircularity.ts] //// + +=== exhaustiveSwitchCheckCircularity.ts === +// Repro from #47539 + +declare function isNever(n: never): boolean; +>isNever : Symbol(isNever, Decl(exhaustiveSwitchCheckCircularity.ts, 0, 0)) +>n : Symbol(n, Decl(exhaustiveSwitchCheckCircularity.ts, 2, 25)) + +function f() { +>f : Symbol(f, Decl(exhaustiveSwitchCheckCircularity.ts, 2, 44)) + + let foo: "aaa" | "bbb" = "aaa"; +>foo : Symbol(foo, Decl(exhaustiveSwitchCheckCircularity.ts, 5, 7)) + + while (true) { + switch (foo) { +>foo : Symbol(foo, Decl(exhaustiveSwitchCheckCircularity.ts, 5, 7)) + + case "aaa": + } + if (foo === "aaa") { +>foo : Symbol(foo, Decl(exhaustiveSwitchCheckCircularity.ts, 5, 7)) + + foo = "bbb"; +>foo : Symbol(foo, Decl(exhaustiveSwitchCheckCircularity.ts, 5, 7)) + } + else if (isNever(foo)) { // Error expected +>isNever : Symbol(isNever, Decl(exhaustiveSwitchCheckCircularity.ts, 0, 0)) +>foo : Symbol(foo, Decl(exhaustiveSwitchCheckCircularity.ts, 5, 7)) + + break; + } + } +} + +// Repro from #51688 + +declare function functionB(key: string): string; +>functionB : Symbol(functionB, Decl(exhaustiveSwitchCheckCircularity.ts, 17, 1)) +>key : Symbol(key, Decl(exhaustiveSwitchCheckCircularity.ts, 21, 27)) + +function functionC(): void { +>functionC : Symbol(functionC, Decl(exhaustiveSwitchCheckCircularity.ts, 21, 48)) + + let unionVal: "A" | "B" = "A"; +>unionVal : Symbol(unionVal, Decl(exhaustiveSwitchCheckCircularity.ts, 24, 7)) + + while (true) { + let key: string; +>key : Symbol(key, Decl(exhaustiveSwitchCheckCircularity.ts, 26, 11)) + + switch (unionVal) { +>unionVal : Symbol(unionVal, Decl(exhaustiveSwitchCheckCircularity.ts, 24, 7)) + + case "A": { + key = "AA"; +>key : Symbol(key, Decl(exhaustiveSwitchCheckCircularity.ts, 26, 11)) + + break; + } + } + functionB(key); +>functionB : Symbol(functionB, Decl(exhaustiveSwitchCheckCircularity.ts, 17, 1)) +>key : Symbol(key, Decl(exhaustiveSwitchCheckCircularity.ts, 26, 11)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).types new file mode 100644 index 0000000000000..a7b44f6811ab9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=default).types @@ -0,0 +1,85 @@ +//// [tests/cases/compiler/exhaustiveSwitchCheckCircularity.ts] //// + +=== exhaustiveSwitchCheckCircularity.ts === +// Repro from #47539 + +declare function isNever(n: never): boolean; +>isNever : (n: never) => boolean +>n : never + +function f() { +>f : () => void + + let foo: "aaa" | "bbb" = "aaa"; +>foo : "aaa" | "bbb" +>"aaa" : "aaa" + + while (true) { +>true : true + + switch (foo) { +>foo : "aaa" | "bbb" + + case "aaa": +>"aaa" : "aaa" + } + if (foo === "aaa") { +>foo === "aaa" : boolean +>foo : "aaa" | "bbb" +>"aaa" : "aaa" + + foo = "bbb"; +>foo = "bbb" : "bbb" +>foo : "aaa" | "bbb" +>"bbb" : "bbb" + } + else if (isNever(foo)) { // Error expected +>isNever(foo) : boolean +>isNever : (n: never) => boolean +>foo : "bbb" + + break; + } + } +} + +// Repro from #51688 + +declare function functionB(key: string): string; +>functionB : (key: string) => string +>key : string + +function functionC(): void { +>functionC : () => void + + let unionVal: "A" | "B" = "A"; +>unionVal : "A" | "B" +>"A" : "A" + + while (true) { +>true : true + + let key: string; +>key : string + + switch (unionVal) { +>unionVal : "A" + + case "A": { +>"A" : "A" + + key = "AA"; +>key = "AA" : "AA" +>key : string +>"AA" : "AA" + + break; + } + } + functionB(key); +>functionB(key) : string +>functionB : (key: string) => string +>key : string + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..a309088cfbee7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).errors.txt @@ -0,0 +1,43 @@ +exhaustiveSwitchCheckCircularity.ts(14,26): error TS2345: Argument of type '"bbb"' is not assignable to parameter of type 'never'. + + +==== exhaustiveSwitchCheckCircularity.ts (1 errors) ==== + // Repro from #47539 + + declare function isNever(n: never): boolean; + + function f() { + let foo: "aaa" | "bbb" = "aaa"; + while (true) { + switch (foo) { + case "aaa": + } + if (foo === "aaa") { + foo = "bbb"; + } + else if (isNever(foo)) { // Error expected + ~~~ +!!! error TS2345: Argument of type '"bbb"' is not assignable to parameter of type 'never'. + break; + } + } + } + + // Repro from #51688 + + declare function functionB(key: string): string; + + function functionC(): void { + let unionVal: "A" | "B" = "A"; + while (true) { + let key: string; + switch (unionVal) { + case "A": { + key = "AA"; + break; + } + } + functionB(key); + } + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).js new file mode 100644 index 0000000000000..8357fd67e0c74 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).js @@ -0,0 +1,71 @@ +//// [tests/cases/compiler/exhaustiveSwitchCheckCircularity.ts] //// + +//// [exhaustiveSwitchCheckCircularity.ts] +// Repro from #47539 + +declare function isNever(n: never): boolean; + +function f() { + let foo: "aaa" | "bbb" = "aaa"; + while (true) { + switch (foo) { + case "aaa": + } + if (foo === "aaa") { + foo = "bbb"; + } + else if (isNever(foo)) { // Error expected + break; + } + } +} + +// Repro from #51688 + +declare function functionB(key: string): string; + +function functionC(): void { + let unionVal: "A" | "B" = "A"; + while (true) { + let key: string; + switch (unionVal) { + case "A": { + key = "AA"; + break; + } + } + functionB(key); + } +} + + +//// [exhaustiveSwitchCheckCircularity.js] +"use strict"; +// Repro from #47539 +function f() { + let foo = "aaa"; + while (true) { + switch (foo) { + case "aaa": + } + if (foo === "aaa") { + foo = "bbb"; + } + else if (isNever(foo)) { // Error expected + break; + } + } +} +function functionC() { + let unionVal = "A"; + while (true) { + let key; + switch (unionVal) { + case "A": { + key = "AA"; + break; + } + } + functionB(key); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..61aad225f49ab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).symbols @@ -0,0 +1,68 @@ +//// [tests/cases/compiler/exhaustiveSwitchCheckCircularity.ts] //// + +=== exhaustiveSwitchCheckCircularity.ts === +// Repro from #47539 + +declare function isNever(n: never): boolean; +>isNever : Symbol(isNever, Decl(exhaustiveSwitchCheckCircularity.ts, 0, 0)) +>n : Symbol(n, Decl(exhaustiveSwitchCheckCircularity.ts, 2, 25)) + +function f() { +>f : Symbol(f, Decl(exhaustiveSwitchCheckCircularity.ts, 2, 44)) + + let foo: "aaa" | "bbb" = "aaa"; +>foo : Symbol(foo, Decl(exhaustiveSwitchCheckCircularity.ts, 5, 7)) + + while (true) { + switch (foo) { +>foo : Symbol(foo, Decl(exhaustiveSwitchCheckCircularity.ts, 5, 7)) + + case "aaa": + } + if (foo === "aaa") { +>foo : Symbol(foo, Decl(exhaustiveSwitchCheckCircularity.ts, 5, 7)) + + foo = "bbb"; +>foo : Symbol(foo, Decl(exhaustiveSwitchCheckCircularity.ts, 5, 7)) + } + else if (isNever(foo)) { // Error expected +>isNever : Symbol(isNever, Decl(exhaustiveSwitchCheckCircularity.ts, 0, 0)) +>foo : Symbol(foo, Decl(exhaustiveSwitchCheckCircularity.ts, 5, 7)) + + break; + } + } +} + +// Repro from #51688 + +declare function functionB(key: string): string; +>functionB : Symbol(functionB, Decl(exhaustiveSwitchCheckCircularity.ts, 17, 1)) +>key : Symbol(key, Decl(exhaustiveSwitchCheckCircularity.ts, 21, 27)) + +function functionC(): void { +>functionC : Symbol(functionC, Decl(exhaustiveSwitchCheckCircularity.ts, 21, 48)) + + let unionVal: "A" | "B" = "A"; +>unionVal : Symbol(unionVal, Decl(exhaustiveSwitchCheckCircularity.ts, 24, 7)) + + while (true) { + let key: string; +>key : Symbol(key, Decl(exhaustiveSwitchCheckCircularity.ts, 26, 11)) + + switch (unionVal) { +>unionVal : Symbol(unionVal, Decl(exhaustiveSwitchCheckCircularity.ts, 24, 7)) + + case "A": { + key = "AA"; +>key : Symbol(key, Decl(exhaustiveSwitchCheckCircularity.ts, 26, 11)) + + break; + } + } + functionB(key); +>functionB : Symbol(functionB, Decl(exhaustiveSwitchCheckCircularity.ts, 17, 1)) +>key : Symbol(key, Decl(exhaustiveSwitchCheckCircularity.ts, 26, 11)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).types new file mode 100644 index 0000000000000..651cd4a45a647 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exhaustiveSwitchCheckCircularity(checkorder=typesfirst).types @@ -0,0 +1,85 @@ +//// [tests/cases/compiler/exhaustiveSwitchCheckCircularity.ts] //// + +=== exhaustiveSwitchCheckCircularity.ts === +// Repro from #47539 + +declare function isNever(n: never): boolean; +>isNever : (n: never) => boolean +>n : never + +function f() { +>f : () => void + + let foo: "aaa" | "bbb" = "aaa"; +>foo : "aaa" | "bbb" +>"aaa" : "aaa" + + while (true) { +>true : true + + switch (foo) { +>foo : "aaa" | "bbb" + + case "aaa": +>"aaa" : "aaa" + } + if (foo === "aaa") { +>foo === "aaa" : boolean +>foo : "aaa" | "bbb" +>"aaa" : "aaa" + + foo = "bbb"; +>foo = "bbb" : "bbb" +>foo : "aaa" | "bbb" +>"bbb" : "bbb" + } + else if (isNever(foo)) { // Error expected +>isNever(foo) : boolean +>isNever : (n: never) => boolean +>foo : never + + break; + } + } +} + +// Repro from #51688 + +declare function functionB(key: string): string; +>functionB : (key: string) => string +>key : string + +function functionC(): void { +>functionC : () => void + + let unionVal: "A" | "B" = "A"; +>unionVal : "A" | "B" +>"A" : "A" + + while (true) { +>true : true + + let key: string; +>key : string + + switch (unionVal) { +>unionVal : "A" + + case "A": { +>"A" : "A" + + key = "AA"; +>key = "AA" : "AA" +>key : string +>"AA" : "AA" + + break; + } + } + functionB(key); +>functionB(key) : string +>functionB : (key: string) => string +>key : string + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).js new file mode 100644 index 0000000000000..7f22b20127d74 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).js @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/exportAssignmentNestedVisibilityQueryOrder.ts] //// + +//// [exportAssignmentNestedVisibilityQueryOrder.ts] +namespace m { + export interface Inner { + x: number; + } + export interface Outer { + use: (inner: Inner) => Outer; + } +} +declare var m: { + (): m.Outer; +}; +export = m; + + +//// [exportAssignmentNestedVisibilityQueryOrder.js] +"use strict"; +module.exports = m; + + +//// [exportAssignmentNestedVisibilityQueryOrder.d.ts] +declare namespace m { + interface Inner { + x: number; + } + interface Outer { + use: (inner: Inner) => Outer; + } +} +declare var m: { + (): m.Outer; +}; +export = m; diff --git a/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..37c52594b538a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/exportAssignmentNestedVisibilityQueryOrder.ts] //// + +=== exportAssignmentNestedVisibilityQueryOrder.ts === +namespace m { +>m : Symbol(m, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 0), Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 8, 11)) + + export interface Inner { +>Inner : Symbol(Inner, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 13)) + + x: number; +>x : Symbol(Inner.x, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 1, 28)) + } + export interface Outer { +>Outer : Symbol(Outer, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 3, 5)) + + use: (inner: Inner) => Outer; +>use : Symbol(Outer.use, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 4, 28)) +>inner : Symbol(inner, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 5, 14)) +>Inner : Symbol(Inner, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 13)) +>Outer : Symbol(Outer, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 3, 5)) + } +} +declare var m: { +>m : Symbol(m, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 0), Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 8, 11)) + + (): m.Outer; +>m : Symbol(m, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 0), Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 8, 11)) +>Outer : Symbol(m.Outer, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 3, 5)) + +}; +export = m; +>m : Symbol(m, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 0), Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 8, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).types new file mode 100644 index 0000000000000..600dc4ebe4a28 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=default).types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/exportAssignmentNestedVisibilityQueryOrder.ts] //// + +=== exportAssignmentNestedVisibilityQueryOrder.ts === +namespace m { + export interface Inner { + x: number; +>x : number + } + export interface Outer { + use: (inner: Inner) => Outer; +>use : (inner: Inner) => Outer +>inner : Inner + } +} +declare var m: { +>m : () => m.Outer + + (): m.Outer; +>m : any + +}; +export = m; +>m : () => m.Outer + diff --git a/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).js b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).js new file mode 100644 index 0000000000000..405c0f22e5b40 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).js @@ -0,0 +1,63 @@ +//// [tests/cases/compiler/exportAssignmentNestedVisibilityQueryOrder.ts] //// + +//// [exportAssignmentNestedVisibilityQueryOrder.ts] +namespace m { + export interface Inner { + x: number; + } + export interface Outer { + use: (inner: Inner) => Outer; + } +} +declare var m: { + (): m.Outer; +}; +export = m; + + +//// [exportAssignmentNestedVisibilityQueryOrder.js] +"use strict"; +module.exports = m; + + +//// [exportAssignmentNestedVisibilityQueryOrder.d.ts] +declare namespace m { +} +declare var m: { + (): m.Outer; +}; +export = m; + + +//// [DtsFileErrors] + + +exportAssignmentNestedVisibilityQueryOrder.d.ts(4,11): error TS2694: Namespace 'm' has no exported member 'Outer'. + + +==== exportAssignmentNestedVisibilityQueryOrder.d.ts (1 errors) ==== + declare namespace m { + } + declare var m: { + (): m.Outer; + ~~~~~ +!!! error TS2694: Namespace 'm' has no exported member 'Outer'. + }; + export = m; + + +!!!! File exportAssignmentNestedVisibilityQueryOrder.d.ts differs from original emit in noCheck emit +//// [exportAssignmentNestedVisibilityQueryOrder.d.ts] +--- Expected The full check baseline ++++ Actual with noCheck set +@@ -1,4 +1,10 @@ + declare namespace m { ++ interface Inner { ++ x: number; ++ } ++ interface Outer { ++ use: (inner: Inner) => Outer; ++ } + } + declare var m: { + (): m.Outer; \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..37c52594b538a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).symbols @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/exportAssignmentNestedVisibilityQueryOrder.ts] //// + +=== exportAssignmentNestedVisibilityQueryOrder.ts === +namespace m { +>m : Symbol(m, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 0), Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 8, 11)) + + export interface Inner { +>Inner : Symbol(Inner, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 13)) + + x: number; +>x : Symbol(Inner.x, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 1, 28)) + } + export interface Outer { +>Outer : Symbol(Outer, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 3, 5)) + + use: (inner: Inner) => Outer; +>use : Symbol(Outer.use, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 4, 28)) +>inner : Symbol(inner, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 5, 14)) +>Inner : Symbol(Inner, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 13)) +>Outer : Symbol(Outer, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 3, 5)) + } +} +declare var m: { +>m : Symbol(m, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 0), Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 8, 11)) + + (): m.Outer; +>m : Symbol(m, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 0), Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 8, 11)) +>Outer : Symbol(m.Outer, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 3, 5)) + +}; +export = m; +>m : Symbol(m, Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 0, 0), Decl(exportAssignmentNestedVisibilityQueryOrder.ts, 8, 11)) + diff --git a/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..600dc4ebe4a28 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/exportAssignmentNestedVisibilityQueryOrder(checkorder=editorfirst).types @@ -0,0 +1,24 @@ +//// [tests/cases/compiler/exportAssignmentNestedVisibilityQueryOrder.ts] //// + +=== exportAssignmentNestedVisibilityQueryOrder.ts === +namespace m { + export interface Inner { + x: number; +>x : number + } + export interface Outer { + use: (inner: Inner) => Outer; +>use : (inner: Inner) => Outer +>inner : Inner + } +} +declare var m: { +>m : () => m.Outer + + (): m.Outer; +>m : any + +}; +export = m; +>m : () => m.Outer + diff --git a/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).errors.txt new file mode 100644 index 0000000000000..9a04ca00910e5 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).errors.txt @@ -0,0 +1,45 @@ +fallbackToBindingPatternForTypeInference.ts(2,7): error TS2345: Argument of type '({ a }: { a: any; }) => any' is not assignable to parameter of type '(x: unknown) => string'. + Types of parameters '__0' and 'x' are incompatible. + Type 'unknown' is not assignable to type '{ a: any; }'. +fallbackToBindingPatternForTypeInference.ts(3,7): error TS2345: Argument of type '([b, c]: [any, any]) => string' is not assignable to parameter of type '(x: unknown) => string'. + Types of parameters '__0' and 'x' are incompatible. + Type 'unknown' is not assignable to type '[any, any]'. +fallbackToBindingPatternForTypeInference.ts(4,7): error TS2345: Argument of type '({ d: [e, f] }: { d: [any, any]; }) => string' is not assignable to parameter of type '(x: unknown) => string'. + Types of parameters '__0' and 'x' are incompatible. + Type 'unknown' is not assignable to type '{ d: [any, any]; }'. +fallbackToBindingPatternForTypeInference.ts(5,7): error TS2345: Argument of type '([{ g }, { h }]: [{ g: any; }, { h: any; }]) => string' is not assignable to parameter of type '(x: unknown) => string'. + Types of parameters '__0' and 'x' are incompatible. + Type 'unknown' is not assignable to type '[{ g: any; }, { h: any; }]'. +fallbackToBindingPatternForTypeInference.ts(6,7): error TS2345: Argument of type '({ a, b }: { a: any; b?: number | undefined; }) => any' is not assignable to parameter of type '(x: unknown) => string'. + Types of parameters '__0' and 'x' are incompatible. + Type 'unknown' is not assignable to type '{ a: any; b?: number | undefined; }'. + + +==== fallbackToBindingPatternForTypeInference.ts (5 errors) ==== + declare function trans(f: (x: T) => string): number; + trans(({a}) => a); + ~~~~~~~~~~ +!!! error TS2345: Argument of type '({ a }: { a: any; }) => any' is not assignable to parameter of type '(x: unknown) => string'. +!!! error TS2345: Types of parameters '__0' and 'x' are incompatible. +!!! error TS2345: Type 'unknown' is not assignable to type '{ a: any; }'. + trans(([b,c]) => 'foo'); + ~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '([b, c]: [any, any]) => string' is not assignable to parameter of type '(x: unknown) => string'. +!!! error TS2345: Types of parameters '__0' and 'x' are incompatible. +!!! error TS2345: Type 'unknown' is not assignable to type '[any, any]'. + trans(({d: [e,f]}) => 'foo'); + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '({ d: [e, f] }: { d: [any, any]; }) => string' is not assignable to parameter of type '(x: unknown) => string'. +!!! error TS2345: Types of parameters '__0' and 'x' are incompatible. +!!! error TS2345: Type 'unknown' is not assignable to type '{ d: [any, any]; }'. + trans(([{g},{h}]) => 'foo'); + ~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '([{ g }, { h }]: [{ g: any; }, { h: any; }]) => string' is not assignable to parameter of type '(x: unknown) => string'. +!!! error TS2345: Types of parameters '__0' and 'x' are incompatible. +!!! error TS2345: Type 'unknown' is not assignable to type '[{ g: any; }, { h: any; }]'. + trans(({a, b = 10}) => a); + ~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '({ a, b }: { a: any; b?: number | undefined; }) => any' is not assignable to parameter of type '(x: unknown) => string'. +!!! error TS2345: Types of parameters '__0' and 'x' are incompatible. +!!! error TS2345: Type 'unknown' is not assignable to type '{ a: any; b?: number | undefined; }'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).js new file mode 100644 index 0000000000000..60378832d9d6a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).js @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/fallbackToBindingPatternForTypeInference.ts] //// + +//// [fallbackToBindingPatternForTypeInference.ts] +declare function trans(f: (x: T) => string): number; +trans(({a}) => a); +trans(([b,c]) => 'foo'); +trans(({d: [e,f]}) => 'foo'); +trans(([{g},{h}]) => 'foo'); +trans(({a, b = 10}) => a); + + +//// [fallbackToBindingPatternForTypeInference.js] +"use strict"; +trans(({ a }) => a); +trans(([b, c]) => 'foo'); +trans(({ d: [e, f] }) => 'foo'); +trans(([{ g }, { h }]) => 'foo'); +trans(({ a, b = 10 }) => a); diff --git a/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).symbols new file mode 100644 index 0000000000000..7e6456be8db3c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/fallbackToBindingPatternForTypeInference.ts] //// + +=== fallbackToBindingPatternForTypeInference.ts === +declare function trans(f: (x: T) => string): number; +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>T : Symbol(T, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 23)) +>f : Symbol(f, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 26)) +>x : Symbol(x, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 30)) +>T : Symbol(T, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 23)) + +trans(({a}) => a); +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>a : Symbol(a, Decl(fallbackToBindingPatternForTypeInference.ts, 1, 8)) +>a : Symbol(a, Decl(fallbackToBindingPatternForTypeInference.ts, 1, 8)) + +trans(([b,c]) => 'foo'); +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>b : Symbol(b, Decl(fallbackToBindingPatternForTypeInference.ts, 2, 8)) +>c : Symbol(c, Decl(fallbackToBindingPatternForTypeInference.ts, 2, 10)) + +trans(({d: [e,f]}) => 'foo'); +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>e : Symbol(e, Decl(fallbackToBindingPatternForTypeInference.ts, 3, 12)) +>f : Symbol(f, Decl(fallbackToBindingPatternForTypeInference.ts, 3, 14)) + +trans(([{g},{h}]) => 'foo'); +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>g : Symbol(g, Decl(fallbackToBindingPatternForTypeInference.ts, 4, 9)) +>h : Symbol(h, Decl(fallbackToBindingPatternForTypeInference.ts, 4, 13)) + +trans(({a, b = 10}) => a); +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>a : Symbol(a, Decl(fallbackToBindingPatternForTypeInference.ts, 5, 8)) +>b : Symbol(b, Decl(fallbackToBindingPatternForTypeInference.ts, 5, 10)) +>a : Symbol(a, Decl(fallbackToBindingPatternForTypeInference.ts, 5, 8)) + diff --git a/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).types new file mode 100644 index 0000000000000..be3950ad98131 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=default).types @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/fallbackToBindingPatternForTypeInference.ts] //// + +=== fallbackToBindingPatternForTypeInference.ts === +declare function trans(f: (x: T) => string): number; +>trans : (f: (x: T) => string) => number +>f : (x: T) => string +>x : T + +trans(({a}) => a); +>trans(({a}) => a) : number +>trans : (f: (x: T) => string) => number +>({a}) => a : ({ a }: { a: any; }) => any +>a : any +>a : any + +trans(([b,c]) => 'foo'); +>trans(([b,c]) => 'foo') : number +>trans : (f: (x: T) => string) => number +>([b,c]) => 'foo' : ([b, c]: [any, any]) => string +>b : any +>c : any +>'foo' : "foo" + +trans(({d: [e,f]}) => 'foo'); +>trans(({d: [e,f]}) => 'foo') : number +>trans : (f: (x: T) => string) => number +>({d: [e,f]}) => 'foo' : ({ d: [e, f] }: { d: [any, any]; }) => string +>d : any +>e : any +>f : any +>'foo' : "foo" + +trans(([{g},{h}]) => 'foo'); +>trans(([{g},{h}]) => 'foo') : number +>trans : (f: (x: T) => string) => number +>([{g},{h}]) => 'foo' : ([{ g }, { h }]: [{ g: any; }, { h: any; }]) => string +>g : any +>h : any +>'foo' : "foo" + +trans(({a, b = 10}) => a); +>trans(({a, b = 10}) => a) : number +>trans : (f: (x: T) => string) => number +>({a, b = 10}) => a : ({ a, b }: { a: any; b?: number | undefined; }) => any +>a : any +>b : number +>10 : 10 +>a : any + diff --git a/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..37a59b2d11dea --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).errors.txt @@ -0,0 +1,51 @@ +fallbackToBindingPatternForTypeInference.ts(2,7): error TS2345: Argument of type '({ a }: { a: any; }) => any' is not assignable to parameter of type '(x: unknown) => string'. + Types of parameters '__0' and 'x' are incompatible. + Type 'unknown' is not assignable to type '{ a: any; }'. +fallbackToBindingPatternForTypeInference.ts(2,9): error TS2339: Property 'a' does not exist on type 'unknown'. +fallbackToBindingPatternForTypeInference.ts(3,7): error TS2345: Argument of type '([b, c]: [any, any]) => string' is not assignable to parameter of type '(x: unknown) => string'. + Types of parameters '__0' and 'x' are incompatible. + Type 'unknown' is not assignable to type '[any, any]'. +fallbackToBindingPatternForTypeInference.ts(4,7): error TS2345: Argument of type '({ d: [e, f] }: { d: [any, any]; }) => string' is not assignable to parameter of type '(x: unknown) => string'. + Types of parameters '__0' and 'x' are incompatible. + Type 'unknown' is not assignable to type '{ d: [any, any]; }'. +fallbackToBindingPatternForTypeInference.ts(5,7): error TS2345: Argument of type '([{ g }, { h }]: [{ g: any; }, { h: any; }]) => string' is not assignable to parameter of type '(x: unknown) => string'. + Types of parameters '__0' and 'x' are incompatible. + Type 'unknown' is not assignable to type '[{ g: any; }, { h: any; }]'. +fallbackToBindingPatternForTypeInference.ts(6,7): error TS2345: Argument of type '({ a, b }: { a: any; b?: number | undefined; }) => any' is not assignable to parameter of type '(x: unknown) => string'. + Types of parameters '__0' and 'x' are incompatible. + Type 'unknown' is not assignable to type '{ a: any; b?: number | undefined; }'. +fallbackToBindingPatternForTypeInference.ts(6,9): error TS2339: Property 'a' does not exist on type 'unknown'. + + +==== fallbackToBindingPatternForTypeInference.ts (7 errors) ==== + declare function trans(f: (x: T) => string): number; + trans(({a}) => a); + ~~~~~~~~~~ +!!! error TS2345: Argument of type '({ a }: { a: any; }) => any' is not assignable to parameter of type '(x: unknown) => string'. +!!! error TS2345: Types of parameters '__0' and 'x' are incompatible. +!!! error TS2345: Type 'unknown' is not assignable to type '{ a: any; }'. + ~ +!!! error TS2339: Property 'a' does not exist on type 'unknown'. + trans(([b,c]) => 'foo'); + ~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '([b, c]: [any, any]) => string' is not assignable to parameter of type '(x: unknown) => string'. +!!! error TS2345: Types of parameters '__0' and 'x' are incompatible. +!!! error TS2345: Type 'unknown' is not assignable to type '[any, any]'. + trans(({d: [e,f]}) => 'foo'); + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '({ d: [e, f] }: { d: [any, any]; }) => string' is not assignable to parameter of type '(x: unknown) => string'. +!!! error TS2345: Types of parameters '__0' and 'x' are incompatible. +!!! error TS2345: Type 'unknown' is not assignable to type '{ d: [any, any]; }'. + trans(([{g},{h}]) => 'foo'); + ~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '([{ g }, { h }]: [{ g: any; }, { h: any; }]) => string' is not assignable to parameter of type '(x: unknown) => string'. +!!! error TS2345: Types of parameters '__0' and 'x' are incompatible. +!!! error TS2345: Type 'unknown' is not assignable to type '[{ g: any; }, { h: any; }]'. + trans(({a, b = 10}) => a); + ~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '({ a, b }: { a: any; b?: number | undefined; }) => any' is not assignable to parameter of type '(x: unknown) => string'. +!!! error TS2345: Types of parameters '__0' and 'x' are incompatible. +!!! error TS2345: Type 'unknown' is not assignable to type '{ a: any; b?: number | undefined; }'. + ~ +!!! error TS2339: Property 'a' does not exist on type 'unknown'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).js new file mode 100644 index 0000000000000..60378832d9d6a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).js @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/fallbackToBindingPatternForTypeInference.ts] //// + +//// [fallbackToBindingPatternForTypeInference.ts] +declare function trans(f: (x: T) => string): number; +trans(({a}) => a); +trans(([b,c]) => 'foo'); +trans(({d: [e,f]}) => 'foo'); +trans(([{g},{h}]) => 'foo'); +trans(({a, b = 10}) => a); + + +//// [fallbackToBindingPatternForTypeInference.js] +"use strict"; +trans(({ a }) => a); +trans(([b, c]) => 'foo'); +trans(({ d: [e, f] }) => 'foo'); +trans(([{ g }, { h }]) => 'foo'); +trans(({ a, b = 10 }) => a); diff --git a/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..7e6456be8db3c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).symbols @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/fallbackToBindingPatternForTypeInference.ts] //// + +=== fallbackToBindingPatternForTypeInference.ts === +declare function trans(f: (x: T) => string): number; +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>T : Symbol(T, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 23)) +>f : Symbol(f, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 26)) +>x : Symbol(x, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 30)) +>T : Symbol(T, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 23)) + +trans(({a}) => a); +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>a : Symbol(a, Decl(fallbackToBindingPatternForTypeInference.ts, 1, 8)) +>a : Symbol(a, Decl(fallbackToBindingPatternForTypeInference.ts, 1, 8)) + +trans(([b,c]) => 'foo'); +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>b : Symbol(b, Decl(fallbackToBindingPatternForTypeInference.ts, 2, 8)) +>c : Symbol(c, Decl(fallbackToBindingPatternForTypeInference.ts, 2, 10)) + +trans(({d: [e,f]}) => 'foo'); +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>e : Symbol(e, Decl(fallbackToBindingPatternForTypeInference.ts, 3, 12)) +>f : Symbol(f, Decl(fallbackToBindingPatternForTypeInference.ts, 3, 14)) + +trans(([{g},{h}]) => 'foo'); +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>g : Symbol(g, Decl(fallbackToBindingPatternForTypeInference.ts, 4, 9)) +>h : Symbol(h, Decl(fallbackToBindingPatternForTypeInference.ts, 4, 13)) + +trans(({a, b = 10}) => a); +>trans : Symbol(trans, Decl(fallbackToBindingPatternForTypeInference.ts, 0, 0)) +>a : Symbol(a, Decl(fallbackToBindingPatternForTypeInference.ts, 5, 8)) +>b : Symbol(b, Decl(fallbackToBindingPatternForTypeInference.ts, 5, 10)) +>a : Symbol(a, Decl(fallbackToBindingPatternForTypeInference.ts, 5, 8)) + diff --git a/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).types new file mode 100644 index 0000000000000..be3950ad98131 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fallbackToBindingPatternForTypeInference(checkorder=typesfirst).types @@ -0,0 +1,49 @@ +//// [tests/cases/compiler/fallbackToBindingPatternForTypeInference.ts] //// + +=== fallbackToBindingPatternForTypeInference.ts === +declare function trans(f: (x: T) => string): number; +>trans : (f: (x: T) => string) => number +>f : (x: T) => string +>x : T + +trans(({a}) => a); +>trans(({a}) => a) : number +>trans : (f: (x: T) => string) => number +>({a}) => a : ({ a }: { a: any; }) => any +>a : any +>a : any + +trans(([b,c]) => 'foo'); +>trans(([b,c]) => 'foo') : number +>trans : (f: (x: T) => string) => number +>([b,c]) => 'foo' : ([b, c]: [any, any]) => string +>b : any +>c : any +>'foo' : "foo" + +trans(({d: [e,f]}) => 'foo'); +>trans(({d: [e,f]}) => 'foo') : number +>trans : (f: (x: T) => string) => number +>({d: [e,f]}) => 'foo' : ({ d: [e, f] }: { d: [any, any]; }) => string +>d : any +>e : any +>f : any +>'foo' : "foo" + +trans(([{g},{h}]) => 'foo'); +>trans(([{g},{h}]) => 'foo') : number +>trans : (f: (x: T) => string) => number +>([{g},{h}]) => 'foo' : ([{ g }, { h }]: [{ g: any; }, { h: any; }]) => string +>g : any +>h : any +>'foo' : "foo" + +trans(({a, b = 10}) => a); +>trans(({a, b = 10}) => a) : number +>trans : (f: (x: T) => string) => number +>({a, b = 10}) => a : ({ a, b }: { a: any; b?: number | undefined; }) => any +>a : any +>b : number +>10 : 10 +>a : any + diff --git a/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).errors.txt new file mode 100644 index 0000000000000..29a93731f366b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).errors.txt @@ -0,0 +1,29 @@ +fixingTypeParametersRepeatedly2.ts(11,32): error TS2741: Property 'toBase' is missing in type 'Base' but required in type 'Derived'. +fixingTypeParametersRepeatedly2.ts(17,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'result' must be of type 'Derived', but here has type 'Base'. + + +==== fixingTypeParametersRepeatedly2.ts (2 errors) ==== + interface Base { + baseProp; + } + interface Derived extends Base { + toBase(): Base; + } + + declare var derived: Derived; + + declare function foo(x: T, func: (p: T) => T): T; + var result = foo(derived, d => d.toBase()); + ~~~~~~~~~~ +!!! error TS2741: Property 'toBase' is missing in type 'Base' but required in type 'Derived'. +!!! related TS2728 fixingTypeParametersRepeatedly2.ts:5:5: 'toBase' is declared here. +!!! related TS6502 fixingTypeParametersRepeatedly2.ts:10:37: The expected type comes from the return type of this signature. + + // bar should type check just like foo. + // The same error should be observed in both cases. + declare function bar(x: T, func: (p: T) => T): T; + declare function bar(x: T, func: (p: T) => T): T; + var result = bar(derived, d => d.toBase()); + ~~~~~~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'result' must be of type 'Derived', but here has type 'Base'. +!!! related TS6203 fixingTypeParametersRepeatedly2.ts:11:5: 'result' was also declared here. \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).js new file mode 100644 index 0000000000000..f3ab2ec0b70b2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/fixingTypeParametersRepeatedly2.ts] //// + +//// [fixingTypeParametersRepeatedly2.ts] +interface Base { + baseProp; +} +interface Derived extends Base { + toBase(): Base; +} + +declare var derived: Derived; + +declare function foo(x: T, func: (p: T) => T): T; +var result = foo(derived, d => d.toBase()); + +// bar should type check just like foo. +// The same error should be observed in both cases. +declare function bar(x: T, func: (p: T) => T): T; +declare function bar(x: T, func: (p: T) => T): T; +var result = bar(derived, d => d.toBase()); + +//// [fixingTypeParametersRepeatedly2.js] +"use strict"; +var result = foo(derived, d => d.toBase()); +var result = bar(derived, d => d.toBase()); diff --git a/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).symbols new file mode 100644 index 0000000000000..7dc3504e7d3da --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).symbols @@ -0,0 +1,75 @@ +//// [tests/cases/compiler/fixingTypeParametersRepeatedly2.ts] //// + +=== fixingTypeParametersRepeatedly2.ts === +interface Base { +>Base : Symbol(Base, Decl(fixingTypeParametersRepeatedly2.ts, 0, 0)) + + baseProp; +>baseProp : Symbol(Base.baseProp, Decl(fixingTypeParametersRepeatedly2.ts, 0, 16)) +} +interface Derived extends Base { +>Derived : Symbol(Derived, Decl(fixingTypeParametersRepeatedly2.ts, 2, 1)) +>Base : Symbol(Base, Decl(fixingTypeParametersRepeatedly2.ts, 0, 0)) + + toBase(): Base; +>toBase : Symbol(Derived.toBase, Decl(fixingTypeParametersRepeatedly2.ts, 3, 32)) +>Base : Symbol(Base, Decl(fixingTypeParametersRepeatedly2.ts, 0, 0)) +} + +declare var derived: Derived; +>derived : Symbol(derived, Decl(fixingTypeParametersRepeatedly2.ts, 7, 11)) +>Derived : Symbol(Derived, Decl(fixingTypeParametersRepeatedly2.ts, 2, 1)) + +declare function foo(x: T, func: (p: T) => T): T; +>foo : Symbol(foo, Decl(fixingTypeParametersRepeatedly2.ts, 7, 29)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 9, 21)) +>x : Symbol(x, Decl(fixingTypeParametersRepeatedly2.ts, 9, 24)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 9, 21)) +>func : Symbol(func, Decl(fixingTypeParametersRepeatedly2.ts, 9, 29)) +>p : Symbol(p, Decl(fixingTypeParametersRepeatedly2.ts, 9, 37)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 9, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 9, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 9, 21)) + +var result = foo(derived, d => d.toBase()); +>result : Symbol(result, Decl(fixingTypeParametersRepeatedly2.ts, 10, 3), Decl(fixingTypeParametersRepeatedly2.ts, 16, 3)) +>foo : Symbol(foo, Decl(fixingTypeParametersRepeatedly2.ts, 7, 29)) +>derived : Symbol(derived, Decl(fixingTypeParametersRepeatedly2.ts, 7, 11)) +>d : Symbol(d, Decl(fixingTypeParametersRepeatedly2.ts, 10, 25)) +>d.toBase : Symbol(Derived.toBase, Decl(fixingTypeParametersRepeatedly2.ts, 3, 32)) +>d : Symbol(d, Decl(fixingTypeParametersRepeatedly2.ts, 10, 25)) +>toBase : Symbol(Derived.toBase, Decl(fixingTypeParametersRepeatedly2.ts, 3, 32)) + +// bar should type check just like foo. +// The same error should be observed in both cases. +declare function bar(x: T, func: (p: T) => T): T; +>bar : Symbol(bar, Decl(fixingTypeParametersRepeatedly2.ts, 10, 43), Decl(fixingTypeParametersRepeatedly2.ts, 14, 52)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 14, 21)) +>x : Symbol(x, Decl(fixingTypeParametersRepeatedly2.ts, 14, 24)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 14, 21)) +>func : Symbol(func, Decl(fixingTypeParametersRepeatedly2.ts, 14, 29)) +>p : Symbol(p, Decl(fixingTypeParametersRepeatedly2.ts, 14, 37)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 14, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 14, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 14, 21)) + +declare function bar(x: T, func: (p: T) => T): T; +>bar : Symbol(bar, Decl(fixingTypeParametersRepeatedly2.ts, 10, 43), Decl(fixingTypeParametersRepeatedly2.ts, 14, 52)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 15, 21)) +>x : Symbol(x, Decl(fixingTypeParametersRepeatedly2.ts, 15, 24)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 15, 21)) +>func : Symbol(func, Decl(fixingTypeParametersRepeatedly2.ts, 15, 29)) +>p : Symbol(p, Decl(fixingTypeParametersRepeatedly2.ts, 15, 37)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 15, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 15, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 15, 21)) + +var result = bar(derived, d => d.toBase()); +>result : Symbol(result, Decl(fixingTypeParametersRepeatedly2.ts, 10, 3), Decl(fixingTypeParametersRepeatedly2.ts, 16, 3)) +>bar : Symbol(bar, Decl(fixingTypeParametersRepeatedly2.ts, 10, 43), Decl(fixingTypeParametersRepeatedly2.ts, 14, 52)) +>derived : Symbol(derived, Decl(fixingTypeParametersRepeatedly2.ts, 7, 11)) +>d : Symbol(d, Decl(fixingTypeParametersRepeatedly2.ts, 16, 25)) +>d.toBase : Symbol(Derived.toBase, Decl(fixingTypeParametersRepeatedly2.ts, 3, 32)) +>d : Symbol(d, Decl(fixingTypeParametersRepeatedly2.ts, 16, 25)) +>toBase : Symbol(Derived.toBase, Decl(fixingTypeParametersRepeatedly2.ts, 3, 32)) + diff --git a/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).types new file mode 100644 index 0000000000000..0a8fca14e9475 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=default).types @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/fixingTypeParametersRepeatedly2.ts] //// + +=== fixingTypeParametersRepeatedly2.ts === +interface Base { + baseProp; +>baseProp : any +} +interface Derived extends Base { + toBase(): Base; +>toBase : () => Base +} + +declare var derived: Derived; +>derived : Derived + +declare function foo(x: T, func: (p: T) => T): T; +>foo : (x: T, func: (p: T) => T) => T +>x : T +>func : (p: T) => T +>p : T + +var result = foo(derived, d => d.toBase()); +>result : Derived +>foo(derived, d => d.toBase()) : Derived +>foo : (x: T, func: (p: T) => T) => T +>derived : Derived +>d => d.toBase() : (d: Derived) => Base +>d : Derived +>d.toBase() : Base +>d.toBase : () => Base +>d : Derived +>toBase : () => Base + +// bar should type check just like foo. +// The same error should be observed in both cases. +declare function bar(x: T, func: (p: T) => T): T; +>bar : { (x: T, func: (p: T) => T): T; (x: T_1, func: (p: T_1) => T_1): T_1; } +>x : T +>func : (p: T) => T +>p : T + +declare function bar(x: T, func: (p: T) => T): T; +>bar : { (x: T_1, func: (p: T_1) => T_1): T_1; (x: T, func: (p: T) => T): T; } +>x : T +>func : (p: T) => T +>p : T + +var result = bar(derived, d => d.toBase()); +>result : Derived +>bar(derived, d => d.toBase()) : Base +>bar : { (x: T, func: (p: T) => T): T; (x: T, func: (p: T) => T): T; } +>derived : Derived +>d => d.toBase() : (d: Derived) => Base +>d : Derived +>d.toBase() : Base +>d.toBase : () => Base +>d : Derived +>toBase : () => Base + diff --git a/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..eaf9da009a413 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).errors.txt @@ -0,0 +1,32 @@ +fixingTypeParametersRepeatedly2.ts(11,32): error TS2741: Property 'toBase' is missing in type 'Base' but required in type 'Derived'. +fixingTypeParametersRepeatedly2.ts(17,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'result' must be of type 'Derived', but here has type 'Base'. +fixingTypeParametersRepeatedly2.ts(17,34): error TS2339: Property 'toBase' does not exist on type 'Base'. + + +==== fixingTypeParametersRepeatedly2.ts (3 errors) ==== + interface Base { + baseProp; + } + interface Derived extends Base { + toBase(): Base; + } + + declare var derived: Derived; + + declare function foo(x: T, func: (p: T) => T): T; + var result = foo(derived, d => d.toBase()); + ~~~~~~~~~~ +!!! error TS2741: Property 'toBase' is missing in type 'Base' but required in type 'Derived'. +!!! related TS2728 fixingTypeParametersRepeatedly2.ts:5:5: 'toBase' is declared here. +!!! related TS6502 fixingTypeParametersRepeatedly2.ts:10:37: The expected type comes from the return type of this signature. + + // bar should type check just like foo. + // The same error should be observed in both cases. + declare function bar(x: T, func: (p: T) => T): T; + declare function bar(x: T, func: (p: T) => T): T; + var result = bar(derived, d => d.toBase()); + ~~~~~~ +!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'result' must be of type 'Derived', but here has type 'Base'. +!!! related TS6203 fixingTypeParametersRepeatedly2.ts:11:5: 'result' was also declared here. + ~~~~~~ +!!! error TS2339: Property 'toBase' does not exist on type 'Base'. \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).js new file mode 100644 index 0000000000000..f3ab2ec0b70b2 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).js @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/fixingTypeParametersRepeatedly2.ts] //// + +//// [fixingTypeParametersRepeatedly2.ts] +interface Base { + baseProp; +} +interface Derived extends Base { + toBase(): Base; +} + +declare var derived: Derived; + +declare function foo(x: T, func: (p: T) => T): T; +var result = foo(derived, d => d.toBase()); + +// bar should type check just like foo. +// The same error should be observed in both cases. +declare function bar(x: T, func: (p: T) => T): T; +declare function bar(x: T, func: (p: T) => T): T; +var result = bar(derived, d => d.toBase()); + +//// [fixingTypeParametersRepeatedly2.js] +"use strict"; +var result = foo(derived, d => d.toBase()); +var result = bar(derived, d => d.toBase()); diff --git a/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..7dc3504e7d3da --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).symbols @@ -0,0 +1,75 @@ +//// [tests/cases/compiler/fixingTypeParametersRepeatedly2.ts] //// + +=== fixingTypeParametersRepeatedly2.ts === +interface Base { +>Base : Symbol(Base, Decl(fixingTypeParametersRepeatedly2.ts, 0, 0)) + + baseProp; +>baseProp : Symbol(Base.baseProp, Decl(fixingTypeParametersRepeatedly2.ts, 0, 16)) +} +interface Derived extends Base { +>Derived : Symbol(Derived, Decl(fixingTypeParametersRepeatedly2.ts, 2, 1)) +>Base : Symbol(Base, Decl(fixingTypeParametersRepeatedly2.ts, 0, 0)) + + toBase(): Base; +>toBase : Symbol(Derived.toBase, Decl(fixingTypeParametersRepeatedly2.ts, 3, 32)) +>Base : Symbol(Base, Decl(fixingTypeParametersRepeatedly2.ts, 0, 0)) +} + +declare var derived: Derived; +>derived : Symbol(derived, Decl(fixingTypeParametersRepeatedly2.ts, 7, 11)) +>Derived : Symbol(Derived, Decl(fixingTypeParametersRepeatedly2.ts, 2, 1)) + +declare function foo(x: T, func: (p: T) => T): T; +>foo : Symbol(foo, Decl(fixingTypeParametersRepeatedly2.ts, 7, 29)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 9, 21)) +>x : Symbol(x, Decl(fixingTypeParametersRepeatedly2.ts, 9, 24)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 9, 21)) +>func : Symbol(func, Decl(fixingTypeParametersRepeatedly2.ts, 9, 29)) +>p : Symbol(p, Decl(fixingTypeParametersRepeatedly2.ts, 9, 37)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 9, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 9, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 9, 21)) + +var result = foo(derived, d => d.toBase()); +>result : Symbol(result, Decl(fixingTypeParametersRepeatedly2.ts, 10, 3), Decl(fixingTypeParametersRepeatedly2.ts, 16, 3)) +>foo : Symbol(foo, Decl(fixingTypeParametersRepeatedly2.ts, 7, 29)) +>derived : Symbol(derived, Decl(fixingTypeParametersRepeatedly2.ts, 7, 11)) +>d : Symbol(d, Decl(fixingTypeParametersRepeatedly2.ts, 10, 25)) +>d.toBase : Symbol(Derived.toBase, Decl(fixingTypeParametersRepeatedly2.ts, 3, 32)) +>d : Symbol(d, Decl(fixingTypeParametersRepeatedly2.ts, 10, 25)) +>toBase : Symbol(Derived.toBase, Decl(fixingTypeParametersRepeatedly2.ts, 3, 32)) + +// bar should type check just like foo. +// The same error should be observed in both cases. +declare function bar(x: T, func: (p: T) => T): T; +>bar : Symbol(bar, Decl(fixingTypeParametersRepeatedly2.ts, 10, 43), Decl(fixingTypeParametersRepeatedly2.ts, 14, 52)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 14, 21)) +>x : Symbol(x, Decl(fixingTypeParametersRepeatedly2.ts, 14, 24)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 14, 21)) +>func : Symbol(func, Decl(fixingTypeParametersRepeatedly2.ts, 14, 29)) +>p : Symbol(p, Decl(fixingTypeParametersRepeatedly2.ts, 14, 37)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 14, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 14, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 14, 21)) + +declare function bar(x: T, func: (p: T) => T): T; +>bar : Symbol(bar, Decl(fixingTypeParametersRepeatedly2.ts, 10, 43), Decl(fixingTypeParametersRepeatedly2.ts, 14, 52)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 15, 21)) +>x : Symbol(x, Decl(fixingTypeParametersRepeatedly2.ts, 15, 24)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 15, 21)) +>func : Symbol(func, Decl(fixingTypeParametersRepeatedly2.ts, 15, 29)) +>p : Symbol(p, Decl(fixingTypeParametersRepeatedly2.ts, 15, 37)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 15, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 15, 21)) +>T : Symbol(T, Decl(fixingTypeParametersRepeatedly2.ts, 15, 21)) + +var result = bar(derived, d => d.toBase()); +>result : Symbol(result, Decl(fixingTypeParametersRepeatedly2.ts, 10, 3), Decl(fixingTypeParametersRepeatedly2.ts, 16, 3)) +>bar : Symbol(bar, Decl(fixingTypeParametersRepeatedly2.ts, 10, 43), Decl(fixingTypeParametersRepeatedly2.ts, 14, 52)) +>derived : Symbol(derived, Decl(fixingTypeParametersRepeatedly2.ts, 7, 11)) +>d : Symbol(d, Decl(fixingTypeParametersRepeatedly2.ts, 16, 25)) +>d.toBase : Symbol(Derived.toBase, Decl(fixingTypeParametersRepeatedly2.ts, 3, 32)) +>d : Symbol(d, Decl(fixingTypeParametersRepeatedly2.ts, 16, 25)) +>toBase : Symbol(Derived.toBase, Decl(fixingTypeParametersRepeatedly2.ts, 3, 32)) + diff --git a/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).types new file mode 100644 index 0000000000000..a94614635d95a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/fixingTypeParametersRepeatedly2(checkorder=typesfirst).types @@ -0,0 +1,59 @@ +//// [tests/cases/compiler/fixingTypeParametersRepeatedly2.ts] //// + +=== fixingTypeParametersRepeatedly2.ts === +interface Base { + baseProp; +>baseProp : any +} +interface Derived extends Base { + toBase(): Base; +>toBase : () => Base +} + +declare var derived: Derived; +>derived : Derived + +declare function foo(x: T, func: (p: T) => T): T; +>foo : (x: T, func: (p: T) => T) => T +>x : T +>func : (p: T) => T +>p : T + +var result = foo(derived, d => d.toBase()); +>result : Derived +>foo(derived, d => d.toBase()) : Derived +>foo : (x: T, func: (p: T) => T) => T +>derived : Derived +>d => d.toBase() : (d: Derived) => Base +>d : Derived +>d.toBase() : Base +>d.toBase : () => Base +>d : Derived +>toBase : () => Base + +// bar should type check just like foo. +// The same error should be observed in both cases. +declare function bar(x: T, func: (p: T) => T): T; +>bar : { (x: T, func: (p: T) => T): T; (x: T_1, func: (p: T_1) => T_1): T_1; } +>x : T +>func : (p: T) => T +>p : T + +declare function bar(x: T, func: (p: T) => T): T; +>bar : { (x: T_1, func: (p: T_1) => T_1): T_1; (x: T, func: (p: T) => T): T; } +>x : T +>func : (p: T) => T +>p : T + +var result = bar(derived, d => d.toBase()); +>result : Derived +>bar(derived, d => d.toBase()) : Base +>bar : { (x: T, func: (p: T) => T): T; (x: T, func: (p: T) => T): T; } +>derived : Derived +>d => d.toBase() : (d: Derived) => Base +>d : Derived +>d.toBase() : Base +>d.toBase : any +>d : Derived +>toBase : any + diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..6e19f55994980 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=default).symbols @@ -0,0 +1,3060 @@ +//// [tests/cases/compiler/flowLoopDepthCheckOrder.ts] //// + +=== flowLoopDepthCheckOrder.ts === +// A loop is analyzed once for all references to the same name and the +// result is cached, so its analysis must not depend on the reference that +// reached it first. 'deep' reaches the loop with little depth left. +// Analyzing the loop from there must not make 'x' inside it give up when +// 'deep' is queried first. + +declare function cond(): boolean; +>cond : Symbol(cond, Decl(flowLoopDepthCheckOrder.ts, 0, 0)) + +declare let b: boolean; +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +let x: string | number = 0; +>x : Symbol(x, Decl(flowLoopDepthCheckOrder.ts, 9, 3)) + +while (cond()) { +>cond : Symbol(cond, Decl(flowLoopDepthCheckOrder.ts, 0, 0)) + + if (typeof x === "string") { x = 1; } else { x = "a"; } +>x : Symbol(x, Decl(flowLoopDepthCheckOrder.ts, 9, 3)) +>x : Symbol(x, Decl(flowLoopDepthCheckOrder.ts, 9, 3)) +>x : Symbol(x, Decl(flowLoopDepthCheckOrder.ts, 9, 3)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) +} +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +const deep = x; +>deep : Symbol(deep, Decl(flowLoopDepthCheckOrder.ts, 1023, 5)) +>x : Symbol(x, Decl(flowLoopDepthCheckOrder.ts, 9, 3)) + diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..efbb9a68a52ad --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=default).types @@ -0,0 +1,3069 @@ +//// [tests/cases/compiler/flowLoopDepthCheckOrder.ts] //// + +=== flowLoopDepthCheckOrder.ts === +// A loop is analyzed once for all references to the same name and the +// result is cached, so its analysis must not depend on the reference that +// reached it first. 'deep' reaches the loop with little depth left. +// Analyzing the loop from there must not make 'x' inside it give up when +// 'deep' is queried first. + +declare function cond(): boolean; +>cond : () => boolean + +declare let b: boolean; +>b : boolean + +let x: string | number = 0; +>x : string | number +>0 : 0 + +while (cond()) { +>cond() : boolean +>cond : () => boolean + + if (typeof x === "string") { x = 1; } else { x = "a"; } +>typeof x === "string" : boolean +>typeof x : "bigint" | "boolean" | "function" | "number" | "object" | "string" | "symbol" | "undefined" +>x : string | number +>"string" : "string" +>x = 1 : 1 +>x : string | number +>1 : 1 +>x = "a" : "a" +>x : string | number +>"a" : "a" + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean + + if (b) {} +>b : boolean +} +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +if (b) {} +>b : boolean + +const deep = x; +>deep : string | number +>x : string | number + diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..2e4675292eeb0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,1031 @@ +flowLoopDepthCheckOrder.ts(7,1): error TS2563: The containing function or module body is too large for control flow analysis. + + +==== flowLoopDepthCheckOrder.ts (1 errors) ==== + // A loop is analyzed once for all references to the same name and the + // result is cached, so its analysis must not depend on the reference that + // reached it first. 'deep' reaches the loop with little depth left. + // Analyzing the loop from there must not make 'x' inside it give up when + // 'deep' is queried first. + + declare function cond(): boolean; + ~~~~~~~ +!!! error TS2563: The containing function or module body is too large for control flow analysis. + declare let b: boolean; + + let x: string | number = 0; + while (cond()) { + if (typeof x === "string") { x = 1; } else { x = "a"; } + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + } + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + const deep = x; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..6e19f55994980 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,3060 @@ +//// [tests/cases/compiler/flowLoopDepthCheckOrder.ts] //// + +=== flowLoopDepthCheckOrder.ts === +// A loop is analyzed once for all references to the same name and the +// result is cached, so its analysis must not depend on the reference that +// reached it first. 'deep' reaches the loop with little depth left. +// Analyzing the loop from there must not make 'x' inside it give up when +// 'deep' is queried first. + +declare function cond(): boolean; +>cond : Symbol(cond, Decl(flowLoopDepthCheckOrder.ts, 0, 0)) + +declare let b: boolean; +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +let x: string | number = 0; +>x : Symbol(x, Decl(flowLoopDepthCheckOrder.ts, 9, 3)) + +while (cond()) { +>cond : Symbol(cond, Decl(flowLoopDepthCheckOrder.ts, 0, 0)) + + if (typeof x === "string") { x = 1; } else { x = "a"; } +>x : Symbol(x, Decl(flowLoopDepthCheckOrder.ts, 9, 3)) +>x : Symbol(x, Decl(flowLoopDepthCheckOrder.ts, 9, 3)) +>x : Symbol(x, Decl(flowLoopDepthCheckOrder.ts, 9, 3)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) +} +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +if (b) {} +>b : Symbol(b, Decl(flowLoopDepthCheckOrder.ts, 7, 11)) + +const deep = x; +>deep : Symbol(deep, Decl(flowLoopDepthCheckOrder.ts, 1023, 5)) +>x : Symbol(x, Decl(flowLoopDepthCheckOrder.ts, 9, 3)) + diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..99b5a33596d2c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopDepthCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,3069 @@ +//// [tests/cases/compiler/flowLoopDepthCheckOrder.ts] //// + +=== flowLoopDepthCheckOrder.ts === +// A loop is analyzed once for all references to the same name and the +// result is cached, so its analysis must not depend on the reference that +// reached it first. 'deep' reaches the loop with little depth left. +// Analyzing the loop from there must not make 'x' inside it give up when +// 'deep' is queried first. + +declare function cond(): boolean; +>cond : () => boolean + +declare let b: boolean; +>b : boolean + +let x: string | number = 0; +>x : string | number +>0 : 0 + +while (cond()) { +>cond() : boolean +>cond : () => boolean + + if (typeof x === "string") { x = 1; } else { x = "a"; } +>typeof x === "string" : boolean +>typeof x : "bigint" | "boolean" | "function" | "number" | "object" | "string" | "symbol" | "undefined" +>x : any +>"string" : "string" +>x = 1 : 1 +>x : string | number +>1 : 1 +>x = "a" : "a" +>x : string | number +>"a" : "a" + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any +} +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +if (b) {} +>b : any + +const deep = x; +>deep : any +>x : any + diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..b43190520aaab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,1126 @@ +flowLoopTooDeepCheckOrder.ts(4,1): error TS2563: The containing function or module body is too large for control flow analysis. + + +==== flowLoopTooDeepCheckOrder.ts (1 errors) ==== + // The loop is too deep to analyze from any reference, so 'narrowed' gives + // up whether or not the reference in the loop analyzed the loop first. + + declare function cond(): boolean; + ~~~~~~~ +!!! error TS2563: The containing function or module body is too large for control flow analysis. + declare function isString(value: unknown): value is string; + declare let b: boolean; + + let w: string | number = 0; + while (cond()) { + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (typeof w === "string") { w = 1; } else { w = "a"; } + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + } + if (isString(w)) { + const narrowed = w; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..42c2e0915139d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).symbols @@ -0,0 +1,3352 @@ +//// [tests/cases/compiler/flowLoopTooDeepCheckOrder.ts] //// + +=== flowLoopTooDeepCheckOrder.ts === +// The loop is too deep to analyze from any reference, so 'narrowed' gives +// up whether or not the reference in the loop analyzed the loop first. + +declare function cond(): boolean; +>cond : Symbol(cond, Decl(flowLoopTooDeepCheckOrder.ts, 0, 0)) + +declare function isString(value: unknown): value is string; +>isString : Symbol(isString, Decl(flowLoopTooDeepCheckOrder.ts, 3, 33)) +>value : Symbol(value, Decl(flowLoopTooDeepCheckOrder.ts, 4, 26)) +>value : Symbol(value, Decl(flowLoopTooDeepCheckOrder.ts, 4, 26)) + +declare let b: boolean; +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + +let w: string | number = 0; +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) + +while (cond()) { +>cond : Symbol(cond, Decl(flowLoopTooDeepCheckOrder.ts, 0, 0)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (typeof w === "string") { w = 1; } else { w = "a"; } +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) +} +if (isString(w)) { +>isString : Symbol(isString, Decl(flowLoopTooDeepCheckOrder.ts, 3, 33)) +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) + + const narrowed = w; +>narrowed : Symbol(narrowed, Decl(flowLoopTooDeepCheckOrder.ts, 1117, 9)) +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..2a0727e493817 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=default).types @@ -0,0 +1,3361 @@ +//// [tests/cases/compiler/flowLoopTooDeepCheckOrder.ts] //// + +=== flowLoopTooDeepCheckOrder.ts === +// The loop is too deep to analyze from any reference, so 'narrowed' gives +// up whether or not the reference in the loop analyzed the loop first. + +declare function cond(): boolean; +>cond : () => boolean + +declare function isString(value: unknown): value is string; +>isString : (value: unknown) => value is string +>value : unknown + +declare let b: boolean; +>b : boolean + +let w: string | number = 0; +>w : string | number +>0 : 0 + +while (cond()) { +>cond() : boolean +>cond : () => boolean + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (typeof w === "string") { w = 1; } else { w = "a"; } +>typeof w === "string" : boolean +>typeof w : "bigint" | "boolean" | "function" | "number" | "object" | "string" | "symbol" | "undefined" +>w : any +>"string" : "string" +>w = 1 : 1 +>w : string | number +>1 : 1 +>w = "a" : "a" +>w : string | number +>"a" : "a" + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any +} +if (isString(w)) { +>isString(w) : boolean +>isString : (value: unknown) => value is string +>w : any + + const narrowed = w; +>narrowed : any +>w : any +} + diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..b43190520aaab --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,1126 @@ +flowLoopTooDeepCheckOrder.ts(4,1): error TS2563: The containing function or module body is too large for control flow analysis. + + +==== flowLoopTooDeepCheckOrder.ts (1 errors) ==== + // The loop is too deep to analyze from any reference, so 'narrowed' gives + // up whether or not the reference in the loop analyzed the loop first. + + declare function cond(): boolean; + ~~~~~~~ +!!! error TS2563: The containing function or module body is too large for control flow analysis. + declare function isString(value: unknown): value is string; + declare let b: boolean; + + let w: string | number = 0; + while (cond()) { + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (typeof w === "string") { w = 1; } else { w = "a"; } + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + if (b) {} + } + if (isString(w)) { + const narrowed = w; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..42c2e0915139d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,3352 @@ +//// [tests/cases/compiler/flowLoopTooDeepCheckOrder.ts] //// + +=== flowLoopTooDeepCheckOrder.ts === +// The loop is too deep to analyze from any reference, so 'narrowed' gives +// up whether or not the reference in the loop analyzed the loop first. + +declare function cond(): boolean; +>cond : Symbol(cond, Decl(flowLoopTooDeepCheckOrder.ts, 0, 0)) + +declare function isString(value: unknown): value is string; +>isString : Symbol(isString, Decl(flowLoopTooDeepCheckOrder.ts, 3, 33)) +>value : Symbol(value, Decl(flowLoopTooDeepCheckOrder.ts, 4, 26)) +>value : Symbol(value, Decl(flowLoopTooDeepCheckOrder.ts, 4, 26)) + +declare let b: boolean; +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + +let w: string | number = 0; +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) + +while (cond()) { +>cond : Symbol(cond, Decl(flowLoopTooDeepCheckOrder.ts, 0, 0)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (typeof w === "string") { w = 1; } else { w = "a"; } +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) + + if (b) {} +>b : Symbol(b, Decl(flowLoopTooDeepCheckOrder.ts, 5, 11)) +} +if (isString(w)) { +>isString : Symbol(isString, Decl(flowLoopTooDeepCheckOrder.ts, 3, 33)) +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) + + const narrowed = w; +>narrowed : Symbol(narrowed, Decl(flowLoopTooDeepCheckOrder.ts, 1117, 9)) +>w : Symbol(w, Decl(flowLoopTooDeepCheckOrder.ts, 7, 3)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..5bb07088ede1b --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/flowLoopTooDeepCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,3361 @@ +//// [tests/cases/compiler/flowLoopTooDeepCheckOrder.ts] //// + +=== flowLoopTooDeepCheckOrder.ts === +// The loop is too deep to analyze from any reference, so 'narrowed' gives +// up whether or not the reference in the loop analyzed the loop first. + +declare function cond(): boolean; +>cond : () => boolean + +declare function isString(value: unknown): value is string; +>isString : (value: unknown) => value is string +>value : unknown + +declare let b: boolean; +>b : boolean + +let w: string | number = 0; +>w : string | number +>0 : 0 + +while (cond()) { +>cond() : boolean +>cond : () => boolean + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (typeof w === "string") { w = 1; } else { w = "a"; } +>typeof w === "string" : boolean +>typeof w : "bigint" | "boolean" | "function" | "number" | "object" | "string" | "symbol" | "undefined" +>w : any +>"string" : "string" +>w = 1 : 1 +>w : string | number +>1 : 1 +>w = "a" : "a" +>w : string | number +>"a" : "a" + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any + + if (b) {} +>b : any +} +if (isString(w)) { +>isString(w) : boolean +>isString : (value: unknown) => value is string +>w : any + + const narrowed = w; +>narrowed : any +>w : string +} + diff --git a/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).errors.txt new file mode 100644 index 0000000000000..adfc91cadd7fc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).errors.txt @@ -0,0 +1,31 @@ +genericCallReturnedFunctionParameterDefault.ts(24,5): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. + + +==== genericCallReturnedFunctionParameterDefault.ts (1 errors) ==== + // The function returned from the callback of a generic call has a parameter + // with a default and no annotation. Once T is inferred, the contextual + // signature of the returned function is its own signature, but the parameter + // already has its type (boolean) from the initializer, computed while T was + // being inferred, so there is no circularity: no TS7022, and 'r()(1)' is an + // error. (Reduced from open-design ProjectView.tsx, useCallback returning + // '{ release: (recoverable = false) => ... }'.) + + declare function id(callback: T): T; + + id(() => { + return (x = false) => {}; + }); + + id(() => (y = false) => y); + + id(() => { + return { m(z = false) {} }; + }); + + const r = id(() => { + return (w = 0) => {}; + }); + r()(""); + ~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).symbols new file mode 100644 index 0000000000000..ee8aa11e466f0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/genericCallReturnedFunctionParameterDefault.ts] //// + +=== genericCallReturnedFunctionParameterDefault.ts === +// The function returned from the callback of a generic call has a parameter +// with a default and no annotation. Once T is inferred, the contextual +// signature of the returned function is its own signature, but the parameter +// already has its type (boolean) from the initializer, computed while T was +// being inferred, so there is no circularity: no TS7022, and 'r()(1)' is an +// error. (Reduced from open-design ProjectView.tsx, useCallback returning +// '{ release: (recoverable = false) => ... }'.) + +declare function id(callback: T): T; +>id : Symbol(id, Decl(genericCallReturnedFunctionParameterDefault.ts, 0, 0)) +>T : Symbol(T, Decl(genericCallReturnedFunctionParameterDefault.ts, 8, 20)) +>callback : Symbol(callback, Decl(genericCallReturnedFunctionParameterDefault.ts, 8, 23)) +>T : Symbol(T, Decl(genericCallReturnedFunctionParameterDefault.ts, 8, 20)) +>T : Symbol(T, Decl(genericCallReturnedFunctionParameterDefault.ts, 8, 20)) + +id(() => { +>id : Symbol(id, Decl(genericCallReturnedFunctionParameterDefault.ts, 0, 0)) + + return (x = false) => {}; +>x : Symbol(x, Decl(genericCallReturnedFunctionParameterDefault.ts, 11, 12)) + +}); + +id(() => (y = false) => y); +>id : Symbol(id, Decl(genericCallReturnedFunctionParameterDefault.ts, 0, 0)) +>y : Symbol(y, Decl(genericCallReturnedFunctionParameterDefault.ts, 14, 10)) +>y : Symbol(y, Decl(genericCallReturnedFunctionParameterDefault.ts, 14, 10)) + +id(() => { +>id : Symbol(id, Decl(genericCallReturnedFunctionParameterDefault.ts, 0, 0)) + + return { m(z = false) {} }; +>m : Symbol(m, Decl(genericCallReturnedFunctionParameterDefault.ts, 17, 12)) +>z : Symbol(z, Decl(genericCallReturnedFunctionParameterDefault.ts, 17, 15)) + +}); + +const r = id(() => { +>r : Symbol(r, Decl(genericCallReturnedFunctionParameterDefault.ts, 20, 5)) +>id : Symbol(id, Decl(genericCallReturnedFunctionParameterDefault.ts, 0, 0)) + + return (w = 0) => {}; +>w : Symbol(w, Decl(genericCallReturnedFunctionParameterDefault.ts, 21, 12)) + +}); +r()(""); +>r : Symbol(r, Decl(genericCallReturnedFunctionParameterDefault.ts, 20, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).types new file mode 100644 index 0000000000000..a8c98c3242e89 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=default).types @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/genericCallReturnedFunctionParameterDefault.ts] //// + +=== genericCallReturnedFunctionParameterDefault.ts === +// The function returned from the callback of a generic call has a parameter +// with a default and no annotation. Once T is inferred, the contextual +// signature of the returned function is its own signature, but the parameter +// already has its type (boolean) from the initializer, computed while T was +// being inferred, so there is no circularity: no TS7022, and 'r()(1)' is an +// error. (Reduced from open-design ProjectView.tsx, useCallback returning +// '{ release: (recoverable = false) => ... }'.) + +declare function id(callback: T): T; +>id : (callback: T) => T +>callback : T + +id(() => { +>id(() => { return (x = false) => {};}) : () => (x?: boolean) => void +>id : (callback: T) => T +>() => { return (x = false) => {};} : () => (x?: boolean) => void + + return (x = false) => {}; +>(x = false) => {} : (x?: boolean) => void +>x : boolean +>false : false + +}); + +id(() => (y = false) => y); +>id(() => (y = false) => y) : () => (y?: boolean) => boolean +>id : (callback: T) => T +>() => (y = false) => y : () => (y?: boolean) => boolean +>(y = false) => y : (y?: boolean) => boolean +>y : boolean +>false : false +>y : boolean + +id(() => { +>id(() => { return { m(z = false) {} };}) : () => { m(z?: boolean): void; } +>id : (callback: T) => T +>() => { return { m(z = false) {} };} : () => { m(z?: boolean): void; } + + return { m(z = false) {} }; +>{ m(z = false) {} } : { m(z?: boolean): void; } +>m : (z?: boolean) => void +>z : boolean +>false : false + +}); + +const r = id(() => { +>r : () => (w?: number) => void +>id(() => { return (w = 0) => {};}) : () => (w?: number) => void +>id : (callback: T) => T +>() => { return (w = 0) => {};} : () => (w?: number) => void + + return (w = 0) => {}; +>(w = 0) => {} : (w?: number) => void +>w : number +>0 : 0 + +}); +r()(""); +>r()("") : void +>r() : (w?: number) => void +>r : () => (w?: number) => void +>"" : "" + diff --git a/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..adfc91cadd7fc --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).errors.txt @@ -0,0 +1,31 @@ +genericCallReturnedFunctionParameterDefault.ts(24,5): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. + + +==== genericCallReturnedFunctionParameterDefault.ts (1 errors) ==== + // The function returned from the callback of a generic call has a parameter + // with a default and no annotation. Once T is inferred, the contextual + // signature of the returned function is its own signature, but the parameter + // already has its type (boolean) from the initializer, computed while T was + // being inferred, so there is no circularity: no TS7022, and 'r()(1)' is an + // error. (Reduced from open-design ProjectView.tsx, useCallback returning + // '{ release: (recoverable = false) => ... }'.) + + declare function id(callback: T): T; + + id(() => { + return (x = false) => {}; + }); + + id(() => (y = false) => y); + + id(() => { + return { m(z = false) {} }; + }); + + const r = id(() => { + return (w = 0) => {}; + }); + r()(""); + ~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..ee8aa11e466f0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).symbols @@ -0,0 +1,51 @@ +//// [tests/cases/compiler/genericCallReturnedFunctionParameterDefault.ts] //// + +=== genericCallReturnedFunctionParameterDefault.ts === +// The function returned from the callback of a generic call has a parameter +// with a default and no annotation. Once T is inferred, the contextual +// signature of the returned function is its own signature, but the parameter +// already has its type (boolean) from the initializer, computed while T was +// being inferred, so there is no circularity: no TS7022, and 'r()(1)' is an +// error. (Reduced from open-design ProjectView.tsx, useCallback returning +// '{ release: (recoverable = false) => ... }'.) + +declare function id(callback: T): T; +>id : Symbol(id, Decl(genericCallReturnedFunctionParameterDefault.ts, 0, 0)) +>T : Symbol(T, Decl(genericCallReturnedFunctionParameterDefault.ts, 8, 20)) +>callback : Symbol(callback, Decl(genericCallReturnedFunctionParameterDefault.ts, 8, 23)) +>T : Symbol(T, Decl(genericCallReturnedFunctionParameterDefault.ts, 8, 20)) +>T : Symbol(T, Decl(genericCallReturnedFunctionParameterDefault.ts, 8, 20)) + +id(() => { +>id : Symbol(id, Decl(genericCallReturnedFunctionParameterDefault.ts, 0, 0)) + + return (x = false) => {}; +>x : Symbol(x, Decl(genericCallReturnedFunctionParameterDefault.ts, 11, 12)) + +}); + +id(() => (y = false) => y); +>id : Symbol(id, Decl(genericCallReturnedFunctionParameterDefault.ts, 0, 0)) +>y : Symbol(y, Decl(genericCallReturnedFunctionParameterDefault.ts, 14, 10)) +>y : Symbol(y, Decl(genericCallReturnedFunctionParameterDefault.ts, 14, 10)) + +id(() => { +>id : Symbol(id, Decl(genericCallReturnedFunctionParameterDefault.ts, 0, 0)) + + return { m(z = false) {} }; +>m : Symbol(m, Decl(genericCallReturnedFunctionParameterDefault.ts, 17, 12)) +>z : Symbol(z, Decl(genericCallReturnedFunctionParameterDefault.ts, 17, 15)) + +}); + +const r = id(() => { +>r : Symbol(r, Decl(genericCallReturnedFunctionParameterDefault.ts, 20, 5)) +>id : Symbol(id, Decl(genericCallReturnedFunctionParameterDefault.ts, 0, 0)) + + return (w = 0) => {}; +>w : Symbol(w, Decl(genericCallReturnedFunctionParameterDefault.ts, 21, 12)) + +}); +r()(""); +>r : Symbol(r, Decl(genericCallReturnedFunctionParameterDefault.ts, 20, 5)) + diff --git a/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).types new file mode 100644 index 0000000000000..a8c98c3242e89 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/genericCallReturnedFunctionParameterDefault(checkorder=typesfirst).types @@ -0,0 +1,67 @@ +//// [tests/cases/compiler/genericCallReturnedFunctionParameterDefault.ts] //// + +=== genericCallReturnedFunctionParameterDefault.ts === +// The function returned from the callback of a generic call has a parameter +// with a default and no annotation. Once T is inferred, the contextual +// signature of the returned function is its own signature, but the parameter +// already has its type (boolean) from the initializer, computed while T was +// being inferred, so there is no circularity: no TS7022, and 'r()(1)' is an +// error. (Reduced from open-design ProjectView.tsx, useCallback returning +// '{ release: (recoverable = false) => ... }'.) + +declare function id(callback: T): T; +>id : (callback: T) => T +>callback : T + +id(() => { +>id(() => { return (x = false) => {};}) : () => (x?: boolean) => void +>id : (callback: T) => T +>() => { return (x = false) => {};} : () => (x?: boolean) => void + + return (x = false) => {}; +>(x = false) => {} : (x?: boolean) => void +>x : boolean +>false : false + +}); + +id(() => (y = false) => y); +>id(() => (y = false) => y) : () => (y?: boolean) => boolean +>id : (callback: T) => T +>() => (y = false) => y : () => (y?: boolean) => boolean +>(y = false) => y : (y?: boolean) => boolean +>y : boolean +>false : false +>y : boolean + +id(() => { +>id(() => { return { m(z = false) {} };}) : () => { m(z?: boolean): void; } +>id : (callback: T) => T +>() => { return { m(z = false) {} };} : () => { m(z?: boolean): void; } + + return { m(z = false) {} }; +>{ m(z = false) {} } : { m(z?: boolean): void; } +>m : (z?: boolean) => void +>z : boolean +>false : false + +}); + +const r = id(() => { +>r : () => (w?: number) => void +>id(() => { return (w = 0) => {};}) : () => (w?: number) => void +>id : (callback: T) => T +>() => { return (w = 0) => {};} : () => (w?: number) => void + + return (w = 0) => {}; +>(w = 0) => {} : (w?: number) => void +>w : number +>0 : 0 + +}); +r()(""); +>r()("") : void +>r() : (w?: number) => void +>r : () => (w?: number) => void +>"" : "" + diff --git a/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.errors.txt b/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.errors.txt new file mode 100644 index 0000000000000..ada42d0527e20 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.errors.txt @@ -0,0 +1,17 @@ +getterCircularityDiagnostics.ts(4,9): error TS7023: 'options' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + + +==== getterCircularityDiagnostics.ts (1 errors) ==== + declare const props: Options; + + class Container { + get options() { + ~~~~~~~ +!!! error TS7023: 'options' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + return { container: this, ...props } as Options; + } + } + + interface Options { + container?: Container; + } \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.js b/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.js new file mode 100644 index 0000000000000..e7507ff16bec4 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/getterCircularityDiagnostics.ts] //// + +//// [getterCircularityDiagnostics.ts] +declare const props: Options; + +class Container { + get options() { + return { container: this, ...props } as Options; + } +} + +interface Options { + container?: Container; +} + +//// [getterCircularityDiagnostics.js] +"use strict"; +class Container { + get options() { + return Object.assign({ container: this }, props); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.symbols b/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.symbols new file mode 100644 index 0000000000000..7ef53202b8061 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.symbols @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/getterCircularityDiagnostics.ts] //// + +=== getterCircularityDiagnostics.ts === +declare const props: Options; +>props : Symbol(props, Decl(getterCircularityDiagnostics.ts, 0, 13)) +>Options : Symbol(Options, Decl(getterCircularityDiagnostics.ts, 6, 1)) + +class Container { +>Container : Symbol(Container, Decl(getterCircularityDiagnostics.ts, 0, 29)) + + get options() { +>options : Symbol(Container.options, Decl(getterCircularityDiagnostics.ts, 2, 17)) + + return { container: this, ...props } as Options; +>container : Symbol(container, Decl(getterCircularityDiagnostics.ts, 4, 16)) +>this : Symbol(Container, Decl(getterCircularityDiagnostics.ts, 0, 29)) +>props : Symbol(props, Decl(getterCircularityDiagnostics.ts, 0, 13)) +>Options : Symbol(Options, Decl(getterCircularityDiagnostics.ts, 6, 1)) + } +} + +interface Options { +>Options : Symbol(Options, Decl(getterCircularityDiagnostics.ts, 6, 1)) + + container?: Container; +>container : Symbol(Options.container, Decl(getterCircularityDiagnostics.ts, 8, 19)) +>Container : Symbol(Container, Decl(getterCircularityDiagnostics.ts, 0, 29)) +} diff --git a/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.types b/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.types new file mode 100644 index 0000000000000..03f8b125b218d --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterCircularityDiagnostics.types @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/getterCircularityDiagnostics.ts] //// + +=== getterCircularityDiagnostics.ts === +declare const props: Options; +>props : Options + +class Container { +>Container : Container + + get options() { +>options : any + + return { container: this, ...props } as Options; +>{ container: this, ...props } as Options : Options +>{ container: this, ...props } : { container: Container; } +>container : this +>this : this +>props : Options + } +} + +interface Options { + container?: Container; +>container : Container | undefined +} diff --git a/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..4f28621217936 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).errors.txt @@ -0,0 +1,18 @@ +getterReturnTypeQueryOrder.ts(4,9): error TS7023: 'options' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + + +==== getterReturnTypeQueryOrder.ts (1 errors) ==== + declare const props: Options; + + class Container { + get options() { + ~~~~~~~ +!!! error TS7023: 'options' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + return { container: this, ...props } as Options; + } + } + + interface Options { + container?: Container; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).js new file mode 100644 index 0000000000000..86ae054a9e244 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/getterReturnTypeQueryOrder.ts] //// + +//// [getterReturnTypeQueryOrder.ts] +declare const props: Options; + +class Container { + get options() { + return { container: this, ...props } as Options; + } +} + +interface Options { + container?: Container; +} + + +//// [getterReturnTypeQueryOrder.js] +"use strict"; +class Container { + get options() { + return Object.assign({ container: this }, props); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..0425451cdc246 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/getterReturnTypeQueryOrder.ts] //// + +=== getterReturnTypeQueryOrder.ts === +declare const props: Options; +>props : Symbol(props, Decl(getterReturnTypeQueryOrder.ts, 0, 13)) +>Options : Symbol(Options, Decl(getterReturnTypeQueryOrder.ts, 6, 1)) + +class Container { +>Container : Symbol(Container, Decl(getterReturnTypeQueryOrder.ts, 0, 29)) + + get options() { +>options : Symbol(Container.options, Decl(getterReturnTypeQueryOrder.ts, 2, 17)) + + return { container: this, ...props } as Options; +>container : Symbol(container, Decl(getterReturnTypeQueryOrder.ts, 4, 16)) +>this : Symbol(Container, Decl(getterReturnTypeQueryOrder.ts, 0, 29)) +>props : Symbol(props, Decl(getterReturnTypeQueryOrder.ts, 0, 13)) +>Options : Symbol(Options, Decl(getterReturnTypeQueryOrder.ts, 6, 1)) + } +} + +interface Options { +>Options : Symbol(Options, Decl(getterReturnTypeQueryOrder.ts, 6, 1)) + + container?: Container; +>container : Symbol(Options.container, Decl(getterReturnTypeQueryOrder.ts, 8, 19)) +>Container : Symbol(Container, Decl(getterReturnTypeQueryOrder.ts, 0, 29)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).types new file mode 100644 index 0000000000000..df84cc21241ea --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=default).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/getterReturnTypeQueryOrder.ts] //// + +=== getterReturnTypeQueryOrder.ts === +declare const props: Options; +>props : Options + +class Container { +>Container : Container + + get options() { +>options : any + + return { container: this, ...props } as Options; +>{ container: this, ...props } as Options : Options +>{ container: this, ...props } : { container: Container; } +>container : this +>this : this +>props : Options + } +} + +interface Options { + container?: Container; +>container : Container | undefined +} + diff --git a/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).errors.txt new file mode 100644 index 0000000000000..4f28621217936 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).errors.txt @@ -0,0 +1,18 @@ +getterReturnTypeQueryOrder.ts(4,9): error TS7023: 'options' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + + +==== getterReturnTypeQueryOrder.ts (1 errors) ==== + declare const props: Options; + + class Container { + get options() { + ~~~~~~~ +!!! error TS7023: 'options' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. + return { container: this, ...props } as Options; + } + } + + interface Options { + container?: Container; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).js b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).js new file mode 100644 index 0000000000000..86ae054a9e244 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).js @@ -0,0 +1,23 @@ +//// [tests/cases/compiler/getterReturnTypeQueryOrder.ts] //// + +//// [getterReturnTypeQueryOrder.ts] +declare const props: Options; + +class Container { + get options() { + return { container: this, ...props } as Options; + } +} + +interface Options { + container?: Container; +} + + +//// [getterReturnTypeQueryOrder.js] +"use strict"; +class Container { + get options() { + return Object.assign({ container: this }, props); + } +} diff --git a/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).symbols b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).symbols new file mode 100644 index 0000000000000..0425451cdc246 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/getterReturnTypeQueryOrder.ts] //// + +=== getterReturnTypeQueryOrder.ts === +declare const props: Options; +>props : Symbol(props, Decl(getterReturnTypeQueryOrder.ts, 0, 13)) +>Options : Symbol(Options, Decl(getterReturnTypeQueryOrder.ts, 6, 1)) + +class Container { +>Container : Symbol(Container, Decl(getterReturnTypeQueryOrder.ts, 0, 29)) + + get options() { +>options : Symbol(Container.options, Decl(getterReturnTypeQueryOrder.ts, 2, 17)) + + return { container: this, ...props } as Options; +>container : Symbol(container, Decl(getterReturnTypeQueryOrder.ts, 4, 16)) +>this : Symbol(Container, Decl(getterReturnTypeQueryOrder.ts, 0, 29)) +>props : Symbol(props, Decl(getterReturnTypeQueryOrder.ts, 0, 13)) +>Options : Symbol(Options, Decl(getterReturnTypeQueryOrder.ts, 6, 1)) + } +} + +interface Options { +>Options : Symbol(Options, Decl(getterReturnTypeQueryOrder.ts, 6, 1)) + + container?: Container; +>container : Symbol(Options.container, Decl(getterReturnTypeQueryOrder.ts, 8, 19)) +>Container : Symbol(Container, Decl(getterReturnTypeQueryOrder.ts, 0, 29)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).types b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).types new file mode 100644 index 0000000000000..df84cc21241ea --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/getterReturnTypeQueryOrder(checkorder=editorfirst).types @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/getterReturnTypeQueryOrder.ts] //// + +=== getterReturnTypeQueryOrder.ts === +declare const props: Options; +>props : Options + +class Container { +>Container : Container + + get options() { +>options : any + + return { container: this, ...props } as Options; +>{ container: this, ...props } as Options : Options +>{ container: this, ...props } : { container: Container; } +>container : this +>this : this +>props : Options + } +} + +interface Options { + container?: Container; +>container : Container | undefined +} + diff --git a/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..d95e6caed1e54 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,19 @@ +importAttributeValueCheckOrder.ts(5,19): error TS2322: Type '{ a: 0; }' is not assignable to type 'ImportAttributes'. + Property 'a' is incompatible with index signature. + Type 'number' is not assignable to type 'string'. +importAttributeValueCheckOrder.ts(5,29): error TS2858: Import attribute values must be string literal expressions. + + +==== importAttributeValueCheckOrder.ts (2 errors) ==== + // The attribute value is invalid, which does not affect the module. Its + // missing module must be reported whether or not the type of x is queried + // before the import is checked. + + import x from "x" with { a: 0 }; + ~~~~~~~~~~~~~ +!!! error TS2322: Type '{ a: 0; }' is not assignable to type 'ImportAttributes'. +!!! error TS2322: Property 'a' is incompatible with index signature. +!!! error TS2322: Type 'number' is not assignable to type 'string'. + ~ +!!! error TS2858: Import attribute values must be string literal expressions. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).js new file mode 100644 index 0000000000000..97e58214a9ea0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/importAttributeValueCheckOrder.ts] //// + +//// [importAttributeValueCheckOrder.ts] +// The attribute value is invalid, which does not affect the module. Its +// missing module must be reported whether or not the type of x is queried +// before the import is checked. + +import x from "x" with { a: 0 }; + + +//// [importAttributeValueCheckOrder.js] +// The attribute value is invalid, which does not affect the module. Its +// missing module must be reported whether or not the type of x is queried +// before the import is checked. +export {}; diff --git a/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..3af978ee9fe99 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/importAttributeValueCheckOrder.ts] //// + +=== importAttributeValueCheckOrder.ts === +// The attribute value is invalid, which does not affect the module. Its +// missing module must be reported whether or not the type of x is queried +// before the import is checked. + +import x from "x" with { a: 0 }; +>x : Symbol(x, Decl(importAttributeValueCheckOrder.ts, 4, 6)) + diff --git a/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..d0a03be7dfcaf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=default).types @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/importAttributeValueCheckOrder.ts] //// + +=== importAttributeValueCheckOrder.ts === +// The attribute value is invalid, which does not affect the module. Its +// missing module must be reported whether or not the type of x is queried +// before the import is checked. + +import x from "x" with { a: 0 }; +>x : any +>a : any + diff --git a/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).errors.txt new file mode 100644 index 0000000000000..ebb125845b45c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).errors.txt @@ -0,0 +1,22 @@ +importAttributeValueCheckOrder.ts(5,15): error TS2307: Cannot find module 'x' or its corresponding type declarations. +importAttributeValueCheckOrder.ts(5,19): error TS2322: Type '{ a: 0; }' is not assignable to type 'ImportAttributes'. + Property 'a' is incompatible with index signature. + Type 'number' is not assignable to type 'string'. +importAttributeValueCheckOrder.ts(5,29): error TS2858: Import attribute values must be string literal expressions. + + +==== importAttributeValueCheckOrder.ts (3 errors) ==== + // The attribute value is invalid, which does not affect the module. Its + // missing module must be reported whether or not the type of x is queried + // before the import is checked. + + import x from "x" with { a: 0 }; + ~~~ +!!! error TS2307: Cannot find module 'x' or its corresponding type declarations. + ~~~~~~~~~~~~~ +!!! error TS2322: Type '{ a: 0; }' is not assignable to type 'ImportAttributes'. +!!! error TS2322: Property 'a' is incompatible with index signature. +!!! error TS2322: Type 'number' is not assignable to type 'string'. + ~ +!!! error TS2858: Import attribute values must be string literal expressions. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).js new file mode 100644 index 0000000000000..97e58214a9ea0 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).js @@ -0,0 +1,15 @@ +//// [tests/cases/compiler/importAttributeValueCheckOrder.ts] //// + +//// [importAttributeValueCheckOrder.ts] +// The attribute value is invalid, which does not affect the module. Its +// missing module must be reported whether or not the type of x is queried +// before the import is checked. + +import x from "x" with { a: 0 }; + + +//// [importAttributeValueCheckOrder.js] +// The attribute value is invalid, which does not affect the module. Its +// missing module must be reported whether or not the type of x is queried +// before the import is checked. +export {}; diff --git a/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..3af978ee9fe99 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,10 @@ +//// [tests/cases/compiler/importAttributeValueCheckOrder.ts] //// + +=== importAttributeValueCheckOrder.ts === +// The attribute value is invalid, which does not affect the module. Its +// missing module must be reported whether or not the type of x is queried +// before the import is checked. + +import x from "x" with { a: 0 }; +>x : Symbol(x, Decl(importAttributeValueCheckOrder.ts, 4, 6)) + diff --git a/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..d0a03be7dfcaf --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/importAttributeValueCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/importAttributeValueCheckOrder.ts] //// + +=== importAttributeValueCheckOrder.ts === +// The attribute value is invalid, which does not affect the module. Its +// missing module must be reported whether or not the type of x is queried +// before the import is checked. + +import x from "x" with { a: 0 }; +>x : any +>a : any + diff --git a/tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.errors.txt b/tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.errors.txt new file mode 100644 index 0000000000000..b66f2e95879ca --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.errors.txt @@ -0,0 +1,28 @@ +indexSignatureWithIndexedAccessOfDerivedInterface.ts(9,11): error TS2430: Interface 'TokenNode' incorrectly extends interface 'BaseNode'. + Index signature for type 'string' is missing in type 'TokenNode'. + + +==== indexSignatureWithIndexedAccessOfDerivedInterface.ts (1 errors) ==== + // The type of data in TokenNode is assignable to its inherited index + // signature, which mentions it through an indexed access. + + interface BaseNode { + kind: string; + [key: string]: string | TokenNode["data"]; + } + + interface TokenNode extends BaseNode { + ~~~~~~~~~ +!!! error TS2430: Interface 'TokenNode' incorrectly extends interface 'BaseNode'. +!!! error TS2430: Index signature for type 'string' is missing in type 'TokenNode'. + kind: 'token'; + data: TokenData; + } + + interface TokenData { + offset: number; + width: number; + leading_width: number; + trailing_width: number; + } + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.symbols b/tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.symbols new file mode 100644 index 0000000000000..da0c2151df68c --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.symbols @@ -0,0 +1,45 @@ +//// [tests/cases/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.ts] //// + +=== indexSignatureWithIndexedAccessOfDerivedInterface.ts === +// The type of data in TokenNode is assignable to its inherited index +// signature, which mentions it through an indexed access. + +interface BaseNode { +>BaseNode : Symbol(BaseNode, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 0, 0)) + + kind: string; +>kind : Symbol(BaseNode.kind, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 3, 20)) + + [key: string]: string | TokenNode["data"]; +>key : Symbol(key, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 5, 3)) +>TokenNode : Symbol(TokenNode, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 6, 1)) +} + +interface TokenNode extends BaseNode { +>TokenNode : Symbol(TokenNode, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 6, 1)) +>BaseNode : Symbol(BaseNode, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 0, 0)) + + kind: 'token'; +>kind : Symbol(TokenNode.kind, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 8, 38)) + + data: TokenData; +>data : Symbol(TokenNode.data, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 9, 16)) +>TokenData : Symbol(TokenData, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 11, 1)) +} + +interface TokenData { +>TokenData : Symbol(TokenData, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 11, 1)) + + offset: number; +>offset : Symbol(TokenData.offset, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 13, 21)) + + width: number; +>width : Symbol(TokenData.width, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 14, 17)) + + leading_width: number; +>leading_width : Symbol(TokenData.leading_width, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 15, 16)) + + trailing_width: number; +>trailing_width : Symbol(TokenData.trailing_width, Decl(indexSignatureWithIndexedAccessOfDerivedInterface.ts, 16, 24)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.types b/tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.types new file mode 100644 index 0000000000000..8dfc18dcb19e8 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.types @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/indexSignatureWithIndexedAccessOfDerivedInterface.ts] //// + +=== indexSignatureWithIndexedAccessOfDerivedInterface.ts === +// The type of data in TokenNode is assignable to its inherited index +// signature, which mentions it through an indexed access. + +interface BaseNode { + kind: string; +>kind : string + + [key: string]: string | TokenNode["data"]; +>key : string +} + +interface TokenNode extends BaseNode { + kind: 'token'; +>kind : "token" + + data: TokenData; +>data : TokenData +} + +interface TokenData { + offset: number; +>offset : number + + width: number; +>width : number + + leading_width: number; +>leading_width : number + + trailing_width: number; +>trailing_width : number +} + diff --git a/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..b1e49290327ec --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).errors.txt @@ -0,0 +1,22 @@ +indexedAccessAccessFlagsUnionOrder.ts(3,11): error TS2322: Type 'string | undefined' is not assignable to type 'string'. + Type 'undefined' is not assignable to type 'string'. +indexedAccessAccessFlagsUnionOrder.ts(5,11): error TS2322: Type 'string | undefined' is not assignable to type 'string'. + Type 'undefined' is not assignable to type 'string'. + + +==== indexedAccessAccessFlagsUnionOrder.ts (2 errors) ==== + function f, K extends keyof T>(obj: T, k: K, b: boolean) { + const x = b ? obj[k] : g(); + const s1: string = x; + ~~ +!!! error TS2322: Type 'string | undefined' is not assignable to type 'string'. +!!! error TS2322: Type 'undefined' is not assignable to type 'string'. + const y = b ? g() : obj[k]; + const s2: string = y; + ~~ +!!! error TS2322: Type 'string | undefined' is not assignable to type 'string'. +!!! error TS2322: Type 'undefined' is not assignable to type 'string'. + } + + declare function g(): T[K]; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..1c03287916ff1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/indexedAccessAccessFlagsUnionOrder.ts] //// + +=== indexedAccessAccessFlagsUnionOrder.ts === +function f, K extends keyof T>(obj: T, k: K, b: boolean) { +>f : Symbol(f, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 0)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 11)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 44)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 11)) +>obj : Symbol(obj, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 64)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 11)) +>k : Symbol(k, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 71)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 44)) +>b : Symbol(b, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 77)) + + const x = b ? obj[k] : g(); +>x : Symbol(x, Decl(indexedAccessAccessFlagsUnionOrder.ts, 1, 9)) +>b : Symbol(b, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 77)) +>obj : Symbol(obj, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 64)) +>k : Symbol(k, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 71)) +>g : Symbol(g, Decl(indexedAccessAccessFlagsUnionOrder.ts, 5, 1)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 11)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 44)) + + const s1: string = x; +>s1 : Symbol(s1, Decl(indexedAccessAccessFlagsUnionOrder.ts, 2, 9)) +>x : Symbol(x, Decl(indexedAccessAccessFlagsUnionOrder.ts, 1, 9)) + + const y = b ? g() : obj[k]; +>y : Symbol(y, Decl(indexedAccessAccessFlagsUnionOrder.ts, 3, 9)) +>b : Symbol(b, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 77)) +>g : Symbol(g, Decl(indexedAccessAccessFlagsUnionOrder.ts, 5, 1)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 11)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 44)) +>obj : Symbol(obj, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 64)) +>k : Symbol(k, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 71)) + + const s2: string = y; +>s2 : Symbol(s2, Decl(indexedAccessAccessFlagsUnionOrder.ts, 4, 9)) +>y : Symbol(y, Decl(indexedAccessAccessFlagsUnionOrder.ts, 3, 9)) +} + +declare function g(): T[K]; +>g : Symbol(g, Decl(indexedAccessAccessFlagsUnionOrder.ts, 5, 1)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 7, 19)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 7, 21)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 7, 19)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 7, 19)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 7, 21)) + diff --git a/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).types new file mode 100644 index 0000000000000..5f8f696fbf930 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=default).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/indexedAccessAccessFlagsUnionOrder.ts] //// + +=== indexedAccessAccessFlagsUnionOrder.ts === +function f, K extends keyof T>(obj: T, k: K, b: boolean) { +>f : , K extends keyof T>(obj: T, k: K, b: boolean) => void +>obj : T +>k : K +>b : boolean + + const x = b ? obj[k] : g(); +>x : T[K] +>b ? obj[k] : g() : T[K] +>b : boolean +>obj[k] : T[K] +>obj : T +>k : K +>g() : T[K] +>g : () => T_1[K_1] + + const s1: string = x; +>s1 : string +>x : string | undefined + + const y = b ? g() : obj[k]; +>y : T[K] +>b ? g() : obj[k] : T[K] +>b : boolean +>g() : T[K] +>g : () => T_1[K_1] +>obj[k] : T[K] +>obj : T +>k : K + + const s2: string = y; +>s2 : string +>y : string | undefined +} + +declare function g(): T[K]; +>g : () => T[K] + diff --git a/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..1c03287916ff1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=typesfirst).symbols @@ -0,0 +1,50 @@ +//// [tests/cases/compiler/indexedAccessAccessFlagsUnionOrder.ts] //// + +=== indexedAccessAccessFlagsUnionOrder.ts === +function f, K extends keyof T>(obj: T, k: K, b: boolean) { +>f : Symbol(f, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 0)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 11)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 44)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 11)) +>obj : Symbol(obj, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 64)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 11)) +>k : Symbol(k, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 71)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 44)) +>b : Symbol(b, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 77)) + + const x = b ? obj[k] : g(); +>x : Symbol(x, Decl(indexedAccessAccessFlagsUnionOrder.ts, 1, 9)) +>b : Symbol(b, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 77)) +>obj : Symbol(obj, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 64)) +>k : Symbol(k, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 71)) +>g : Symbol(g, Decl(indexedAccessAccessFlagsUnionOrder.ts, 5, 1)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 11)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 44)) + + const s1: string = x; +>s1 : Symbol(s1, Decl(indexedAccessAccessFlagsUnionOrder.ts, 2, 9)) +>x : Symbol(x, Decl(indexedAccessAccessFlagsUnionOrder.ts, 1, 9)) + + const y = b ? g() : obj[k]; +>y : Symbol(y, Decl(indexedAccessAccessFlagsUnionOrder.ts, 3, 9)) +>b : Symbol(b, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 77)) +>g : Symbol(g, Decl(indexedAccessAccessFlagsUnionOrder.ts, 5, 1)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 11)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 44)) +>obj : Symbol(obj, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 64)) +>k : Symbol(k, Decl(indexedAccessAccessFlagsUnionOrder.ts, 0, 71)) + + const s2: string = y; +>s2 : Symbol(s2, Decl(indexedAccessAccessFlagsUnionOrder.ts, 4, 9)) +>y : Symbol(y, Decl(indexedAccessAccessFlagsUnionOrder.ts, 3, 9)) +} + +declare function g(): T[K]; +>g : Symbol(g, Decl(indexedAccessAccessFlagsUnionOrder.ts, 5, 1)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 7, 19)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 7, 21)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 7, 19)) +>T : Symbol(T, Decl(indexedAccessAccessFlagsUnionOrder.ts, 7, 19)) +>K : Symbol(K, Decl(indexedAccessAccessFlagsUnionOrder.ts, 7, 21)) + diff --git a/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..3842ea2cb6352 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/indexedAccessAccessFlagsUnionOrder(checkorder=typesfirst).types @@ -0,0 +1,41 @@ +//// [tests/cases/compiler/indexedAccessAccessFlagsUnionOrder.ts] //// + +=== indexedAccessAccessFlagsUnionOrder.ts === +function f, K extends keyof T>(obj: T, k: K, b: boolean) { +>f : , K extends keyof T>(obj: T, k: K, b: boolean) => void +>obj : T +>k : K +>b : boolean + + const x = b ? obj[k] : g(); +>x : T[K] +>b ? obj[k] : g() : T[K] +>b : boolean +>obj[k] : T[K] +>obj : T +>k : K +>g() : T[K] +>g : () => T_1[K_1] + + const s1: string = x; +>s1 : string +>x : T[K] + + const y = b ? g() : obj[k]; +>y : T[K] +>b ? g() : obj[k] : T[K] +>b : boolean +>g() : T[K] +>g : () => T_1[K_1] +>obj[k] : T[K] +>obj : T +>k : K + + const s2: string = y; +>s2 : string +>y : T[K] +} + +declare function g(): T[K]; +>g : () => T[K] + diff --git a/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).errors.txt b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).errors.txt new file mode 100644 index 0000000000000..451dbe9e554a3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).errors.txt @@ -0,0 +1,16 @@ +inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts(8,23): error TS2344: Type 'U' does not satisfy the constraint 'object'. + + +==== inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts (1 errors) ==== + // The constraint of U is inferred from the constraint of the type parameter + // of S. Instantiating S with U needs the constraint of U, so whether U + // satisfies object must not depend on whether I is queried before its type + // arguments are checked. + + type Copy = { [K in keyof T]: T[K] }; + type S = Copy<{ x: 0 } & T>; + type I = {} extends S ? U : never; + ~~~~~~~ +!!! error TS2344: Type 'U' does not satisfy the constraint 'object'. +!!! related TS2208 inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts:8:29: This type parameter might need an `extends object` constraint. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).js b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).js new file mode 100644 index 0000000000000..1267ee1cbc4a6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).js @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts] //// + +//// [inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts] +// The constraint of U is inferred from the constraint of the type parameter +// of S. Instantiating S with U needs the constraint of U, so whether U +// satisfies object must not depend on whether I is queried before its type +// arguments are checked. + +type Copy = { [K in keyof T]: T[K] }; +type S = Copy<{ x: 0 } & T>; +type I = {} extends S ? U : never; + + +//// [inferTypeParameterConstraintFromMappedIntersectionCheckOrder.js] +"use strict"; +// The constraint of U is inferred from the constraint of the type parameter +// of S. Instantiating S with U needs the constraint of U, so whether U +// satisfies object must not depend on whether I is queried before its type +// arguments are checked. diff --git a/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).symbols b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).symbols new file mode 100644 index 0000000000000..20615918e8733 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts] //// + +=== inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts === +// The constraint of U is inferred from the constraint of the type parameter +// of S. Instantiating S with U needs the constraint of U, so whether U +// satisfies object must not depend on whether I is queried before its type +// arguments are checked. + +type Copy = { [K in keyof T]: T[K] }; +>Copy : Symbol(Copy, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 10)) +>K : Symbol(K, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 18)) +>T : Symbol(T, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 10)) +>T : Symbol(T, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 10)) +>K : Symbol(K, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 18)) + +type S = Copy<{ x: 0 } & T>; +>S : Symbol(S, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 40)) +>T : Symbol(T, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 6, 7)) +>Copy : Symbol(Copy, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 0, 0)) +>x : Symbol(x, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 6, 33)) +>T : Symbol(T, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 6, 7)) + +type I = {} extends S ? U : never; +>I : Symbol(I, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 6, 46)) +>S : Symbol(S, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 40)) +>U : Symbol(U, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 7, 27)) +>U : Symbol(U, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 7, 27)) + diff --git a/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).types b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).types new file mode 100644 index 0000000000000..f7d45d2ef1677 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=default).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts] //// + +=== inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts === +// The constraint of U is inferred from the constraint of the type parameter +// of S. Instantiating S with U needs the constraint of U, so whether U +// satisfies object must not depend on whether I is queried before its type +// arguments are checked. + +type Copy = { [K in keyof T]: T[K] }; +>Copy : Copy + +type S = Copy<{ x: 0 } & T>; +>S : Copy<{ x: 0; } & T> +>x : 0 + +type I = {} extends S ? U : never; +>I : never + diff --git a/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).js b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).js new file mode 100644 index 0000000000000..1267ee1cbc4a6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).js @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts] //// + +//// [inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts] +// The constraint of U is inferred from the constraint of the type parameter +// of S. Instantiating S with U needs the constraint of U, so whether U +// satisfies object must not depend on whether I is queried before its type +// arguments are checked. + +type Copy = { [K in keyof T]: T[K] }; +type S = Copy<{ x: 0 } & T>; +type I = {} extends S ? U : never; + + +//// [inferTypeParameterConstraintFromMappedIntersectionCheckOrder.js] +"use strict"; +// The constraint of U is inferred from the constraint of the type parameter +// of S. Instantiating S with U needs the constraint of U, so whether U +// satisfies object must not depend on whether I is queried before its type +// arguments are checked. diff --git a/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).symbols b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).symbols new file mode 100644 index 0000000000000..20615918e8733 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).symbols @@ -0,0 +1,29 @@ +//// [tests/cases/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts] //// + +=== inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts === +// The constraint of U is inferred from the constraint of the type parameter +// of S. Instantiating S with U needs the constraint of U, so whether U +// satisfies object must not depend on whether I is queried before its type +// arguments are checked. + +type Copy = { [K in keyof T]: T[K] }; +>Copy : Symbol(Copy, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 0, 0)) +>T : Symbol(T, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 10)) +>K : Symbol(K, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 18)) +>T : Symbol(T, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 10)) +>T : Symbol(T, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 10)) +>K : Symbol(K, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 18)) + +type S = Copy<{ x: 0 } & T>; +>S : Symbol(S, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 40)) +>T : Symbol(T, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 6, 7)) +>Copy : Symbol(Copy, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 0, 0)) +>x : Symbol(x, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 6, 33)) +>T : Symbol(T, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 6, 7)) + +type I = {} extends S ? U : never; +>I : Symbol(I, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 6, 46)) +>S : Symbol(S, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 5, 40)) +>U : Symbol(U, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 7, 27)) +>U : Symbol(U, Decl(inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts, 7, 27)) + diff --git a/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).types new file mode 100644 index 0000000000000..f7d45d2ef1677 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder(checkorder=typesfirst).types @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts] //// + +=== inferTypeParameterConstraintFromMappedIntersectionCheckOrder.ts === +// The constraint of U is inferred from the constraint of the type parameter +// of S. Instantiating S with U needs the constraint of U, so whether U +// satisfies object must not depend on whether I is queried before its type +// arguments are checked. + +type Copy = { [K in keyof T]: T[K] }; +>Copy : Copy + +type S = Copy<{ x: 0 } & T>; +>S : Copy<{ x: 0; } & T> +>x : 0 + +type I = {} extends S ? U : never; +>I : never + diff --git a/tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.errors.txt b/tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.errors.txt new file mode 100644 index 0000000000000..32e5d2c00be81 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.errors.txt @@ -0,0 +1,24 @@ +first.ts(3,7): error TS2322: Type 'unknown[]' is not assignable to type 'null'. +second.ts(6,7): error TS2322: Type 'number[]' is not assignable to type 'null'. + + +==== first.ts (1 errors) ==== + declare function flatten1(iterable: Iterable>): T[]; + declare const lists1: string[][]; + const flat1: null = flatten1(lists1); + ~~~~~ +!!! error TS2322: Type 'unknown[]' is not assignable to type 'null'. + + declare const items1: string[]; + for (const item of items1) {} + +==== second.ts (1 errors) ==== + declare const items2: number[]; + for (const item of items2) {} + + declare function flatten2(iterable: Iterable>): T[]; + declare const lists2: number[][]; + const flat2: null = flatten2(lists2); + ~~~~~ +!!! error TS2322: Type 'number[]' is not assignable to type 'null'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.symbols b/tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.symbols new file mode 100644 index 0000000000000..57cb4ce9d6984 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.symbols @@ -0,0 +1,52 @@ +//// [tests/cases/compiler/inferenceDeeplyNestedCheckOrder.ts] //// + +=== first.ts === +declare function flatten1(iterable: Iterable>): T[]; +>flatten1 : Symbol(flatten1, Decl(first.ts, 0, 0)) +>T : Symbol(T, Decl(first.ts, 0, 26)) +>iterable : Symbol(iterable, Decl(first.ts, 0, 29)) +>Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --)) +>Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --)) +>T : Symbol(T, Decl(first.ts, 0, 26)) +>T : Symbol(T, Decl(first.ts, 0, 26)) + +declare const lists1: string[][]; +>lists1 : Symbol(lists1, Decl(first.ts, 1, 13)) + +const flat1: null = flatten1(lists1); +>flat1 : Symbol(flat1, Decl(first.ts, 2, 5)) +>flatten1 : Symbol(flatten1, Decl(first.ts, 0, 0)) +>lists1 : Symbol(lists1, Decl(first.ts, 1, 13)) + +declare const items1: string[]; +>items1 : Symbol(items1, Decl(first.ts, 4, 13)) + +for (const item of items1) {} +>item : Symbol(item, Decl(first.ts, 5, 10)) +>items1 : Symbol(items1, Decl(first.ts, 4, 13)) + +=== second.ts === +declare const items2: number[]; +>items2 : Symbol(items2, Decl(second.ts, 0, 13)) + +for (const item of items2) {} +>item : Symbol(item, Decl(second.ts, 1, 10)) +>items2 : Symbol(items2, Decl(second.ts, 0, 13)) + +declare function flatten2(iterable: Iterable>): T[]; +>flatten2 : Symbol(flatten2, Decl(second.ts, 1, 29)) +>T : Symbol(T, Decl(second.ts, 3, 26)) +>iterable : Symbol(iterable, Decl(second.ts, 3, 29)) +>Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --)) +>Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --)) +>T : Symbol(T, Decl(second.ts, 3, 26)) +>T : Symbol(T, Decl(second.ts, 3, 26)) + +declare const lists2: number[][]; +>lists2 : Symbol(lists2, Decl(second.ts, 4, 13)) + +const flat2: null = flatten2(lists2); +>flat2 : Symbol(flat2, Decl(second.ts, 5, 5)) +>flatten2 : Symbol(flatten2, Decl(second.ts, 1, 29)) +>lists2 : Symbol(lists2, Decl(second.ts, 4, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.types b/tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.types new file mode 100644 index 0000000000000..c1fc223370a61 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceDeeplyNestedCheckOrder.types @@ -0,0 +1,44 @@ +//// [tests/cases/compiler/inferenceDeeplyNestedCheckOrder.ts] //// + +=== first.ts === +declare function flatten1(iterable: Iterable>): T[]; +>flatten1 : (iterable: Iterable>) => T[] +>iterable : Iterable> + +declare const lists1: string[][]; +>lists1 : string[][] + +const flat1: null = flatten1(lists1); +>flat1 : null +>flatten1(lists1) : unknown[] +>flatten1 : (iterable: Iterable>) => T[] +>lists1 : string[][] + +declare const items1: string[]; +>items1 : string[] + +for (const item of items1) {} +>item : string +>items1 : string[] + +=== second.ts === +declare const items2: number[]; +>items2 : number[] + +for (const item of items2) {} +>item : number +>items2 : number[] + +declare function flatten2(iterable: Iterable>): T[]; +>flatten2 : (iterable: Iterable>) => T[] +>iterable : Iterable> + +declare const lists2: number[][]; +>lists2 : number[][] + +const flat2: null = flatten2(lists2); +>flat2 : null +>flatten2(lists2) : number[] +>flatten2 : (iterable: Iterable>) => T[] +>lists2 : number[][] + diff --git a/tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.errors.txt b/tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.errors.txt new file mode 100644 index 0000000000000..1810c3d299596 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.errors.txt @@ -0,0 +1,17 @@ +inferenceFromUnionOfTypeParameterAndPromiseLike.ts(6,7): error TS2322: Type 'Promise>>' is not assignable to type 'Promise>'. + Type 'Map>' is not assignable to type 'Map'. + Type 'Promise' is not assignable to type 'string'. + + +==== inferenceFromUnionOfTypeParameterAndPromiseLike.ts (1 errors) ==== + // Inferring from Promise to PromiseLike | V must infer V as string, + // whichever order the union's members are in. + + declare function props(x: PromiseLike | V>>): Promise>; + declare const input: Promise>>; + const out: Promise> = props(input); + ~~~ +!!! error TS2322: Type 'Promise>>' is not assignable to type 'Promise>'. +!!! error TS2322: Type 'Map>' is not assignable to type 'Map'. +!!! error TS2322: Type 'Promise' is not assignable to type 'string'. + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.symbols b/tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.symbols new file mode 100644 index 0000000000000..981fb64862427 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.symbols @@ -0,0 +1,35 @@ +//// [tests/cases/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.ts] //// + +=== inferenceFromUnionOfTypeParameterAndPromiseLike.ts === +// Inferring from Promise to PromiseLike | V must infer V as string, +// whichever order the union's members are in. + +declare function props(x: PromiseLike | V>>): Promise>; +>props : Symbol(props, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 0, 0)) +>K : Symbol(K, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 3, 23)) +>V : Symbol(V, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 3, 25)) +>x : Symbol(x, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 3, 29)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) +>Map : Symbol(Map, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2026.collection.d.ts, --, --)) +>K : Symbol(K, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 3, 23)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) +>V : Symbol(V, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 3, 25)) +>V : Symbol(V, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 3, 25)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Map : Symbol(Map, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2026.collection.d.ts, --, --)) +>K : Symbol(K, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 3, 23)) +>V : Symbol(V, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 3, 25)) + +declare const input: Promise>>; +>input : Symbol(input, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 4, 13)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Map : Symbol(Map, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2026.collection.d.ts, --, --)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) + +const out: Promise> = props(input); +>out : Symbol(out, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 5, 5)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>Map : Symbol(Map, Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.collection.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2026.collection.d.ts, --, --)) +>props : Symbol(props, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 0, 0)) +>input : Symbol(input, Decl(inferenceFromUnionOfTypeParameterAndPromiseLike.ts, 4, 13)) + diff --git a/tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.types b/tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.types new file mode 100644 index 0000000000000..c3d2ece0232d6 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.types @@ -0,0 +1,19 @@ +//// [tests/cases/compiler/inferenceFromUnionOfTypeParameterAndPromiseLike.ts] //// + +=== inferenceFromUnionOfTypeParameterAndPromiseLike.ts === +// Inferring from Promise to PromiseLike | V must infer V as string, +// whichever order the union's members are in. + +declare function props(x: PromiseLike | V>>): Promise>; +>props : (x: PromiseLike | V>>) => Promise> +>x : PromiseLike>> + +declare const input: Promise>>; +>input : Promise>> + +const out: Promise> = props(input); +>out : Promise> +>props(input) : Promise>> +>props : (x: PromiseLike | V>>) => Promise> +>input : Promise>> + diff --git a/tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.errors.txt b/tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.errors.txt new file mode 100644 index 0000000000000..d50ee49380d74 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/inferenceThroughGenericAliasCallSignature.errors.txt @@ -0,0 +1,66 @@ +inferenceThroughGenericAliasCallSignature.ts(25,7): error TS2322: Type '[unknown]' is not assignable to type '[1]'. + Type 'unknown' is not assignable to type '1'. +inferenceThroughGenericAliasCallSignature.ts(54,26): error TS2571: Object is of type 'unknown'. + + +==== inferenceThroughGenericAliasCallSignature.ts (2 errors) ==== + // R is inferred from the return type of a function passed through a call + // signature of a generic type alias, and M from a recursive mapped result + // (64757). + + interface Effect { + readonly _A: () => A; + readonly _R: () => R; + [Symbol.iterator](): Iterator, A>; + } + declare function succeed(value: A): Effect; + declare function gen, AEff>( + body: () => Generator, + ): () => Effect ? R : never>; + + interface Req { readonly url: string } + declare const req: Effect; + + type Make