Skip to content

Commit b5d1680

Browse files
committed
fixup! Add test showcasing failure when removing then adding back type parameters (#957)
1 parent 0dd958f commit b5d1680

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,7 +2671,7 @@ const issue639report = []
26712671
@eval using StructParamFullCircle
26722672
sleep(mtimedelay)
26732673
foo1 = StructParamFullCircle.Foo(1)
2674-
@test StructParamFullCircle.bar(foo1) == "parametric with Int64"
2674+
@test StructParamFullCircle.bar(foo1) == "parametric with $Int"
26752675

26762676
# Change Foo to be non-parametric
26772677
write(fn4, raw"""
@@ -2680,12 +2680,12 @@ const issue639report = []
26802680
struct Foo
26812681
x::Int
26822682
end
2683-
bar(::Foo{T}) where {T} = "parametric with $T"
2683+
bar(::Foo) = "non parametric"
26842684
end
26852685
""")
26862686
@yry()
26872687
foo2 = @invokelatest(StructParamFullCircle.Foo(1))
2688-
@test @invokelatest(StructParamFullCircle.bar(foo2)) == "nonparam"
2688+
@test @invokelatest(StructParamFullCircle.bar(foo2)) == "non parametric"
26892689

26902690
# Now change Foo back to its original parametric definition
26912691
write(fn4, raw"""
@@ -2699,7 +2699,7 @@ const issue639report = []
26992699
""")
27002700
@yry()
27012701
foo3 = @invokelatest(StructParamFullCircle.Foo(1))
2702-
@test @invokelatest(StructParamFullCircle.bar(foo3)) == "parametric with Int64"
2702+
@test @invokelatest(StructParamFullCircle.bar(foo3)) == "parametric with $Int"
27032703

27042704
rm_precompile("StructParamFullCircle")
27052705

0 commit comments

Comments
 (0)