Skip to content

Commit 26c71ad

Browse files
committed
Simplify test
1 parent 5ce04bc commit 26c71ad

5 files changed

+7
-38
lines changed

tests/baselines/reference/expandoFunctionContextualTypesJSDocInTs.errors.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
//// [expandoFunctionContextualTypesJSDocInTs.ts]
2-
// GH #38532
3-
import Foo from "blah";
4-
52
export function Foo() { }
63

74
// This comment should have no effect; this is a TS file.
@@ -13,10 +10,8 @@ Foo.bar = () => { };
1310
"use strict";
1411
Object.defineProperty(exports, "__esModule", { value: true });
1512
exports.Foo = void 0;
16-
// GH #38532
17-
var blah_1 = require("blah");
1813
function Foo() { }
1914
exports.Foo = Foo;
2015
// This comment should have no effect; this is a TS file.
2116
/** @type {never} */
22-
blah_1.default.bar = function () { };
17+
Foo.bar = function () { };
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
=== tests/cases/compiler/expandoFunctionContextualTypesJSDocInTs.ts ===
2-
// GH #38532
3-
import Foo from "blah";
4-
>Foo : Symbol(Foo, Decl(expandoFunctionContextualTypesJSDocInTs.ts, 1, 23), Decl(expandoFunctionContextualTypesJSDocInTs.ts, 1, 6))
5-
62
export function Foo() { }
7-
>Foo : Symbol(Foo, Decl(expandoFunctionContextualTypesJSDocInTs.ts, 1, 23), Decl(expandoFunctionContextualTypesJSDocInTs.ts, 3, 25))
3+
>Foo : Symbol(Foo, Decl(expandoFunctionContextualTypesJSDocInTs.ts, 0, 0), Decl(expandoFunctionContextualTypesJSDocInTs.ts, 0, 25))
84

95
// This comment should have no effect; this is a TS file.
106
/** @type {never} */
117
Foo.bar = () => { };
12-
>Foo.bar : Symbol(Foo.bar, Decl(expandoFunctionContextualTypesJSDocInTs.ts, 3, 25))
13-
>Foo : Symbol(Foo, Decl(expandoFunctionContextualTypesJSDocInTs.ts, 1, 23), Decl(expandoFunctionContextualTypesJSDocInTs.ts, 1, 6))
14-
>bar : Symbol(Foo.bar, Decl(expandoFunctionContextualTypesJSDocInTs.ts, 3, 25))
8+
>Foo.bar : Symbol(Foo.bar, Decl(expandoFunctionContextualTypesJSDocInTs.ts, 0, 25))
9+
>Foo : Symbol(Foo, Decl(expandoFunctionContextualTypesJSDocInTs.ts, 0, 0), Decl(expandoFunctionContextualTypesJSDocInTs.ts, 0, 25))
10+
>bar : Symbol(Foo.bar, Decl(expandoFunctionContextualTypesJSDocInTs.ts, 0, 25))
1511

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
=== tests/cases/compiler/expandoFunctionContextualTypesJSDocInTs.ts ===
2-
// GH #38532
3-
import Foo from "blah";
4-
>Foo : any
5-
62
export function Foo() { }
7-
>Foo : typeof import("tests/cases/compiler/expandoFunctionContextualTypesJSDocInTs").Foo
3+
>Foo : typeof Foo
84

95
// This comment should have no effect; this is a TS file.
106
/** @type {never} */
117
Foo.bar = () => { };
128
>Foo.bar = () => { } : () => void
139
>Foo.bar : () => void
14-
>Foo : typeof import("tests/cases/compiler/expandoFunctionContextualTypesJSDocInTs").Foo
10+
>Foo : typeof Foo
1511
>bar : () => void
1612
>() => { } : () => void
1713

tests/cases/compiler/expandoFunctionContextualTypesJSDocInTs.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// GH #38532
2-
import Foo from "blah";
3-
41
export function Foo() { }
52

63
// This comment should have no effect; this is a TS file.

0 commit comments

Comments
 (0)