Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no errors detected #15

Open
AbhimanyuAryan opened this issue Feb 12, 2023 · 0 comments
Open

no errors detected #15

AbhimanyuAryan opened this issue Feb 12, 2023 · 0 comments

Comments

@AbhimanyuAryan
Copy link

following the video and I see that following statement should return MethodError: no method matching zero(::Type{Any})

1.9.0-beta4>mutable struct Squares
            count::Int
            end

1.9.0-beta4>Base.iterate(S::Squares, s =1) = s> S.count ? nothing : (s^2, s+1)

1.9.0-beta4>Base.length(S::Squares) = S.count

1.9.0-beta4>using JET; @report_opt(sum(Squares(10)))
No errors detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant