Evgeniy.Zhelenskiy
888bf801e2
[FIR] Forbid @JvmInline with inline modifier
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2023-03-13 13:09:57 +00:00
Evgeniy.Zhelenskiy
3b5ad0681f
[IR] Fix compiler bugs with MFVC to let KorGE run
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2023-03-13 13:09:56 +00:00
Evgeniy.Zhelenskiy
9b3fc34f78
[IR] Add for statement to tests for MFVC returning from inline functions
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2023-03-13 13:09:56 +00:00
Evgeniy.Zhelenskiy
19424702e0
[IR] Fix mutable shared reference of MFVC type
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2023-03-13 13:09:55 +00:00
Pavel Punegov
752d6505e9
[K/N][test] Opt-in ImplicitSignedToUnsignedIntegerConversion in tests
...
Add option to allow such conversions, see ^KT-56583
Merge-request: KT-MR-9160
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-03-13 13:00:19 +00:00
Pavel Mikhailovskii
e9130f5c87
Fix test directives
2023-03-13 13:57:59 +01:00
Alexander Udalov
4f380e876c
Deprecate ClassBuilderInterceptorExtension
...
ClassGeneratorExtension is supposed to be used instead.
2023-03-13 13:54:06 +01:00
Alexander Udalov
163a052f98
Remove old JVM backend implementation of Parcelize
...
There's no way for the end user to use this implementation anymore,
since old JVM backend cannot be enabled, and nothing else from Kotlin
depends on it.
2023-03-13 13:53:08 +01:00
Alexander Udalov
f4b4922a13
Use new ClassGeneratorExtension EP in jvm-abi-gen
2023-03-13 13:53:07 +01:00
Alexander Udalov
fba5b96bef
JVM IR: introduce ClassGeneratorExtension
...
This is a low-level extension point for Kotlin/JVM, which is supposed to
be used instead of ClassBuilderInterceptorExtension.
#KT-54758 Fixed
#KT-56814 Fixed
2023-03-13 13:51:52 +01:00
Alexander Udalov
b1ca9a0f05
JVM IR: extract JvmIrDeclarationOrigin
2023-03-13 13:51:52 +01:00
Alexander Udalov
b1d109e7a3
JVM IR: do not use JvmDeclarationOrigin in duplicate signatures
...
Apparently the client code which reports errors only meaningfully uses
the `descriptor` field of `JvmDeclarationOrigin` in case of JVM IR.
2023-03-13 13:51:52 +01:00
Pavel Mikhailovskii
00fff3de72
Skip a failing IDE test
2023-03-13 11:37:31 +01:00
Kirill Rakhman
9f33c64715
[FIR] Remove duplicate FirCallableSymbol.isStatic extension
2023-03-13 08:48:39 +00:00
Kirill Rakhman
b476eee6e3
[FIR2IR] Simplify generation of bound callable reference receivers
...
Remove a bunch of custom logic to determine when a callable reference is
bound or not (and hence mustn't have a receiver). Instead, a helper
extension is introduced to determine when a callable reference is bound
by checking if dispatch/extensionReceiver is not FirNoReceiver and the
referenced member is not static.
#KT-57253 Fixed
2023-03-13 08:48:39 +00:00
Mikhail Glukhikh
a3f0e429e3
K2: report empty intersection warnings from completion properly
2023-03-11 10:15:25 +00:00
Mikhail Glukhikh
47fab61716
FE: introduce AllowEmptyIntersectionsInResultTypeResolver feature
...
Related to KT-51221
2023-03-11 10:15:24 +00:00
Mikhail Glukhikh
fbea09b3b6
K2 tests: always use language version 2.0 or higher
2023-03-11 10:15:24 +00:00
Mikhail Glukhikh
d9a6cad5ab
Disable ForbidInferringTypeVariablesIntoEmptyIntersection in some FE tests
2023-03-11 10:15:23 +00:00
Mikhail Glukhikh
b64cb67370
K2: support ForbidInferringTypeVariablesIntoEmptyIntersection on/off
2023-03-11 10:15:23 +00:00
Mikhail Glukhikh
f7544aff62
Delay ForbidInferringTypeVariablesIntoEmptyIntersection to 2.*
...
Note: here we set sinceVersion = null for this feature.
However, we plan in 1.9.* - 2.0 time frame to solve KT-56377
and to enable this feature in 2.0, the latest in 2.1.
2023-03-11 10:15:22 +00:00
Denis.Zharkov
a3dcc2032f
Drop RawTypeMarker as it's effectively unused anymore
...
See the previous commits
2023-03-10 18:35:01 +00:00
Denis.Zharkov
608cb01935
K2: Imitate K1 behavior for case of captured types with a raw supertype
...
See the comments in the code, but mostly the motivation is that once
it was decided to stick with such a legacy thing as raw types,
we are ok with some corner-cases hacks for them
(if there are not too many of them) and they don't break anything
when there are no raw types in the code.
^KT-56616 Fixed
2023-03-10 18:35:01 +00:00
Denis.Zharkov
eb09a25239
TypeSystemContext: Rework raw types processing
...
All the current usages are about checking if the type is raw,
also in K2 it is simply incorrect to assume that only flexible types
might be raw
2023-03-10 18:35:00 +00:00
Alexander Udalov
b6e59fe8fd
Remove dependency of low-level-api-fir on psi2ir
...
Fix behavior of getPsiAsFirElementSource; previously expression was not
being fully deparenthesized.
2023-03-10 17:49:35 +00:00
Alexander Udalov
d96112b944
Remove dependency of fir2ir/fir.entrypoint on psi2ir
2023-03-10 17:49:35 +00:00
Nikolay Lunyak
4b8471d806
[FIR] KT-57247: Expand typealiases in annotation vararg arguments
...
^KT-57247 Fixed
2023-03-10 17:29:37 +00:00
Stanislav Ruban
5b0b7c4da4
KT-57206: Add diagnostics test
...
Problem described in KT-57206 seems to have been fixed by KT-56506. This
commit adds code example from KT-57206 as a diagnostics test.
^KT-57206 Fixed
2023-03-10 14:03:43 +00:00
Svyatoslav Kuzmich
1603cd11ea
[Wasm] Use jsshell version in zip and directory names
...
Otherwise, it wouldn't rerun the task when downloading new version
2023-03-10 14:03:26 +00:00
Svyatoslav Scherbina
60b8d2b3d9
[K/N] Disable more failing tests on mips, target is deprecated
2023-03-10 13:25:53 +00:00
Nikolay Krasko
57934a6870
Revert "Revert "[K2/N] KT-57026, KT-57208: Adjust Native & JS test infrastructures for MPP testing""
...
This reverts commit c0c692844e .
2023-03-10 14:24:49 +01:00
Vladimir Sukharev
65276e5960
[Testsystem] Insert missing opt-in
...
Merge-request: KT-MR-9158
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-03-10 13:17:37 +00:00
Nikolay Krasko
c0c692844e
Revert "[K2/N] KT-57026, KT-57208: Adjust Native & JS test infrastructures for MPP testing"
...
This reverts commit 6964121c15 .
2023-03-10 13:14:10 +00:00
Pavel Punegov
aed6272107
[K/N] Merge :kotlin-native-shared with :native:kotlin-native-utils
...
* Code was moved to utils, but sources are included to the shared
until bootstrap advance.
* Fixed dependencies and set API & LV to 1.4 for the modules used with
Gradle.
Merge-request: KT-MR-9122
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-03-10 12:57:35 +00:00
Artem Kobzar
633d840c88
[K/JS] Deprecate external enum declarations
...
^KT-57254 Fixed
2023-03-10 12:55:43 +00:00
Alexander Udalov
6595275ba7
Remove ClassBuilderMode.ABI
...
It was a special mode used only by the removed legacy implementation of
jvm-abi-gen.
2023-03-10 12:24:50 +00:00
Alexander Udalov
9f269b83aa
Remove "legacy" mode of jvm-abi-gen plugin
...
#KT-55375 Fixed
2023-03-10 12:24:50 +00:00
Alexander Udalov
77c68fc809
FIR: use ClassBuilderMode.FULL in FirMetadataSerializer
...
ABI is a special mode which is used only by the deprecated legacy
implementation of jvm-abi-gen. It is more reliable to use the standard
FULL mode to prevent divergence in behavior from normal compilation.
2023-03-10 12:24:49 +00:00
Artem Kobzar
ab7b429298
[K/JS] Add ability to use is checks on external objects
2023-03-10 11:33:30 +00:00
Igor Chevdar
e5523c196e
[K/N][codegen] Removed a thread unsafe optimization
...
It's not that needed anyway (according to the profile logs).
2023-03-10 11:05:55 +00:00
Igor Chevdar
ea7c851748
[K/N][IR][codegen] Fixed a number of thread safety problems
2023-03-10 11:05:55 +00:00
Igor Chevdar
f442936320
[K/N] Build per-file caches in parallel
2023-03-10 11:05:54 +00:00
Pavel Mikhailovskii
164cbc9968
KTIJ-24768 Fix IllegalArgumentException in KtType.isPrimitiveBacked
2023-03-10 11:03:45 +00:00
Yan Zhulanow
8d1cfe0017
[LL API] Allow multiple candidates for non-local callables (KTIJ-21108)
...
In a combined classpath, such as scripting classpath for the whole
project, there might be several versions of the same library.
2023-03-10 10:59:01 +00:00
Pavel Mikhailovskii
d9f023db89
KT-56845 [SLC] Add @Override to overridden property accessors
2023-03-10 10:32:48 +00:00
Mikhail Zarechenskiy
82524fde26
K1: Place integer cinterop conversions under a language feature
...
Note that it's quite hard to emit a particular diagnostic as
type check happens later, after the conversion
^KT-56583
2023-03-10 09:48:01 +00:00
Alexander Korepanov
2cad26f4cc
[JS IR] Use cacheable ZIP file system accessor in JS IR BE
...
Related to KT-51712
2023-03-10 09:38:52 +00:00
Alexander Korepanov
8f22d6d36e
[KLIB] Add a cacheable ZIP file system accessor
...
Creating a ZipFileSystem object is an expensive operation.
A cacheable ZIP file system accessor caches ZipFileSystem
objects and may improve the performance of the in place
metadata reading operations from klibs.
Related to KT-51712
2023-03-10 09:38:52 +00:00
Alexander Korepanov
e4406638bd
[KLIB] Add ZIP file system accessor
...
The accessor interface is used for reading klib archives in place.
2023-03-10 09:38:51 +00:00
Sergey Bogolepov
af1f3a102b
[K/N] Disable split_compilation_pipeline for MinGW
2023-03-10 09:31:41 +00:00