Closed pmaene closed 8 years ago
I just ran into a similar issue – I think my pull request #173 fixes your second init
case.
Since I’m in the area, I also had a go at fixing your first case too (haven’t tested it though). Issue seems to be it was going through the SafeName
filter before concatenating your prefix on.
Thanks for the quick replies @DouglasHeriot and @alexeyxo! Even when correctly escaped, the second case does not work. It seems there's a compiler bug that prevents an "init" enum element from working correctly (https://bugs.swift.org/browse/SR-1660).
Version of protoc (
protoc --version
)3.0 [ProtoBuf3.0-Swift3.0]
Version of ProtocolBuffers.framework
3.0 [ProtoBuf3.0-Swift3.0]
.proto
file to reproduceDescription
First of all, thanks a lot for keeping up with all the changes in each new Xcode beta release! When compiling this ProtoBuf 3.0 specification for Swift, two errors related to reserved keyword escaping pop up:
Type
, instead of NativeType.