Tensegritics / ClojureDart

Clojure dialect for Flutter and Dart
1.44k stars 91 forks source link

set prop is not properly casted #265

Closed dupuchba closed 1 year ago

dupuchba commented 1 year ago

should be easy to fix

(def broken
  (fn [^#/(Set List) ss]
    (let [v (.lookup ss "key")]
      (.-first! "val"))))
dupuchba commented 1 year ago
 - 'List' is from 'dart:core'.
Try accessing using ?. instead.
v$1.first=setval$1;
    ^^^^^
Try again after fixing the above error(s).
cgrand commented 1 year ago
image

It's this TODO coming back to haunt us 👻

dupuchba commented 1 year ago

fixed by https://github.com/Tensegritics/ClojureDart/commit/bffa571bc29f5492fba27e57a891b52671f02512