We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
::Real
1 parent 54e1119 commit 1998364Copy full SHA for 1998364
test/math.jl
@@ -1463,6 +1463,14 @@ end
1463
end
1464
1465
1466
+@testset "special function `::Real` fallback shouldn't recur without bound, issue #57789" begin
1467
+ mutable struct Issue57789 <: Real end
1468
+ Base.float(::Issue57789) = Issue57789()
1469
+ for f ∈ (sin, sinpi, log, exp)
1470
+ @test_throws MethodError f(Issue57789())
1471
+ end
1472
+end
1473
+
1474
# Test that sqrt behaves correctly and doesn't exhibit fp80 double rounding.
1475
# This happened on old glibc versions.
1476
# Test case from https://sourceware.org/bugzilla/show_bug.cgi?id=14032.
0 commit comments