why is “this cast can never succeed” a warning and...
# announcements
c
why is “this cast can never succeed” a warning and not an error?
o
There are cases when compiler might be wrong. E.g. if in some previous version of dependency it could succeed, but in current version cannot and you need compatibility.
c
it could be an error and support an annotation to turn it off?
is there a “treat warnings as errors” option?
n
A compiler flag
allWarningsAsErrors
is coming in Kotlin 1.2 https://blog.jetbrains.com/kotlin/2017/10/kotlin-1-2-beta2-is-out/
c
great. thanks!