Add fallback flag for legacy var smart casts after try #KT-21377 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-11-22 14:59:22 +03:00
parent 8b6e63dc18
commit 078c27efa3
8 changed files with 35 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
fun foo() {
var some: String? = null
some = "alpha"
try {
some = "omega"
}
catch (e: Exception) {}
some.length
}