Skip to content

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

@takejohn

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions