How to add type for io.open returned value?
#2254
Unanswered
linrongbin16
asked this question in
General Questions
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hi,
I want to write code like this:
But in the line-3, lua ls report:
What type should I use to add
@asannotation forf?I have tried
--[[@as file]], but it seems not the correct annotation for io.file.All reactions