migueldeicaza / SwiftGodot

New Godot bindings for Swift
https://migueldeicaza.github.io/SwiftGodotDocs/tutorials/swiftgodot-tutorials/
MIT License
1.19k stars 77 forks source link

use let instead of var for _initializeClass #516

Closed mayoff closed 3 months ago

mayoff commented 3 months ago

In Swift 6, _initializeClass as a static var produces an error:

Static property '_initializeClass' is not concurrency-safe because it is non-isolated global shared mutable state

There's no reason to for it to be a var, so make it a let instead.

migueldeicaza commented 3 months ago

Thank you very much!