jansorg / swift-plugin

Space of the Swift language support plugin for JetBrains IDEs
35 stars 0 forks source link

plugin doesn't recognize valid swift syntax #21

Closed amijsul closed 10 months ago

amijsul commented 10 months ago

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

jansorg commented 10 months ago

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)