TypeScript/tests/cases/fourslash/genericAssignmentCompat.ts

14 lines
305 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
/// <reference path="fourslash.ts"/>
//// interface Int<T> {
////
//// val<U>(f: (t: T) => U): Int<U>;
////
//// }
////
//// declare var v1: Int<string>;
////
2014-07-30 00:28:25 +02:00
//// var /*1*/v2/*2*/: Int<number> = v1;
2014-07-13 01:04:16 +02:00
verify.errorExistsBetweenMarkers("1", "2");
verify.numberOfErrorsInCurrentFile(1);