mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Test Fixes
* remove abstract modifier on insertion * use semi-colon to delimit object types * remove bad type param
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// abstract class A<T> {
|
||||
//// abstract f<T>();
|
||||
//// }
|
||||
////
|
||||
//// class C<U> extends A<U> {[|
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f<U>(){
|
||||
throw new Error('Method not Implemented');
|
||||
}
|
||||
`);
|
||||
@@ -8,5 +8,5 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
abstract x: number;
|
||||
x: number;
|
||||
`);
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
protected abstract x: number;
|
||||
protected x: number;
|
||||
`);
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
public abstract x: number;
|
||||
public x: number;
|
||||
`);
|
||||
@@ -1,10 +1,10 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// abstract class C1 {
|
||||
//// abstract class A {
|
||||
//// abstract x: number;
|
||||
//// }
|
||||
////
|
||||
//// class C3 implements C2 {[| |]}
|
||||
//// class C implements A {[| |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
x: number;
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// interface I {
|
||||
//// f1(): string;
|
||||
//// }
|
||||
////
|
||||
//// class C implements I {[|
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f1(): string {
|
||||
throw new Error('Method not Implemented');
|
||||
}
|
||||
`);
|
||||
@@ -8,5 +8,5 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
x: number & { __iBrand: any }
|
||||
x: number & { __iBrand: any; };
|
||||
`);
|
||||
|
||||
@@ -5,10 +5,11 @@
|
||||
//// y: number;
|
||||
//// }
|
||||
////
|
||||
//// class C2 implements C {[| |]
|
||||
//// x: number
|
||||
//// }
|
||||
//// class C2 implements I {[|
|
||||
//// x: number;
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
y: number;
|
||||
x: number;
|
||||
`);
|
||||
|
||||
@@ -11,7 +11,7 @@ interface I<T> {
|
||||
x: { y: T, z: T[] };
|
||||
}
|
||||
|
||||
class C<number> implements I<number> {
|
||||
x: { y: number, z: number[] };
|
||||
class C implements I<number> {
|
||||
x: { y: number; z: number[]; };
|
||||
}
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user