-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Steps to Reproduce:
Having the name ErrorKit be both the import and the main enum creates problems for the compiler when trying to disambiguate colliding names.
- Import ErrorKit and SQLiteData
- Try to throw a DatabaseError (it exists in both packages)
- You can select the latter using
SQLiteData.DatabaseErrorbut you can't specifyErrorKit.DatabaseError
import SQLiteData
import ErrorKit
typealias EKDBError = ErrorKit.DatabaseError // <-- 'DatabaseError' is not a member type of enum 'ErrorKit.ErrorKit'
typealias SQLDBError = SQLiteData.DatabaseError // Works fineExpected Behavior:
Have a different package name than the main enum so you can prefix the names of classes.
Current Behavior:
'DatabaseError' is not a member type of enum 'ErrorKit.ErrorKit' thrown when trying to select a specific name that conflicts with another package.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels