Do not use BasicInterpreter for bytecode analysis

The problem with BasicInterpreter is the following:
it creates BasicValue objects that should be replaced in favor of StrictBasicicValue

See commit message in 25c6ac1 for clarification

 #KT-14447 Fixed
This commit is contained in:
Denis Zharkov
2016-10-24 17:38:54 +03:00
parent e9efc9e892
commit b7e8071a7d
4 changed files with 302 additions and 6 deletions
+22
View File
@@ -0,0 +1,22 @@
class ImpulsMigration
{
fun migrate(oldVersion: Long)
{
var _oldVersion = oldVersion
if (4 > 3)
{
_oldVersion = 1
}
if (1 > 3)
{
_oldVersion++
}
}
}
fun box(): String {
ImpulsMigration().migrate(1L)
return "OK"
}