Skip to content

Commit 8107658

Browse files
committed
Tests
1 parent 5fc8fd6 commit 8107658

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/basics.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,10 @@ end
212212
@syms a b c
213213
@test isequal(a + b, a + b + 0.01 - 0.01)
214214
end
215+
216+
@testset "subtyping" begin
217+
T = FnType{Tuple{T,S,Int} where {T,S}, Real}
218+
s = Sym{T}(:t)
219+
@syms a b c::Int
220+
@test isequal(arguments(s(a, b, c)), [a, b, c])
221+
end

0 commit comments

Comments
 (0)