Commit Graph

95134 Commits

Author SHA1 Message Date
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
pyos 72e671c8f1 FIR Parcelize: allow anonymous local objects if they're enum entries 2022-09-28 15:14:25 +03:00
Svyatoslav Scherbina 1f1fef1067 Bump Kotlin/Native version to 1.8.20-dev-247 2022-09-28 12:04:51 +00:00
Alexander Likhachev daf14d0931 [Gradle, K/N] Deprecate endorsed libraries
#KT-54177 Fixed
2022-09-28 10:23:12 +00:00
Yahor Berdnikau 5924a80ec8 Use Task.doNotTrackState api
This api is faster replacement for 'task.outputs.upToDateWhen { false }'
 approach.

^KT-52624 Fixed
2022-09-28 09:07:27 +00:00
Yahor Berdnikau 037f41526f Run Gradle integration tests against Gradle 7.3.3
^KT-52624 In Progress
2022-09-28 09:07:27 +00:00
Sebastian Sellmair 05700e09f4 [Gradle] Fix CInteropCommonizerTask.CInteropCommonizerDependencies.dependencies resolving to early
^KT-54202 Verification Pending
2022-09-27 20:21:31 +00:00
Alexander Shabalin c561b1a861 [K/N] Manually compact mimalloc heap with stms ^KT-53182
Merge-request: KT-MR-7222
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-09-27 17:25:18 +00:00
Igor Chevdar eb1f81b404 [K/N][IR] Moved tests dumping to the lowering 2022-09-27 17:06:49 +00:00
Igor Chevdar 1963860a92 [K/N][caches] Removed old slow and hacky version of per-file caches building 2022-09-27 17:06:48 +00:00
Igor Chevdar 9250de42a5 [K/N][IR][codegen] Introduced NativeGenerationState 2022-09-27 17:06:48 +00:00
Igor Chevdar 77f24a22dd [K/N][IR][codegen][caches] Speed-up of per-file caches 2022-09-27 17:06:48 +00:00
Igor Chevdar aba8d8a859 [K/N][caches] Aligned caches layout for per-module and per-file cases 2022-09-27 17:06:47 +00:00
Igor Chevdar b92580937a [K/N][codegen] Slightly refactored invocation of CAdapterGenerator 2022-09-27 17:06:47 +00:00
Ilmir Usmanov 4a10dbf383 FE: Warn about generic inline class parameter in LV < 1.8
#KT-54192 Fixed
2022-09-27 16:50:43 +00:00
Alexander Korepanov 252dc01dd5 [JS IR] IC: Propagate dependencies from nested declaration to parent
JsIrLinker can't load nested declarations,
 therefore it is required to load their parent.
 This patch adds a dependency in the incremental cache graph
 between nested declaration user and nested declaration parent.

^KT-53931 Fixed
^KT-54120 Fixed
2022-09-27 15:27:20 +00:00
Vladimir Dolzhenko bd085fbf43 Optimize isDefinitelyNotSamInterface
Do not generate intermediate garbage and no reason to iterate over
all non-SAM candidates when more than one found

#KTIJ-23032
2022-09-27 15:17:27 +00:00
Vladimir Dolzhenko b2b88662d8 Clean up
#KTIJ-23032
2022-09-27 15:17:27 +00:00
Vladimir Dolzhenko a32c660a67 Optimize contributedDescriptors
Take kindFilters into account on early stage.

#KTIJ-23032
2022-09-27 15:17:26 +00:00
Yahor Berdnikau c198d4d90d Simplify cache-redirector script apply method
Now it could be only be applied inside settings file pluginManagement
block. This will update both settings repositories and all projects in
the repo with cache redirection settings.
2022-09-27 14:04:43 +00:00
Nikolay Krasko 8af5ade2f4 Fix regular expressions in testHostSpecificSourceSetsInTransitiveDependencies
Test is now flaky because sometimes the expected names has checksum with
the `-` char.
`published-dependency-1.0-commonMain-Q-PvLQ.klib`
2022-09-27 13:15:05 +00:00
Nikolay Krasko 20fdd50cc0 Add javadoc to analysis-api-test-framework for fix publishing 2022-09-27 13:15:05 +00:00
Nikolay Krasko 54c7efe1cb Refactorings for toolchains 2022-09-27 12:49:55 +00:00
Nikolay Krasko 076125282d Define default build JVM toolchain 2022-09-27 12:49:54 +00:00
Nikolay Krasko 13a68b0e2d Explicitly define the set of environment variables needed for tests 2022-09-27 12:49:54 +00:00
Simon Ogorodnik 8799b9b751 Build: Add auto-setup of JDKs for tests based on Gradle Java Toolchains 2022-09-27 12:49:54 +00:00