TypeScript-TmLanguage/tests/cases/Issue785.ts

17 строки
305 B
TypeScript

function getFoo() { return <T, P>(t: T) => {t}}
const stuff = { foo: getFoo()<string, number>('ddd') }
//const v = {
// title: ''
//}
console.log('highlight is broken unless object literal defined above')
const a = ''
function hello() {
return 10
}
interface Bar {
count: number
}