mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Edit error handling tests
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//// abstract class C1 {
|
||||
//// abstract f1<T extends number>();
|
||||
//// }
|
||||
////
|
||||
//// abstract class C2 extends C1{
|
||||
////
|
||||
//// }
|
||||
////
|
||||
//// interface I1 extends C2 {}
|
||||
////
|
||||
//// class C3 implements I1 {[|
|
||||
////
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f1<T extends number>(){
|
||||
throw new Error('Method not Implemented');
|
||||
}
|
||||
`);
|
||||
@@ -10,6 +10,11 @@
|
||||
//// class C1 implements I1,I2 {[|
|
||||
//// |]}
|
||||
|
||||
verify.not.codeFixAvailable();
|
||||
|
||||
// TODO: (arozga) Get members from multiple interfaces.
|
||||
/*
|
||||
verify.rangeAfterCodeFix(`
|
||||
x: number;
|
||||
`);
|
||||
`);
|
||||
*/
|
||||
@@ -10,7 +10,12 @@
|
||||
//// class C1 implements I1,I2 {[|
|
||||
//// |]}
|
||||
|
||||
verify.not.codeFixAvailable();
|
||||
|
||||
// TODO: (arozga) Get members from multiple interfaces.
|
||||
/*
|
||||
verify.rangeAfterCodeFix(`
|
||||
x: number;
|
||||
y: number;
|
||||
`);
|
||||
`);
|
||||
*/
|
||||
@@ -10,6 +10,10 @@
|
||||
//// class C1 implements I1,I2 {[|
|
||||
//// |]}
|
||||
|
||||
verify.not.codeFixAvailable();
|
||||
|
||||
// TODO: (arozga) Get members from multiple interfaces.
|
||||
/*
|
||||
verify.fileAfterCodeFix(`
|
||||
interface I1 {
|
||||
x: number;
|
||||
@@ -22,3 +26,4 @@ interface I1 {
|
||||
x: number & string;
|
||||
}
|
||||
`);
|
||||
*/
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
////
|
||||
//// class C implements I<number> { }
|
||||
|
||||
// Don't know how to instantiate in codeFix
|
||||
verify.codeFixAvailable();
|
||||
|
||||
// TODO: (arozga) Don't know how to instantiate in codeFix
|
||||
// if instantiation is invalid.
|
||||
verify.not.codeFixAvailable();
|
||||
// verify.not.codeFixAvailable();
|
||||
@@ -13,4 +13,7 @@
|
||||
//
|
||||
// In the latter two cases, it is premature to copy `x:T` into C.
|
||||
// Since we can't guess the programmer's intent here, we do nothing.
|
||||
verify.not.codeFixAvailable();
|
||||
|
||||
verify.codeFixAvailable();
|
||||
// TODO: (aozgaa) Acknowledge other errors on class/implemented interface/extended abstract class.
|
||||
// verify.not.codeFixAvailable();
|
||||
Reference in New Issue
Block a user