Kirill Rakhman
80200fc3c5
[FIR] Replace type variable types with error types in lambda completion
...
#KT-54568 Fixed
#KT-59882
2023-08-15 08:04:19 +00:00
Roman Golyshev
48433bf9fd
[Analysis API] Unwrap anonymous function expressions in reference shortener
...
Anonymous functions are additionally wrapped into an expression
^KTIJ-26629 Fixed
^KTIJ-26597 Fixed
2023-08-14 18:03:12 +00:00
Alexander Udalov
bddc18e463
K2: do not run compilation if Java module graph setup failed
...
#KT-61156 Fixed
2023-08-14 16:32:15 +00:00
Alexander Udalov
4e706ba93e
K2: add JavaModulesIntegrationTest
...
#KT-60797
2023-08-14 16:32:15 +00:00
Alexander Udalov
b1fb5bdde1
Minor, rename JavaModulesIntegrationTest and move to separate package
2023-08-14 16:32:15 +00:00
Alexey Merkulov
3d92d0d05f
[LL API] Fix value capturing for multiple receivers
...
There were problem when 'this' bound symbol was used twice for a call
KT-61144
2023-08-14 15:22:43 +00:00
Alexey Merkulov
35eca56d32
[fir2ir] Fix field-receiver extracting for evaluator
...
KT-61144
2023-08-14 15:22:43 +00:00
Alexey Merkulov
c520aeb5aa
[fir2ir] Just refactoring before classes receiver fix for evaluator
...
KT-61144
2023-08-14 15:22:43 +00:00
Dmitriy Dolovov
7be877ce74
[IR][JVM] Drop JvmIrSerializerSession.skipExpects parameter
...
^KT-61136
2023-08-14 15:21:04 +00:00
Dmitriy Dolovov
6c12556c41
[IR][JVM] Drop JvmIrSerializerSession.expectDescriptorToSymbol parameter
...
^KT-61136
2023-08-14 15:21:04 +00:00
Dmitriy Dolovov
b7211c171f
[IR][JS] Drop JsIrFileSerializer.expectDescriptorToSymbol parameter
...
^KT-61136
2023-08-14 15:20:28 +00:00
Dmitriy Dolovov
5991364028
[IR][JS] Drop JsIrFileSerializer.skipExpects parameter
...
^KT-61136
2023-08-14 15:20:28 +00:00
Dmitriy Dolovov
b37bb0be16
[IR][Native] Drop KonanIrFileSerializer.expectDescriptorToSymbol parameter
...
^KT-61136
2023-08-14 15:13:44 +00:00
Dmitriy Dolovov
f3c58bcfb3
[IR][Native] Drop KonanIrFileSerializer.skipExpects parameter
...
^KT-61136
2023-08-14 15:13:44 +00:00
Vladimir Sukharev
5b825282a4
[IR] Render type abbreviations by default, and not render in irText tests
...
^KT-60248
Merge-request: KT-MR-11510
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-08-14 15:08:45 +00:00
Nikolay Lunyak
ef338865c7
[FIR] Ignore inaccessible members in FirImplementationMismatchChecker
...
^KT-61076 Fixed
2023-08-14 14:55:26 +00:00
Aleksei.Glushko
00d6ced263
[K/N] Add the license file for BoundedQueue.hpp
...
Merge-request: KT-MR-11619
Merged-by: Alexey Glushko <aleksei.glushko@jetbrains.com >
2023-08-14 14:47:07 +00:00
Leonid Startsev
8b821e1feb
Deprecate KmProperty.hasGetter(hasSetter) in favor of KmProperty.getter(setter)
...
as a follow-up of flag deprecation.
#KT-59440
2023-08-14 12:36:34 +00:00
Nikolay Lunyak
389632ed53
[FIR] Don't forget about annotations when resolving qualifiers
2023-08-14 12:01:53 +00:00
Sebastian Sellmair
1c2eab39d2
[Gradle][Minor]: Update comment on 'shouldUseOldKtorAndCoroutinesExternalDependencies'
...
KT-60901
2023-08-14 11:28:21 +00:00
Roman Golyshev
b52d3c114f
KTIJ-26627 [AA] Correctly handle object receivers of property accesses
...
Also remove redundant code from `canBePossibleToDropReceiver`
^KTIJ-26627 Fixed
2023-08-13 22:20:19 +02:00
Marco Pennekamp
2db8f31966
[AA] Document analyzeInDependedAnalysisSession and related classes
2023-08-13 16:19:54 +00:00
Marco Pennekamp
ed13d6b3a4
[AA] Edit documentation of analyze and related classes
2023-08-13 16:19:54 +00:00
Dmitriy Dolovov
7dbfe4bfb1
[IR][tests] Fix MPP IR dump tests to not fail on missing expect declarations
...
Expect declarations do not survive serialization to KLIB. So they need to be explicitly filtered in order for tests that compare dumped IR before and after serialization to pass successfully.
^KT-61136
2023-08-12 07:03:29 +00:00
Dmitriy Dolovov
6e648ac374
[IR] Drop IR expect/actual table
...
^KT-61136
2023-08-12 07:03:29 +00:00
Brian Norman
e8b4550173
[FIR] Add checker for finite bounds validation
...
Added a new FIR based checker for both FINITE_BOUNDS_VIOLATION and
FINITE_BOUNDS_VIOLATION_IN_JAVA errors. Implementation copied from the
existing descriptor based checker with some minor changes.
#KT-59378 Fixed
2023-08-11 21:13:58 +00:00
Anton Bannykh
6a886e4c32
[JS] rename IC tests to easier distinguish between the K1/K2 variants
2023-08-11 15:46:51 +00:00
Anton Bannykh
962bfaca9c
[JS] Support multimodule IC tests with K2
...
Includes supporting klib file generation.
2023-08-11 15:46:51 +00:00
Timofey Solonin
d25d0e4f94
[MPP] Validate which configurations resolve for explicit stdlib-js dependency
...
^KT-60901
^KT-61126
2023-08-11 14:52:03 +00:00
Timofey Solonin
78e09816e5
[MPP] Use assemble instead of resolving all configurations
...
We expect that some configurations might fail to resolve in the case of
stdlib-js dependency if they are resolved explicitly. These configurations
should not actually resolve for the KGP user.
^KT-60901
^KT-61126
2023-08-11 14:52:03 +00:00
Sebastian Sellmair
db1ee743ae
[Gradle] Adjust functionalTests for stdlib-jdk7, stdlib-jdk8 constraint to 1.8.0
...
^KT-60901 Verification Pending
2023-08-11 14:52:03 +00:00
Sebastian Sellmair
be867d0f25
[Gradle] Fix testMultiModulesHmppKt48370 missing cinterop opt-in
...
^KT-60901 Verification Pending
2023-08-11 14:52:03 +00:00
Sebastian Sellmair
65bc494a1a
[Gradle] MppSharedNativeCompileIT: Disable K2 test because of 'KT-60943'
...
^KT-60901 Verification Pending
2023-08-11 14:52:03 +00:00
Sebastian Sellmair
73483b7a77
[Gradle] Update functionalTests to reflect kotlin-stdlib-common pointing to kotlin-stdlib
...
^KT-60901 Verification Pending
2023-08-11 14:52:03 +00:00
Sebastian Sellmair
59b29dc2b9
[Gradle] Update NativeIrLinkerIssuesIT to reflect changes in stdlib
...
^KT-60901 Verification Pending
2023-08-11 14:52:03 +00:00
Sebastian Sellmair
65e467dd5b
[Gradle] Update NativeExternalDependenciesIT to reflect changes in stdlib
...
^KT-60901 Verification Pending
2023-08-11 14:52:03 +00:00
Sebastian Sellmair
ada446b68f
[Gradle] Update HierarchicalMppIT to reflect changes in stdlib
...
^KT-60901 Verification Pending
2023-08-11 14:52:03 +00:00
Sebastian Sellmair
00362390eb
[Gradle] Ensure default stdlib is added to dependsOn source sets
...
^KT-60901 Verification Pending
2023-08-11 14:52:03 +00:00
Sebastian Sellmair
10f3704b35
[Gradle] Update MppCompositeBuildIT to reflect changes in stdlib
...
^KT-60901 Verification Pending
2023-08-11 14:52:02 +00:00
Sebastian Sellmair
12c3b981c4
[Gradle] Do not run 'IdeTransformedMetadataDependencyResolver' on 'single kotlin target' Source Sets
...
This will prevent transformed kotlin-stdlib source sets from
being resolved for leaf (e.g. jvmMain) as well as bamboo (jvmBambooMain)
source sets. For such source sets only the jvm jar shall be attached
^KT-60901 Verification Pending
2023-08-11 14:52:02 +00:00
Sebastian Sellmair
23ddabd5d7
[Gradle] Update WasmDependencyResolutionSmokeTest to reflect changes in stdlib
...
^KT-60901 Verification Pending
2023-08-11 14:52:02 +00:00
Sebastian Sellmair
e9a1025c37
[Gradle][Minor] Update IdeJvmAndAndroidDependencyResolutionTest to newer version of mvikotlin
...
This is just a maintenance commit
^KT-60901 Verification Pending
2023-08-11 14:52:02 +00:00
Sebastian Sellmair
bafb1aac80
[Gradle] Update IdeStdlibResolutionTest to reflect changes in stdlib
...
^KT-60901 Verification Pending
2023-08-11 14:52:02 +00:00
Sebastian Sellmair
fa2b21e71b
[Gradle] Update IdeOriginalMetadataDependencyResolverTest: Test with kotlin-test-common instead of stdlib
...
(because stdlib is now published with new metadata formats)
See: KT-56278
^KT-60901 Verification Pending
2023-08-11 14:52:02 +00:00
Sebastian Sellmair
f06a1c89ef
[stdlib-mpp] Publish patched/custom kpsm to list 'commonMain' included into 'nativeApiElements'
...
Native/Shared Source Sets still requires stdlib:commonMain.klib as
dependency for IDE analysis.
See: KT-56278
^KT-60901 Verification Pending
2023-08-11 14:52:02 +00:00
Sebastian Sellmair
243707c956
Revert "[stdlib-mpp] Disable/ignore failing tests in Kotlin Dev"
...
This reverts commit 171d156688 .
KT-60901
2023-08-11 14:52:02 +00:00
Ivan Kylchik
2b5f839fac
[IR] Minor: backend refactoring
2023-08-11 12:19:45 +00:00
Ivan Kylchik
55092da03b
[PSI2IR] Check that a given function has the right descriptor
...
The issue was discovered during work on IR serialization and
this is just a safety check.
#KT-56230
2023-08-11 12:19:45 +00:00
Ivan Kylchik
5f2de9dbff
[IR] Create primitive iterators in IrBuiltIns
...
This change is required to fix stdlib compilation with enabled
linking via signature. All primitive iterators are considered to be
builtins and are created during compile time as deserialized
declarations (at least in K1). But if we meet the definition of some
primitive iterator in code, for example, during stdlib compilation,
we will end up with two different descriptors (deserialized and lazy)
that describe the same entity. Because of that we have conflicts in
symbol table:
* For descriptors, we will end up with multiple IR declarations
that describe the same class, but with different descriptors. With
some magic compilation still works.
* For signatures, we will end up with only one IR declaration in the
table, but it will have wrong deserialized (instead of lazy)
descriptor.
In the end, this change allows us to initialize iterators in advance
with correct descriptor.
#KT-56230
2023-08-11 12:19:45 +00:00
Ivan Kylchik
782d5e86f6
[IR] Replace reference* with toIrSymbol in IrBuiltinsOverDescriptors
...
This change is a minor refactoring that introduces `toIrSymbol`
method for function and property descriptors, like it is done for
class descriptor.
2023-08-11 12:19:45 +00:00