Skip to content

Syntax error compiling CasePath expression with '/' in Swift 5.7 #75

Answered by stephencelis
andreyz asked this question in Q&A
Discussion options

You must be logged in to vote

While the new "bare" regex syntax is supposed to be disabled by default, that doesn't appear to be the case in the first beta. Depending on your app's build settings, you should be able to disable it by setting the "Enable Bare Slash Regex Literals" build setting to false.

You could also temporarily use the deprecated .case(Enum.case) syntax, but we wouldn't recommend this since it's a lot of churn to contend with for a bug in the first Xcode 14 beta.

Please file feedback, but hopefully this is fixed soon!

Meanwhile, I'm going to convert this to a discussion since it's not a bug in the library, but rather an issue with Xcode.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@andreyz
Comment options

@andreyz
Comment options

@stephencelis
Comment options

@stephencelis
Comment options

@tgrapperon
Comment options

Answer selected by andreyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
apple bug Something isn't working due to a bug on Apple's platforms
3 participants
Converted from issue

This discussion was converted from issue #74 on June 07, 2022 13:31.