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:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user