ClojureDart icon indicating copy to clipboard operation
ClojureDart copied to clipboard

compiler.cljc : `is-assignable` returns true for Function when it should not

Open dupuchba opened this issue 2 years ago • 2 comments

to reproduce:

(binding [analyzer-info li
            *dart-out* *out*
            *locals-gen* {}]
    (is-assignable?      
      (emit-type '^{:params-types (String)} dart:core/Function {})
      (emit-type '^{:params-types (int)} dart:core/Function {})))

It has impact in many places of the code but I discovered it when trying a (dart/is? f #/(-> int)) that should return false

dupuchba avatar Dec 14 '22 14:12 dupuchba

@dupuchba didn't you work on it?

cgrand avatar Jan 31 '23 12:01 cgrand

I've worked on this but it's not finished

dupuchba avatar Feb 01 '23 09:02 dupuchba