Skip to content

[Request] Ability to specify base class visibility for child #1866

@artemking4

Description

@artemking4

The main idea is simple:

---@class Letter
---@field shape any

---@class A : private Letter
local a = { }
function a:example() 
  return self.shape -- fine
end

---@class B : A
local b = { }
function b:example2()
  return self.shape -- error/warn
end

Activity

JC0P

JC0P commented on Feb 8, 2023

@JC0P

this line works but error/warn wont work the way you want unless you use "Print" or something like that. Use more specific functions to help you code work more smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sumneko@artemking4@JC0P

        Issue actions