jansorg/swift-plugin

plugin doesn't recognize valid swift syntax

Closed this issue · 1 comments

This line is causing the plugin to error

func testConditional(error: Error) -> Bool {
        return error is Error ? true : false
}

It appears that it can't handle an is check as a conditional

Thanks! I've fixed this for the next update.
It was a problem with the parsing of optional types (Error? is an optional type, Error ? is not)