Skip to content

Warning with redefined _ENV #1029

Closed
Closed
@sumneko

Description

@sumneko
_ENV = nil
print(A) -- `print` and `A` should warning 
_ENV = {}
print(A) -- no warning
---@type iolib
_ENV = {}
print(stderr) -- `print` is warning but `stderr` is not

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions