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

expression implicitly coerced from '[String : Any?]' to '[AnyHashable : Any] #1490

Closed
HudsonAfonso opened this issue May 26, 2023 · 1 comment · Fixed by #1493
Closed

expression implicitly coerced from '[String : Any?]' to '[AnyHashable : Any] #1490

HudsonAfonso opened this issue May 26, 2023 · 1 comment · Fixed by #1493

Comments

@HudsonAfonso
Copy link

HudsonAfonso commented May 26, 2023

Platform

Flutter Desktop

Version

7.6.2

/.../.pub-cache/hosted/pub.dev/sentry_flutter-7.6.2/macos/Classes/SentryFlutterPluginApple.swift:571:60: warning: expression implicitly coerced from '[String : Any?]' to '[AnyHashable : Any]'
        let userInstance = PrivateSentrySDKOnly.user(with: user)
                                                           ^~~~
        let userInstance = PrivateSentrySDKOnly.user(with: user)
                                                           ^~~~
                                                                as [AnyHashable : Any]
/.../.pub-cache/hosted/pub.dev/sentry_flutter-7.6.2/macos/Classes/SentryFlutterPluginApple.swift:581:72: warning: expression implicitly coerced from '[String : Any?]' to '[AnyHashable : Any]'
        let breadcrumbInstance = PrivateSentrySDKOnly.breadcrumb(with: breadcrumb)
                                                                       ^~~~~~~~~~
        let breadcrumbInstance = PrivateSentrySDKOnly.breadcrumb(with: breadcrumb)
                                                                       ^~~~~~~~~~
                                                                                  as [AnyHashable : Any]
@marandaneto
Copy link
Contributor

Thanks @HudsonAfonso
The fix is here #1493 but it's just a warning, the code will run normally.

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

Successfully merging a pull request may close this issue.

2 participants