Commit Graph

88792 Commits

Author SHA1 Message Date
sebastian.sellmair a355fefd05 [Gradle] KotlinProjectExtension: use castIsolatedKotlinPluginClassLoaderAware
Using this special cast function for accessing any Kotlin extension
will ensure that an isolated classpath will be reported to the user
when the casting fails because of it.

^KT-50592 WIP
2022-01-11 08:34:02 +00:00
sebastian.sellmair 32177b2cd2 [Gradle] Implement commonizer test with isolated jvm subproject
^KT-50592
2022-01-11 08:34:02 +00:00
Alexander Udalov 8b57675002 Revert "Remove obsolete check for language version and IR backends"
This check is no longer obsolete since language version 1.3 support is
restored for Kotlin/JVM, but JS and Native never supported LV 1.3.

This is a partial revert of 0213c25c9b,
without the diagnostic in K2JVMCompilerArguments (which is not needed
since the earliest supported LV is 1.3).

 #KT-50695 Fixed
2022-01-10 21:15:51 +01:00
pyos 8314b7d3c9 IR/Android: initialize the findViewById cache before super()
In general, calling open methods in open class constructors is unsafe
because their overrides will see an uninitialized instance. This change
makes it at least possible to use the view cache in such cases.

^KT-50627 Fixed
2022-01-10 21:08:43 +01:00
Jinseong Jeon 08d062dcf9 Remove unused/deprecated ReadWriteAccess util
The usage in KtFirCallResolver for resolving compound accessor calls is
fully rewritten recently, and this util is no longer used.

This is partial revert of cd4a08cb18
2022-01-10 19:54:25 +03:00
Mads Ager ea86d52faf [Analysis API] Avoid exception from getImportAlias. 2022-01-10 19:50:15 +03:00
Elena Lepilkina d907c0ac4f [K/N][perf] Update npm packages versions 2022-01-10 12:36:57 +00:00
Elena Lepilkina 745c5e2b05 [K/N][perf] Update pattern for release branches 2022-01-10 12:36:57 +00:00
dkhalanskyjb ac8553cfd4 kotlin-native/NEW_MM.md: mention the new release of the coroutines 2022-01-10 13:38:01 +03:00
Pavel Punegov 276dcfb4a7 [K/N][test] Remove tests from excludes. Tests were excluded separately 2022-01-10 09:01:06 +00:00
Pavel Punegov 9df7d39536 [K/N][test] Ignore tests that fail due to the ^KT-50555 2022-01-10 09:01:06 +00:00
Pavel Punegov c4619b4871 [K/N][test] Ignore tests that fail due to the init order
These test run correctly in the new MM
2022-01-10 09:01:06 +00:00
Pavel Punegov 8744e3db74 [K/N][test] Ignore test ^KT-49422 2022-01-10 09:01:05 +00:00
Pavel Punegov 255a254619 [K/N][test] Ignore test ^KT-50289 2022-01-10 09:01:05 +00:00
Pavel Punegov 0fadf14502 [K/N][test] Ignore test ^KT-50399 2022-01-10 09:01:04 +00:00
Pavel Punegov f1fcb56348 [K/N][test] Ignore test ^KT-33091 2022-01-10 09:01:04 +00:00
Pavel Punegov da64870e89 [K/N][test] Ignore test ^KT-40137 2022-01-10 09:01:04 +00:00
Pavel Punegov 7d57819304 [K/N][test] Ignore test ^KT-41901 2022-01-10 09:01:03 +00:00
Pavel Punegov c42c918e66 [K/N][test] Ignore test ^KT-42723
ArrayList is a final type in Native
2022-01-10 09:01:03 +00:00
Pavel Punegov 94d7a4fce3 [K/N][test] Ignore test ^KT-42020 2022-01-10 09:01:02 +00:00
Pavel Punegov 8957e4e0b2 [K/N][test] Ignore test ^KT-42723 2022-01-10 09:01:02 +00:00
Pavel Punegov 5d50e02d6b [K/N][test] Ignore test ^KT-36880 2022-01-10 09:01:02 +00:00
Jinseong Jeon 62fb8446dc FIR LC: remove unnecessary type parameter shift for inner class
U/LC don't do anything like that, and it rather skips necessary type
paraemters to render.
2022-01-10 12:00:10 +03:00
Anton Lakotka 49ba3d239c [Commonizer] Enable Optimistic Number Commonization by default
Initially it was restricted to work with type aliases only KT-48455
see test `test property with aliased number return type`

This limitation should be lifted now in order to fix KT-48568

^KT-48568 Verification Pending
2022-01-10 08:46:54 +00:00
Andrey Uskov e37ab3dfda Fix calculation of Kotlin Daemon alive timeout
#KT-48779 Fixed
2022-01-10 11:29:26 +03:00
Irene Dea 76b7cb3193 Fix hasCustomAttributes 2022-01-08 15:26:44 +03:00
Irene Dea 13bff10567 Fix union related failures. 2022-01-08 15:26:44 +03:00
Irene Dea a98e2c4e03 Fix failed tests 2022-01-08 15:26:44 +03:00
Irene Dea 3c4989b672 Address JDK8/JDK6 issues with computeIfAbsent 2022-01-08 15:26:44 +03:00
Irene Dea 374d287d08 Reorganize TypeAttributeTranslatorExtension 2022-01-08 15:26:38 +03:00
Irene Dea 19bfc43bee Fixes and refactors 2022-01-08 15:25:07 +03:00
Irene Dea 2e2e70fede Translate attributes in TypeDeserializer 2022-01-08 15:25:07 +03:00
Irene Dea d444978ebf Add support for attribute serialization. 2022-01-08 15:25:07 +03:00
Irene Dea f2a351367c Implement unionTypeAttributes and replaceTypeAttributes in ConeInferenceContext 2022-01-08 15:25:07 +03:00
Irene Dea 56d817b49f Union type attributes for common super type calculation 2022-01-08 15:25:07 +03:00
Irene Dea db471ca61e Intersect attributes for intersection types 2022-01-08 15:25:07 +03:00
Irene Dea fad3c1f2f6 Add initial type attributes infra 2022-01-08 15:25:06 +03:00
Irene Dea 62bde2d686 Move AttributeArray to compiler.common so frontend extension can share it 2022-01-08 15:25:06 +03:00
Igor Yakovlev 82455c849d [WASM] Lazy properties initialization 2022-01-05 13:12:32 +01:00
Igor Yakovlev e58d4163ad [WASM] Add std methods for collections 2022-01-05 13:12:32 +01:00
Igor Yakovlev c9a92d71ae [WASM] Add kotlin.math tests 2022-01-05 13:12:32 +01:00
Igor Yakovlev adee0f1cb0 [WASM] Add kotlin.math implementation 2022-01-05 13:12:32 +01:00
Ilya Kirillov 5e42be9849 Analysis API: fix redundant caret symbol in testdata 2022-01-02 21:56:54 +03:00
Ilya Kirillov 11c50a48ba Analysis API: add isSubclassOf tests 2022-01-02 21:56:53 +03:00
Ilya Kirillov e6fc434489 Analysis LC: fix isSubClass check for local LC 2022-01-02 21:56:53 +03:00
Ilya Kirillov b81316738e Analysis FIR: fix isSubClass check for local classes 2022-01-02 21:56:52 +03:00
Ilya Kirillov 1d6d67d0a1 FIR IDE: regenerate tests 2022-01-02 21:56:51 +03:00
Ilya Kirillov 5c22a03e82 FIR IDE: simplify test generation dsl 2022-01-02 21:56:51 +03:00
Ilya Kirillov b916c5116a Analysis LC: add missing text range for LC 2022-01-02 21:56:50 +03:00
Ilya Kirillov af789346f5 Analysis API: fix getKtExpressionType for array assignment target 2022-01-02 21:56:49 +03:00