Skip to content

Commit ba5ce24

Browse files
author
Минин Степан Александрович
committed
test(HydraScript): compound assignment
Closes #233
1 parent 0c9809c commit ba5ce24

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
let x = {
2+
prop: 2;
3+
}
4+
x.prop += 4 + 5 * 3
5+
x.prop *= 7
6+
>>> x
7+
8+
let y = 1
9+
y -= (y + 2) * (3 + 4)
10+
y /= 5
11+
>>> y
12+
13+
let arr: number[] = []
14+
let i = 0
15+
while (i < 5) {
16+
arr ++= [i]
17+
i += 1
18+
}
19+
>>> arr

0 commit comments

Comments
 (0)