migueldeicaza / SwiftGodot

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

use let instead of var for _initializeClass #516

Closed mayoff closed 4 weeks ago

mayoff commented 1 month 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 4 weeks ago

Thank you very much!