Mikhail Glukhikh
e924ee3150
FIR: add test with minOf ambiguity
2021-08-05 19:24:02 +03:00
sebastian.sellmair
ee0b64cb29
[Gradle] BuildKotlinToolingMetadataTask: Ensure clean output directory
...
This is done to prevent unwanted files from also being located
in the output directory. If the task is executed it is expected
that the output directory only contains this one file.
This is necessary, since *everything* located in the output directory
will potentially be bundled into release apks.
^KT-48019
2021-08-05 16:00:08 +00:00
sebastian.sellmair
e897c60ef1
[Gradle] [Android] Only bundle kotlin tooling metadata for non debuggable variants
...
^KT-48019
2021-08-05 16:00:08 +00:00
sebastian.sellmair
79565da904
[Gradle] [Android] Implement 'test KotlinToolingMetadataArtifact is bundled into apk'
...
Covers ^KT-48019
2021-08-05 16:00:08 +00:00
sebastian.sellmair
82a70a205b
[Gradle] [Android] Include kotlin-tooling-metadata.json in apk artifact
...
^KT-48019 Verification Pending
2021-08-05 16:00:07 +00:00
Svyatoslav Scherbina
a22ef02e47
Native: disable compiler caches for experimental memory model
...
Experimental MM doesn't support compiler caches yet.
2021-08-05 15:22:00 +00:00
Svyatoslav Scherbina
4abbac1ff1
Native: improve code that handles unsupported compiler caches
2021-08-05 15:22:00 +00:00
Dmitry Petrov
02d8c7527e
JVM_IR more aggressive if-null expressions fusion
...
Assume that changing a return type from T to T?
is not a binary-compatible change.
2021-08-05 17:51:49 +03:00
Dmitriy Novozhilov
6f0bf766f2
[Test] Add single service for checking that codegen test is ingored
...
This approach is better than manual check for `IGNORE_BACKEND` directive
because it also tracks `IGNORE_BACKEND_FIR` directive and reduces
duplicating code
2021-08-05 16:59:00 +03:00
Dmitriy Novozhilov
c8386ad1c7
[Test] Properly handle output from separate jvm instance in box tests
2021-08-05 16:58:59 +03:00
Dmitriy Novozhilov
13b5f87f3a
[Build] Add gradle properties for different sets of modularized testdata
2021-08-05 15:22:42 +03:00
Dmitriy Novozhilov
d7368c341e
[Build] Update kotlin-build-gradle-plugin version to 0.0.32
2021-08-05 15:22:41 +03:00
Dmitriy Novozhilov
adbeda12a6
[Build] Remove pathToKotlinModularizedTestData from kotlin-build-gradle-plugin
2021-08-05 15:22:40 +03:00
Dmitriy Novozhilov
79ff02fd97
[Build] Add documentation for some useful properties in gradle.properties
2021-08-05 15:22:39 +03:00
Alexander Udalov
0925e1b497
Enable JVM IR for stdlib/reflect/test libraries
...
Changes in Gradle integration tests are needed because:
- in new-mpp-android, kotlin-stdlib-jdk8 is used, and JVM IR generates
JDK 8-specific bytecode (invokedynamic). D8 needs to be configured to
desugar it with source/target versions set to 1.8, otherwise it
reports an error.
- in AndroidExtensionsManyVariants and AndroidIcepickProject, D8 fails
with assertions enabled if AGP < 4.0.0 is used because of
https://issuetracker.google.com/issues/148661132 . The tests which use
old AGP versions are probably not relevant anymore anyway.
Changes in kotlin-stdlib-runtime-merged.txt are caused by a slightly
different generation scheme of collection subclasses in JVM IR, and are
harmless.
(Previous attempt was at 15e978dbd311c2ba78ec32b394c21acde9811ccb.)
2021-08-05 12:36:35 +02:00
Abduqodiri Qurbonzoda
29ac9b33ca
Add Duration.parse/parseIsoString samples
2021-08-05 10:32:33 +00:00
Abduqodiri Qurbonzoda
5004735366
Add Regex matchAt samples
2021-08-05 10:32:32 +00:00
Abduqodiri Qurbonzoda
d7b10f31b4
Add Regex splitToSequence samples
2021-08-05 10:32:32 +00:00
Sergey Igushkin
e691de6e4c
Cleanup configuration to fix corner cases in HMPP dependency resolution
...
* Set the local-to-project attribute on the compatibility metadata
variant's "elements" configuration; not setting this attribute could
lead to ambiguity because of diverging sets of non-matched attributes
* Don't create the `runtimeOnly` configuration for the Kotlin/Native
targets (or potentially other targets with no runtime dependencies),
as the K/N target configurator is not aware of the configuration and
would not set the configuration up properly
* Don't create the legacy `*Default` configurations, as they basically
duplicate the `*ApiElements` / `*RuntimeElements` configurations but
don't have all the right attributes, so they are reckoned compatible
with some consumers unnecessarily and pollute the dependency
resolution error reports.
Issue #KT-47506
2021-08-05 10:03:13 +00:00
Roman Golyshev
126f6eff28
Add jvm-run-configurations module to the settings.gradle
2021-08-04 22:20:00 +03:00
Dmitriy Novozhilov
8578f0beea
[FE 1.0] Check for type mismatch for empty when statements
...
^KT-47922 Fixed
2021-08-04 19:33:45 +03:00
Dmitriy Novozhilov
60195114c1
[FIR] Properly create class scopes while resolving of annotations arguments
2021-08-04 18:23:06 +03:00
Sergey Bogolepov
4c58954967
[K/N] Don't perform --gc-sections when producing DLL
...
Due to a bug, lld-link might be a bit too aggressive.
Let's disable --gc-sections for DLL until we update LLD.
Patches:
https://reviews.llvm.org/D101522
https://reviews.llvm.org/D101615
https://reviews.llvm.org/D102138
2021-08-04 14:50:58 +00:00
Victor Petukhov
13cb3c138a
Update FE tests
2021-08-04 17:36:53 +03:00
Victor Petukhov
b6cb393796
Check postponed type variables to determine suitability for builder inference (during shouldRunCompletion check) more careful
...
^KT-42139 Fixed
2021-08-04 17:36:53 +03:00
Victor Petukhov
cf3bd016be
Always complete calls not related to the builder inference
...
^KT-47830 Fixed
2021-08-04 17:36:52 +03:00
Victor Petukhov
dc8dbad0bc
Add compiler X-flag to enable self upper bound type inference
...
^KT-48026 Fixed
2021-08-04 17:36:52 +03:00
Victor Petukhov
7567597be6
Java nullability checker: take type arguments' types from resolution atom if possible, instead of from resolved call directly
...
^KT-47833 Fixed
2021-08-04 17:36:51 +03:00
Victor Petukhov
93f9d9dacd
Check if the intersecting types aren't empty during finding the result type for variable fixation
...
^KT-47941 Fixed
2021-08-04 17:36:50 +03:00
Victor Petukhov
3eaa452f9e
Take into account SimpleTypeWithEnhancement and subtyping related places
...
^KT-47854 Fixed
2021-08-04 17:36:50 +03:00
Andrey Zinovyev
6ab632f6ad
[FIR] Fix mutable context usage in inline diagnostics
...
Also some minor fixes
2021-08-04 17:33:15 +03:00
Andrey Zinovyev
c46a393a19
[FIR] Add REDUNDANT_INLINE_SUSPEND_FUNCTION_TYPE diagnostic
2021-08-04 17:33:15 +03:00
Andrey Zinovyev
e56deb4525
[FIR] Add INLINE_SUSPEND_FUNCTION_TYPE_UNSUPPORTED diagnostic
2021-08-04 17:33:14 +03:00
Andrey Zinovyev
b2f3485d7c
[FIR] Add ILLEGAL_INLINE_PARAMETER_MODIFIER diagnostic
2021-08-04 17:33:14 +03:00
Andrey Zinovyev
dabc983f6a
[FIR] Add INVALID_DEFAULT_FUNCTIONAL_PARAMETER_FOR_INLINE diagnostic
2021-08-04 17:33:13 +03:00
Andrey Zinovyev
efce3fc2e0
[FIR] Add NON_INTERNAL_PUBLISHED_API diagnostic
2021-08-04 17:33:12 +03:00
Andrey Zinovyev
46d1b63f70
[FIR] Add INLINE_PROPERTY_WITH_BACKING_FIELD diagnostic
2021-08-04 17:33:11 +03:00
Andrey Zinovyev
38cecf8b12
[FIR] Add REIFIED_TYPE_PARAMETER_IN_OVERRIDE diagnostic
2021-08-04 17:33:10 +03:00
Andrey Zinovyev
29dbaa4ae1
[FIR] Add OVERRIDE_BY_INLINE diagnostic
2021-08-04 17:33:10 +03:00
Andrey Zinovyev
d8b7b7b2dc
[FIR] Add DECLARATION_CANT_BE_INLINED diagnostic
2021-08-04 17:33:09 +03:00
Andrey Zinovyev
4e06814bc5
[FIR] Add NULLABLE_INLINE_PARAMETER diagnostic
2021-08-04 17:33:08 +03:00
Andrey Zinovyev
015c2d1875
[FIR] Add NOTHING_TO_INLINE diagnostic
2021-08-04 17:33:08 +03:00
Andrey Zinovyev
28344c8530
[FIR] Add NOT_YET_SUPPORTED_IN_INLINE diagnostic
2021-08-04 17:33:07 +03:00
Denis.Zharkov
bc75a21852
Optimize Strings representation at FastJarHandler
2021-08-04 17:04:50 +03:00
Denis.Zharkov
4e66fd29e0
Minor. Rename properties in FastJarVirtualFile
2021-08-04 17:04:49 +03:00
Denis.Zharkov
6cd3d84e74
Optimize parseCentralDirectory
...
Avoid creating redundant IntRange
2021-08-04 17:04:47 +03:00
Denis.Zharkov
f81f28569f
Get rid of last map in FastJarHandler
2021-08-04 17:04:44 +03:00
Igor Laevsky
d46f7738c6
WASM: NFC. Add reference to the asmscript license
2021-08-04 16:23:39 +03:00
Igor Laevsky
d8569b6a03
WASM: NFC. Remove dead code
2021-08-04 16:23:38 +03:00
Igor Laevsky
af865544ff
WASM: Implement string hashcode
2021-08-04 16:23:38 +03:00