(1.1 only) Var can be val: correct handling of delegated local variables #KT-14409 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-25 15:15:35 +03:00
parent 66f3e266d9
commit ba0e36cdb1
4 changed files with 31 additions and 3 deletions
+6
View File
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun foo() {
var s: String by Delegates.notNull()
s = ""
}