Ilya Gorbunov
b89e5b2708
Add missing api: radix overloads, mathContext and scale overloads, orNull overloads
...
Move string-to-number conversions and their tests near to existing ones
Add documentation and copyrights.
2017-10-11 19:20:24 +03:00
voddan
e86e080088
KEEP-49: extending Kotlin API for BigInteger and BigDecimal
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
a8fef3a385
Provide MutableList.fill for JS, annotate new API with @SinceKotlin
...
#KT-8823 #KT-9010
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
bb22d6647b
Introduce MutableList.fill and shuffle/shuffled extensions for JVM only
...
'shuffle' and 'fill' are inline only, but 'shuffled' is not.
#KT-8823 Fixed
#KT-9010 Fixed
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
16d3d2f764
Make Regex class serializable on JVM
...
#KT-16447 Fixed
Refactor helper functions for serialization tests.
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
99bd54116e
Docs and samples for 'windowed' function
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
b2f2e3537b
Docs and samples for 'chunked' function
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
e418f61f0c
Docs and samples for 'pairwise' function
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
b94fd36d75
Minor refactoring in RingBuffer
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
3f23742298
Optimize 'windowed' and 'chunked' for char sequences, iterables and sequences
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
18c7a01ab5
Add tests for windowed and chunked, fix precondition checks
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
a3a1c391cc
Generate 'chunked' and 'windowed' signatures and delegating implementations
...
Add implementations of windowed.
2017-10-11 19:20:24 +03:00
Sergey Mashkov
6ae85f5108
Sliding window implementation helper utilities
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
c815ccfd6a
Introduce 'pairwise' function, KEEP-11
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
03dcae5010
Attach method counting tasks to check rather than assemble stage
2017-10-11 19:19:08 +03:00
Dmitry Savvinov
2c0ef592e6
Effects: add DSL for declaration of contracts
...
- Introduce DSL for declaration of contracts. Functions and classes in
this DSL do not bear any computational semantics: in fact, they all do
not exist on runtime. Whole work of extracting semantics from such calls
is done by special parts of compiler
- To make distinguishing those declarations more robust and
convenient, introduce internal annotation @ContractsDSL
- Turn off InlineChecker inside contracts DSL. We do this, because some
functions from DSL should take any possible lambda, so we can't write
any type besides 'Function<R>'. However, InlineChecker will complain if
we will pass inlined lambda in such function -- though, this is false
positive because we know that functions from contracts DSL will never be
executed
- Change testData on HierarchyTestWithLib, where new enum from
kotlin.internal changed expected output
==========
Effect System introduction: 7/18
2017-10-11 13:34:54 +03:00
Ilya Gorbunov
968c9c2034
Set LATEST_STABLE language version and current version of stdlib to 1.2
2017-10-11 08:50:30 +03:00
Ilya Gorbunov
39c8bae134
Minor: move extra property initialization
2017-10-10 21:00:30 +03:00
Ilya Gorbunov
fe9ef04cae
Make a task to count dex methods in kotlin-stdlib and kotlin-reflect
2017-10-10 14:48:20 +03:00
Alexander Udalov
a96861c353
Support version kind for RequireKotlin
...
#KT-20584 Fixed
2017-10-10 13:21:49 +02:00
Alexander Udalov
4532f7556c
Introduce internal RequireKotlin annotation
2017-10-10 13:19:18 +02:00
Alexey Andreev
8f9fc100a3
Fix compilation of JS stdlib
...
1. Don't import intrinsics when compiling stdlib, use declarations
from current module instead
2. Add constructor with one argument to SourceFilePathResolver,
to fix bootstrapping issues.
3. Pass correct source roots to compiler when building
stdlib, since now we pass module root by default,
while stdlib source roots are outside of module root.
2017-10-10 14:11:15 +03:00
Mikhail Zarechenskiy
1845a87813
Provide no-arg constructors for common expected annotations in stdlib
...
This is needed because we treat `expect` classes as not having implicit default constructors (see more in KT-15522, f3344ec )
2017-10-09 18:50:38 +03:00
Mikhael Bogdanov
bd9ac65eaf
Update stdlib jre8 test jvm-target
2017-10-09 16:38:56 +02:00
Alexey Andreev
eaa8729259
Fix embedding sources to source maps when compiling JS stdlib
2017-10-06 18:26:15 +03:00
Ilya Gorbunov
0898897057
Remove crossinline restriction from synchronized in js and common
...
#KT-20596 Fixed
2017-10-04 19:15:33 +03:00
Francesco Vasco
9ffd0db4a8
Avoid ISUB in kotlin.repeat
2017-09-28 22:02:53 +03:00
Ilya Gorbunov
43e2be26f8
Advance stdlib version to 1.1.60
2017-09-22 15:37:38 +03:00
Ilya Gorbunov
6fc3f269a6
Change logical path of kotlin-test-js-it project, fix paths to outputs
...
Fix paths to kotlin-test-js and kotlin-test-js-it outputs
2017-09-20 11:51:43 +02:00
Ilya Gorbunov
99f2cc3d00
Fix paths to stdlib-jre6 test output
2017-09-20 11:51:41 +02:00
Ilya Gorbunov
e3899ff7ee
Serialize builtins *before* compiling builtins in stdlib
2017-09-20 11:51:41 +02:00
Simon Ogorodnik
3262ac0129
Fix compileJava not found when running idea:test
2017-09-20 11:51:27 +02:00
Ilya Chernikov
95035b3d72
Fix various tests
2017-09-20 11:51:23 +02:00
Ilya Chernikov
d89b53dfea
Reorganize builtins built and use in the projects
2017-09-19 23:58:31 +02:00
Ilya Chernikov
27968c8e13
Set proper jvmTarget for projects
2017-09-19 21:37:27 +02:00
Ilya Chernikov
3caa426b76
Switching library projects to java 8 compilation with exceptions for stdlib/runtime/reflect/test
2017-09-19 21:37:11 +02:00
Ilya Chernikov
628927782a
Fix tests in the gradle environment
2017-09-19 21:37:09 +02:00
Ilya Chernikov
6b22282ad4
Change previous gradle build for compatibility with the centralized build
...
incompatible with the main build yet
2017-09-19 21:37:07 +02:00
Ilya Gorbunov
095aacecac
Minor, test: align assertion with the expectation message
2017-09-19 17:57:18 +03:00
Stanislav Erokhin
481cbd0850
Migrate header to expect in libraries projects
2017-09-16 19:47:45 +03:00
Stanislav Erokhin
7cd5eeb24d
Regenerate common stdlib: use 'expect' instead 'header'
2017-09-16 19:47:44 +03:00
Alexander Udalov
234148518e
Temporarily remove isInitialized and tests, but keep the implementation
...
This is needed because we want the compiler code to stay as much the
same in master and in 1.2 as possible
2017-09-13 22:51:23 +03:00
Alexander Udalov
c6263ac8e6
Support isInitialized intrinsic for lateinit properties
...
See https://github.com/Kotlin/KEEP/pull/73
#KT-9327 Fixed
2017-09-13 22:49:26 +03:00
Ilya Gorbunov
08052e63e9
Test to ensure fixed typed char array content[Deep]ToString, relates to #KT-16056
2017-09-13 20:53:17 +03:00
Anton Bannykh
497251a6d7
Revert "JS: use Mocha + NodeJs instead of Karma + PhantomJs to run stdlib tests" so that it wouldn't clash with Gradle Build transition
...
This reverts commit 11c83ad
2017-09-13 20:11:11 +03:00
Anton Bannykh
11c83ad0fc
JS: use Mocha + NodeJs instead of Karma + PhantomJs to run stdlib tests
2017-09-13 19:43:53 +03:00
Ilya Gorbunov
599113b30f
Fix internal KotlinVersion representation that caused invalid comparison
2017-09-06 18:45:33 +03:00
Alexander Udalov
840fce520c
Update KotlinVersion.CURRENT to 1.1.50
2017-09-04 13:09:52 +03:00
Alexander Udalov
d1cff41ce0
Treat nested class of header class as header
...
Note that the quick fix to implement header class works incorrectly when
that class has nested classes at the moment; this should be fixed
separately
#KT-15494 Fixed
#KT-18573 Fixed
2017-08-25 15:40:37 +03:00
Ilya Gorbunov
ca8bf395c3
Do not create iterator in 'any', 'none', 'all' and 'count' unless necessary
...
#KT-19133 Fixed
2017-07-26 22:42:29 +03:00