mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05:00
Added tests.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// @declaration: true
|
||||
|
||||
interface BoxOfFoo<T extends Foo> {
|
||||
item: T
|
||||
}
|
||||
|
||||
interface Foo {
|
||||
self: this;
|
||||
}
|
||||
|
||||
interface Bar extends Foo {
|
||||
other: BoxOfFoo<this>;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// @declaration: true
|
||||
|
||||
interface BoxOfFoo<T extends Foo<T>> {
|
||||
item: T
|
||||
}
|
||||
|
||||
interface Foo<T extends Foo<T>> {
|
||||
self: T;
|
||||
}
|
||||
|
||||
interface Bar<T extends Bar<T>> extends Foo<T> {
|
||||
other: BoxOfFoo<T>;
|
||||
}
|
||||
Reference in New Issue
Block a user