mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 05:58:32 -06:00
Fix Type Param method Tests
This commit is contained in:
parent
1ec234af32
commit
6bd35fb066
@ -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');
|
||||
}
|
||||
`);
|
||||
@ -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');
|
||||
}
|
||||
`);
|
||||
@ -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');
|
||||
}
|
||||
`);
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user