Skip to content

How write a right annotation/definition #240

Closed Answered by chemodun
chemodun asked this question in Q&A
Discussion options

You must be logged in to vote

Claude helps me. And on reddit I have a similar recommendation.
From Claude:
In annotation:

---@class C
C = {}

in code:

---@class C
local C = ffi.C

From reddit - thanks to IllustrisJack
in code

local C = {}
---@cast C C

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chemodun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant