Skip to content

The incorrect-number-of-attributes works incorrectly when passing object as refence #694

@maxonfjvipon

Description

@maxonfjvipon

Consider this program:

# program.eo
[args] > program
  greeting > @
    QQ.io.stdout
    human QQ.io.stdin QQ.io.stdout
# greeting.eo
[out human] > greeting
  out > @
    QQ.txt.sprintf
      "Hello, %s!\n"
      * human.name
# human.eo
[in out] > human
  seq * > name!
    out "What is your name? "
    in.next-line

Here in the program we pass QQ.io.stdout to greeting as first argument to be used later. However the error is:

[ERROR] program:4 The object "Q.org.eolang.io.stdout" expects 1 arguments, while 0 provided (incorrect-number-of-attribu
tes (WPA))

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions