Skip to content

Commit 8aa44ac

Browse files
committed
Add example of "~foo as bar".
1 parent bb901ec commit 8aa44ac

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

analysis/tests/src/Xform.res

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ let foo = x =>
3131
| Some(q) => q.T.a + 1
3232
// ^xfm
3333
}
34+
35+
let withAs = (~x as name) => name+1
36+
// ^xfm

analysis/tests/src/expected/Xform.res.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@ newText:
3434

3535
Xform tests/src/Xform.res 30:9
3636

37+
Xform tests/src/Xform.res 34:21
38+
Hit: Add type annotation
39+
{"start": {"line": 34, "character": 21}, "end": {"line": 34, "character": 24}}
40+
newText:
41+
name: int
42+

0 commit comments

Comments
 (0)