SwiftGen / SwiftGenKit

The framework behind SwiftGen, responsible for parsing various resources and turn them into Stencil contexts
MIT License
9 stars 8 forks source link

Error for wrong type placeholders #44

Closed djbe closed 7 years ago

djbe commented 7 years ago

Throws an error if placeholders in a format string (for the same position) have different types, for example:

"Text: %1$@; %1$ld."

Fixes https://github.com/SwiftGen/SwiftGen/issues/309.

AliSoftware commented 7 years ago

@djbe LGTM, Just rebased, ready to merge… but I'll let you review one last time to ensure I haven't mixed things up during the conflict resolution.

Note that you'll probably want to merge this first, before #41, to reduce conflicts between those two PRs