2018-06-27 15:03:50 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////enum E {
|
|
|
|
//// a,
|
|
|
|
//// b = 1,
|
|
|
|
//// c = "123"
|
|
|
|
////}
|
|
|
|
////enum A {
|
|
|
|
//// a = E.c
|
|
|
|
////}
|
|
|
|
////enum B {
|
|
|
|
//// b = A.a
|
|
|
|
////}
|
|
|
|
////B.c
|
|
|
|
|
|
|
|
verify.codeFix({
|
|
|
|
description: "Add missing enum member 'c'",
|
|
|
|
newFileContent: `enum E {
|
|
|
|
a,
|
|
|
|
b = 1,
|
|
|
|
c = "123"
|
|
|
|
}
|
|
|
|
enum A {
|
|
|
|
a = E.c
|
|
|
|
}
|
|
|
|
enum B {
|
|
|
|
b = A.a,
|
2018-06-28 03:36:26 +02:00
|
|
|
c
|
2018-06-27 15:03:50 +02:00
|
|
|
}
|
|
|
|
B.c`
|
|
|
|
});
|