Skip to content

function name should be included in the error message when not bound in call #416

@He-Pin

Description

@He-Pin

In #39, @eregon report:

#39 (comment)

I think he is right here, and I think the function name should be included in the error message, eg:

    test("unboundParam") {
      val ex = intercept[Exception] {
        eval(
          """local newParams(x, y) = {
            |  x: x,
            |  y: y,
            |};
            |
            |local params = newParams("a");
            |
            |params.y
            |
        """.stripMargin,
          useNewEvaluator = useNewEvaluator
        )
      }

      assert(ex.getMessage.contains("Function parameter y not bound in call"))
    }

can be Function parameter y not bound in call to function newParams

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions