migueldeicaza / SwiftGodot

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

GArray.append() requires an argument label #483

Closed rktprof closed 4 months ago

rktprof commented 4 months ago

Describe the bug When appending to a GArray using GArray.append() you need to supply an argument label like so myArray.append(value: myValue) whereas a regular swift array does not require it

To Reproduce Steps to reproduce the behavior:

  1. Create a GArray and append to it using .append(myValue)
  2. Compile
  3. It will fail with missing argument label 'value:' in call

Expected behavior the GArray.append() function should function like the regular swift array .append() which omits the argument label requirement