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
|
|
|
|
2017-06-06 22:35:29 +02:00
|
|
|
verify.quickInfoAt("", "(parameter) x: T extends I");
|
2014-07-13 01:04:16 +02:00
|
|
|
verify.numberOfErrorsInCurrentFile(1);
|