Skip to content

Commit

Permalink
use { $0 } instead of \.self
Browse files Browse the repository at this point in the history
Windows CI error: error: cannot convert value of type 'WritableKeyPath<_, _>' to expected argument type '(JGodotBuiltinClass) -> JGodotBuiltinClass'
  • Loading branch information
Rob Mayoff committed Nov 25, 2024
1 parent 91a7589 commit e567058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Generator/Generator/Generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ struct Generator {
.map(\.name)
)

builtinMap = jsonApi.builtinClasses.makeDictionary(key: \.name, value: \.self)
builtinMap = jsonApi.builtinClasses.makeDictionary(key: \.name, value: { $0 })

hasSubclasses = Set(jsonApi.classes.lazy.compactMap { $0.inherits })

Expand Down

0 comments on commit e567058

Please sign in to comment.