TypeScript/tests/baselines/reference/infinitelyExpandingTypes2.errors.txt
2014-09-12 13:35:07 -07:00

22 lines
520 B
Plaintext

tests/cases/compiler/infinitelyExpandingTypes2.ts(10,5): error TS2304: Cannot find name 'console'.
==== 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);
~~~~~~~
!!! error TS2304: Cannot find name 'console'.
}
var v: Bar<number> = null;
f(v); // should not error