TypeScript/tests/cases/fourslash/addInterfaceToNotSatisfyConstraint.ts

15 lines
263 B
TypeScript
Raw Normal View History

2015-03-02 23:41:44 +01:00
/// <reference path="fourslash.ts" />
//// interface A {
//// a: number;
//// }
//// /**/
//// interface C<T extends A> {
//// x: T;
//// }
////
//// var v2: C<B>; // should not work
goTo.marker();
edit.insert("interface B { b: string; }");