mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Added tests.
This commit is contained in:
1 parent
5e53ba06cf
commit
0abb4c907e
2 files changed
+26
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
// @declaration: true
|
||||
|
||||
interface BoxOfFoo<T extends Foo> {
|
||||
item: T
|
||||
}
|
||||
|
||||
interface Foo {
|
||||
self: this;
|
||||
}
|
||||
|
||||
interface Bar extends Foo {
|
||||
other: BoxOfFoo<this>;
|
||||
}
|
||||
+13
@@ -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