Fix Type Param method Tests

This commit is contained in:
Arthur Ozga 2016-11-08 14:26:10 -08:00
parent 1ec234af32
commit 6bd35fb066
3 changed files with 13 additions and 5 deletions

View File

@ -1,13 +1,13 @@
/// <reference path='fourslash.ts' />
//// abstract class A<T> {
//// abstract f<T>(x: T);
//// abstract f(x: T): T;
//// }
////
//// class C extends A<number> {[|
//// |]}
verify.rangeAfterCodeFix(`f(x: number){
verify.rangeAfterCodeFix(`f(x: number): number{
throw new Error('Method not Implemented');
}
`);

View File

@ -1,13 +1,13 @@
/// <reference path='fourslash.ts' />
//// abstract class A<T> {
//// abstract f<T>(x: T);
//// abstract f(x: T): T;
//// }
////
//// class C<U> extends A<U> {[|
//// |]}
//// |]}
verify.rangeAfterCodeFix(`f(x: U){
verify.rangeAfterCodeFix(`f(x: U): U{
throw new Error('Method not Implemented');
}
`);

View File

@ -14,7 +14,15 @@
////
//// |]}
verify.rangeAfterCodeFix(`f1<T>(){
throw new Error('Method not Implemented');
}
`);
// TODO: (arozga) Include type qualifiers.
/*
verify.rangeAfterCodeFix(`f1<T extends number>(){
throw new Error('Method not Implemented');
}
`);
*/