File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,16 @@ type C9<:A9 end
82
82
# This will overwrite the definition def1 above
83
83
84
84
VERSION >= v " 0.5" && VERSION < v " 0.6-dev" && println (" \n One warning expected:" )
85
- try # https://github.com/JuliaLang/julia/issues/20103
86
- @traitfn f {X; !Tr2{X,X}} (x:: X ) = 10
87
- end
88
- try # https://github.com/JuliaLang/julia/issues/20103
89
- @traitfn f {X; Tr2{X,X}} (x:: X ) = 100
90
- end
85
+ @traitfn f {X; !Tr2{X,X}} (x:: X ) = 10
86
+ @traitfn f {X; Tr2{X,X}} (x:: X ) = 100
91
87
@test f (5 )== 10
92
88
@test f (5. )== 10
93
89
@traitimpl Tr2{Integer, Integer}
94
90
@test f (5. )== 10
95
- if VERSION < v " 0.6-dev"
91
+
92
+ # Needed to update method cache (but not in 0.6 as #265 got fixed):
93
+ if VERSION < v " 0.6-dev" # in
96
94
@test ! (f (5 )== 100 )
97
- # needed to update method cache:
98
95
VERSION >= v " 0.5" && println (" \n Two warnings expected:" )
99
96
@traitfn f {X; Tr2{X,X}} (x:: X ) = 100
100
97
println (" " )
You can’t perform that action at this time.
0 commit comments