Ilya Gorbunov
0d0cc9250b
Note about all() result on empty collections KT-54835
2022-11-25 14:09:09 +00:00
Ilya Gorbunov
77e03bb769
Minor fixes in math docs
2022-11-25 14:09:09 +00:00
Ilya Gorbunov
b8728c18cb
Fix Optional.asSequence docs
2022-11-25 14:09:09 +00:00
Zalim Bashorov
3ac90cf0e4
[CODEOWNERS] Add missed leading slash in the paths
2022-11-25 14:54:08 +01:00
Anna Kozlova
cd0b1c2fff
[LL] do not build fir in a non-cancelable section
...
find by classId might require indices which will throw PCE when not up-to-date
which is prohibited in non-cancelable section
2022-11-25 13:28:20 +00:00
Egor Kulikov
d585f068dd
[FIR] Make anonymous initializer lazy in RawFirBuilder
...
Fourth step for KT-52615
Merge-request: KT-MR-7798
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com >
2022-11-25 11:41:44 +00:00
Nikolay Lunyak
a454d42e65
[FIR] KT-54587: Report the missing diagnostics
...
^KT-54587 Fixed
Merge-request: KT-MR-7791
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com >
2022-11-25 10:19:58 +00:00
Abduqodiri Qurbonzoda
3f95b7e031
Clarify Map.getOrElse and MutableMap.getOrPut documentation #KT-21392
2022-11-25 09:37:37 +00:00
Nikolay Lunyak
7147b7d17b
[FIR] KT-55033: Split runTransaction into smaller functions
...
^KT-55033 Fixed
Merge-request: KT-MR-7779
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com >
2022-11-25 09:12:15 +00:00
Alexander Likhachev
bcc0414960
[Gradle, MPP] Cover KT-55134 by tests
2022-11-25 03:24:52 +01:00
Alexander Likhachev
51aa284dd1
[Gradle, MPP] Do not read tests state file when it's absent
...
#KT-55134 Fixed
2022-11-25 03:24:50 +01:00
vladislav.grechko
50e92d2238
Add null checks in constructors taking value class types
...
^KT-53492: Fixed
2022-11-24 20:12:05 +00:00
Vladislav Grechko
cd6e865fb3
Improve support of 'lateinit' modifier
...
- Allow 'lateinit' for inline classes which underlying type
is suitable for 'lateinit'
- K2: report all problems related to 'lateinit' modifier
^KT-55052: Fixed
2022-11-24 19:47:21 +00:00
vladislav.grechko
e0c13e5276
Fix addAll & putAll invocations on inline mutable collections
...
^KT-54950: Fixed
2022-11-24 19:27:42 +00:00
Dmitrii Gridin
8fc787d6df
[AA FIR] FirCallableSignature: rename 'sameSignature' to 'hasTheSameSignature'
...
^KT-54826
2022-11-24 18:32:46 +00:00
Dmitrii Gridin
c5fb8e7ceb
[AA FIR] FirCallableSignature: avoid redundant resolve for return type
...
^KT-54826
2022-11-24 18:32:46 +00:00
Dmitrii Gridin
3bc9299b3b
[FIR] SignatureEnhancement: drop redundant 'resolvePhase' for type parameter
...
^KT-54826
2022-11-24 18:32:45 +00:00
Dmitrii Gridin
fa7fe74c5f
[AA FIR] containing declaration: drop redundant fake elements
...
it is possible after f775778efa
^KT-54826
2022-11-24 18:32:45 +00:00
Dmitrii Gridin
e684607e9d
[AA] FirCallableSignature: add test on type alias
...
^KT-54826
2022-11-24 18:32:45 +00:00
Dmitrii Gridin
dfc59d5d07
[AA FIR] support symbol pointer restore for value parameter from delegated setter
...
^KT-54051
2022-11-24 18:32:44 +00:00
Dmitrii Gridin
55ca2d608b
[AA] AbstractSymbolTest: add check for parameters
...
^KT-54826
2022-11-24 18:32:44 +00:00
Dmitrii Gridin
1222d18b3d
[AA Fe10] fix StackOverflowError from KtFe10PsiClassInitializerSymbol
...
^KT-54826
2022-11-24 18:32:44 +00:00
Dmitrii Gridin
ec613e57ef
[FIR] add Enhancement wrapping for type parameters
...
^KT-55095 Fixed
2022-11-24 18:32:43 +00:00
Dmitrii Gridin
2155a23e4e
[AA FIR] implement FirCallableSignature to simplify search by signature
...
^KT-54826 Fixed
2022-11-24 18:32:43 +00:00
Dmitrii Gridin
48e2e5cc87
[AA] AbstractSymbolTest: add type parameters check
...
^KT-54826
2022-11-24 18:32:43 +00:00
Dmitrii Gridin
771823c9e7
[AA] AbstractSymbolTest: improve implicit checks
...
^KT-54826
2022-11-24 18:32:42 +00:00
Dmitrii Gridin
7e433a936d
[AA FIR] introduce FirCallableSignature to encapsulate IdSignature
...
^KT-54826
2022-11-24 18:32:42 +00:00
Dmitrii Gridin
b04c9f02b0
[AA] add test on data class members
...
^KT-54051
2022-11-24 18:32:42 +00:00
Dmitrii Gridin
edd60cd204
[AA] improve symbol pointers for property accessors
...
Fe10:
* supported default setter
* support default getter
* support parameter from default setter
Fir:
* support java synthetic properties
* support parameter from default setter
^KT-54051
2022-11-24 18:32:41 +00:00
Denis.Zharkov
ca12cfb90d
K2: Do not fix variables that has yet unprocessed constraints in forks
...
Otherwise, exception from org.jetbrains.kotlin.resolve.calls.inference.components.ConstraintInjector.TypeCheckerStateForConstraintInjector.fixedTypeVariable
might happen during forks resolution
The test data is extracted from intelliJ FP test
^KT-43296 Fixed
2022-11-24 17:29:30 +00:00
Denis.Zharkov
b73acd7a3a
K2: Apply constraints from forks at UNTIL_FIRST_LAMBDA completion phase
...
Otherwise, OVERLOAD_RESOLUTION_AMBIGUITY is reported for the calls to
the functions annotated as @OverloadResolutionByLambdaReturnType
^KT-43296 In Progress
2022-11-24 17:29:29 +00:00
Denis.Zharkov
10d63cc52a
K2: Postpone inference forks resolution until FULL completion
...
It helps to use expected type information when choosing the branch
even in the nested calls
^KT-43296 In Progress
2022-11-24 17:29:29 +00:00
Denis.Zharkov
c958c79362
Minor cleanup at ConstraintInjector.kt
2022-11-24 17:29:29 +00:00
Denis.Zharkov
02b2927921
Clarify naming around inference fork points
...
^KT-43296 In Progress
2022-11-24 17:29:28 +00:00
Denis.Zharkov
715a73c8fb
K2: Support inference case with a mix of smart-cast and expected type
...
The idea is that we should not fix (i.e. choose any of the fork branches)
on the stage of candidate processing before completion, but it's enough
just to check that current state can be converged to success.
And when completion starts, and we add expected type to the system,
we've got more information to choose the correct fork branch.
NB: The old `processForkConstraints` is being called just
at the beginning of the completion phase.
^KT-43296 In Progress
2022-11-24 17:29:28 +00:00
Sergej Jaskiewicz
77e197d46a
[IR] Add documentation comments for IdSignatures
2022-11-24 17:13:31 +00:00
Troels Bjerre Lund
1fbc478833
[K/N] Fix benchmark build
...
The bootstrap advance to 1.8.20-dev-2904 broke the K/N performance
benchmark build, when built in non-Java8 environments.
Co-authored-by: Troels Lund <troels@google.com >
Merge-request: KOTLIN-MR-576
Merged-by: Pavel Punegov <pavel.punegov@jetbrains.com >
2022-11-24 14:54:32 +00:00
Sebastian Sellmair
39c97aa804
[Gradle][Native] Bump kotlin native version to 1.8.20-dev-2913
...
^KT-55071 Verification Pending
2022-11-24 14:42:11 +00:00
Sebastian Sellmair
7870c82221
[Gradle][Native] K2NativeCompilerArguments.refinesPaths: Use Array<String> instead of String
...
^KT-55071 Verification Pending
2022-11-24 14:42:11 +00:00
Sebastian Sellmair
5818187e57
[Gradle][Native] Implement KotlinNativeCompileRefinesPathsTest
...
^KT-55071 Verification Pending
2022-11-24 14:42:11 +00:00
Sebastian Sellmair
4c62b3b46b
[Gradle][Native] Implement "kt-55071-compileSharedNative-withDefaultParameters" IT
...
^KT-55071 Verification Pending
2022-11-24 14:42:10 +00:00
Sebastian Sellmair
752ff04245
[Gradle][Native] Setup refinesPaths as expectedBy module dependencies
...
Previously, dependsOn dependencies were just passed as friend modules
to shared native compilations.
^KT-55071 Verification Pending
2022-11-24 14:42:10 +00:00
Pavel Kunyavskiy
0be789e9e3
[K/N] Add API for garbage collection statistics
...
^KT-53064
2022-11-24 13:14:37 +00:00
Anna Kozlova
cdf6ffa167
[AA] do not try to build KtSymbol for FirErrorFunction
...
^KTIJ-23669
FirErrorFunctions are created for unknown labels
when the code in return statements is not complete yet.
Such labels cannot be resolved, and no symbols should be created for them
2022-11-24 13:09:29 +00:00
Nikolay Krasko
03d3885eff
Instruction for building 1.8.0-Beta release
2022-11-24 12:55:06 +00:00
Nikolay Krasko
e02395fa61
Instruction for building 1.7.21 release
2022-11-24 12:55:05 +00:00
Ivan Kylchik
a1477983ba
Properly handle vararg interpretation for classic frontend
...
#KT-55108 Fixed
2022-11-24 11:07:07 +00:00
Anna Kozlova
98cb25605a
[LL] testdata for KTIJ-21468
...
ensure that for each destructuring declaration entry exists FirProperty
2022-11-24 10:20:38 +00:00
Denis.Zharkov
f7d8fd54ca
K2: Fix deserialization of flexible type based on type parameter
...
It's anyway safe to use avoidComprehensiveCheck = true because
during deserialization we're sure that we need DNN type because
it's been serialized as such.
2022-11-24 09:39:58 +00:00
nataliya.valtman
ff340505ec
Add git branch to http statistic
2022-11-24 08:03:13 +00:00