Added tests.

This commit is contained in:
Daniel Rosenwasser
2016-02-28 19:44:18 -08:00
parent 5e53ba06cf
commit 0abb4c907e
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
// @declaration: true
interface BoxOfFoo<T extends Foo> {
item: T
}
interface Foo {
self: this;
}
interface Bar extends Foo {
other: BoxOfFoo<this>;
}

View File

@@ -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>;
}