This commit is contained in:
narawat lamaiin
2024-08-28 05:56:25 +07:00
commit 1739972440
14 changed files with 3986 additions and 0 deletions

23
test/test_2.jl Normal file
View File

@@ -0,0 +1,23 @@
using Revise
function testf(a)::NamedTuple{(:a, :b), Tuple{Union{Nothing, Int}, Int}}
if a == 1
return (a=nothing, b=5)
else
return (a=5, b=5)
end
end
q = testf(1)
w = testf(2)