Dmitry Petrov
c97294a066
stdlib fixes:
...
- 'sequence(initialValue: T?, ...)' should have LowPriorityInOverloadResolution
(otherwise 'sequence({...}, {...})' is ambiguous).
- 'copyOf' and 'copyOfRange' should be defined for 'Array<T>' only
('Array<out T>' version always loses to 'Array<T>', since the second one
is always more specific).
2015-12-30 10:44:00 +03:00
Ilya Gorbunov
b71b336a69
Fix fq names of moved facade classes in imports and other code occurrences
2015-12-29 18:04:13 +03:00
Yan Zhulanow
b3877b5f0b
Always compile Android projects without JDK in classpath #KT-10479
2015-12-23 16:42:35 +03:00
Sergey Mashkov
5ad0a84039
rename kotlin.test to kotlin-test
2015-12-21 15:10:24 +03:00
Stanislav Erokhin
bcaa755c4e
Fix compilation.
...
- rename isFinal extension property to avoid ambiguity with synthetic property in DeserializedClassTypeConstructor
- add explicit parameter to lambda File.listFiles
- return true from lambda Query.forEach
2015-12-18 22:49:26 +03:00
Sergey Mashkov
fe4f51617c
Add kotlin.test dependency to kotlin-compiler-embeddable
2015-12-18 22:17:47 +03:00
Sergey Mashkov
a5b098c4a7
kotlin.test: Rename jvm module to junit
2015-12-18 22:16:04 +03:00
Sergey Mashkov
1867abbbe7
Add kotlin.test library
2015-12-18 22:16:04 +03:00
Ilya Gorbunov
055c71e8d0
Provide minWith and maxWith to find maximum and minimum values according to the given comparator.
...
#KT-9002 Fixed
2015-12-18 00:00:52 +03:00
Ilya Gorbunov
b5e637bed5
Rename toMap with selector and transform to toMapBy
2015-12-17 22:50:44 +03:00
Ilya Gorbunov
544bc9a70c
Introduce toMap with key-value pair selector.
...
#KT-6657
2015-12-17 22:50:43 +03:00
Ilya Gorbunov
33967a09f6
Unify minBy and maxBy for Maps with other families.
2015-12-14 04:56:47 +03:00
Ilya Gorbunov
33b366b9b9
Relax upper bound of T for minBy and maxBy to be nullable.
...
Swap type parameters of minBy and maxBy.
#KT-10099 Fixed
2015-12-14 04:56:45 +03:00
Ilya Gorbunov
feff5b2327
Stdlib generators: change values back to function.
2015-12-14 03:49:59 +03:00
Ilya Gorbunov
871c5c66b4
Move code between packages (JS)
2015-12-14 03:49:46 +03:00
Ilya Gorbunov
81e7826568
Move generated code between packages.
2015-12-14 03:49:43 +03:00
Dmitry Petrov
0fe74a8b43
COMMA_IN_WHEN_CONDITION_WITHOUT_ARGUMENT is an ERROR now.
...
Migrated code.
Updated test data in IDE tests.
Dropped whenWithRangeTestsAndMultiConditions.kt:
"Introduce subject" is not applicable to 'when' with ||-ed conditions.
2015-12-11 10:43:16 +03:00
Yan Zhulanow
ac9a1350c2
Application package from manifest file has a higher priority than the applicationId value in build.gradle (KT-10320)
2015-12-10 19:38:38 +03:00
Natalia Ukhorskaya
51abb021bc
Correct resource path for flavors in android-extensions-plugin
2015-12-04 17:21:37 +03:00
Natalia Ukhorskaya
a197fc8cb8
Fix NoSuchMethod in android-extensions-plugin
...
#KT-10263 Fixed
2015-12-03 16:17:24 +03:00
Ilya Gorbunov
0ffce06356
Hide toMap with keySelector
...
#KT-6657
2015-12-01 01:18:46 +03:00
Ilya Gorbunov
ea60ab74a7
Replace deprecated toMap usages with toMapBy
2015-12-01 01:18:44 +03:00
Ilya Gorbunov
f107559a3c
Docs: proper pluralization of 'entry'
2015-12-01 01:18:21 +03:00
Ilya Gorbunov
6ca647aecd
Minor: cleanup asSequence() documentation.
2015-12-01 01:18:19 +03:00
Ilya Gorbunov
f596d9ac23
Provide asIterable also for CharSequences, Maps and Iterables.
...
KT-10152 Fixed
2015-12-01 01:18:18 +03:00
Ilya Gorbunov
f7a780f32c
Extension contains for ranges: rename parameter item to value.
2015-11-30 14:12:11 +03:00
Ilya Gorbunov
661e288362
Introduce 'step' property in progressions instead of 'increment'
2015-11-30 14:12:05 +03:00
Ilya Gorbunov
941167e241
Revert "Drop deprecated toGenerator and toLinkedList." until RC
2015-11-29 04:37:45 +03:00
Ilya Gorbunov
f8fe3e6c1d
Restore dropped hidden declarations for binary compatibility until RC.
2015-11-29 04:37:35 +03:00
Ilya Gorbunov
54b415593a
Replacement upcasts parameter to the most specific supertype in case of contains, indexOf, lastIndexOf, remove, get, containsKey, containsValue.
2015-11-28 07:21:38 +03:00
Ilya Gorbunov
de86e90103
Generate indexOf and lastIndexOf extensions for List.
2015-11-28 07:20:27 +03:00
Ilya Gorbunov
a25f23a286
Apply @OnlyInputTypes on type parameter for contains, indexOf, lastIndexOf extensions for Iterables, Sequences and Arrays instead of @NoInfer on element parameter.
...
Provide covariant extensions annotated with @OnlyInputTypes:
- Collection<T>: containsAll(Collection<T>),
- MutableCollection<out T>: remove(T), removeAll, retainAll (Collection<T>),
- List<T>: indexOf(T), lastIndexOf(T)
- Map<out K, V>: get(K), containsKey(K), contains(K)
- Map<K, V>: containsValue(V)
- MutableMap<out K, V>: remove(K)
All *Raw extensions are deprecated.
2015-11-28 07:20:24 +03:00
Yan Zhulanow
d21985493e
Mark functions with 'operator' in JS stdlib
2015-11-27 15:51:11 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Ilya Gorbunov
ca4bdd23e0
Provide flatten for sequence of iterables.
...
#KT-9977
2015-11-26 00:45:15 +03:00
Ilya Gorbunov
77f69abca4
Drop deprecated toGenerator and toLinkedList.
2015-11-25 18:35:02 +03:00
Ilya Gorbunov
c485eda1c2
Make zip operation symmetrical for CharSequences (missed to generalize parameter before).
2015-11-25 18:35:01 +03:00
Ilya Gorbunov
a05d0a3c49
Drop hidden declarations provided for binary compatibility in beta2
2015-11-25 18:35:00 +03:00
Michael Nedzelsky
ac8dd1262c
generate kjsm-files for js-stdlib and during compilation via maven or gradle
2015-11-23 22:32:37 +03:00
Ilya Gorbunov
0dbbb6c19c
Rename operand parameter of plus and minus for collections
2015-11-21 00:54:37 +03:00
Ilya Gorbunov
2ed277a863
Add upperbound constraint Comparable<T> to toSortedSet() and sortedMapOf()
...
Provide an overload of toSortedSet() with Comparator<in T> parameter
#KT-10115 Fixed
2015-11-21 00:54:33 +03:00
Ilya Gorbunov
f8f257fa44
Minor: fix infix extension after parameter renamed
2015-11-21 00:54:32 +03:00
Ilya Gorbunov
bf3a77b736
Deprecate Regex.matcher() with ERROR and provide the replacement.
2015-11-21 00:54:28 +03:00
Ilya Gorbunov
0f70def3db
StdLib: Rename method parameters (generated code)
2015-11-21 00:54:20 +03:00
Ilya Gorbunov
16c5289e6c
Stdlib generators DSL: allow to use documentation family extensions inside doc { } without importing them first.
2015-11-21 00:54:13 +03:00
Ilya Gorbunov
a426c7879f
Apply infix modifier on functions from stdlib where appropriate.
2015-11-21 00:54:12 +03:00
Ilya Gorbunov
dadcdb5771
StdLib cleanup, deprecated symbol usage: List and Map members
2015-11-21 00:54:08 +03:00
Ilya Gorbunov
838109c302
StdLib cleanup, deprecated symbol usage: replace end with endInclusive
2015-11-21 00:54:06 +03:00
Ilya Gorbunov
07654eb82b
StdLib cleanup, deprecated symbol usage: size() and length()
2015-11-21 00:54:05 +03:00
Yan Zhulanow
161d8b105f
Support variants in Android Extensions (compiler plugin)
2015-11-19 01:35:58 +03:00