TypeScript-TmLanguage/tests/cases/Issue559.ts

7 строки
232 B
TypeScript

let myFunc = function<T,U>(txt:string,num:number){}
class MyClass {
myProp = myFunc<number, () => void>("syntax highlight is incorrect", 1);
}
let myProp = myFunc<number, () => void>("syntax highlight is correct here", 1);