Skip to content

Commit cf1bceb

Browse files
committed
Add tests
1 parent 0b53b8e commit cf1bceb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/cases/compiler/implicitIndexSignatures.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,15 @@ function f4() {
4343
const v3 = getNumberIndexValue(o1);
4444
const v4 = getNumberIndexValue(o2);
4545
}
46+
47+
function f5() {
48+
enum E1 { A, B }
49+
enum E2 { A = "A", B = "B" }
50+
enum E3 { A = 0, B = "B" }
51+
const v1 = getStringIndexValue(E1);
52+
const v2 = getStringIndexValue(E2);
53+
const v3 = getStringIndexValue(E3);
54+
const v4 = getNumberIndexValue(E1);
55+
const v5 = getNumberIndexValue(E2);
56+
const v6 = getNumberIndexValue(E3);
57+
}

0 commit comments

Comments
 (0)