[swift-dev] Starter project: SR-2: Build configuration directives can not wrap switch cases
Meador Inge
meadori at gmail.com
Mon Dec 7 11:04:05 CST 2015
On Sun, Dec 6, 2015 at 5:04 PM, Dmitri Gribenko via swift-dev <
swift-dev at swift.org> wrote:
Hi,
>
> If you're looking for a starter project in the frontend area (parser
> in this case), here is one.
>
> https://bugs.swift.org/browse/SR-2
>
> This code should be accepted, but it is rejected now:
>
> switch 10 {
> case 10:
> break
> #if FOO
> case 20:
> break
> #endif
> }
>
> $ swiftc /tmp/a.swift
> /tmp/a.swift:5:3: error: 'case' label can only appear inside a
> 'switch' statement
> case 20:
> ^
>
I will take a look at this one.
Cheers,
-- Meador
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20151207/715ce305/attachment.html>
More information about the swift-dev
mailing list