branch: elpa/typescript-mode
commit fd1c9daa4d3f5bc78aeb871c3a5412dfa87e90c9
Author: Louis-Dominique Dubeau <[email protected]>
Commit: Louis-Dominique Dubeau <[email protected]>
Add failing cases.
---
test-files/indentation-reference-document.ts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/test-files/indentation-reference-document.ts
b/test-files/indentation-reference-document.ts
index 2ebed78697..7ba8328968 100644
--- a/test-files/indentation-reference-document.ts
+++ b/test-files/indentation-reference-document.ts
@@ -488,6 +488,19 @@ function foo12(): void {
});
}
+// Number literals in the return type annotation.
+function foo13(something: string,
+ somethingElse: string): 0b1 | 0 | -1 | 0o2 | 0x3f {
+ return 0;
+}
+
+// No spaces between numbers and type union symbols. (Also changed the
+// notation to uppercase where possible.)
+function foo14(something: string,
+ somethingElse: string): 0B1|0|-1|0O2|0X3F {
+ return 0;
+}
+
const a =
1; // Blah
const b = 2;