develar
e786e62fd7
JS backend: fixed variable capturing in extension functions.
...
Fixed ClosureTest.testWrappedVariableInExtensionFun IteratorsTest.foldReducesTheFirstNElements and IteratorsTest.takeExtractsTheFirstNElements. All tests passed.
(cherry picked from commit f8f1895)
2013-08-09 14:29:55 +04:00
develar
4e07c60541
JS backend: fixed AbstractCollection#equals.
...
Disabled test IteratorsTest::takeExtractsTheFirstNElements
2013-08-09 14:29:53 +04:00
Nikolay Krasko
2520f11bdc
KT-3823 Standard sort function requires MutableIterable by no reason
...
#KT-3823 Fixed
2013-07-30 21:06:16 +04:00
develar
12d19dd9d8
JS backend: added wraping to object the local vars which captured in closure.
...
Moved local functions and function literals to class/namespace definition.
(cherry picked from commit 36c954b)
2013-07-18 16:04:42 +04:00
Natalia.Ukhorskaya
a37be3c205
Add tests for observable/vetoable properties
2013-06-27 11:00:48 +04:00
Zalim Bashorov
9d1e319f0f
JS backend: implemented PrimitiveHashMap#putAll.
2013-06-22 01:34:38 +04:00
Alexander Udalov
ee80e0b8ca
Fix loops over progressions near to MAX_VALUE/MIN_VALUE
...
#KT-492 Fixed
For Byte, Char and Short ranges, promote the type of the loop parameter to int
to avoid overflows. For Int and Long ranges at the end of the loop over a
progression we now check if the new (incremented) value of the loop parameter
is greater than the old value iff increment > 0
2013-06-20 16:03:00 +04:00
Alexander Udalov
33d6347876
Fix loop over a range literal up to MAX_VALUE
...
#KT-492 In Progress
For Byte, Char and Short explicit casting from Int is removed -- loop parameter
is already stored in an Int anyway. For Int and Long comparison "i < end" at
the beginning of the loop is replaced to "i != end" at the end of the loop + a
special check for an empty loop
2013-06-20 16:02:59 +04:00
Svetlana Isakova
fc0077cf9b
removed explicit type arguments
...
from delegation tests where possible
2013-06-06 17:20:11 +04:00
Maxim Shafirov
58914cdf33
Delegate properties stdlib, take 2.
2013-05-30 19:06:45 +04:00
Natalia.Ukhorskaya
97c33b02ab
Add library classes for delegated properties
2013-05-21 13:21:53 +04:00
Zemian Deng
c3b46341d7
#KT-3533 Fixed - not to null in encoding name parameter in String, Bytes, and File.
2013-04-24 16:18:33 +04:00
Mohammad Shamsi
296bda2e3a
Fixed #KT-3379 jet.String.trimLeading and trimTrailing default whitespace trim
2013-04-19 01:10:51 +04:00
Ekaterina Sosa
a34a6b71c1
KT-3376 Added appendText and appendBytes functions to kotlin.io.File
...
#KT-3375 fixed
2013-04-09 00:56:44 +04:00
Mikhael Bogdanov
16aa4153e4
KT-3457 fix: added missed spread operator and receiver became format template
2013-04-01 14:50:20 +04:00
Svetlana Isakova
362770c9b1
don't generate two 'flatMap' methods(*) for Iterator
...
* with the same erased signature
#KT-3373 Fixed
2013-03-25 17:34:22 +04:00
Evgeny Gerashchenko
5ccbce6de6
Got rid of "tuple" word all over the code.
2013-03-22 16:38:25 +04:00
Evgeny Gerashchenko
e8cf905ed0
Fixed typo.
2013-03-22 16:38:25 +04:00
Evgeny Gerashchenko
655f9e01a2
Renamed tuples from other code.
2013-03-22 16:37:16 +04:00
Zalim Bashorov
7143393172
Added support bitwise operations in js translator
2013-03-19 16:31:02 +04:00
Zalim Bashorov
9c2d5a8ddb
Fixed translating primitive arrays to js.
2013-03-19 16:31:02 +04:00
Zalim Bashorov
322d35ac2f
Added some tests for JS implementation of HashMap
...
Fixed JS implementation of HashMap#putAll
2013-03-12 21:09:33 +04:00
Svetlana Isakova
fe82ea5464
reverted: adopt to broken inference
2013-03-07 13:11:21 +04:00
Zalim Bashorov
220682afe2
fixed mapping sort and max functions from java.util.Collections
2013-03-06 19:16:14 +04:00
Zalim Bashorov
dd7d584478
Added some tests for JS implementation of HashMap#values() (#KT-3035)
2013-03-06 19:16:14 +04:00
Evgeny Gerashchenko
c93df9fd9d
Got rid of deprecated method.
2013-03-04 18:54:06 +04:00
Evgeny Gerashchenko
e2a13da325
Disabled part of IoTest.listFiles on Windows.
2013-03-04 18:54:05 +04:00
Evgeny Gerashchenko
0e85fdd2cf
KT-3290 File.recurse NPE
...
#KT-3290 fixed
2013-03-04 17:33:58 +04:00
Evgeny Gerashchenko
bfd80e7855
Reformatted.
2013-03-04 17:33:58 +04:00
Evgeny Gerashchenko
b9e5704057
Updated test data and stdlib sources.
2013-02-13 18:08:37 +04:00
Evgeny Gerashchenko
ccab19b2a1
Added range/progression tests with NaN ends.
2013-02-13 18:08:36 +04:00
Evgeny Gerashchenko
021496c07d
Prohibited NaN steps.
2013-02-13 18:08:36 +04:00
Evgeny Gerashchenko
5a4ae00970
Added range iteration test with non-literal ranges.
2013-02-13 18:08:33 +04:00
Maxim Shafirov
15446e98b8
Fix tests failing after stdlib generation refactoring
2013-02-13 12:41:12 +04:00
Maxim Shafirov
24d99eb33f
adopt to broken inference
2013-02-13 12:41:12 +04:00
Maxim Shafirov
620aae28d0
Collections standard library is now generated from templates.
2013-02-13 12:41:12 +04:00
Maxim Shafirov
9f546f938d
KT-3192 Drop kotlin.nullable package
...
#KT-3192 Fixed
2013-02-04 18:02:52 +04:00
Evgeny Gerashchenko
57e985b7f1
Generated codegen tests for ranges.
2013-01-30 19:24:15 +04:00
Evgeny Gerashchenko
58f37f38f4
Renamed NumberSequence to Progression.
2013-01-29 22:55:10 +04:00
Evgeny Gerashchenko
dd4b508213
Adapted usage of failsWith().
2013-01-29 22:55:10 +04:00
Evgeny Gerashchenko
2fd1430329
Tests for all kinds of ranges and sequences.
2013-01-29 22:55:09 +04:00
Evgeny Gerashchenko
6d41697af0
Added ComparableRange.
2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko
b2e74b1473
Adapted code to new structure of ranges.
2013-01-29 22:55:06 +04:00
Evgeny Gerashchenko
9b866b2e12
Implemented reversed() in proper way.
...
- converted it into function
- return sequence values
- implemented for sequences as well
2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko
0051cb9553
downTo functions return sequence instead of range now.
2013-01-29 22:55:04 +04:00
Evgeny Gerashchenko
c8a194c0a8
Dropped *Range.isReversed
2013-01-29 22:55:04 +04:00
Alexander Udalov
e97b65801b
Fix stdlib tests compilation
2013-01-16 22:18:14 +04:00
Evgeny Gerashchenko
abaa450917
Moved JVM-specific String functions filter(), map(), etc to StringsJVM.kt
2013-01-16 20:32:24 +04:00
Yuri Samsoniuk
b9e07eb645
[KT-1859] Added collection like extension methods to String.
2013-01-16 19:03:49 +04:00
Andrey Breslav
32073f0987
Fixing compilation in stdlib tests
2012-12-10 17:00:05 +04:00