Skip to content

Commit 0b6dcc6

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 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"""
@@ -2685,7 +2685,7 @@ const issue639report = []
26852685
""")
26862686
@yry()
26872687
foo2 = @invokelatest(StructParamFullCircle.Foo(1))
2688-
@test @invokelatest(StructParamFullCircle.bar(foo2)) == "nonparam"
2688+
@test_throws MethodError @invokelatest(StructParamFullCircle.bar(foo2))
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_broken @invokelatest(StructParamFullCircle.bar(foo3)) == "parametric with $Int"
27032703

27042704
rm_precompile("StructParamFullCircle")
27052705

0 commit comments

Comments
 (0)