Tensegritics / Tensegritics/ClojureDart
magicast Error: A value of type 'num' can't be returned from a function with return type 'int?'.
Open
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 1.6k
- Forks
- 119
- PR merge metrics
- No merged PRs in 30d
Description
Error: A value of type 'num' can't be returned from a function with return type 'int?'.
when implementing https://api.flutter.dev/flutter/widgets/ChildIndexGetter.html where the return expression is (+ x y) with dynamic x and y.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the error while implementing Flutter's ChildIndexGetter with the return expression (+ x y) and dynamic x and y. Investigate how ClojureDart handles the expression's inferred type, and consider the issue done when the implementation no longer reports that a num is returned where int? is required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure, dart, flutter
- Domain
- compilers, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100