More precise value reassignment analysis. #KT-7418 Fixed. #KT-6902 Fixed.
Variable can now be "exactly initialized", "may be initialized" and "not initialized". A set of relevant tests. Some fixed tests.
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ object FileRead {
|
||||
val fstream = FileInputStream()
|
||||
val `in` = DataInputStream(fstream)
|
||||
val br = BufferedReader(InputStreamReader(`in`))
|
||||
val strLine: String
|
||||
var strLine: String
|
||||
while ((strLine = br.readLine()) != null) {
|
||||
println(strLine)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user