Tensegritics / Tensegritics/ClojureDart
Fail at compile time on dubious casts
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 1.6k
- Forks
- 119
- PR merge metrics
- No merged PRs in 30d
Description
Reproducing the mistake:
:appBar (m/AppBar :title "this is an invalid way")
In the documentation, :title expects a Text widget.
The compiler does not emitting any errors, instead, it casts the string to a Widget, knowing that the cast won't work.
Suggestion: not doing the cast and emit an error at compile time
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
No file or test is named in the report, so first locate the compiler path for m/AppBar arguments and the :title value. Trace how the string is cast to a Widget, then verify that supplying a string where a Text widget is expected produces a compile-time error instead.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure, dart, flutter
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100