19 lines
No EOL
402 B
Text
19 lines
No EOL
402 B
Text
==== tests/cases/compiler/infinitelyExpandingTypes2.ts (1 errors) ====
|
|
interface Foo<T> {
|
|
x: Foo<Foo<T>>;
|
|
}
|
|
|
|
interface Bar<T> extends Foo<T> {
|
|
y: string;
|
|
}
|
|
|
|
function f(p: Foo<number>) {
|
|
console.log(p);
|
|
~~~~~~~
|
|
!!! Cannot find name 'console'.
|
|
}
|
|
|
|
var v: Bar<number> = null;
|
|
|
|
f(v); // should not error
|
|
|