mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
531 B
TypeScript
23 lines
531 B
TypeScript
//// [tests/cases/compiler/classVarianceResolveCircularity1.ts] ////
|
|
|
|
//// [classVarianceResolveCircularity1.ts]
|
|
// Issue #52813
|
|
|
|
class Bar<T> {
|
|
num!: number;
|
|
Value = callme(this).num;
|
|
Field: number = callme(this).num;
|
|
}
|
|
declare function callme(x: Bar<any>): Bar<any>;
|
|
declare function callme(x: object): string;
|
|
|
|
//// [classVarianceResolveCircularity1.js]
|
|
"use strict";
|
|
// Issue #52813
|
|
class Bar {
|
|
constructor() {
|
|
this.Value = callme(this).num;
|
|
this.Field = callme(this).num;
|
|
}
|
|
}
|