update
This commit is contained in:
23
previousVersion/0.1/test/test_2.jl
Normal file
23
previousVersion/0.1/test/test_2.jl
Normal 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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user