==== tests/cases/compiler/infinitelyExpandingTypes1.ts (1 errors) ==== interface List { data: T; next: List; owner: List>; } interface MyList { data: T; next: MyList; owner: MyList>; } var l: List; var m: MyList; l == m; // should error var l2: List; l == l2; // should error; ~~~~~~~ !!! Operator '==' cannot be applied to types 'List' and 'List'. l == l; // should not error