diff --git a/tests/cases/fourslash/scriptLexicalStructureItems2.ts b/tests/cases/fourslash/scriptLexicalStructureItems2.ts new file mode 100644 index 00000000000..092527ec937 --- /dev/null +++ b/tests/cases/fourslash/scriptLexicalStructureItems2.ts @@ -0,0 +1,12 @@ +/// + + +/////**/ + +goTo.marker(); +edit.insertLine("module A"); +edit.insert("export class "); + +// should not crash +verify.getScriptLexicalStructureListCount(1); +