File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ wirtinger_primal(x) = x
75
75
wirtinger_conjugate (x:: Wirtinger ) = x. conjugate
76
76
wirtinger_conjugate (:: Any ) = Zero ()
77
77
78
- extern (x:: Wirtinger ) = error ( " `Wirtinger` cannot be converted into an external type." )
78
+ extern (x:: Wirtinger ) = throw ( ArgumentError ( " `Wirtinger` cannot be converted to an external type." ) )
79
79
80
80
Base. Broadcast. broadcastable (w:: Wirtinger ) = Wirtinger (broadcastable (w. primal),
81
81
broadcastable (w. conjugate))
@@ -145,7 +145,7 @@ is not defined.
145
145
"""
146
146
struct DNE <: AbstractDifferential end
147
147
148
- extern (x:: DNE ) = error ( " `DNE` cannot be converted into an external type." )
148
+ extern (x:: DNE ) = throw ( ArgumentError ( " `DNE` cannot be converted to an external type." ) )
149
149
150
150
Base. Broadcast. broadcastable (:: DNE ) = Ref (DNE ())
151
151
Original file line number Diff line number Diff line change 11
11
12
12
# TODO : other + methods stack overflow
13
13
@test_throws ErrorException w* w
14
- @test_throws ErrorException extern (w)
14
+ @test_throws ArgumentError extern (w)
15
15
for x in w
16
16
@test x === w
17
17
end
You can’t perform that action at this time.
0 commit comments