kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/typescript/testdata/compilefail_group/compilefail.ts (about) 1 // This file exercises what happens when you have a compilation error. 2 // It's also imported by compilefail_import.ts. 3 4 // This is an error because 'no-such-module' doesn't exist. 5 import * as bad from 'no-such-module'; 6 let badType: bad.Type; // use a type 7 let badValue = bad.value; // use a value 8 9 // This is an error because 'UndefinedSymbol' is never defined. 10 export type Bad = UndefinedSymbol; 11 12 // But we should still index this valid part. 13 //- @x defines/binding X 14 let x = 3; 15 //- @x ref X 16 x++;