mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 15:44:16 -06:00
tests: edit expected type params
This commit is contained in:
parent
55bf3e3ff0
commit
4441380e6f
@ -1,13 +1,13 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// abstract class A<T> {
|
||||
//// abstract f<T>();
|
||||
//// abstract f<T>(x: T);
|
||||
//// }
|
||||
////
|
||||
//// class C extends A<number> {[|
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f<number>(){
|
||||
verify.rangeAfterCodeFix(`f(x: number){
|
||||
throw new Error('Method not Implemented');
|
||||
}
|
||||
`);
|
||||
@ -1,13 +1,13 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// abstract class A<T> {
|
||||
//// abstract f<T>();
|
||||
//// abstract f<T>(x: T);
|
||||
//// }
|
||||
////
|
||||
//// class C<U> extends A<U> {[|
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f<U>(){
|
||||
verify.rangeAfterCodeFix(`f(x: U){
|
||||
throw new Error('Method not Implemented');
|
||||
}
|
||||
`);
|
||||
@ -1,12 +1,12 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// interface I {
|
||||
//// f<T extends number>();
|
||||
//// f<T extends number>(x: T);
|
||||
//// }
|
||||
////
|
||||
//// class C implements I {[| |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f<T extends number>(){
|
||||
verify.rangeAfterCodeFix(`f<T extends number>(x: T){
|
||||
throw new Error('Method not Implemented');
|
||||
}
|
||||
`);
|
||||
Loading…
x
Reference in New Issue
Block a user