Skip to content

function schema instruction seems not working (at least in emacs + lsp + clj-kondo not work as expected) #1260

@idhowardgj94

Description

@idhowardgj94

As title, it seems that clj-kondo + lsp can only help to catch out error type at the first lavel.

take the example from test/malli/instrument/fn_schemas.cljs

(def VecOfInts [:vector :int])
(defn sum-nums
  {:malli/schema [:=> [:cat VecOfInts] :int]}
  [args]
  (apply + args))

which should catch sum-nums take vector of int as first argument after (dev/start), but like screenshot below

Image

it's only catch if the first argument is a vector or not, didn't check if it is a int or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions