-
Notifications
You must be signed in to change notification settings - Fork 5
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
HY-5321 Turn on the strongest typing mode and make typing fixes #21
Conversation
General InformationTicket(s): Code Review(s): #21 Reviewers: patkujawa-wf, seanburke-wf Additional InformationWatchlist Notifications: None
|
RavenNumber of Findings: 0 |
Public API ChangesNo changes to the public API found for commit 6688703 Showing results for 6688703
|
test/main.dart
Outdated
ctx.font = '18px $fontName'; | ||
ctx.fillText(text, 5, 28); | ||
Object ctx = canvas.getContext('2d'); | ||
if (ctx is CanvasRenderingContext2D) { |
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.
Particularly since this is in tests, would it make sense to assert()
this so we throw if it isn't true? Or explicitly cast?
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.
edit: I suppose I could use as
to explicitly cast. I can go either way on an assert. Don't mind adding it but it will generally always be CanvasRenderingContext2D
but sadly getContext returns Object
.
+1 |
+10 CI passes |
+10 CI passed |
QA +1
@Workiva/release-management-p for merge into master |
+1 from RM |
Strongest Mode
This disables implicit casts and implicit dynamic types. This should ensure that everything works with DDC.
Testing
Semver