Roman Elizarov
f5193802fc
Uncommented coroutines tests that were failing due to inline class bugs
2018-07-19 10:32:55 +03:00
Ilya Chernikov
70eaa0ec75
Cleanup annotations in script-util:
...
remove unused targets and runtime retention
2018-07-18 13:11:32 +02:00
Roman Elizarov
20c255948a
Coroutines migration adapters
2018-07-18 12:29:17 +03:00
Yan Zhulanow
02ee3aef3f
Kapt: Fix "Unknown option: infoAsWarnings" (#KT-25396)
2018-07-17 20:54:28 +03:00
Svyatoslav Kuzmich
1abb4f42ac
[JS IR BE] Add ranges to runtime, rangeTo for primitive numbers
2018-07-17 20:18:29 +03:00
Ilmir Usmanov
991b4251f3
Remove redundant RequireKotlin annotations from coroutines' stdlib.
2018-07-17 17:31:03 +03:00
Roman Elizarov
2236049341
Wrapper for suspend fun main and @Test suspend fun testXXX functions.
2018-07-17 12:15:02 +03:00
Roman Elizarov
d33d21907d
SuccessOrFailure test on JVM added
2018-07-17 12:15:01 +03:00
Roman Elizarov
0b59061bfe
Coroutines debug probes
2018-07-17 12:15:01 +03:00
Roman Elizarov
78192ea712
Fixed createCoroutineFromSuspendFunction
...
Passes an object that extends BaseContinuationImpl to the
suspend function invocation, so that it can use .intercepted on it.
This requires implementation to track its state via label variable.
2018-07-17 12:14:59 +03:00
Roman Elizarov
d3982472a4
Explanatory comment to createCoroutineFromSuspendFunction
2018-07-17 11:28:48 +03:00
Roman Elizarov
96b5bb1b31
Fixed JVM Serialization problems:
...
* EmptyCoroutineContext readResolve fixed
* CombinedContext.writeReplace serializes all context elements
2018-07-17 11:28:38 +03:00
Roman Elizarov
e0f6165f10
Updated SuccessOrFailure:
...
* Parameter names for lambda
* getOrElse takes exception parameters
* fold added
* Improved docs
2018-07-17 11:26:49 +03:00
Mikhael Bogdanov
1d283d243e
Support @JvmField on interface properties
...
#KT-15807 Fixed
2018-07-16 16:13:15 +02:00
Alexander Udalov
1f4dfbf5f3
Fix compilation of Java 9 sources for kotlin-reflect-api
...
Do not pass the jars for modules such as descriptors, descriptors.jvm,
etc to `--module-path` because javac assumes that these are separate
modules (even though they're listed later as parts of this module in
`--patch-module), and prohibits to have split packages and foreign
service implementations among them
2018-07-13 18:45:09 +02:00
Yan Zhulanow
f6afab1226
Minor: Remove an obsolete warning in Android subplugin
2018-07-12 20:36:41 +03:00
Yan Zhulanow
6e3c2e8015
Revert "Android Extensions: Allow to access library project resources in Gradle setup (#KT-22430)"
...
This reverts commit a70707b
2018-07-12 20:36:39 +03:00
Raluca Sauciuc
e7c1f578d1
Recognize Instant Apps plugin
...
Tested with sample project and Studio 3.2 Canary 18:
https://github.com/googlesamples/android-instant-apps/tree/master/hello-kotlin
(cherry picked from commit 528d66d5840cc8f584270c516e85da1a632df8b8)
2018-07-12 20:36:39 +03:00
Yan Zhulanow
392460e426
Kapt: Allow to disable info->warning mapping in logger (#KT-24985)
2018-07-12 20:36:39 +03:00
Yan Zhulanow
8d9c53da92
Kapt: Allow to disable warning for 'annotationProcessor' dependencies (#KT-24883)
2018-07-12 20:36:38 +03:00
Anton Bannykh
99ac43eb84
JS: implement release coroutines in stdlib
2018-07-12 14:18:34 +03:00
Anton Bannykh
9e9b27fe79
JS IR: bug fixes
2018-07-11 14:49:36 +03:00
Anton Bannykh
9233e6c176
JS IR: char (always boxed for now)
2018-07-11 14:49:36 +03:00
Ilmir Usmanov
6ba2baa9da
Deserialize constructors and properties with version requirement 1.3
...
if they have suspend function type in their descriptors.
Also, review fixes.
#KT-25256: Fixed
2018-07-11 14:20:46 +03:00
Ilmir Usmanov
5b7e099842
Read old suspend functions in 1.3
2018-07-11 14:20:41 +03:00
Ilya Gorbunov
5e5b9e5912
Fix incorrect parameter order in TestNG asserter
...
#KT-25351 Fixed
2018-07-10 19:12:21 +03:00
Svyatoslav Kuzmich
77ad97a39e
[JS IR BE] Bridges construction
2018-07-10 14:11:09 +03:00
Svyatoslav Kuzmich
a2f89cc711
[JS IR BE] Eqeq operator lowering. IntrinsicifyCallsLowering.kt refactoring
2018-07-10 14:11:08 +03:00
Anton Bannykh
65846d783d
JS IR: Long
2018-07-10 13:34:19 +03:00
Ilya Chernikov
5d597eb382
Fix configurations chaining in the script compiler
2018-07-10 08:43:52 +02:00
Ilya Chernikov
56e9bfcd62
Fix default configuration refinement in scripts
2018-07-10 08:43:50 +02:00
Ilya Chernikov
befa94689a
Return script instance from the evaluation in the basic jvm evaluator
2018-07-10 08:43:50 +02:00
Ilya Gorbunov
b7d3382f13
Report more diagnostics when JDK8PlatformImplementations can't be cast to base type
...
#EA-120914 - CCE: PlatformImplementationsKt.<clinit>
2018-07-09 22:13:57 +03:00
Ilya Gorbunov
be8cb94105
Add failing tests for overflow in empty progressions KT-24204
2018-07-09 22:08:01 +03:00
Dmitry Savvinov
668bd209f2
Use -Xallow-kotlin-package while compiling common sources
...
K2MetadataCompiler doesn't perform explicit check of compilation of
'kotlin' package, thus stdlib build wasn't passing '-Xallow-kotlin-package'.
However, we have special hack for compiling stdlib with contracts: if
'-Xallow-kotlin-package' is passed, then allow compiling contracts for
custom functions. We have to do it this way, because we don't want
stdlib artifacts to be marked with pre-release flag, even though
contracts for custom functions are not enabled yet
(see eae9923dbe ).
Therefore, it's crucial to pass -Xallow-kotlin-package properly for that
side-effect.
2018-07-09 18:57:58 +03:00
Alexey Tsvetkov
93e183c2e4
Test for KT-25051
2018-07-09 15:50:06 +03:00
Alexey Tsvetkov
f735586819
Remove redundant test
...
`testMultiModuleICNonAndroidModuleIsChanged` already tested
android and non-android change
2018-07-09 15:50:05 +03:00
Alexey Tsvetkov
63b4302cea
Always generate kotlin_module
...
#KT-25133 fixed
#KT-25051 fixed
2018-07-09 15:48:11 +03:00
Denis Zharkov
4bf51af2fa
Fix reference-public-api
...
It's necessary because of the changes in 3497880f203449121ea8035c49b792cc4dc53bd6
2018-07-09 15:27:19 +03:00
Roman Elizarov
3aa76c58fc
Updated SuccessOrFailure class corresponding to KEEP-127 and docs.
2018-07-09 15:27:19 +03:00
Roman Elizarov
33f4a3fcbf
Extracted BaseContinuationImpl
2018-07-09 15:27:19 +03:00
Roman Elizarov
38c17249b9
releaseInterceptedContinuation clarified and ref check in impl fixed
2018-07-09 15:27:19 +03:00
Roman Elizarov
d33409ff8a
Fixed boxing of SuccessOrFailure inside SafeContinuation impl
2018-07-09 15:27:19 +03:00
Roman Elizarov
0370fac0b6
Further design improvements for coroutines 1.3 APIs
...
* Documentation improvements and clarification
* Dropped legacy intrinsic functions
* Remove context parameter default from Continuation builder function
2018-07-09 15:27:19 +03:00
Roman Elizarov
719d45510a
Continuation builder function
2018-07-09 15:27:19 +03:00
Roman Elizarov
0b17c619bc
Fixed ContinuationImpl.intercepted
2018-07-09 15:27:19 +03:00
Roman Elizarov
7513557315
Unroll recursion in resumeWith
...
Fixes KT-18987
2018-07-09 15:27:19 +03:00
Roman Elizarov
af9743709c
Implement COROUTINE_SUSPENDED as a property with getter
2018-07-09 15:27:19 +03:00
Roman Elizarov
aaabfa6382
Missing SinceKotlin declarations added for resume extensions
2018-07-09 15:27:19 +03:00
Roman Elizarov
b06d626b21
releaseInterceptedContinuation and few other minor fixes
2018-07-09 15:27:19 +03:00