-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com>
- Loading branch information
1 parent
a3b3555
commit 5773723
Showing
7 changed files
with
94 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
//// [a.ts] | ||
class A { | ||
foo() {} | ||
} | ||
class B extends A { | ||
/** | ||
* @override {@link A.foo} | ||
*/ | ||
foo() {} | ||
} | ||
|
||
|
||
//// [a.js] | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
var A = /** @class */ (function () { | ||
function A() { | ||
} | ||
A.prototype.foo = function () { }; | ||
return A; | ||
}()); | ||
var B = /** @class */ (function (_super) { | ||
__extends(B, _super); | ||
function B() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
/** | ||
* @override {@link A.foo} | ||
*/ | ||
B.prototype.foo = function () { }; | ||
return B; | ||
}(A)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
=== /a.ts === | ||
class A { | ||
>A : Symbol(A, Decl(a.ts, 0, 0)) | ||
|
||
foo() {} | ||
>foo : Symbol(A.foo, Decl(a.ts, 0, 9)) | ||
} | ||
class B extends A { | ||
>B : Symbol(B, Decl(a.ts, 2, 1)) | ||
>A : Symbol(A, Decl(a.ts, 0, 0)) | ||
|
||
/** | ||
* @override {@link A.foo} | ||
*/ | ||
foo() {} | ||
>foo : Symbol(B.foo, Decl(a.ts, 3, 19)) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
=== /a.ts === | ||
class A { | ||
>A : A | ||
|
||
foo() {} | ||
>foo : () => void | ||
} | ||
class B extends A { | ||
>B : B | ||
>A : A | ||
|
||
/** | ||
* @override {@link A.foo} | ||
*/ | ||
foo() {} | ||
>foo : () => void | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// @filename: /a.ts | ||
class A { | ||
foo() {} | ||
} | ||
class B extends A { | ||
/** | ||
* @override {@link A.foo} | ||
*/ | ||
foo() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters