13 lines
345 B
TypeScript
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);
|