这是indexloc提供的服务,不要输入任何密码
Skip to content

REPL: Top level forms sometimes don't resolve forms correctly #1295

@scolsen

Description

@scolsen

The repl will state that e.g. it doesn't understand Array.push-back! and other forms when they are used at the top level in non-functions:

(let [x (Array.push-back! &[1 2 3] 4)] x)
I did not understand the form `(deftemplate Array.push-back!)` at Array.push-back!.parameterizedTemplate:0:0.

Traceback:
  (Array.push-back! (ref [1 2 3]) 4) at REPL:3:9.
(let [x (Array.push-back! (ref [1 2 3]) 4)] x) at REPL:3:1.
(do (Array.push-back! (ref [1 2 3]) 4) (str 4))
I did not understand the form `(deftemplate Array.push-back!)` at Array.push-back!.parameterizedTemplate:0:0.

Traceback:
  (Array.push-back! (ref [1 2 3]) 4) at REPL:4:5.
(do (Array.push-back! (ref [1 2 3]) 4) (str 4)) at REPL:4:1.

The same error happens for interfaces too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions