Fix toFloat in stdlib

This commit is contained in:
Natalia Ukhorskaya
2013-12-04 18:09:20 +04:00
parent cbcca6c08e
commit 6331dd2308
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -479,7 +479,7 @@ class CollectionTest {
expect(14) { arrayListOf(2, 3, 9).sum() }
expect(3.0) { arrayListOf(1.0, 2.0).sum() }
expect(3000000000000) { arrayListOf<Long>(1000000000000, 2000000000000).sum() }
expect(3.0) { arrayListOf<Float>(1.0, 2.0).sum() }
expect(3.0.toFloat()) { arrayListOf<Float>(1.0.toFloat(), 2.0.toFloat()).sum() }
}
class IterableWrapper<T>(collection : Iterable<T>) : Iterable<T> {