Skip to content

Commit e15bd04

Browse files
committed
Updated spec.
1 parent 4209d5d commit e15bd04

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

spec/inputs/assign.yue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,9 @@ do
127127
a |= 7
128128
a ^= 8
129129

130+
do
131+
type or= (v) ->
132+
type = type v
133+
type
134+
130135
nil

spec/outputs/assign.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,5 +204,11 @@ return _(function()
204204
a = a | 7
205205
a = a ^ 8
206206
end
207+
do
208+
local type = type or function(v)
209+
local type = type(v)
210+
return type
211+
end
212+
end
207213
return nil
208214
end)

0 commit comments

Comments
 (0)