mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
297 B
TypeScript
22 lines
297 B
TypeScript
//// [tests/cases/compiler/genericGetter2.ts] ////
|
|
|
|
//// [genericGetter2.ts]
|
|
class A<T> { }
|
|
|
|
class C<T> {
|
|
data: A<T>;
|
|
get x(): A {
|
|
return this.data;
|
|
}
|
|
}
|
|
|
|
//// [genericGetter2.js]
|
|
"use strict";
|
|
class A {
|
|
}
|
|
class C {
|
|
get x() {
|
|
return this.data;
|
|
}
|
|
}
|