ClojureDart icon indicating copy to clipboard operation
ClojureDart copied to clipboard

Error when non-nullable optional

Open cgrand opened this issue 2 years ago • 1 comments

Original report: https://clojurians.slack.com/archives/C03A6GE8D32/p1679998004285439

We assign null as the default default for all optionals, even when their types are not nullable. This cause errors during compilation of the generated Dart code. We should catch this error before Dart.

cgrand avatar Mar 28 '23 20:03 cgrand

we looked at this few months ago with the analyzer. But it's impossible to tell of the default value is from a private lib or not. I guess your idea is to throw if user has not put a default value?

dupuchba avatar Apr 14 '23 15:04 dupuchba