Kirill Rakhman
fbf68a5bcc
[FIR] Narrow down range of NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER
...
This uses the same approach as
INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION where we use a visitor
to find a call to a symbol that contains the type variable in question.
#KT-56140 Fixed
2023-09-22 13:49:59 +00:00
Mikhail Glukhikh
ae19cd91bf
K2: fix "private to this" determination logic in accordance with K1
...
#KT-61844 Fixed
2023-09-22 12:23:46 +00:00
Mikhail Glukhikh
b9302869d5
K2: reproduce KT-61844
2023-09-22 12:23:46 +00:00
Ilya Chernikov
141333bdcd
K2: Update extension receiver after checking in CheckExtensionReceiver
...
fixes receiver selection when the candidate has more that one possible
extension receiver
#KT-62129 fixed
2023-09-22 11:33:46 +00:00
Vladimir Sukharev
56eedfebee
[FIR] K2: Fix disappeared diagnostic UNDERSCORE_USAGE_WITHOUT_BACKTICKS on types
...
^KT-59985 Fixed
Merge-request: KT-MR-12282
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-09-22 11:18:19 +00:00
Ilya Kirillov
d98da87278
[FIR] Render dot-separated FQNs instead of slash-separated ones in diagnostics
...
^KT-62030 fixed
2023-09-22 10:48:31 +00:00
Vladimir Sukharev
42af684ab7
[FIR] Fix disappeared ILLEGAL_ESCAPE
...
^KT-59950 Fixed
2023-09-22 08:38:50 +00:00
Vladimir Sukharev
70ea0de2db
[FIR] Fix some disappeared AMBIGUOUS_ANONYMOUS_TYPE_INFERRED
...
^KT-59932
Merge-request: KT-MR-12312
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-09-22 07:47:12 +00:00
Brian Norman
e6669b51d4
[FIR] Check standalone companion object qualifiers are visible
2023-09-21 22:33:50 +00:00
Mikhail Glukhikh
156097fe17
Restore KotlinCompilerVersion.IS_PRE_RELEASE
...
This commit is a slightly modified revert of 4f29c113 .
IS_PRE_RELEASE allows to make LATEST_STABLE version behave as
experimental when this flag is set to true.
The general goal is to prepare fix of KT-62058; after this commit
one can do it by changing IS_PRE_RELEASE flag to true.
The fix of KT-62058 is planned to be done during bootstrapping.
This preparation and the future fix are parts of umbrella KT-61951.
2023-09-21 20:09:25 +00:00
Kirill Rakhman
ff812197a8
[Test] Update test data after changes to FIR rendering
2023-09-21 14:02:21 +00:00
Vladimir Sukharev
d7adc0ce32
[FIR] Fix K2: Introduced AMBIGUOUS_ANONYMOUS_TYPE_INFERRED
2023-09-21 13:46:00 +00:00
Pavel Kunyavskiy
cd409abfd8
[Fir2IR] Fix dispatch receiver of fake override lazy function
...
After the fix, it's at least consistent with what generated
for other fake overrides.
^KT-61386
2023-09-21 13:09:32 +00:00
Ivan Kochurkin
b5acd1da6a
[FIR] Fix local RETURN_TYPE_MISMATCH with flexible Unit and multiple Unit returns
2023-09-21 12:52:32 +00:00
Ivan Kochurkin
4b9e15dfa8
[FIR] Fix missing RETURN_TYPE_MISMATCH for labeled return statements
...
in lambda functions, ^KT-59907 Fixed
(cherry picked from commit 8e72f60996 )
2023-09-21 12:52:31 +00:00
Mikhail Glukhikh
c33a6a665d
Revert "Mute a pair of intrinsic trim tests for old BE in LV 2.0"
...
This reverts commit 876a0768e4 .
Related to KT-59171
2023-09-21 12:38:22 +00:00
Mikhail Glukhikh
a77b758efa
LV 2.0: drop reporting FIR_COMPILED_CLASS and relevant stuff
...
#KT-62056 Fixed
Related to KT-59171, KT-61951
2023-09-21 11:14:09 +00:00
Roman Efremov
b232dbf484
[K2] Temporary mute ACTUAL_ANNOTATION_CONFLICTING_DEFAULT_ARGUMENT_VALUE
...
...until tests fixed. Mute on TC is not enough
because user projects compilation are affected.
^KT-62104
2023-09-21 09:05:51 +00:00
Nikolay Lunyak
2801db0e59
[FIR] Unwrap substitution overrides for multiple default values
...
Otherwise, duplicate diagnostics may be reported on
subtypes of the type that actually declares the
problematic override.
2023-09-21 07:48:31 +00:00
Nikolay Lunyak
76fa812949
[FIR] Ensure K2 reports redundant diagnostics for default values
2023-09-21 07:48:31 +00:00
Nikolay Lunyak
8755cf75ac
[FIR] Improve the messages of the multiple defaults diagnostics
...
Mention the base functions where the default
values come from.
2023-09-21 07:48:30 +00:00
Kirill Rakhman
4e1dfcd2a8
[FIR] Improve readability of rendered types in diagnostics
...
#KT-61824 Fixed
#KT-61688 Fixed
2023-09-21 07:18:19 +00:00
Kirill Rakhman
e996760e7e
[FIR] Fix rendering of SUSPENSION_POINT_INSIDE_CRITICAL_SECTION
...
#KT-61826 Fixed
2023-09-21 07:18:19 +00:00
Kirill Rakhman
ed4386a962
[FIR] Fix rendering of NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS
2023-09-21 07:18:19 +00:00
Dmitriy Dolovov
848c88b1a5
[KLIB] Lift up -Xmetadata-klib CLI key from Native to Common args
...
This is a precondition for obsoleting and finally removing
`-Xexpect-actual-linker` CLI key, which became useless since
the removal of ExpectActualTable.
^KT-61136
2023-09-20 22:26:36 +00:00
Ivan Kochurkin
3cd4f7c3aa
[FIR] Consider @PlatformDependent annotation everywhere (including JS and Native)
...
^KT-57858 Fixed
Remove FirEmptyOverridesBackwardCompatibilityHelper since it's not used anymore
Remove overridesMemberWithPlatformDependent.kt test file since it becomes redundant
2023-09-20 17:12:52 +00:00
Mikhail Glukhikh
14bc20652e
K2: process also arguments while calculating postponed atoms
...
#KT-61933 Fixed
2023-09-20 15:42:03 +00:00
Mikhail Glukhikh
0c287c9945
K2: reproduce KT-61933
2023-09-20 15:42:03 +00:00
Roman Efremov
ad4d1a5ba8
[IR] Support ACTUAL_ANNOTATION_CONFLICTING_DEFAULT_ARGUMENT_VALUE in K2
...
It's implemented as IR checker because in K2 constant expressions are
evaluated on backend. FIR diagnostic removed because isn't needed.
"annotationViaActualTypeAlias" test has no `// FIR_IDENTICAL` because
diagnostic reported on entire typealias declaration instead of its name.
This is because in IR+LightTree we have only offsets, so can't navigate
to typealias name element.
^KT-59940 Fixed
2023-09-20 15:40:37 +00:00
Ivan Kochurkin
063835488f
Revert "[FIR] Fix missing RETURN_TYPE_MISMATCH for labeled return statements"
...
This reverts commit 8e72f60996
Since some intellij tests are failing
2023-09-20 12:29:41 +02:00
Vladimir Sukharev
e9d4de658d
[FIR2IR] Don't emit empty body of while/do_while loop
...
Merge-request: KT-MR-12283
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-09-20 10:06:00 +00:00
Kirill Rakhman
5b4409e34c
[FIR] Store abbreviated type in deserialized declarations as attribute
...
#KT-58542 Fixed
2023-09-20 09:31:29 +00:00
Ivan Kochurkin
8e72f60996
[FIR] Fix missing RETURN_TYPE_MISMATCH for labeled return statements
...
in lambda functions, ^KT-59907 Fixed
2023-09-20 09:06:37 +00:00
Kirill Rakhman
2e4d486131
[FIR] Use enhanced scope to guess array type in annotation loading
...
Otherwise, we return null for any java annotation because the
unenhanced scope doesn't contain any properties.
#KT-61856 Fixed
2023-09-20 08:02:37 +00:00
Dmitriy Dolovov
249106b23f
[KLIB] Drop obsolete tests on serialization of expect IR declarations
...
These tests are muted for all KLIB-oriented platforms for a long time
and are no more relevant since the removal of ExpectActualTable.
^KT-61136
2023-09-20 07:54:36 +00:00
Ilmir Usmanov
f7a2da8f82
Minor. Add regression test for KT-41997
...
#KT-41997 Fixed
2023-09-19 20:11:57 +00:00
Artem Kobzar
94eefba824
[K/Wasm] Optimize range checks
2023-09-19 17:04:41 +00:00
Mikhail Glukhikh
3e1f4c11dc
LV 2.0: drop a duplicating CLI test
2023-09-19 15:46:30 +00:00
Mikhail Glukhikh
198aa675cc
LV 2.0: add "not existing source path" test which uses K2
2023-09-19 15:46:30 +00:00
Mikhail Glukhikh
e4b70e7788
LV 2.0: update some CLI tests with warnings to use DIVISION_BY_ZERO warning
2023-09-19 15:46:30 +00:00
Mikhail Glukhikh
e5906a8a3a
LV 2.0: remove CLI tests covering quite obsolete legacy
2023-09-19 15:46:30 +00:00
Ivan Kochurkin
30899e4bbf
Remove CLI tests that become duplicated/unneeded after switching to 2.0
2023-09-19 15:46:30 +00:00
Mikhail Glukhikh
db03cd8cd7
LV 2.0: update diagnostic message in MPP integration test
2023-09-19 15:46:30 +00:00
Mikhail Glukhikh
796b9287e2
LV 2.0: fix diagnostic text in CliTestGenerated$Jvm.testWrongAbiVersion
2023-09-19 15:46:29 +00:00
Mikhail Glukhikh
96ea0c2eb8
LV 2.0: move testStrictMetadataVersionSemanticsOldVersion to pure K2 tests
2023-09-19 15:46:29 +00:00
Mikhail Glukhikh
8ba2cab989
LV 2.0: fix test data in CompilerSmokeTest
2023-09-19 15:46:29 +00:00
Mikhail Glukhikh
f6af5e6d03
LV 2.0: unmute/fix/delete some FirCompileKotlinAgainstCustomBinaries tests
2023-09-19 15:46:29 +00:00
Mikhail Glukhikh
cc2be502f6
LV 2.0: mute two MPP integration tests
2023-09-19 15:46:28 +00:00
Ilya Chernikov
3dc1b26d83
Fix cli testdata for changed diagnostics in K2
2023-09-19 15:46:28 +00:00
Ilya Chernikov
7b49acb490
Fix ant testdata for changed diagnostics in K2
2023-09-19 15:46:28 +00:00