Commit Graph

94515 Commits

Author SHA1 Message Date
Simon Ogorodnik 105358dcf6 K1: add diagnostic BUILDER_INFERENCE_MULTI_LAMBDA_RESTRICTION
Let's call builder lambdas (BL) a lambda that has non-fixed input type
projection at the moment of lambda arguments analysis, such lambdas
is a subject to be analyzed with builder inference
Due to bug in constraint system joining algorithm, currently system
of two or more such lambdas may lead to unsound type inference

Diagnostic added here should be reported in case when there are two
BL that shares a common constraint system, while not annotated with
@BuilderInference, as a protection against aforementioned bug

It's reported by ConstraintSystemCompleter when such situation has
occurred during builder inference phase, it is the same place that
decides wherever lambdas is subject to builder inference or not

KT-53740
2022-08-30 10:19:25 +00:00
Simon Ogorodnik db0d8d9f57 Add language feature for diagnostics in builder inference restriction 2022-08-30 10:19:25 +00:00
Simon Ogorodnik 4227fd012f Fix test for two builder inference lambdas 2022-08-30 10:19:24 +00:00
Mikhail Glukhikh f6ad6fb816 Add test for stub type receiver and for KT-53639 2022-08-30 10:19:24 +00:00
Mikhail Glukhikh 5cbecd276c FE: add test reproducing builder inference problem from KT-53422 2022-08-30 10:19:23 +00:00
Dmitriy Dolovov 444cdaa2d8 [Native][tests] Re-enable internalFromFriendModule codegen box test
^KT-53723

This reverts commit 6594ebe487f0758e0fab880e2902d3d28eca7f44.
2022-08-30 07:56:18 +00:00
Dmitriy Dolovov 6b6bc7d6fe [Native][tests] Fix: Pass friend modules to compiler CLI when building static cache
^KT-53723
2022-08-30 07:56:17 +00:00
Igor Chevdar ea4a841056 [box-tests] Ignored a test for K/N for now
The test checks internal declarations visibility from friend module,
the K/N test system is broken for now if uses caches
2022-08-30 07:29:07 +00:00
Igor Chevdar ced974fcb7 [IR] Fixed non-friend module visibility for LazyIR caches
K/N builds Lazy IR for cached libraries - so no IrModule for them,
have to use descriptors to find the module's name for the friend module predicate
2022-08-30 07:29:07 +00:00
Ilya Gorbunov 8b95257143 Reduce the chance shuffle produces an identical permutation in test (part 2) 2022-08-29 22:14:24 +02:00
Nikolay Krasko cfc013137e Fix compile error
Introduced in 43ce805499
2022-08-29 21:58:57 +02:00
Artem Kobzar 98474f0d13 chore: change line breaker for generated js files. 2022-08-29 18:06:27 +00:00
Artem Kobzar 43ce805499 chore: fix typo in a method name. 2022-08-29 18:05:45 +00:00
Artem Kobzar 8b826a865b [K/JS, K/WASM] feat(Enum.entries): add support of new enum static field for JS and WASM. 2022-08-29 16:04:12 +00:00
Mikhael Bogdanov bd6aff7f6a Xjdk-release: avoid folder duplication 2022-08-29 12:26:27 +00:00
Dmitry Gridin 4a6609e491 [lc] LightClassUtil: simplify facade class search
^KT-53543
2022-08-29 11:51:43 +00:00
Dmitry Gridin feb31b79de [lc] support decompiled facade only for .class
we have support only for KtClsFile (see decompiled light classes) so kotlin_builtins and kotlin_metadata should be ignored

^KT-53543
2022-08-29 11:51:43 +00:00
Dmitry Gridin 031edb7344 [lc] do not search files for compiled jvm multifile
^KT-53543
2022-08-29 11:51:42 +00:00
Dmitry Gridin 924dd38144 [lc] introduce KotlinAsJavaSupportBase with new common facade logic
^KT-53543
2022-08-29 11:51:42 +00:00
Dmitry Gridin 0ea041a1eb [lc] move SymbolLightClassForDecompiledFacade to common decompiled part
^KT-53543
2022-08-29 11:51:42 +00:00
Dmitry Gridin d2ddf88cdc [lc] KtLightClassBase: cleanup code
^KT-53543
2022-08-29 11:51:41 +00:00
Dmitry Gridin 0bbe981ff0 [lc] KtLightClassForFacadeBase: simplify equals
^KT-53543
2022-08-29 11:51:41 +00:00
Dmitry Gridin 5be31e575c [lc] extract common code to KtLightClassForFacadeBase
^KT-53543
2022-08-29 11:51:41 +00:00
Dmitry Gridin acfbe30f7c [lc] drop redundant PsiManager argument from KtLightClassForFacadeBase
^KT-53543
2022-08-29 11:51:40 +00:00
Alexander Udalov 690322b203 Add flag -Xno-new-java-annotation-targets
Do not generate TYPE_USE/TYPE_PARAMETER Java annotation targets when
this flag is specified.

 #KT-53712 Fixed
2022-08-29 13:43:49 +02:00
Alexander Udalov a09fd45ade Do not generate TYPE_USE/TYPE_PARAMETER when compiling against JDK 1.6
#KT-53712
2022-08-29 13:43:32 +02:00
Yahor Berdnikau 0d2e9e7013 Change 'KotlinCompile.classpath' task input deprecation level to ERROR
^KT-51679 Fixed
2022-08-29 08:36:17 +00:00
nataliya.valtman 30dd848b43 Add custom_values_limit property to configure build scan report
#KT-53732 Fixed
2022-08-26 15:22:12 +00:00
nataliya.valtman 214586c8ee Fix repeating custom values in build scan. Refactor build statistic 2022-08-26 15:22:12 +00:00
Simon Ogorodnik 8f51c51eee FIR. Fix smart-cast expression unwrapping in plus with assign resolve 2022-08-26 14:57:06 +00:00
Sergey Bogolepov f946496979 [K/N] Deprecate obsolete GC handles. 2022-08-26 14:35:08 +00:00
Sergey Bogolepov 8010203ee5 [K/N] Update Throwable.kt documentation for the new MM 2022-08-26 14:35:08 +00:00
Sergey Bogolepov aaf24c897f [K/N] Update ObjectTransfer.kt documentation for the new MM 2022-08-26 14:35:08 +00:00
Sergey Bogolepov 122f3033f2 [K/N] Update Atomics.kt documentation for the new MM 2022-08-26 14:35:07 +00:00
Sergey Bogolepov 5d11e0d408 [K/N] Update Worker.kt documentation for the new MM 2022-08-26 14:35:06 +00:00
Sergey Bogolepov 2e22a5bd41 [K/N] Update annotations documentation for the new MM 2022-08-26 14:35:05 +00:00
Sergey Bogolepov abed99bdb7 [K/N] Update GC.kt documentation 2022-08-26 14:35:04 +00:00
Sebastian Sellmair 979ec77f53 [Gradle][MPP] Implement additional MultiplatformAndroidSourceSetLayoutV2DiagnosticsTest
KT-53709
2022-08-26 13:51:28 +00:00
Sebastian Sellmair 7df34011ec [Gradle][MPP] MultiplatformLayoutV2MultiplatformLayoutV1StyleSourceDirUsageChecker: Don't emit warning on ambiguous SourceSet
^KT-53709 Verification Pending
2022-08-26 13:51:28 +00:00
Sebastian Sellmair 10878e5967 [Gradle][MPP] Implement initial MultiplatformAndroidSourceSetLayoutV2DiagnosticsTest
... to cover KT-53709
2022-08-26 13:51:27 +00:00
Sebastian Sellmair d4bded85cd [Gradle][MPP] Increase .toString() readability for KotlinAndroidSourceSetLayoutChecker.Diagnostic
KT-53709
2022-08-26 13:51:27 +00:00
Sebastian Sellmair 5a447a823f [Gradle][MPP] Introduce DiagnosticReporter and Diagnostic APIs...
... for KotlinAndroidSourceSetLayoutChecker

KT-53709
2022-08-26 13:51:27 +00:00
Pavel Kunyavskiy 776b68f2fe [K/N] Move aws address for perf infra from code to environment 2022-08-26 09:52:48 +00:00
Artem Kobzar dbda8dcad1 [K/JS] test: add @file:JsExport tests for each @JsExport test + auto-generate TypeScript export tests. 2022-08-26 09:51:59 +00:00
Pavel Mikhailovskii d65775ca1a KT-47475 Do not copy InnerClass attribute for WhenMapping classes 2022-08-25 21:41:14 +00:00
Ilya Gorbunov 38099e11c3 Remove rangeUntil extensions that are now shadowed by members #KT-52933 2022-08-25 19:24:11 +00:00
Artem Kobzar e0a2400823 [K/JS] build: speedup tests rerunning with incremental typescript compilation for IrJsTyperScriptTests. 2022-08-25 18:02:56 +00:00
Anton Lakotka 564e3b064a [Gradle] Make target lifecycle task depend on classes compilation outputs
Not just on compile task

^KT-31459 Verification Pending
2022-08-25 14:56:35 +00:00
Anton Lakotka 7c083faea7 [Gradle] Test that task jvmMainClasses depends on compileJava
^KT-31459
2022-08-25 14:56:34 +00:00
Roman Golyshev 3ea78ae745 Revert some changes from 3042a80f
Too many places right now depend on `KotlinClassHeader.data` and
`KotlinClassHeader.strings` being saved even if empty,
and not being null

See KT-39492
2022-08-25 14:43:25 +00:00