TypeScript/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts
2014-10-07 11:30:27 -07:00

13 lines
345 B
TypeScript

/// <reference path='fourslash.ts'/>
////interface I {
//// <T>(x: T): void
////}
////function f6(x: <T extends I>(p: T) => void) { }
////// x should not be contextually typed so this should be an error
////f6(/**/x => x<number>())
goTo.marker();
verify.quickInfoIs('(parameter) x: any');
verify.numberOfErrorsInCurrentFile(1);