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

Chapter 5 variable type #12

Closed
Lastrick1 opened this issue Nov 20, 2020 · 0 comments
Closed

Chapter 5 variable type #12

Lastrick1 opened this issue Nov 20, 2020 · 0 comments

Comments

@Lastrick1
Copy link

In the Movie class (page 169), voteAverage is given as type double; this throws an exception:

type 'int' is not a subtype of type 'double' of 'function result'

If I changed this type to var, it passes and I can see that two of the movie averages are 0 (possibly they have no ratings).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant