[JS IR BE] Implement private members lowering to extract private methods from class and transform them into static function

* fix kotlin.Long
 * update tests
This commit is contained in:
Roman Artemev
2018-12-22 13:21:49 +03:00
committed by romanart
parent 75996b1c8e
commit d35b20f764
14 changed files with 252 additions and 8 deletions
+2 -2
View File
@@ -240,8 +240,8 @@ public class Long internal constructor(
public override fun toFloat(): Float = toDouble().toFloat()
public override fun toDouble(): Double = toNumber()
// TODO: is it still needed?
private fun valueOf() = toDouble()
// This method is used by `toString()`
internal fun valueOf() = toDouble()
override fun equals(other: Any?): Boolean = other is Long && equalsLong(other)