Skip to content

define a class bug? #1050

Description

@zhangminghe1024
     ---@class Student
local Student = {
	name = nil,
	age = nil,
}
---@type Student
local sd = {}
local age = sd.age

this way can work at v2.6.8 and it did't work after update to 3.X

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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