Is there a reason for the smart cast not happening...
# announcements
g
Is there a reason for the smart cast not happening when using
.not()
instead of
!
?
r
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
@gian it looks like a bug or feature to implement. Please report it at https://youtrack.jetbrains.com/issues/KT.
2
l
For future recurrence, https://kotl.in/issue is a good shortcut to know 🙂
m
g
Thank you!