dev #24

Merged
altavir merged 14 commits from dev into master 2018-12-11 17:42:42 +03:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit dcf8f4c6fd - Show all commits

View File

@ -38,9 +38,9 @@ object RealField : ExtendedField<Real>, Norm<Real, Real> {
/** /**
* Real field element wrapping double. * Real field element wrapping double.
* *
* TODO inline does not work due to compiler bug. Waiting for fix * TODO inline does not work due to compiler bug. Waiting for fix for KT-27586
*/ */
class Real(val value: Double) : FieldElement<Real, RealField> { inline class Real(val value: Double) : FieldElement<Real, RealField> {
//values are dynamically calculated to save memory //values are dynamically calculated to save memory
override val self override val self

View File

@ -6,6 +6,8 @@ import kotlin.test.assertEquals
class RealFieldTest { class RealFieldTest {
@Test @Test
fun testSqrt() { fun testSqrt() {
//fails because KT-27586
val sqrt = with(RealField) { val sqrt = with(RealField) {
sqrt( 25 * one) sqrt( 25 * one)
} }