Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Error' is ambiguous for type lookup in this context #16

Closed
GerdC opened this issue Jul 1, 2018 · 1 comment
Closed

'Error' is ambiguous for type lookup in this context #16

GerdC opened this issue Jul 1, 2018 · 1 comment

Comments

@GerdC
Copy link

GerdC commented Jul 1, 2018

This simple code leads to a compiler error: 'Error' is ambiguous for type lookup in this context

import Karte
class CompilterTest {
    var test: Error?
}

The reason is that Karte makes the type ambiguous:

import Foundation
public enum Error: Swift.Error {
    case unsupportedMode
}

It would make code that uses Karte much nicer if it could use the type Error as usual.

@kiliankoe
Copy link
Owner

Oh no, thanks Swift 🙈

Guess I'll have to rename Karte's Error type to something else to be unambiguous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants