TypeScript/tests/cases/fourslash/contextualTypingOfGenericCallSignatures2.ts

13 lines
345 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
/// <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
2014-10-07 20:30:27 +02:00
////f6(/**/x => x<number>())
2014-07-13 01:04:16 +02:00
goTo.marker();
2014-10-07 20:30:27 +02:00
verify.quickInfoIs('(parameter) x: any');
2014-07-13 01:04:16 +02:00
verify.numberOfErrorsInCurrentFile(1);