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 7823a01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Generator/Generator/Generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ 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 })

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

globalEnums = jsonApi.makeGlobalEnumMap()
}
Expand Down

0 comments on commit 7823a01

Please sign in to comment.