alexguirre / RAGENativeUI

MIT License
113 stars 36 forks source link

Fixed UIMenuItem Errors #151

Closed GravityScriptsV2 closed 1 year ago

GravityScriptsV2 commented 1 year ago

You specified new but not what u wanted to create

alexguirre commented 1 year ago

Not an error, it is the target-typed new expressions feature from C# 9.0.

The type is already known since it is specified of the left-side so it isn't needed after new. It's not used consistently throughout the file since it already existed pre-C#9.0 but when I upgraded the project C#9.0 I started using the feature in new code.

GravityScriptsV2 commented 1 year ago

Ah ok, didnt know that my bad.