aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/typescript-ts-mode-resources/indent.erts25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts b/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts
index e8b1d57f132..210bfcabd41 100644
--- a/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts
+++ b/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts
@@ -182,3 +182,28 @@ interface Foo {
182 bar?: boolean; 182 bar?: boolean;
183} 183}
184=-=-= 184=-=-=
185
186Code:
187 (lambda ()
188 (setq tsx-ts-mode-indent-offset 2)
189 (tsx-ts-mode)
190 (setq indent-tabs-mode nil)
191 (indent-region (line-beginning-position 7) (point-max)))
192
193Name: Function body with params misindented (bug#78121)
194
195=-=
196const f1 = (a1: string,
197 a2: number) => {
198 const f2 = (a1: string,
199 a2: number) => {
200 const f3 = (a1: string,
201 a2: number) =>
202 {
203 return;
204 }
205 return;
206 }
207 return;
208}
209=-=-=