mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 21:40:43 +00:00
1ac64af484
Introduces a test runner with test cases. Also significantly overhauls the GHA configuration.
18 lines
314 B
Lua
18 lines
314 B
Lua
local function id(x)
|
|
return x
|
|
end
|
|
local function comp(f)
|
|
return function(g)
|
|
return function(x)
|
|
return f(g(x))
|
|
end
|
|
end
|
|
end
|
|
local id2 = comp(id)(id)
|
|
local nil2 = id2(nil)
|
|
local a : any = nil
|
|
local b : nil = nil
|
|
local c : (nil) -> nil = nil
|
|
local d : (any & nil) = nil
|
|
local e : any? = nil
|
|
return id2(nil2)
|