Commit Graph

94605 Commits

Author SHA1 Message Date
Dmitriy Novozhilov cb03ef89c5 [Test] Unmute passing test 2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov 671083c701 [Serialization] Implement serialization checker for K2 version of plugin
^KT-53178 Fixed
2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov e048ffcf6d [FIR] Update tests due to KT-53873 2022-09-07 07:57:38 +00:00
Dmitriy Novozhilov 40b13898bd [FIR] Don't set source of inferred type from expected type 2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov e1fd184d14 [FIR] Fix missing initialization of backingField for properties from primary constructor 2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov 194741b96b [FIR] Remove incorrect FirClassSymbol<*>.superConeTypes utility
Replace all usages with member `FirClassSymbol.resolvedSuperTypes`
2022-09-07 07:57:37 +00:00
Dmitriy Novozhilov 6ef3d1e573 [FE] Add helper methods for reporting diagnostics with DiagnosticContext context receiver 2022-09-07 07:57:36 +00:00
Anton Lakotka b5ff063164 [Gradle] Make jvmMainClasses depend on javaCompile task
^KT-31459 Verification Pending
2022-09-07 05:04:00 +00:00
Anton Lakotka 164d66595c Revert "[Gradle] Make target lifecycle task depend on classes compilation outputs"
This reverts commit 564e3b064a.
2022-09-07 05:03:59 +00:00
Anton Lakotka a4cfb99de4 [Gradle] Add circular dependency check for KT-31459
^KT-31459
2022-09-07 05:03:59 +00:00
Yahor Berdnikau 4861aa3381 Fix typo in file name 2022-09-06 20:07:54 +00:00
Yahor Berdnikau 885cb5f1c8 Update Gradle with android tests setup based on feedback
- Change back 'TestVersions.AGP' to be 'object class' with constants
inside, so they could be referenced inside version annotation
- Fix issue when AGP minimal version could be higher than AGP max
version

^KT-45747 Fixed
2022-09-06 20:07:53 +00:00
Pavel Mikhailovskii a75d5ba4cf KT-53465, KT-53677 Get rid of unnecessary checkcasts to array of reified type 2022-09-06 18:33:38 +00:00
Mikhail Glukhikh d8522a8967 FE: Add test for KT-53656 2022-09-06 17:57:02 +00:00
Mikhail Glukhikh c1b0405c4e [FE 1.0] Use the old type intersection for type parameter bounds
This is a partial revert of commit bc1c2ada
We have to use old type intersector for emptiness check because
KT-53656 were found. We return to old type intersector usage also
for type parameter bounds to prevent other possible problems.
2022-09-06 17:57:02 +00:00
Mikhail Glukhikh 3bdd52b64a [FE 1.0] Return to the old type intersection emptiness check
This reverts commit 8227c4b603.
#KT-53656 Fixed
2022-09-06 17:57:01 +00:00
Igor Chevdar 5c09d7838d [K/N] Added compiler interface to distribution 2022-09-06 14:03:41 +00:00
Igor Chevdar 44010a04b1 [K/N][runtime] Extracted compiler interface from native runtime 2022-09-06 14:03:41 +00:00
Igor Chevdar b8bf82114b [K/N][codegen] Refactored getting types from runtime 2022-09-06 14:03:41 +00:00
Vladimir Dolzhenko 79d1ca0504 Align externalId
externalId for any field in stubElementTypeHolder has to be prefix (`kotlin`) + dot (`.`) + field name

#KT-53781
2022-09-06 10:52:33 +00:00
Nikolay Lunyak 24dfb14654 [FIR] KT-53493: Turn VAL_OR_VAR_ON_*_PARAMETER warnings into errors
Merge-request: KT-MR-7032
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru>
2022-09-06 08:40:48 +00:00
Sebastian Sellmair 794c9d16a3 [Gradle] CompilationDetails: Use source set hierarchy instead of compilations to determine common sources
^KKT-50161 Verification Pending
2022-09-06 08:35:54 +00:00
Sebastian Sellmair ab73251af0 [Gradle] Implement KT50161AndroidBuildCacheTest to cover KT-50161 2022-09-06 08:35:53 +00:00
Pavel Punegov 7a7954b1e2 [K/N][samples] Exclude curl sample on Windows
Due to the linkage error caused by passing whole
mingw lib directory with -L
2022-09-06 08:05:36 +00:00
Pavel Mikhailovskii 6a14400342 KT-53804 Restore old and incorrect logic of generating InnerClasses attributes for kotlin-stdlib 2022-09-05 14:02:52 +00:00
Pavel Kunyavskiy 4d64f3a422 Ignore added test for JS backend 2022-09-05 12:20:21 +00:00
Alexander Korepanov 453faeaa45 [JS IR] Memory consumption optimization
- Remove IR after JS AST generation
 - Remove JS AST after/during JS code generation
2022-09-05 11:15:55 +00:00
Alexander Korepanov 14b7db0187 [JS IR] Optimize JS AST metadata memory consumption 2022-09-05 11:15:54 +00:00
Alexander Korepanov c747d0e742 [JS IR] Optimize JS AST blocks memory consumption 2022-09-05 11:15:54 +00:00
Alexander Korepanov ea34e10b67 [JS IR] Optimize JS AST scopes memory consumption 2022-09-05 11:15:54 +00:00
Alexander Korepanov bf53273b84 [JS IR] Cache JsLocation objects and js function signatures
Memory consumption optimization
2022-09-05 11:15:53 +00:00
Alexander Korepanov ff2f16190d [JS IR] Minor: eliminate unused vals 2022-09-05 11:15:53 +00:00
nataliya.valtman 57fdfbe860 Fix finish time for build finish event for build statistic 2022-09-05 10:39:53 +00:00
Dmitriy Novozhilov a6d3c6e5c6 [Serialization] Suppress OPT_IN errors in all diagnostic tests 2022-09-05 10:20:06 +00:00
Dmitriy Novozhilov 84b8ab1f9c [Serialization] Add DiagnosticsTests for FIR 2022-09-05 10:20:06 +00:00
Dmitriy Novozhilov 21aec49709 [Tests] Add ability to have separate asm instructions dump for fir + ir setup 2022-09-05 10:20:05 +00:00
Dmitriy Novozhilov a2ffba275c [Serialization] Migrate all tests to new test infrastructure 2022-09-05 10:20:05 +00:00
Simon Ogorodnik 4dd7437df1 Fix kind of NoBuilderInferenceWithoutAnnotationRestriction
BUG_FIX kind causes feature to enable in progressive mode, which
wasn't intended
2022-09-05 10:07:42 +00:00
Simon Ogorodnik 05d486d55a Fix receiver inconsistency when builder inference restriction disabled
In 154e53c701 update of
extensionReceiverArgument in resolvedCall was accidentally moved into
language feature dependant block
2022-09-05 10:07:41 +00:00
Alexander Korepanov 01507281a2 [Common IR] Forward the extension receiver in the reified wrapper
^KT-53672 Fixed
2022-09-05 07:40:30 +00:00
Pavel Kunyavskiy d822d3e7c6 [K/N] Reenable constant inlining except for Double nan constants
^KT-52970
2022-09-05 06:06:44 +00:00
Yahor Berdnikau b8b0b279ee Remove 'kapt.user.worker.api' property
Now Kapt is always run via Gradle workers.

^KT-48827 Fixed
2022-09-02 18:08:41 +00:00
Abduqodiri Qurbonzoda f3e8816dc3 Do not generate JVM 1.8+ annotation targets in stdlib, -jdk7, -jdk8, reflect
See #KT-53712
2022-09-02 14:59:24 +00:00
Sergej Jaskiewicz f07163125b [JS Legacy] For Unit Elvis don't forget to generate code for the RHS
^KT-53780 Fixed
2022-09-02 11:44:17 +00:00
Matthew Haughton 38d0105e74 Fix typo exists -> exist 2022-09-02 12:59:33 +02:00
Artem Kobzar 0bb0be8703 feat(KT-48814): represent all of the external declarations nullable properties as an optional fields inside d.ts. 2022-09-02 10:50:20 +00:00
Yahor Berdnikau a52d8f0364 Pass path to java source file as-is
Since Kotlin 1.7.0 plugin is tracking each java file individually in
task, rather than java SourceSet root directories. Such approach removes
requirement to pass them via `-Xjava-source-roots` compiler argument.

^KT-53390 Fixed
2022-09-02 10:49:36 +00:00
Vyacheslav Gerasimov 15d797b5b5 Build: Use protobuf from kotlin-dependencies repo
#KTI-892
2022-09-01 19:28:16 +02:00
Vyacheslav Gerasimov 46bc1d5b09 Build: Increase heap size for kotlin daemon to 3g
#KTI-915
2022-09-01 19:28:16 +02:00
Ilya Gorbunov 12d3ef41dc Use older JDK toolchains for compiling stdlib and stdlib-jdk7
To prevent using newer JDK API in kotlin sources of these projects.
Note that java sources (of stdlib mainly) are still compiled with JDK 8.

#KT-51907
2022-09-01 16:52:36 +00:00