Join Slack
Communities
Powered by
Is there a reason for the smart cast not happening...
# announcements
g
gian
01/16/2020, 3:45 PM
Is there a reason for the smart cast not happening when using
.not()
instead of
!
?
r
Rafa
01/16/2020, 3:57 PM
Pretty sure it’s just one that isn’t explicitly tracked by the compiler. If you wanted it to do the smart cast there you could define a contract
s
Sergei Dubrov [JB]
01/16/2020, 4:16 PM
@gian
it looks like a bug or feature to implement. Please report it at
https://youtrack.jetbrains.com/issues/KT
.
➕ 2
l
louiscad
01/16/2020, 4:40 PM
For future recurrence,
https://kotl.in/issue
is a good shortcut to know 🙂
m
Margarita Bobova
01/17/2020, 8:33 AM
@gian
Thank you! Created:
https://youtrack.jetbrains.com/issue/KT-35981
g
gian
01/17/2020, 8:37 AM
Thank you!
2
Views
Open in Slack
Previous
Next