@thigasdevelopment/luam 0.18.2 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -275,12 +275,12 @@ VSCodium and Windsurf. The language server itself is editor-agnostic and speaks
275
275
 
276
276
  ## Known limitations
277
277
 
278
- - **Narrowing reaches names, not fields.** `if value ~= nil then` refines a local;
279
- `self.value` keeps its declared type however you test it.
278
+ - **Narrowing follows a path, not an alias.** `if self.value ~= nil then` refines
279
+ the field inside the block; storing the test in a variable does not carry it.
280
280
  - **A class is a type everywhere, a value from its declaration** — `extends` may
281
281
  name a parent written further down, a top-level `new` may not.
282
282
  - **The MTA catalog can lag a release** — a newer function stays `any`.
283
- - **No static members, declared metamethods, or generic classes.**
283
+ - **No declared metamethods or generic classes.**
284
284
  - **The editor re-checks by declaration** — a declaration change re-analyzes every
285
285
  file that can see it, an edit inside a function body only its own file.
286
286
  - **An export is named, never verified** against the side that calls it.
package/lua/class.lua CHANGED
@@ -73,7 +73,7 @@ local function create(name, struct, options)
73
73
 
74
74
  definition = definition or { __name = name }
75
75
 
76
- definition.__pending = nil
76
+ definition.__pending = false
77
77
  definition.__super = options.super
78
78
  definition.__metamethods = options.metamethods
79
79