Commit Graph

95159 Commits

Author SHA1 Message Date
Ilya Kirillov 556b7894d5 [Low Level FIR] do not search for declarations from kotlin. package in source modules 2022-09-30 12:15:49 +02:00
Ilya Kirillov a7408f32b0 [analysis] run decompiler-to-psi tests on TC 2022-09-30 12:15:49 +02:00
Ilya Kirillov 5a88f2088a [decompiler stubs] fix CCE in tests 2022-09-30 12:15:49 +02:00
Ilya Kirillov ed65f62e3d [Low Level FIR] add more debug information to FirDeclarationForCompiledElementSearcher 2022-09-30 12:15:48 +02:00
Ilya Kirillov cd5f6d1207 [decompiler stubs] fix missing expect modifier on declarations 2022-09-30 12:15:48 +02:00
konstantin.tskhovrebov dffdc26208 Fix gradle configuration cache in KotlinNativeLinkArtifactTask. 2022-09-30 09:54:36 +00:00
konstantin.tskhovrebov c83286ef7e Set Xcode test device ID only if Xcode is available. 2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov 0ffb370579 Make Xcode utils public for gradle integration tests. 2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov 239a1a4bab Make Xcode utils nullable for non Apple hosts. 2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov 321e436132 Make KotlinNativeLinkArtifactTask configuration lazy with gradle properties.
It is needed for lazy configuration the 'embedBitcode' mode for example.
Because it requires Xcode invocation.
2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov 7ca5750255 Make 'Framework.embedBitcodeMode' lazy provider. 2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov 8c2b2eb278 Make 'KotlinNativeSimulatorTest.device' lazy property 2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov 10947e2c45 Change a hardcoded Xcode test device to getting from the device list. 2022-09-30 09:54:33 +00:00
konstantin.tskhovrebov afa8a577cc [KT-54060] Disable bitcode embedding to frameworks for Xcode >= 14. 2022-09-30 09:54:33 +00:00
Pavel Kunyavskiy ea3713f051 Fix building fake overrides for sam and function references 2022-09-30 08:48:59 +00:00
Pavel Kunyavskiy 95eaf3d234 [K/N] Add lowered suspend function mangling to avoid clashes 2022-09-30 08:48:59 +00:00
Pavel Kunyavskiy 2d4c94a115 [K/N] Add test for inter-module suspend function override 2022-09-30 08:48:59 +00:00
Pavel Kunyavskiy 132bb941e1 [K/N] Fix ObjCExport of coroutines for new lowerings 2022-09-30 08:48:58 +00:00
Pavel Kunyavskiy 7e89d59b59 [K/N] Remove isSuspend hacks from codeGenerator and global optimizations 2022-09-30 08:48:58 +00:00
Pavel Kunyavskiy 817dba8564 [K/N] Use suspend function desugaring lowerings. 2022-09-30 08:48:58 +00:00
Pavel Kunyavskiy 8886e1b8b4 Move Js suspend functions lowerings to common code 2022-09-30 08:48:57 +00:00
Ilya Goncharov 7d8636aac4 [JS] Keep interfaces
^KT-54173 fixed
2022-09-29 16:12:19 +00:00
Mikhail Glukhikh 41c9ffb060 Native: add three new modules to K2 build 2022-09-29 15:32:01 +00:00
Mikhail Glukhikh a22d7aea25 Native: don't set allWarningsAsErrors = true in K2 mode
Related to KT-54123
2022-09-29 15:32:01 +00:00
Mikhail Glukhikh e6804d2601 Native: drop duplicated function and object from IrUtils2.kt
Related to KT-54123
2022-09-29 15:32:00 +00:00
Vladimir Dolzhenko 34779029f3 Avoid recursive type refinement
Recursion happens in kotlinx.serialization project https://github.com/Kotlin/kotlinx.serialization/blob/5e8ccad1f70a9457e0ffe6ae6b10a0bd0eaaa618/formats/json-tests/commonTest/src/kotlinx/serialization/json/JsonCustomSerializersTest.kt#L37

@Serializable
data class C(@Id(1) val a: Int = 31, @Id(2) val b: Int = 42) {
    @Serializer(forClass = C::class)
    companion object : KSerializer<C> {
        override fun serialize(encoder: Encoder, value: C) {
            //
        }
    }
}

#KT-53157
2022-09-29 15:02:55 +00:00
Ilya Goncharov c726360ad2 Change policy with legacy compiler backend
[JS] Remove incremental js jps test

[JS] Remove test of maven js archetype

[JS] Fix another one test

[JS] Fix tests for jps

[JS] Try to fix maven test data

[JS] Fix test data

[JS] Fix test data for ant

[JS] Fix jsExtraHelp test

[JS] Fix test run from not-Gradle build tools

[JS] Set flag without compiler error

[JS] Disable warnings and errors in legacy compiler called from Gradle

[JS] Proofread messages

[JS] Not proofread messages

KT-42326
2022-09-29 13:56:30 +00:00
Alexander Likhachev a3ad0a6e88 [Gradle, K/N] Fix deprecation message for endorsed libraries
#KT-54177
2022-09-29 13:37:11 +02:00
Mikhail Glukhikh 85965d74f6 K2: fix implicit body resolve in case delegated property is on the path
#KT-54212 Fixed
2022-09-29 10:55:14 +02:00
Mikhail Glukhikh 75a29434bd K2: add reproducer of KT-54212 2022-09-29 10:55:04 +02:00
Mikhail Glukhikh f68f06a93f FIR visibility checker: remove redundant session from isVisibleForOverriding 2022-09-29 08:34:14 +00:00
Mikhail Glukhikh de43877161 K2: add more tests about false overrides
Related to KT-53197
2022-09-29 08:34:13 +00:00
Mikhail Glukhikh bcd7a531b9 K2: filter invisible overridden in status resolver & FIR2IR
Related to KT-53197
2022-09-29 08:34:13 +00:00
pyos 3a5d75fd22 K2: introduce platform-specific visibility checks for overrides + tests
Related to KT-53197
2022-09-29 08:34:13 +00:00
Mikhail Glukhikh 1ad2ec302b FirOverrideChecker: don't report VIRTUAL_MEMBER_HIDDEN with invisible
#KT-53197 Fixed
2022-09-29 08:34:12 +00:00
Mikhail Glukhikh 8281c166b1 K2 checkers: extract retrieveDirectOverriddenOf to FirTypeScope.kt 2022-09-29 08:34:11 +00:00
Mikhail Glukhikh 9f7c465eb0 FE: add test for KT-53197 2022-09-29 08:34:11 +00:00
konstantin.tskhovrebov 5ca9d3d706 [KT-53191] Fix header dirs inputs for CInteropProcess task. 2022-09-29 07:19:45 +00:00
Pavel Mikhailovskii 903a5d69a4 KT-53146 Don't coerce Nothing? returned from "catch" clauses
At first, I tried to modify the logic in PromisedValue.materializeAt
to get rid of all casts from Nothing? to other types, but that broke
a number of tests containing casts of java.lang.Void to other types,
so I decided to fix only this particular case with try...catch
(for some reason, here we get a null of type java.lang.Object).
2022-09-29 06:15:39 +00:00
Alexander Udalov 4baa74f396 Add regression tests for obsolete issues
#KT-50909
 #KT-50974
 #KT-51888
2022-09-28 23:18:59 +02:00
Igor Chevdar e7b5e74f78 [K/N][lower] Fixed bug with phases for metadata klibs 2022-09-28 15:41:56 +00:00
Mikhail Glukhikh d9934cd01a Rename in test infra: hasFail() -> hasFailure() 2022-09-28 15:29:44 +00:00
Mikhail Glukhikh 591992dc12 K1: mute failing test with slow assertions
Note: in this test, we create a flexible type from two captured types
during substitution, which provokes exception from
FlexibleTypeImpl.runAssertions() (they are run only in test mode)

Related to KT-54198
2022-09-28 15:29:44 +00:00
Mikhail Glukhikh e9bb0f4fda Resolution: extract projections from captured flexible type properly
#KT-54100 Fixed
Related to KT-54196, KT-54198
2022-09-28 15:29:43 +00:00
Nikolay Krasko 8517249776 Update plexus-component-metadata plugin 1.7.1 -> 2.1.0
There's an unstable order of components in plexus/components.xml

KTI-729
2022-09-28 15:26:41 +00:00
Nikita Nazarov 784ceb6baa Add support for context receivers evaluation
KTIJ-21214
2022-09-28 18:59:56 +04:00
Nikita Nazarov bd742bb95c Account for context class receivers when creating the ExpressionReceiver
^KT-54084 Fixed
2022-09-28 18:59:56 +04:00
Nikolay Lunyak f578381726 [FIR] KT-46483: Forbid annotations in where Clauses
Merge-request: KT-MR-7208
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru>
2022-09-28 13:38:18 +00:00
Leonid Startsev a20ce06102 Support @Serializable(ContextualSerializer) on class
It was fixed some time ago (https://github.com/Kotlin/kotlinx.serialization/issues/957)
but for some reason only for old backend.

Fixes https://github.com/Kotlin/kotlinx.serialization/issues/1776
2022-09-28 12:40:20 +00:00
Yahor Berdnikau 1967c49914 Fix wrong jitpack.io repository url in test project 2022-09-28 14:34:54 +02:00