Commit Graph

108581 Commits

Author SHA1 Message Date
Brian Norman aa34282efb [PowerAssert] Integrate with build
^KT-63617 Fixed
2024-02-07 21:51:17 +00:00
Brian Norman c3a60b127e [PowerAssert] Reformat files 2024-02-07 21:51:17 +00:00
Brian Norman 2de0c8b23f [PowerAssert] Update file copyright 2024-02-07 21:51:17 +00:00
Brian Norman d8167fe82b [PowerAssert] Update base package 2024-02-07 21:51:17 +00:00
Ivan Kochurkin 6570d3fd55 [FIR] Minor fixes in FirDelegateUsesExtensionPropertyTypeParameterChecker
Fix a link in DELEGATE_USES_EXTENSION_PROPERTY_TYPE_PARAMETER message
2024-02-07 21:15:59 +00:00
Ivan Kochurkin c4e0cafe9c [FIR] Check DELEGATE_USES_EXTENSION_PROPERTY_TYPE_PARAMETER for anonymous objects
^KT-64102 Fixed
2024-02-07 21:15:59 +00:00
Mikhail Glukhikh 8ee54a9045 K2: add a test to ensure #KT-63756 Fixed 2024-02-07 20:56:04 +00:00
eugene.levenetc 797284dada [ObjCExport] Implement initial processing queue (stable order, dependencies, forward declarations)
This commit will introduce the first processing queue
which will take care of properly ordering the 'to translate' symbols
as well as taking care of 'dependency' symbols (aka symbols
mentioned in signatures or as supertypes).

- There are several changes like properly translating
types as ObjCProtocolType instead of ObjCClassType (if origin was an interface)
- Type translation of generics defined on interfaces will also emit id type.
- Add initial nested classes collection to the queue
- Add extension function test, add tickets references

^KT-65237 Verification Pending
^KT-65329 Verification Pending
2024-02-07 20:29:08 +00:00
Sebastian Sellmair 32da1b70f5 [ObjCExport] Implement initial sorting and ordering for ObjC translation
^KT-65237
2024-02-07 20:29:08 +00:00
Igor Chevdar 27fa3ebfb3 [K/N] Fallback in case turned off liveness analysis
#KT-65153 Fixed
2024-02-07 18:54:31 +00:00
Igor Chevdar 6c05219485 [IR][K/N] Extracted explicit var spilling phase from coroutines lowering
Not only does it give some flexibility but also it could be turned off
in the future (by providing trivial replacement) as a workaround

 #KT-65153
2024-02-07 18:54:31 +00:00
Igor Chevdar 954eade78c [IR][K/N] Refactored a bit SuspendFunctionLowering 2024-02-07 18:54:31 +00:00
Svyatoslav Scherbina d39a7e59a7 [K/N] Remove outdated RELEASE_NOTES.md
This document is outdated and doesn't make much sense anymore, since
the relevant topics are also covered in the documentation.
2024-02-07 14:09:31 +00:00
Svyatoslav Scherbina e6785c8dcd [K/N] Don't include RELEASE_NOTES.md into the bundle
This document is outdated and doesn't make much sense anymore, since
the relevant topics are also covered in the documentation.
2024-02-07 14:09:31 +00:00
vladislav.grechko 54858c2118 [FIR] Fix naming of local classes when serializing metadata
^KT-63655: Fixed
^KT-63901: Fixed
^KT-63988: Fixed
2024-02-07 12:30:50 +00:00
Mikhail Glukhikh 78876b32e9 K2: unmute testInnerClassPackageConflict2 thus fixing current K2 behavior
Related to KT-63070, KT-60792
2024-02-07 11:36:53 +00:00
Bogdan Mukvich 555e374a33 Ignore native bundle artifacts in ArtifactsTest
* kotlin-native not enabled by default in project
2024-02-07 09:51:56 +00:00
Vladimir Sukharev 112473f310 [Tests] Add test for KT-65197
^KT-65197
2024-02-07 09:03:49 +00:00
cristiangarcia 9f8ea3e2e5 Proguard 7.4.2 - ConfigurationCache compatible
Required for KTI-1553
2024-02-06 20:16:22 +00:00
Alexander Udalov 28797a31b4 JVM: refactor JvmDefaultMode, remove/rename some entries
- remove ENABLE/COMPATIBILITY because they can no longer be used
- remove forAllMethodsWithBody because its behavior is now equivalent to
  isEnabled
- inline isCompatibility
- inline DEFAULT
- rename ALL_INCOMPATIBLE -> ALL
2024-02-06 17:18:44 +00:00
Dmitrii Krasnov 6219806ab9 [Gradle Native] Made eager outputFile in CInteropProcess deprecated
^KT-63206 Fixed
2024-02-06 14:01:29 +00:00
Igor Yakovlev b6ef1e08e1 [WasmJs] Fix kotlin.test AfterTest for test with Promise return type
Fix #KT-61888
2024-02-06 13:55:20 +00:00
Igor Yakovlev 78b666bb40 [WasmJs] Support custom js adapter support
Fix KT-58291
2024-02-06 13:55:20 +00:00
Igor Yakovlev 109ff2135f [WasmJs] Add async tests in kotlin.test 2024-02-06 13:55:20 +00:00
Ilya Gorbunov 905423aa17 [kotlin-test] Reconfigure JVM unit tests
- Include common annotations and assertions test source sets into each test platform test compilation in order to check how they work with that platform's annotations and asserter
- Run these tests without platform support jar to check the default asserter implementation
2024-02-06 12:58:50 +00:00
Ilya Gorbunov 309cecdefd [kotlin-test] Rename test to avoid duplication 2024-02-06 12:58:50 +00:00
Igor Yakovlev ff20ae34e5 [Wasm/WASI] Allow external declarations only for top-level functions
Fix #KT-63737
2024-02-06 12:03:08 +00:00
Kirill Rakhman 376a9b8ace [FIR] Implement deprecation for accessing private operators from public inline function
This only affects delegation operators as well as the for-loop-related
next and hasNext operators.
All the other operators worked correctly before.
In K2, the previously mentioned operator calls will be flagged with a
deprecation error and will become and error in 2.1.

#KT-59782 Fixed
2024-02-06 11:18:25 +00:00
Ilya Gorbunov 58c03e021b Update transitive dependencies of JVM test frameworks in kotlin-test KT-65242, KT-63397 2024-02-06 11:06:12 +00:00
Yahor Berdnikau a636f822d0 [Gradle] Fix warnings in NativeDistributionCommonizerTask
^KT-56904 In Progress
2024-02-06 10:20:23 +00:00
Yahor Berdnikau 5ca953b7ff [Gradle] Remove unused import in KotlinNativePlatformDependencies.kt
^KT-56904 In Progress
2024-02-06 10:20:23 +00:00
Yahor Berdnikau 44c421c2a3 [Gradle] Remove unused import in CInteropCommonizerCompositeMetadataJarBundling
^KT-56904 In Progress
2024-02-06 10:20:23 +00:00
Yahor Berdnikau 9a94ac5d20 [Gradle] Fix warnings in AddIntransitiveMetadataDependency.kt
^KT-56904 In Progress
2024-02-06 10:20:23 +00:00
Yahor Berdnikau a58d0dc237 [Gradle] Fix warnings in KotlinNativeCompilation
^KT-56904 In Progress
2024-02-06 10:20:23 +00:00
Yahor Berdnikau 5b18687935 [Gradle] Fix warnings in KotlinMetadataTargetConfigurator
^KT-56904 In Progress
2024-02-06 10:20:23 +00:00
cristiangarcia c897328af6 Make lombok tests CC compatible
Required for KTI-1553
2024-02-06 10:11:15 +00:00
Mads Ager 79eee6de4f [FIR] Do not enhance nullability for annotation interface field types.
Java annotation interface fields are constant declarations that can
have any Java type and are not restricted in the same way that
method return types are for annotation interfaces.

#KT-65482 Fixed
2024-02-06 09:45:34 +00:00
Simon Ogorodnik f5d0a5b92d CODEOWNERS: Update Compiler Core team ownership
- Move Simon.Ogorodnik out of the Compiler Core team
2024-02-06 09:25:11 +00:00
Nikolay Lunyak 183c263c55 [FIR] Create proper error name references for invoke receivers
In this example, when processing
the `jso` property candidate form
the `dynamic` scope we get
`DslScopeViolation`.
When we later create the
receiver for the invoke call
(since we still call `jso {}` as
a function), we create a non-error
named reference which fails at
`toResolvedReference()`.

The included test should not fail
with exception.

^KT-65255 Fixed
2024-02-06 09:12:46 +00:00
Dmitrii Krasnov be6ab943f4 [Gradle] Fixed Mac and Windows integration tests
These tests were failed because of `dependencyManagement` in testDsl.

^KT-64903


Merge-request: KT-MR-14201
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
2024-02-06 09:09:34 +00:00
Pavel Kunyavskiy 1cc138431d [Fir2IR] Get rid of simple symbol table usages
We have two sources of truth in Fir2Ir - declaration storages,
which maps fir to ir symbols and symbolTable which maps
IdSignature to ir symbol.

The long-term goal is to have only one - declaration storages. This
commit goes to this goal by removing all symbolTable usages that are
straightforward to remove, i.e., all except:

1. classes as there is some code, that uses signature inside ClassSymbol
2. functions/properties as sometimes declaration storage fails to match
symbols correctly (i.e. for generated data class members)
3. type parameters, as we need to remove functions first.

As a side effect, it fixes some of the signature clash cases on valid
code, as we no longer rely on signature uniqueness, except cases
mentioned above.

^KT-65274 Fixed
^KT-64990
2024-02-06 08:55:35 +00:00
Sergej Jaskiewicz 06684f207a [klib] Don't rely on Lazy IR for signature clash checking
We only want to report signature clashes for declarations that come
from the module currently being serialized. In GlobalDeclarationTable,
declarations from other modules could also be stored.
Checking whether a declaration is a Lazy IR declaration to
determine if it comes from an external module works okay, but it is
a hack which relies on an implementation detail of IR, which may or
may not work in the future.

Use a more robust logic here, since IrFileSerializer is always aware
which declarations are declared in the current module and which are
just referenced from it.
2024-02-05 17:30:08 +00:00
Bogdan Mukvich 55a87f301b Ignore native bundle artifacts in ArtifactsTest
* kotlin-native not enabled by default in project
2024-02-05 17:16:35 +00:00
Bogdan Mukvich 86fa4507d0 Publish native SBOMs with binaries to maven repository
^KTI-1569
2024-02-05 17:16:35 +00:00
Dmitrii Krasnov 06a3e9135c [Gradle Native] Made a k/n bundle as input for commonizeNativeDist task
Also, extracted moving konan bundle to konanHome into BuildService and wrapped moving k/n bundle to konan home with file lock.
And added an integration test for checking ^KT-65222 and ^KT-65347.

^KT-65450
^KT-65347 Fixed


Merge-request: KT-MR-14099
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com>
2024-02-05 16:37:49 +00:00
Gleb Lukianets f262247b2b [Swift Export] KT-65008: support simple top-level properties
Merge-request: KT-MR-14131
Merged-by: Gleb Lukianets <Gleb.Lukianets@jetbrains.com>
2024-02-05 16:29:37 +00:00
Yahor Berdnikau ad5ee28d58 [Gradle] Use proper approach to local repository
^KT-65528 In Progress
2024-02-05 16:14:41 +00:00
Yahor Berdnikau eac48d065b [Gradle] Migrate HierarchicalStructureOptInMigrationArtifactContentMppIT to new test DSL
^KT-65528 In Progress
2024-02-05 16:14:41 +00:00
Yahor Berdnikau 81fded3c8b [Gradle] Migrate KotlinToolingMetadataIT to new test DSL
^KT-65528 In Progress
2024-02-05 16:14:40 +00:00
Vladimir Sukharev 72d92cd9b2 [K/N][Tests] Don't make per-file-cache from given dependencies
^KT-61259
2024-02-05 16:06:34 +00:00