Skip to content

printの糖衣構文(<:)がローカルスコープのprintを参照する #1031

Description

@takejohn

ローカルスコープでprintをシャドウイングすると<:の挙動が変わるが、意図していない?

@f() {
  let print = 42
  <: "Hello, world!"
  // [RuntimeError] Runtime: Expect function, but got num.
}

f()

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