Denis.Zharkov
47d74a16f2
NI: Get rid of redundant asPostponedArgumentsAnalyzerContext calls
2022-01-11 20:45:53 +03:00
Hung Nguyen
8d298bd25c
Fixed possible hanging of metrics collection in KGP
...
#KT-50719 Fixed
2022-01-11 19:15:42 +03:00
Victor Petukhov
455b3143e7
[FE 1.0] Introduce builder inference stub types checker which may report more precise and clear errors due to resolution ambiguity
...
^KT-49828 Fixed
2022-01-11 18:34:47 +03:00
Victor Petukhov
dcc42d66c3
[FE 1.0] Fix formatting in StubTypesBasedInferenceSession
2022-01-11 18:34:46 +03:00
Victor Petukhov
4dc9b291e5
[FE 1.0] Store builder inference session in the corresponding lambda argument
2022-01-11 18:34:46 +03:00
Victor Petukhov
74f294d849
[FE 1.0] Store constraint system in call resolution result instead of constraint storage
2022-01-11 18:34:45 +03:00
Victor Petukhov
cedd98148c
[FE 1.0] Rename the remaining coroutine inference stuff into builder inference
2022-01-11 18:34:45 +03:00
Victor Petukhov
27ed4a7dc2
[FE 1.0] Rename DelegatedPropertyInferenceSession to DelegateInferenceSession
2022-01-11 18:34:44 +03:00
Victor Petukhov
ab207ca58f
[FE 1.0] Rename ManyCandidatesResolver to StubTypesBasedInferenceSession
2022-01-11 18:34:43 +03:00
Victor Petukhov
c1d3f7e5b4
[FE 1.0] Rename ambiguity's parameter from descriptors to resolvedCalls
2022-01-11 18:34:42 +03:00
Victor Petukhov
8e2b90b5db
[FE 1.0] Don't report CAST_NEVER_SUCCEEDS on stub types
...
^KT-49829 Fixed
2022-01-11 18:34:41 +03:00
Victor Petukhov
37d163d417
[FE 1.0] Don't lose diagnostics during lambda analysis at the overload resolution by return type stage
...
^KT-49658 Fixed
2022-01-11 18:07:05 +03:00
vmishenev
7820b268fb
KT-50111 Add a new analysis flag eagerResolveOfLightClasses
2022-01-11 17:33:47 +03:00
Roman Golyshev
5964d8c566
KTIJ-20618 FIR IDE: Enforce resolved type bounds in ConeTypeContext.kt
...
When lazy resolve is involved, type bounds can be in an unresolved
state (e.g. `FirUserTypeRef` instead of `FirResolvedTypeRef`). To
enforce the resolve, we use `resolvedTypeBounds` where it might be
important
^KTIJ-20618 Fixed
2022-01-11 13:56:17 +00:00
Denis.Zharkov
a63351f5d1
FIR: Simplify ConeTypeContext.captureArguments
2022-01-11 16:27:06 +03:00
Denis.Zharkov
9be4f818f4
FIR: Weaken some UPPER_BOUND_VIOLATED restrictions
...
See test data at starProjectionInsteadOutCaptured.kt
^KT-49412 Fixed
^KT-50230 Relates
^KT-48044 Fixed
2022-01-11 16:27:06 +03:00
Denis.Zharkov
814f4803b7
FIR: Refactor extracting type arguments from FirTypeRef
...
Extract them all instead of re-iterating for each argument
2022-01-11 16:27:05 +03:00
Denis.Zharkov
1a9c389b0e
FIR: Refactor ConeSubstitutorByMap
...
Add explicit equals and cached hashCode instead of implicit ones from data class
2022-01-11 16:27:04 +03:00
Denis.Zharkov
b193e708d3
FIR: Refactor checkUpperBoundViolated
...
There just should be a different facades for cases
A<T1, T2> and foo<T1, T2>()
Test data has changed for type alias constructors since previously,
it was working by mistake because of assumption that type alias arguments
are linearly mapped to the type parameters of the corresponding constructors
^KT-50703 Open
2022-01-11 16:27:03 +03:00
Svyatoslav Scherbina
c2f03b4d28
Deprecate freezing in kotlin-native/NEW_MM.md
2022-01-11 12:21:55 +00:00
Alexander Shabalin
65fdfffeb4
[K/N] Make GC.collect wait for finalizers being run
...
^KT-50713
Merge-request: KT-MR-5404
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2022-01-11 11:39:22 +00:00
Ilya Kirillov
c80d9d8dfb
Docs: introduce some basic docs and contribution guides for Analysis API
2022-01-11 14:33:24 +03:00
sebastian.sellmair
6c55e8cc58
[Gradle] GradleKotlinCompilerRunner: Be lenient to isolated classpaths
...
^KT-50592
2022-01-11 08:34:04 +00:00
sebastian.sellmair
56fa2655b7
[Gradle] Fixup testDetectingDifferentClassLoaders in respect of ^KT-50592 and KT-50598
2022-01-11 08:34:03 +00:00
sebastian.sellmair
b1bb68c10f
[Gradle] testProject/AndroidProject: Ensure non-isolated classpaths
...
^KT-50592
2022-01-11 08:34:03 +00:00
sebastian.sellmair
0b981a54bc
[Gradle] NativeDistributionCommonizerTask: Use safe project extension
...
... to access `KotlinMultiplatformExtension` on subprojects.
This will prevent strange ClassCastExceptions and show users
a proper error message when the operation fails because of isolated
classpaths.
This will also be lenient if the isoalted Kotlin plugin is not
a multiplatform plugin.
^KT-50592 Verification Pending
2022-01-11 08:34:02 +00:00
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