Nikita Bobko
0d67ae7b23
[TEST] Add regression test for KT-59805 ACTUAL_MISSING for constructor
2023-12-06 18:35:39 +00:00
Tomas Husak
d7eb67a436
[FIR] KT-59368 context receiver subtyping checker
2023-12-06 17:34:05 +00:00
Ivan Kochurkin
3d77d09260
[FIR] Fix false positive errors on Throws::class, Throws()
...
^KT-63794 Fixed
2023-12-06 16:39:51 +00:00
Ivan Kochurkin
8dcd4efbc1
[FIR] Get rid of not needed set allocation in getSingleVisibleClassifier
2023-12-06 16:39:51 +00:00
Troels Bjerre Lund
4f77434ea5
[K/N] Remove LLVM coverage
...
The -Xcoverage feature has not worked and has been disabled for a while.
This fix removes it, and all of its uses.
Co-authored-by: Troels Lund <troels@google.com >
Merge-request: KOTLIN-MR-821
Merged-by: Alexander Shabalin <alexander.shabalin@jetbrains.com >
2023-12-06 14:07:16 +00:00
Dmitrii Gridin
e0c931f69d
[LL FIR] rebind returnTarget for delegate accessors during psi2fir
...
It is safe to rebind returnTarget to the original declaration during
psi2fir as it doesn't affect the resolution. We already have the same
logic for regular functions/property accessors.
This change is crucial in the context of parallel implicit type
resolution because it affects CFG builder in a bad way in the case
of on-air resolution
^KT-56551
2023-12-06 12:59:55 +00:00
Dmitrii Gridin
c59ea8bd2a
[FIR] use delegate expression as source for FirWrappedDelegateExpressionBuilder
...
The previous implementation was not stable because `extractDelegateExpression`
has a source depending on extractDelegateExpression, and it led to
inconsistency in lazy and regular mode in the case of labeled expression
```kotlin
val a: String by l@ MyProperty()
```
In lazy mode the source is KtLabeledExpression, but in the regular one
is KtCallExpression
^KT-56551
2023-12-06 12:59:55 +00:00
Ivan Kylchik
1fcd277538
[FIR] Expand divisionByZero.kt test case
...
Added two new cases:
1. division where denominator is `val` property
with zero initializer;
2. division where denominator is `const val` property
with zero initializer.
Both such cases have different sets of diagnostics compared to K1.
#KT-59894 Fixed
2023-12-06 10:54:21 +00:00
Ivan Kylchik
5dbe81fd7f
[FIR] Always expand a type before checking it in FirConstChecks
...
The issue appeared when we analyzed some typealias.
1. The typealias itself could be valid, but it could point
to an invalid type.
2. The typealias could point, for example, to an unsigned
type that must be handled in a special way
#KT-59894
2023-12-06 10:54:21 +00:00
Ilmir Usmanov
32e43998a0
IR: Restore method used by Anvil annotation processor
...
But make it hidden, so, the new method will be used instead
#KT-62281
2023-12-06 09:52:07 +00:00
Kirill Rakhman
2391f00b75
[FIR2IR] Fix SAM conversion of adapted callable reference
...
#KT-63329 Fixed
2023-12-06 09:02:04 +00:00
Sergej Jaskiewicz
c0c6667876
[FIR generator] Make Readme.md up-to-date
2023-12-05 20:30:22 +00:00
Sergej Jaskiewicz
8d1907e2f5
[FIR/IR generator] Introduce the common entry point for tree generators
...
This reduces code duplication.
2023-12-05 20:30:22 +00:00
Sergej Jaskiewicz
858343695c
[FIR generator] Remove unused constant
2023-12-05 20:30:22 +00:00
Sergej Jaskiewicz
19ff050eae
[FIR/IR generator] Move usedTypes to AbstractElement, rename it
2023-12-05 20:30:22 +00:00
Sergej Jaskiewicz
e4078d163b
[IR generator] Move each visitor printer into its own file
2023-12-05 20:30:22 +00:00
Sergej Jaskiewicz
8c75526130
[FIR generator] Move each visitor printer into its own file
2023-12-05 20:30:22 +00:00
Sergej Jaskiewicz
0c0f7f9899
[FIR/IR generator] Rename files with printers: use printer class's names
2023-12-05 20:30:22 +00:00
Mikhail Glukhikh
06ce57ea56
K2: report MISSING_DEPENDENCY_CLASS for lambda parameters if needed
...
#KT-62525 Fixed
2023-12-05 18:16:52 +00:00
Mikhail Glukhikh
c03830556f
[tests] Don't run Android codegen tests with IGNORE_BACKEND: ANY
2023-12-05 18:15:53 +00:00
Mikhail Glukhikh
4b649cbbe9
[tests] Drop a BI codegen test for should-be-red issue KT-63648
2023-12-05 18:15:53 +00:00
Mikhail Glukhikh
254bcdc80a
[tests] Change builder inference tests in accordance with KT-53749 changes
2023-12-05 18:15:53 +00:00
Stanislav Ruban
7515efc52c
[tests] Change builder inference tests in accordance with new K2 BI diagnostics
...
Related to KT-59369, KT-59390
2023-12-05 18:15:53 +00:00
Stanislav Ruban
da0c3090a9
[tests] Regenerate test configurations
2023-12-05 18:15:53 +00:00
Stanislav Ruban
c0bf67af22
[tests] Add test data for KT-63841
2023-12-05 18:15:52 +00:00
Stanislav Ruban
4f38d77fae
[tests] Add test data for KT-63840
2023-12-05 18:15:52 +00:00
Stanislav Ruban
2bcaa3eb8f
[tests] Add test data for KT-63733
2023-12-05 18:15:52 +00:00
Stanislav Ruban
a836e94619
[tests] Add test data for KT-63648
2023-12-05 18:15:52 +00:00
Stanislav Ruban
4671a9612a
[tests] Add test data for KT-61310
2023-12-05 18:15:52 +00:00
Stanislav Ruban
7dc3ed61c0
[tests] Add test data for KT-60447
2023-12-05 18:15:52 +00:00
Stanislav Ruban
7a254cab9a
[tests] Add test data for KT-60291
2023-12-05 18:15:51 +00:00
Stanislav Ruban
e5642d83aa
[tests] Add test data for KT-59798
2023-12-05 18:15:51 +00:00
Stanislav Ruban
4676b8a2ca
[tests] Add test data for KT-59426
2023-12-05 18:15:51 +00:00
Stanislav Ruban
f90bd8821c
[tests] Add test data for KT-57834
2023-12-05 18:15:51 +00:00
Stanislav Ruban
e3fce848b4
[tests] Add test data for KT-57709
2023-12-05 18:15:51 +00:00
Stanislav Ruban
55485a8fd6
[tests] Add test data for KT-57707
2023-12-05 18:15:51 +00:00
Stanislav Ruban
2226486152
[tests] Add test data for KT-56949
2023-12-05 18:15:51 +00:00
Stanislav Ruban
4021e022b7
[tests] Add test data for KT-55281
2023-12-05 18:15:51 +00:00
Stanislav Ruban
6532eb4c60
[tests] Add test data for KT-55057
2023-12-05 18:15:51 +00:00
Stanislav Ruban
bb054f75b5
[tests] Add test data for KT-55056
2023-12-05 18:15:51 +00:00
Stanislav Ruban
ddb7c6cff8
[tests] Add test data for KT-54767
2023-12-05 18:15:51 +00:00
Stanislav Ruban
f600e1f591
[tests] Add test data for KT-54664
2023-12-05 18:15:51 +00:00
Stanislav Ruban
205d568545
[tests] Add test data for KT-54400
2023-12-05 18:15:51 +00:00
Stanislav Ruban
126022a80d
[tests] Add test data for KT-53740
2023-12-05 18:15:51 +00:00
Stanislav Ruban
7d040af24c
[tests] Add test data for KT-53639
2023-12-05 18:15:51 +00:00
Stanislav Ruban
9dd3cf7bfc
[tests] Add test data for KT-53553
2023-12-05 18:15:51 +00:00
Stanislav Ruban
982e8133ba
[tests] Add test data for KT-53422
2023-12-05 18:15:50 +00:00
Stanislav Ruban
96e12584a1
[tests] Add test data for KT-53109
2023-12-05 18:15:50 +00:00
Stanislav Ruban
385b29f9c2
[tests] Add test data for KT-52838
2023-12-05 18:15:50 +00:00
Stanislav Ruban
f6a3f999c3
[tests] Add test data for KT-52757
2023-12-05 18:15:50 +00:00