Pavel Mikhailovskii
752ba433cc
KT-53846 LT: Copy context receivers to secondary constructors
2023-02-20 18:13:54 +00:00
Svyatoslav Scherbina
873d9b565a
Bump Kotlin/Native version to 1.9.0-dev-2063
2023-02-20 16:49:00 +00:00
Sebastian Sellmair
0929e8e30b
[Gradle] Resolve cinterops only from a single source set of a given dependency
...
^KT-56729 Verification Pending
2023-02-20 16:30:11 +00:00
Sebastian Sellmair
c5d219f154
[Gradle] KT-56729: Assert no 'duplicated libraries' warning
...
^KT-56729 Verification Pending
2023-02-20 16:30:10 +00:00
Sebastian Sellmair
d103f60af8
[Commonizer] Demote duplicate dependency libraries to 'warning'
...
^KT-56729 Verification Pending
2023-02-20 16:30:10 +00:00
Sebastian Sellmair
7026ca9952
[Gradle] KT-56729: Implement 'commonize-kt-56729-consume-library-with-two-roots' test
...
... to cover KT-56729
2023-02-20 16:30:10 +00:00
Ivan Kylchik
477d092bb8
Avoid object's interpretation with nullable type
...
#KT-56215 Fixed
2023-02-20 15:52:52 +00:00
Denis.Zharkov
99448b77f3
FIR2IR: Imitate K1 behavior when SAM type has a bit different shape
...
See the relevant test at t/
estData/codegen/box/sam/contravariantIntersectionType.kt
After the previous commit, when generating a call for `doOnSuccess {}`,
we have a SAM type with removed projection Consumer<Any?>, while
real function type of the lambda is a bit different
(Function1<ConcreteType & ConcreteType2>).
While for me, that looks questionable, but in K1 it was effectively
resolved via the same implicit cast that on JVM is generated to an
INVOKEDYNAMIC that wraps initial function-typed value.
^KT-53552 Fixed
2023-02-20 14:54:09 +00:00
Denis.Zharkov
05ca001310
FIR2IR: Repeat the K1 behavior: SAM conversion with 'in' projection
...
It would be more consistently to prohibit the behavior from the unmuted
test (see KT-52428), but it was decided to postpone the breaking change.
Unfortunately, it didn't work to make a test where for computing
star projections we would need to substitute other type parameters
because effectively, it's not allowed to have SAM conversion when
star projections/wildcard is based on a type parameter which bounds
use other type parameters.
^KT-53552 In progress
2023-02-20 14:54:09 +00:00
Denis.Zharkov
45eefab811
FIR2IR: Drop the-same-value property from ConversionTypeContext
2023-02-20 14:54:09 +00:00
Alexander Korepanov
e107de6f36
[JS IR] Use a guard file for preventing incremental caches corruption
...
If a developer interrupts (kill gradle process) a compilation process or
an internal error interrupts the compilation process,
the incremental cache files may be corrupted.
The patch creates a special guard file, which allows detecting
if the previous compilation was not successful,
and in case of any issues drops the incremental cache files.
^KT-56581 Fixed
2023-02-20 13:14:30 +00:00
Jinseong Jeon
527fc68778
ULC: match value parameter name of enum's valueOf
2023-02-20 14:07:01 +01:00
Ilya Kirillov
b05a6e6e02
[Analysis API FE1.0] support multimodule tests for FE1.0 Analysis API
2023-02-20 11:01:32 +00:00
Ilya Kirillov
803c3b88ac
[Analysis API] fix exception on symbol restore when symbol cannot be seen from the use-site module
...
^KT-56763 fixed
2023-02-20 11:01:32 +00:00
Ilya Kirillov
ee1b018c9a
[Analysis API] introduce a helper test function to get carets at multimodal tests
2023-02-20 11:01:31 +00:00
Vladimir Sukharev
24696915f4
Use simplest way to split text to lines on all targets
...
Merge-request: KT-MR-8858
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-02-20 10:55:04 +00:00
Egor Kulikov
6bb71b44f6
[FIR] Use lazy constructor delegate even if there's no KtConstructor
...
Twelfth step for ^KT-52615
Merge-request: KT-MR-8895
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com >
2023-02-20 10:50:09 +00:00
Ilya Kirillov
477072b3e7
[Analysis API FIR] remove duplicated override of Fe10SyntheticPropertyAccessorReference.resolvesByNames
2023-02-20 10:28:56 +00:00
Ilya Kirillov
78d0749235
[Analysis API FIR] implement SyntheticPropertyAccessorReference.canBeReferenceTo for fir reference
...
it might improve find usages performance
^KTIJ-24696
2023-02-20 10:28:55 +00:00
Dmitriy Novozhilov
8d587322e9
Regenerate tests
2023-02-20 12:06:24 +02:00
Svyatoslav Scherbina
369ca6b4eb
[K/N][tests] Skip CachesAutoBuildTest when cacheMode == none
...
These tests rely on cacheMode != none.
2023-02-20 09:21:32 +00:00
Ilya Kirillov
6eda2742ff
[LL FIR] optimize time spent in LLFirSessionsCache.getSessions
...
The most time were spent in `PersistentMap.get`, replacement to regular hash map should help.
This is thread-safe as we safe-publish the value via the volatile field `mappings`
^KTIJ-24697 fixed
2023-02-20 09:09:16 +00:00
Dmitriy Novozhilov
e5b4cf9f04
[Test] Update serialization tests according to KT-56755
2023-02-20 08:40:34 +00:00
Dmitriy Novozhilov
ae7863518d
[Test] Mute tests due to KT-56508
2023-02-20 08:40:33 +00:00
Dmitriy Novozhilov
0d100cf114
[Test] Mute tests due to KT-53846
2023-02-20 08:40:33 +00:00
Dmitriy Novozhilov
49f15a16ce
[Test] Mute tests due to KT-56760
2023-02-20 08:40:32 +00:00
Dmitriy Novozhilov
7c84f9a7c2
[Test] Mute test due to KT-56759
2023-02-20 08:40:32 +00:00
Dmitriy Novozhilov
28b83a1a5d
[Test] Mute tests due to KT-56755
2023-02-20 08:40:32 +00:00
Dmitriy Novozhilov
86ee855170
[Test] Mute test due to KT-56756
2023-02-20 08:40:31 +00:00
Dmitriy Novozhilov
f47040696e
[Test] Introduce directive for ignoring codegen tests for FIR with LT
...
^KT-56757
2023-02-20 08:40:31 +00:00
Dmitriy Novozhilov
9ee60e4648
[Build] Exclude FIR codegen tests with PSI mode from aggregate test suite
...
Also add nightly configuration for them
2023-02-20 08:40:31 +00:00
Dmitriy Novozhilov
a7f62581a2
[FIR] Generate PSI and LT versions of all codegen tests
...
Also change default mode for codegen tests from PSI to LT
2023-02-20 08:40:30 +00:00
Dmitriy Novozhilov
5305e987b7
[Build] Drop duplicated fir test task
2023-02-20 08:40:29 +00:00
Dmitriy Novozhilov
25b1fbc541
[Build] Pin api and language level to 1.8 in :pill:pill-importer module
...
^KT-56687
2023-02-18 13:26:54 +00:00
Yahor Berdnikau
0cad069522
[Build] Pin api and language level to 1.8 in Kotlin compiler modules used by KGP
...
This is required to be able to compile KGP and it's dependencies which
set LV to 1.4 when repo will use LV 1.9. This caused by the change how
enums are compiled (KT-48872).
2023-02-18 13:26:54 +00:00
Dmitriy Novozhilov
4ab39b908e
[Build] Fix compilation of kotlinx-atomicfu-runtime in 1.9.0
...
^KT-56400
2023-02-18 13:26:53 +00:00
Artem Kobzar
d39fd9416a
[Build] Fix compilation of kotlin-js(-ir) libraries in 1.9.0 (stdlib and test)
2023-02-18 13:26:53 +00:00
Dmitriy Novozhilov
6d6c6f072b
[Build] Set language version in project to 1.9
2023-02-18 13:26:53 +00:00
Dmitriy Novozhilov
1422654470
[Build] Update version of binary-compatibility-validator to 0.13.0
...
0.12.0 was incompatible with kotlinx.metadata:0.6.0
2023-02-18 13:26:53 +00:00
Dmitriy Novozhilov
20610a7c89
[Build] Bump kotlinx.metadata version to 0.6.0
2023-02-18 13:26:51 +00:00
Ilya Goncharov
a4ce2ced6d
[Gradle, JS] Not sync files which are not changed
...
[Gradle, JS] Try to fix test in windows
[Gradle, JS] Support hierarchical sync compile
[Gradle, JS] Add test on syncing only changed files
[Gradle, JS] Use relative path instead of just name
^KT-56719 fixed
2023-02-17 14:36:45 +00:00
Ilya Kirillov
fbcaf3efeb
[Analysis API] add information about KtModule to reported exceptions
2023-02-17 14:19:09 +00:00
Ilya Kirillov
c37ee83791
[Analysis API] add more debug info to "pointer already disposed" error
2023-02-17 14:19:08 +00:00
Dmitriy Novozhilov
94faa759cb
[CLI] Rename -XdependsOn flag to -Xdepends-on to keep convention
...
^KT-56209
2023-02-17 14:09:30 +00:00
Alexander.Likhachev
18752fc1ad
Revert "[Build] Add a temporary workaround for KT-56357"
...
This reverts commit ca60a4fcf9 .
2023-02-17 15:03:53 +01:00
Alexander Udalov
b152600e35
IR: add flag to IrGenerationExtension for executing in kapt mode
...
#KT-56635 Fixed
2023-02-17 14:00:54 +00:00
Dmitrii Gridin
0eb90cccd1
[SLC] enum entries should be psi reference instead of psi expression
...
^KT-56728 Fixed
2023-02-17 13:11:14 +00:00
Dmitrii Gridin
e65c863f8c
[SLC] add test on single target annotation
...
^KT-56728
2023-02-17 13:11:14 +00:00
Sebastian Aigner
0e03fc265e
[Gradle][MPP] Include links on V2 MPP Source Set layout
...
^KT-56700 Fixed
2023-02-17 12:31:44 +00:00
Dmitriy Novozhilov
e70e85d51a
[FIR] Move unwrapSmartcastExpression util into :compiler:fir:tree module
2023-02-17 12:29:17 +00:00