TypeScript/tests/baselines/reference/jsdocOuterTypeParameters1.types
Anders Hejlsberg a4f9bf0fce
Create type aliases for unresolved type symbols (#45976)
* Create type aliases for unresolved type symbols

* Accept new baselines

* Update fourslash tests

* Unresolved import aliases create tagged unresolved symbols

* Add comments

* Accept new baselines

* Add fourslash tests
2021-09-23 13:21:27 -07:00

30 lines
763 B
Plaintext

=== tests/cases/conformance/jsdoc/jsdocOuterTypeParameters1.js ===
/** @return {T} */
const dedupingMixin = function(mixin) {};
>dedupingMixin : (mixin: any) => T
>function(mixin) {} : (mixin: any) => T
>mixin : any
/** @template {T} */
const PropertyAccessors = dedupingMixin(() => {
>PropertyAccessors : T
>dedupingMixin(() => { class Bar { static bar() { this.prototype.foo(); } }}) : T
>dedupingMixin : (mixin: any) => T
>() => { class Bar { static bar() { this.prototype.foo(); } }} : () => void
class Bar {
>Bar : Bar
static bar() { this.prototype.foo(); }
>bar : () => void
>this.prototype.foo() : any
>this.prototype.foo : any
>this.prototype : Bar
>this : typeof Bar
>prototype : Bar
>foo : any
}
});