Commit Graph

91959 Commits

Author SHA1 Message Date
Igor Laevsky 81eae94821 [Wasm] Disable range checks for arrays. Add cli argument to enable them back. 2022-04-05 18:00:32 +00:00
Igor Laevsky 2c9bfe901d [Wasm] Pull array range checks into single function 2022-04-05 18:00:31 +00:00
Ivan Kylchik 6f448820f0 Add new internal annotation IntrinsicConstEvaluation 2022-04-05 17:20:38 +00:00
Ivan Kochurkin 46dd6520af Fix typo 2022-04-05 15:50:48 +00:00
Ivan Kochurkin 3566b7fe02 [FIR] Fix smartcast after elvis with escaping lambda, ^KT-44510 Fixed 2022-04-05 15:50:48 +00:00
Ivan Kochurkin c7122c1492 [FIR] Fix break/continue in try-finally in loop, ^KT-51759 2022-04-05 15:50:47 +00:00
Ivan Kochurkin e9b9322672 [FIR] Track inc and dec operator calls in preliminary loop visitor, ^KT-44879 Fixed 2022-04-05 15:50:46 +00:00
Ivan Kochurkin fc77d0d26b [FIR] Fix false positive errors for members with explicit API mode, ^KT-51758 Fixed 2022-04-05 15:50:45 +00:00
Ivan Kochurkin 1eefca4259 [FIR] Fix dependencies duplication 2022-04-05 15:50:44 +00:00
Ivan Kochurkin 48dbb9ceb9 [FIR] Fix resolving of refs with implicit this in lambdas in smartcasts 2022-04-05 15:50:43 +00:00
Ivan Kochurkin c6f52893fb [FIR] Fix inconsistent RETURN_TYPE_MISMATCH and TYPE_MISMATCH reporting on functions and properties
^KT-51203 Fixed
2022-04-05 15:50:43 +00:00
Ivan Kochurkin 4617615fd9 [FIR] Fix false-positive INAPPLICABLE_LATEINIT_MODIFIER for property with unresolved type
^KT-51624 Fixed
2022-04-05 15:50:42 +00:00
Ilya Goncharov e2766e402c rra/ilgonmic/more-tests-for-internal-export
[JS IR] Add single file test

[JS IR] isExportedMember considers only public API

[JS IR] Add case with non default accessor

Merge-request: KT-MR-6008
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>

^KT-50504 fixed
2022-04-05 15:45:41 +00:00
Ilya Goncharov 002d62de89 rra/ilgonmic/revert-signatures-changes
[JS IR] Fix line number test

[JS IR] Ignore isInstance repl test

[JS IR] Ignore isInstance repl test

[JS IR] Add test with unsafe variance

Revert "[JS IR] Optimize away upcasts"

This reverts commit 8149189585.

Get rid of duplicated signatures

Revert "[JS IR] Consider erasing type parameters in return type in js signatures"

This reverts commit 6adcbe081e.

Revert "rra/ilgonmic/exported-bridges-2 [JS IR] Use js name for signature"

This reverts commit 00289d35

[JS IR] Leave as is

[JS IR] Add test with overloading by generic

[JS IR] Add test from master

[JS IR] Add tests from master

Merge-request: KT-MR-5987
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>

^KT-51700 fixed
^KT-51523 fixed
^KT-51685 fixed
2022-04-05 15:35:12 +00:00
Abduqodiri Qurbonzoda 1cb5cab28f [K/N and WASM] Fix ESCAPE and COMMENTS modes 2022-04-05 15:21:31 +00:00
Abduqodiri Qurbonzoda 7b46738796 [K/N and WASM] Throw on unknown inline flag modifier 2022-04-05 15:21:30 +00:00
Abduqodiri Qurbonzoda 9593069cb3 [K/N and WASM] Throw on duplicate group name 2022-04-05 15:21:30 +00:00
Abduqodiri Qurbonzoda 187faa121e Test backreference to group with index zero 2022-04-05 15:21:29 +00:00
Abduqodiri Qurbonzoda 74121b26c0 Test octal literal in regex 2022-04-05 15:21:28 +00:00
Abduqodiri Qurbonzoda 46408ffd9d Fix tests by adjusting to platform behavior 2022-04-05 15:21:27 +00:00
Abduqodiri Qurbonzoda d500d03baa [K/N and WASM] Support back references to groups with multi-digit index #KT-51776 2022-04-05 15:21:27 +00:00
Abduqodiri Qurbonzoda 9c4c1ed557 [K/N and WASM] Implement named capturing group in Regexes #KT-41890 2022-04-05 15:21:26 +00:00
Abduqodiri Qurbonzoda c3f5d03b36 [JS] Support named capture groups in Regex #KT-51775 2022-04-05 15:21:25 +00:00
Vsevolod Tolstopyatov cf79752c14 Stabilize deepRecursiveFunction and DeepRecursiveScope
#KT-51848
2022-04-05 12:49:35 +00:00
Margarita Bobova 728f2bdbea Add Changelog for 1.6.20 2022-04-05 14:46:43 +03:00
Dmitry Timofeev 4e784eeb33 Create INTERSECTION_TYPE stubs for definitely non-nullable types
^KTIJ-20802 Fixed
2022-04-05 10:48:12 +00:00
Alexander Udalov df86290083 Add another test for KT-49715 and fix JS IR behavior
#KT-49715
 #KT-51798 Fixed
2022-04-05 01:06:57 +02:00
Xin Wang 24105139ea Handle methods descriptor clash in data class
1. Extension functions declared in data classes are generated earlier by `generateMembersDeclaredInClassBody`
2. Extension functions fake override from parent class are generated earlier by `generateFakeOverrideMemberDeclarations`

So it is safe to filter out extension functions inside `generateAdditionalMembersForDataClass`

 #KT-49715
 #KT-51798
2022-04-05 01:06:57 +02:00
Ilya Gorbunov 4c461d7864 Add min/max test generator and generated tests
Temporarily exclude these tests from kotlin-stdlib-wasm testing due to KT-51647
2022-04-04 22:33:25 +00:00
Ilya Gorbunov 60fbb0d171 Reintroduce min/max operations for non-empty collections KT-50146 2022-04-04 22:33:24 +00:00
Ilya Gorbunov 4709e2c274 stdlib-gen: simpify copyright notice reading 2022-04-04 22:33:23 +00:00
Ilya Gorbunov d225399241 Fix test fq names in stdlib JS API dump run configuration 2022-04-04 22:33:22 +00:00
Abduqodiri Qurbonzoda 42c9a27b8a Specialize Progression first/last/OrNull functions #KT-42178 2022-04-04 22:27:49 +00:00
Yahor Berdnikau cca2680c7f Update Gradle integration tests
Substituting plugin via 'pluginManagement.eachPlugin.useModule' does not
work with plugin variants.

^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau 617e25b8a3 Update in GenerateGradleOptions paths to project sources
^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau 5d11c5fa56 Add attributes to the kotlin subplugins classpath.
This removes selection ambiguity and provides Gradle multi-variant
support for 3rd party compile plugins wrapped in Gradle.

^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau b376146744 Update build setup for Gradle integration tests
^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau 35c6f709db Update gradle plugin dependencies in 'kotlin-gradle-plugin-idea'
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 4839b2f193 Update 'kotlin-gradle-subplugin-example' setup
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 792d44e617 Migrate 'kotlin-serialization' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau d9ddcd991b Migrate 'kotlin-gradle-plugin' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau f25b00daa3 Migrate 'kotlin-lombok' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 1ddd90bba1 Migrate 'android-test-fixes' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau e875a0a311 Migrate 'kotlin-sam-with-receiver' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 21a12b9a58 Migrate 'kotlin-noarg' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 2c7992596c Remove 'kotlin-gradle-plugin-dsl-codegen' from Gradle dependencies
Gradle dependencies configuration doesn't make sense in this module.

^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau b600a52a57 Migrate kotlin-gradle-build-metrics module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau e4dcc9344a Migrate kotlin-gradle-plugin-model module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau b2e3c5c557 Migrate kotlin-gradle-statistics module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau 8d69675e7b Migrate kotlin-allopen module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00