Dmitriy Novozhilov
4272f2e156
[FIR] Process all overridden members from intersection scopes
...
Previously, there was a contract that each callable symbol in the chain
of `processDirectOverriddenWithBaseScope` will be unique. And if some
symbol is accessible from multiple scopes, then only last of them will
be returned as a component of `MemberWithScope`
But after the change from previous commit, we don't have this contract anymore.
Which means that we may meet the same symbol during processing hierarchy
of overridden functions (but with different base scopes)
So if some code utilizes `process...Overridden...WithBaseScope` functions
it should consider that the same symbol may be obtained several times
^KT-63738 Fixed
2023-12-08 15:19:55 +00:00
Dmitriy Novozhilov
a15057b2ca
[FIR2IR] Unwrap only call-site overrides during delegated members generation
...
^KT-60251 Fixed
2023-12-08 15:19:55 +00:00
Brian Norman
0881910a1b
[FIR] Rewind DFA after call arguments for correct receiver smartcasting
...
^KT-63709 Fixed
2023-12-08 14:32:22 +00:00
Dmitriy Novozhilov
7d685522ce
[IR] Fix calculation of receiver type for properies in expect/actual context
...
^KT-62926 Fixed
2023-12-08 13:28:27 +00:00
Evgeniy.Zhelenskiy
9cef8a2133
[FIR, Tests] Add box tests to verify that disappeared DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE leads to executable code
...
#KT-59903
Merge-request: KT-MR-13423
Merged-by: Evgeniy Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
2023-12-08 13:18:59 +00:00
Dmitriy Novozhilov
58678c09e8
[FIR2IR] Include generated IR fields into Fir2IrCommonMemberStorage
...
In case of HMPP structure with common JVM module (e.g. shared between
JVM and Android) one can reference the same field from java code,
so it should be shared between fir2ir sessions
^KT-63574 Fixed
2023-12-08 11:16:03 +00:00
Kirill Rakhman
2391f00b75
[FIR2IR] Fix SAM conversion of adapted callable reference
...
#KT-63329 Fixed
2023-12-06 09:02:04 +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
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
Stanislav Ruban
50e58c00ea
[tests] Add test data for KT-50827
2023-12-05 18:15:50 +00:00
Stanislav Ruban
de8f0c157e
[tests] Add test data for KT-50453
2023-12-05 18:15:50 +00:00
Stanislav Ruban
9de8d020f1
[tests] Add test data for KT-49263
2023-12-05 18:15:50 +00:00
Stanislav Ruban
2a257091fb
[tests] Add test data for KT-49160
2023-12-05 18:15:50 +00:00
Stanislav Ruban
cef44cfa7d
[tests] Add test data for KT-47989
2023-12-05 18:15:50 +00:00
Stanislav Ruban
04b05f7912
[tests] Add test data for KT-43710
2023-12-05 18:15:50 +00:00
Nikita Bobko
8c0cf7d0bc
[FIR] Fix disappeared ACTUAL_MISSING
...
^KT-59887 Fixed
Review: https://jetbrains.team/p/kt/reviews/13244
2023-12-04 13:08:23 +00:00
Stanislav Ruban
b275aeb39d
[tests] Add test data for KT-63705
2023-12-01 19:20:26 +00:00
Mikhail Glukhikh
b317777796
K2: temporarily mute some Native tests around builder inference (KT-63932)
...
Related to KT-59369
2023-12-01 10:54:29 +00:00
Ivan Kylchik
2b6845c032
[JVM_IR] Optimize properties delegated to const val
...
We can omit `get` call to delegated property and inline
constant value directly. If we are not going to
do that, we can get a runtime exception because
all usages of const property will be inlined and the property
itself will be dropped.
#KT-63567 Fixed
#KT-63580 Fixed
2023-11-30 14:27:36 +00:00
Alexander Udalov
fc7de5ab97
IR: check type parameter bounds equality in overrides
...
The code is exactly the same as in K1's
`OverridingUtil.areTypeParametersEquivalent`.
#KT-63442 Fixed
2023-11-30 11:04:02 +00:00
Kirill Rakhman
934253878b
[Tests] Add regression test for KT-63564
...
#KT-63564 Fixed
2023-11-30 08:39:05 +00:00
Kirill Rakhman
dd1d36816b
[FIR] Insert SAM conversion expressions during completion
...
#KT-62847 Fixed
2023-11-30 08:39:04 +00:00
Dmitriy Dolovov
3d57e83d8a
IR: Fix tests which failure caused only by the changed IR dump format
2023-11-30 08:32:35 +00:00
Stanislav Ruban
80462efe7e
[tests] BI (1P&1TV/1TIO): add additional test data for contexts of source-sink feeds
...
single builder parameter
single postponed type variable
single origin of type information
relevant issues:
KT-63816
2023-11-30 06:26:59 +00:00