TypeScript/tests/cases/fourslash/genericAssignmentCompat.ts
2014-07-29 15:28:25 -07:00

14 lines
305 B
TypeScript

/// <reference path="fourslash.ts"/>
//// interface Int<T> {
////
//// val<U>(f: (t: T) => U): Int<U>;
////
//// }
////
//// declare var v1: Int<string>;
////
//// var /*1*/v2/*2*/: Int<number> = v1;
verify.errorExistsBetweenMarkers("1", "2");
verify.numberOfErrorsInCurrentFile(1);