branch: elpa/typescript-mode
commit 5bf30fe8d6915db32d40170e9b05b3e8ae99d2b2
Author: Louis-Dominique Dubeau <[email protected]>
Commit: Louis-Dominique Dubeau <[email protected]>

    Add member expressions tests involving type parameters.
---
 test-files/indentation-reference-document.ts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/test-files/indentation-reference-document.ts 
b/test-files/indentation-reference-document.ts
index 91eb7e5168..765f8d977e 100644
--- a/test-files/indentation-reference-document.ts
+++ b/test-files/indentation-reference-document.ts
@@ -725,6 +725,18 @@ if (true) {
     .bleh();
 }
 
+const m =
+    fnord<string, number>()
+        .log<number, string>()
+        .blah();
+
+// This next expression is purposely not correct TS code. The missing parens
+// after fnord would trigger an infinite loop in earlier implementations.
+const m =
+    fnord<string, unknown>
+        .log<number, string>()
+        .blah();
+
 ) {
     1 + 2; // Indenting this line would cause an infinite loop
 }

Reply via email to