Dmitriy Dolovov
c59e794ab4
K/N KLIBs detection in Gradle plugin: drop useless code
2020-01-23 15:05:07 +07:00
Dmitriy Dolovov
72b7023529
Minor: Rename NativePlatformConfigurator for consistency
2020-01-23 15:05:00 +07:00
Dmitriy Dolovov
6a24d8432c
Properly retrieve compiler version from K/N distribution
2020-01-23 15:04:44 +07:00
Mikhail Glukhikh
5eb0c83965
[FIR] Fix failing tests
2020-01-23 10:12:15 +03:00
Abduqodiri Qurbonzoda
1203df7405
Deprecate floating point to integral types lesser than Int #KT-30360
2020-01-22 23:27:35 +03:00
Abduqodiri Qurbonzoda
e459542e6f
Add removeFirst(OrNull) and removeLast(OrNull) methods to MutableList
2020-01-22 23:22:28 +03:00
Abduqodiri Qurbonzoda
b6849efd47
Common ArrayDeque
2020-01-22 23:22:21 +03:00
Vladimir Dolzhenko
db8b0a6593
Show Review Added Imports on paste action
...
Fixed multi-caret selection in kotlin-to-kotlin copy-paste processor
Relates to #KT-33939
2020-01-22 17:14:04 +01:00
Vladimir Ilmov
84fd5b35eb
Revert "[coroutine] For RUNNING coroutines -1 is the correct number"
...
This reverts commit cc317d7548 .
2020-01-22 16:39:55 +01:00
Vladimir Ilmov
ed09c673f8
AsyncStackTraceContext extra logging removed
2020-01-22 16:35:57 +01:00
Steven Schäfer
aea5e3ffbc
JVM IR: Remove type substitutions from ExpressionCodegen
...
Instead, determine whether the return type of a call is Nothing, by
looking at the type of the call expression.
2020-01-22 15:51:11 +01:00
pyos
2f0f4e570f
JVM_IR: do not remap locals in contexts nested inside lambdas
...
The only case where this code is reachable at all is objects in lambdas
that use reified type parameters of the outer inline function. Since the
type parameters are declared outside the inlining root, regenerating the
object is actually pointless, and remapping its captures even more so
(not to mention that the code under the condition uses the captures of
the lambda, not of the method it's currently transforming).
2020-01-22 15:36:09 +01:00
nikita.movshin
8e79d9b90e
Add changelog for 1.3.60
2020-01-22 16:58:05 +03:00
Alexander Udalov
3ca0f8a569
Fix incorrect message for new nullability assertion exception in 1.4
...
#KT-36026 Fixed
2020-01-22 14:41:20 +01:00
Vladimir Ilmov
cc317d7548
[coroutine] For RUNNING coroutines -1 is the correct number
2020-01-22 14:40:19 +01:00
Mikhail Zarechenskiy
aa48f2e363
Unmute test about fun interfaces for JVM IR
2020-01-22 15:35:06 +03:00
Zalim Bashorov
e6074e8759
[JS BE] Unmute test
2020-01-22 15:20:41 +03:00
Zalim Bashorov
f92376fbbd
[BE test] Extract and mute cases which don't work on JS from eqNullableDoubles.kt and eqNullableDoubles.kt
2020-01-22 15:20:41 +03:00
Ilya Goncharov
79fa3c2c30
[Gradle, JS] Fix check on klib
2020-01-22 14:52:45 +03:00
Dmitriy Novozhilov
72cb0de705
[FIR-TEST] Update testdata
2020-01-22 14:49:23 +03:00
Dmitriy Novozhilov
93906bad1d
[FIR] Add workaround about incorrect safe call invoke desugaring
...
#KT-36014
2020-01-22 14:49:23 +03:00
Dmitriy Novozhilov
62e01a8aa4
[FIR] Update smartcast info for receiivers when enter to when condition
2020-01-22 14:49:23 +03:00
Dmitriy Novozhilov
9684ff7071
[FIR] Don't create smartcasts to error types
2020-01-22 14:49:23 +03:00
Dmitriy Novozhilov
384a094193
[FIR] Unbound aliased variables in DFA more carefully
2020-01-22 14:49:23 +03:00
Dmitriy Novozhilov
2a23e14e2b
[FIR-TEST] Fix problem test without proper smartcast
2020-01-22 14:49:22 +03:00
Dmitriy Novozhilov
d7c85406fb
[FIR-TEST] Mute some failing tests according to changes in DFA
2020-01-22 14:49:22 +03:00
Dmitriy Novozhilov
9bc62fc34d
[FIR-TEST] Mute test due to incorrect invoke desugaring
2020-01-22 14:49:22 +03:00
Dmitriy Novozhilov
5f639dd2ae
[FIR-TEST] Update testdata of old frontend tests
2020-01-22 14:49:22 +03:00
Dmitriy Novozhilov
19e0b8039b
[FIR] Cleanup DFA code and rename some classes for better understanding
2020-01-22 14:49:22 +03:00
Dmitriy Novozhilov
16a9ca5912
[FIR] Remove old DFA
2020-01-22 14:49:21 +03:00
Dmitriy Novozhilov
5d3b75ebc3
[FIR] Implement new data flow analysis
2020-01-22 14:49:21 +03:00
Ilya Matveev
2c66c3b0b6
Gradle, native: Allow setting destination directory for binaries
...
Issue #KT-29395 fixed
2020-01-22 17:29:32 +07:00
Ilya Matveev
df46dfc63d
Gradle, native: Don't pass to compiler missing klib files
...
We don't compile a klib if there are no sources for it (NO-SOURCE
checks). So, we need to take this fact into account and don't
pass such libraries to compiler in dependent modules. See also:
GH-2617 in the K/N repo.
This patch checks that a klib file exists before passing it to the
compiler.
2020-01-22 17:29:31 +07:00
Ilya Matveev
ce45df2c96
Gradle, tests: Skip building in native binaries test for Groovy DSL
...
This test is one of the most time-consuming tests because
it builds a lot of final native binaries. Moreover, it exists
in two versions: for Groovy DSL and for Kotlin DSL. The only
difference between these versions is build script DSL.
This patch disables project building for the Groovy DSL version to
reduce total test execution time. Now this test only checks that
project configuration is successful. But it's enough to detect DSL
problems.
2020-01-22 17:29:30 +07:00
Ilya Matveev
01622f069e
Gradle, native: Support exporting dependencies for static and shared libs
...
Issue #KT-35352 fixed
2020-01-22 17:29:30 +07:00
Sergey Rostov
c7e3df506d
gradle.kts importing: proper check for root project
2020-01-22 12:08:30 +03:00
Natalia Selezneva
b38836c488
Fix script configurations for gradle project without source roots in 193 and as40
...
GradleKtsImportTest:testEmpty fixed
2020-01-22 09:48:04 +03:00
Ilya Gorbunov
7ec04a1bf9
generators: extract OperationsMap generator to a separate source set
...
Refactor generators so that OperationsMapGenerator is in its own
source set with minimal dependencies.
2020-01-22 06:16:56 +03:00
Ilya Gorbunov
2251c27167
J2K GeneratorsFileUtil
2020-01-22 06:04:38 +03:00
Ilya Gorbunov
d64ec71205
J2K GeneratorsFileUtil: Rename .java to .kt
2020-01-22 06:04:38 +03:00
Dmitry Petrov
64a405e7a0
IR: 'fun interface' support
2020-01-22 00:12:03 +03:00
Ilmir Usmanov
a55989a2a5
JVM_IR: Support interface delegation of suspend functions
...
The issue was, that built IR function does not have a PSI element,
which is required to report error on suspend functions inside monitors.
In this case, use PSI element of the class, containing the function,
which is consistent with old BE.
2020-01-21 19:59:02 +01:00
Alexander Udalov
e34a207725
Implement KTypeProjection.toString
...
The implementation is checked by tests on typeOf.
#KT-30071 Fixed
2020-01-21 19:34:01 +01:00
Vladimir Dolzhenko
3a90e2dd75
Store addUnambiguousImportsOnTheFly in kotlin code insight settings
...
store optimizeImportsOnTheFly in kotlin code insight workspace settings
#KT-36034 Fixed
2020-01-21 17:53:23 +01:00
Alexander Podkhalyuzin
70ed03ac4b
Now using Kotlin setting instead of Java one in 191 as well
2020-01-21 17:52:41 +01:00
Ilya Chernikov
dca0a71d9b
Add only non-jdk classpath entries from the compiler to script
...
remove unnecessary manifest classpath entries in the saved compiled
script jar
2020-01-21 17:42:48 +01:00
Ilya Chernikov
75441386e3
Use scripting cache earlier in the pipeline:
...
before initializing compiler and processing callbacks
2020-01-21 17:42:48 +01:00
Ilya Chernikov
c7d9eaed40
Speed up REPL package member declaration provider
...
about 10-15% on specific test
also preparing test infrastructure for it
2020-01-21 17:42:48 +01:00
Ilya Chernikov
cb7cc8ac6b
[minor] fix typo in function name
2020-01-21 17:42:48 +01:00
Ilya Chernikov
1b65ec75ad
Immplement default cache in main-kts
2020-01-21 17:42:48 +01:00