-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathdeclarationEmitShadowing.js
More file actions
41 lines (35 loc) · 1.02 KB
/
declarationEmitShadowing.js
File metadata and controls
41 lines (35 loc) · 1.02 KB
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
//// [tests/cases/compiler/declarationEmitShadowing.ts] ////
//// [declarationEmitShadowing.ts]
export class A<T = any> {
public readonly ShadowedButDoesNotRequireRenaming = <T>(): T => {
return null as any
}
}
export function needsRenameForShadowing<T>() {
type A = T
return function O<T>(t: A, t2: T) {
}
}
//// [declarationEmitShadowing.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.A = void 0;
exports.needsRenameForShadowing = needsRenameForShadowing;
var A = /** @class */ (function () {
function A() {
this.ShadowedButDoesNotRequireRenaming = function () {
return null;
};
}
return A;
}());
exports.A = A;
function needsRenameForShadowing() {
return function O(t, t2) {
};
}
//// [declarationEmitShadowing.d.ts]
export declare class A<T = any> {
readonly ShadowedButDoesNotRequireRenaming: <T_1>() => T_1;
}
export declare function needsRenameForShadowing<T>(): <T_1>(t: T, t2: T_1) => void;