2022-02-09 00:26:58 +00:00
|
|
|
local function id(x)
|
2022-02-18 01:15:33 +00:00
|
|
|
return x
|
2022-02-09 00:26:58 +00:00
|
|
|
end
|
|
|
|
local function comp(f)
|
2022-02-18 01:15:33 +00:00
|
|
|
return function(g)
|
|
|
|
return function(x)
|
|
|
|
return f(g(x))
|
|
|
|
end
|
|
|
|
end
|
2022-02-09 00:26:58 +00:00
|
|
|
end
|
2022-02-09 23:14:29 +00:00
|
|
|
local id2 = comp(id)(id)
|
2022-02-09 00:26:58 +00:00
|
|
|
local nil2 = id2(nil)
|
2022-02-15 22:10:43 +00:00
|
|
|
local a : any = nil
|
|
|
|
local b : nil = nil
|
|
|
|
local c : (nil) -> nil = nil
|
|
|
|
local d : (any & nil) = nil
|
|
|
|
local e : any? = nil
|
2022-02-18 19:09:00 +00:00
|
|
|
local f : number = 123
|
2022-02-09 23:14:29 +00:00
|
|
|
return id2(nil2)
|