Commit Graph

93372 Commits

Author SHA1 Message Date
Abduqodiri Qurbonzoda dc6d2edf51 Implement a workaround for PathTreeWalk @SinceKotlin #KT-52977 2022-06-28 00:52:43 +00:00
Abduqodiri Qurbonzoda 78666e3ecb Provide visit extension functions for java.nio.file.Path #KT-52910 2022-06-28 00:52:43 +00:00
Abduqodiri Qurbonzoda e7b37b3497 Implement a walk extension function for java.nio.file.Path #KT-52909 2022-06-28 00:52:42 +00:00
Ilya Gorbunov 7e5abdb1c0 Update API dumps for open ranges and their operations
#KT-52932
2022-06-28 00:08:10 +00:00
Ilya Gorbunov 988446c4b1 Update builtins dumps for open ranges
#KT-52932
2022-06-28 00:08:09 +00:00
Ilya Gorbunov 383e814d82 Update FIR spec test data
NONE_APPLICABLE instead of UNRESOLVED_REFERENCE_WRONG_RECEIVER
presumably because of the introduction of another `contains` extension overload
2022-06-28 00:08:08 +00:00
Ilya Gorbunov 7ab2f1493c Add error() function to interpreter test helper sources
To compile standard library code that uses error()
2022-06-28 00:08:07 +00:00
Ilya Gorbunov 227953a267 Temporarily avoid endExclusive in tests
(until bootstrap)
2022-06-28 00:08:07 +00:00
Ilya Gorbunov 4475b15037 Add tests for open ranges
#KT-52932
2022-06-28 00:08:06 +00:00
Ilya Gorbunov 8584fe2725 Add contains extension for mixed types for open ranges and open-closed range specializations
#KT-52932
2022-06-28 00:08:05 +00:00
Ilya Gorbunov 9574040f85 Add rangeUntil for primitives as an extension
#KT-52932
2022-06-28 00:08:05 +00:00
Ilya Gorbunov 71336df50a Support open ranges in stdlib-gen
#KT-52932
2022-06-28 00:08:04 +00:00
Ilya Gorbunov cd9b36b4c3 Introduce OpenEndRange and make primitive ranges implement it
#KT-52932
2022-06-28 00:08:03 +00:00
Ilya Gorbunov d54b5f8e85 Prevent serializing OptIn-related annotations to builtins
Required for KT-52932: to avoid dealing with opt-ins when serializing experimental parts of builtins
2022-06-28 00:08:02 +00:00
Ilmir Usmanov 810b11b96d Enable generic inline classes as experimental feature in 1.8
#KT-52994 Fixed
2022-06-27 23:48:58 +02:00
Ilmir Usmanov f34ae686a0 JVM: Make coroutines spilling tests runtime
instead of bytecode text ones. Check the content of continuation
object instead of bytecode, since this is less prone to changes during
changes in coroutines codegen.

 #KT-48678
2022-06-27 23:11:40 +02:00
Stanislav Erokhin 62d7094ac5 Remove KtAnalysisSessionFe10BindingHolder
I've removed its usage from Fe10Binding module in the IDE repo
2022-06-27 19:32:45 +00:00
Stanislav Erokhin 3f99e2391b Minor: make some util functions public
I'm going to use it in Fe10Binding to create descriptors for special
constructions
2022-06-27 19:32:44 +00:00
Stanislav Erokhin 66851c7afd [Analysis API] Add KtReceiverParameterSymbol#correspondingSymbol 2022-06-27 19:32:44 +00:00
Pavel Kunyavskiy dfcf2cfa84 [K/N] Fix extracting local classes from lambda in cached inline function
^KT-52540
2022-06-27 14:09:27 +00:00
Igor Yakovlev 649910863c [WASM] Enable wasm StdLib tests 2022-06-27 10:40:21 +02:00
sebastian.sellmair 3aa3466d2e [Gradle][MPP] MPPBuildReproducibilityIT | ArchiveReproducibilityTest: Include js target
^KT-52740 Verification Pending
2022-06-27 08:26:52 +00:00
sebastian.sellmair c93b1d2aab [Gradle][MPP] MPPBuildReproducibilityIT: Use custom diff implementation
^KT-52740 Verification Pending
2022-06-27 08:26:51 +00:00
sebastian.sellmair 1e118c06af [Gradle][MPP] MPPBuildReproducibilityIT: Restrict to linux and mac hosts
^KT-52740 Verification Pending
2022-06-27 08:26:50 +00:00
sebastian.sellmair da37d51707 [Gradle][MPP] Ensure that built archives are reproducible
This is done by setting up the archive tasks to

a) isReproducibleFileOrder = true
Which is kind of self-explanatory: The zip entries will be ordered
therefore the same binary will be produced

b) isPreserveFileTimestamps = false
This one ensures, that all timestamps in the zip file
will be equal no matter the build host, or the actual time of build
(or timestamps of files)

^KT-52740 Verification Pending
2022-06-27 08:26:49 +00:00
Dmitriy Novozhilov 53bbe805ce [SAM with receiver] Fix maven plugin and IDE dependencies according new module structure 2022-06-27 08:11:34 +00:00
Dmitriy Novozhilov 1a9c690dcb [SAM with receiver] Add path to testdata to test plugin config 2022-06-27 08:11:33 +00:00
Dmitriy Novozhilov 65ac82ee46 [SAM with receiver] Add implementation for K2 2022-06-27 08:11:33 +00:00
Dmitriy Novozhilov 49c836e706 [SAM with receiver] Partially migrate tests to new infrastructure
Script tests still use old infrastructure, because there is no support
  for them in new framework
2022-06-27 08:11:33 +00:00
Dmitriy Novozhilov 04bf5bfe0b [SAM with receiver] Extract some constants to common module
This is needed to publish them into corresponding jar for IDE
2022-06-27 08:11:32 +00:00
Dmitriy Novozhilov ffc680f4a6 [SAM with receiver] Prepare module structure to K2 implementation 2022-06-27 08:11:32 +00:00
Dmitriy Novozhilov e54c6eeafc [FIR] Introduce extension for custom SAM conversions 2022-06-27 08:11:31 +00:00
Dmitriy Novozhilov fcc5b804a8 [FIR] Add forgotten resolution of annotations on get class calls 2022-06-27 08:11:31 +00:00
sebastian.sellmair c16955ff3f [MPP] SourceSetMetadataStorageForIde: Remove faulty 'cleanupStaleEntries'
^KT-52955 Verification Pending

This method over-aggressively removed libraries in the situation of
isolated KGP ClassLoaders or when a project enabled Gradles configuration
caching. This faulty cleanup is removed in anticipation
of a re-structured SourceSetMetadataStorageForIde in the near future.
2022-06-27 07:28:01 +00:00
Yahor Berdnikau a85490ea7d Add conventions only if they are still available
So Gradle could drop conventions in Gradle 8.0 release.

^KT-47047 Fixed
2022-06-26 22:43:28 +02:00
Yahor Berdnikau 2260893142 Add Gradle version specific accessor for BasePlugin configuration
^KT-47047 In Progress
2022-06-26 22:43:28 +02:00
Yahor Berdnikau 7630afd37d Replace MPP 'fromPreset' convention with normal extension methods
^KT-47047 In Progress
2022-06-26 22:43:28 +02:00
Ilya Gorbunov af6958de02 Fix stdlib-gen run configuration
--configure-on-demand parameter seems to no longer work in kotlin gradle project
2022-06-26 21:29:57 +03:00
mvicsokolova 8053746ae0 kotlinx.atomicfu JVM/IR compiler plugin support
Merge-request: KT-MR-6541
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com>
2022-06-26 07:17:06 +00:00
Alexander Shabalin eaad75fd52 [K/N] Refactor runtime testing tasks
Merge-request: KT-MR-6360
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-06-25 09:55:27 +00:00
Sergey Bogolepov bb493ccb3e [K/N] Add test-case for KT-49034 2022-06-24 23:57:12 +03:00
Sergey Bogolepov 8e3d574913 [K/N] Check type of forward declaration in resolve
Fixes KT-49034
2022-06-24 23:57:12 +03:00
Troels Bjerre Lund 508c4d1a99 [K/N] Fix typo in dependency for build task
Typo caused ./gradlew :kotlin-native:build to fail
2022-06-24 18:29:37 +00:00
Johan Bay e380d7d495 [K/N] fix minor typos and outdated documentation 2022-06-24 20:27:33 +02:00
Ilya Gorbunov 059ffe7a9b Cleanup obsolete RequireKotlin annotations
They were used to prevent older compiler versions from using specific API, but now these versions are even older than the first compiler version (namely 1.6) that can read this stdlib.
2022-06-24 16:57:58 +00:00
Ilya Kirillov 186beddf5c [Analysis API FIR] fix member scope for enum entries 2022-06-24 15:36:32 +00:00
Ilya Kirillov 89ff1f0c0b [Analysis API FIR] fix member scope for enum entries without body 2022-06-24 15:36:32 +00:00
Mikhail Zarechenskiy 47beef16f3 Increase binary stub version for 1.7.0
New stub version forces reindex & reimport for JPS-based projects,
making their compiler plugin libs consisten with the bundled JPS
compiler

 ^KTIJ-21982
2022-06-24 15:05:18 +00:00
Sergey Bogolepov 1de62d6232 [K/N] Add test-cases for KT-50109 2022-06-24 13:49:23 +00:00
Sergey Bogolepov 204cde357b [K/N] Add error when companion of non-Obj-C-subclass inherits Obj-C meta
Fixes KT-50109
2022-06-24 13:49:22 +00:00