-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Improve error messages when receiving a property that forms a cycle #95
Conversation
// MARK: - Set | ||
|
||
extension Set { | ||
fileprivate func removing(_ element: Element) -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no longer used
Dependency cycle detected on RootViewController! | ||
authService: AuthService -> authService: AuthService |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
honestly this is way, way better an error message
Dependency cycle detected on RootViewController! | ||
authService: AuthService -> authService: AuthService |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #95 +/- ##
==========================================
- Coverage 99.66% 99.66% -0.01%
==========================================
Files 47 47
Lines 11330 11520 +190
==========================================
+ Hits 11292 11481 +189
- Misses 38 39 +1
|
@@ -80,68 +80,100 @@ final class Scope: Hashable { | |||
propertyStack: OrderedSet<Property>, | |||
erasedToConcreteExistential: Bool | |||
) throws -> ScopeGenerator { | |||
if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best reviewed with whitespace ignored.
The check in this if
statement was moved (with changes) below under the comment // Check received children for cycles.
Happy to take feedback post-merge! |
Resolves #93 and #94