Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typehints not Supported #156

Open
Multitude1337 opened this issue Nov 19, 2023 · 2 comments
Open

Typehints not Supported #156

Multitude1337 opened this issue Nov 19, 2023 · 2 comments

Comments

@Multitude1337
Copy link

So, this is gonna sound like an odd one, but... this is for Roblox LUA code by the way.

So, in normal circumstances, this code would execute just fine without obfuscation. The issue is putting ": string" after a function, like in my example. This issue isn't too big a deal, but since I encountered it, I felt I should report this bug.

To Reproduce my error, you will want to try and obfuscate the ModuleScript code and you'll get:
Parsing Error at Position 3:30, unexpected token <Symbol> ":", expected <Keyword> "end"<-[0m

LocalScript:

local MyModule = require(script:WaitForChild'ModuleScript')

MyModule.myFunction()

ModuleScript:

local MyModule = {}

function MyModule.myFunction(): string
	print("Hello from myFunction!")
end

return MyModule

@Zaenalos
Copy link

Lexer fault.

@levno-710
Copy link
Member

Prometheus doesn't support type hints yet

@levno-710 levno-710 changed the title Obfuscation Issue with : After function name Typehints not Supported Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants