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.DatabaseError but you can't specify ErrorKit.DatabaseError
import SQLiteData
import ErrorKit
typealias EKDBError = ErrorKit.DatabaseError // <-- 'DatabaseError' is not a member type of enum 'ErrorKit.ErrorKit'
typealias SQLDBError = SQLiteData.DatabaseError // Works fine
Expected 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.
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.
SQLiteData.DatabaseErrorbut you can't specifyErrorKit.DatabaseErrorExpected 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.