Sergej Jaskiewicz
e8aa05928d
[FIR2IR] Unconditionally disable linkViaSignatures on JVM
...
It was an experimental compilation mode that we don't need anymore.
KT-64809
2024-01-19 13:35:59 +00:00
Kirill Rakhman
b7b1bd0a2c
[FIR] Fix parameter order of NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS
...
(cherry picked from commit 8bfc4675c4 )
2024-01-18 08:27:10 +00:00
Kirill Rakhman
cf0824f3ef
Revert "[FIR] Fix parameter order of NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS"
...
This reverts commit 8bfc4675c4 .
2024-01-16 09:14:20 +01:00
Kirill Rakhman
8bfc4675c4
[FIR] Fix parameter order of NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS
2024-01-15 12:23:26 +00:00
strangepleasures
7e9d6e601d
KT-64385 Enable K2 KAPT by default
...
Also adds support for front-end compiler plugins in Kapt
2024-01-15 10:22:32 +00:00
Denis.Zharkov
b9019d3de1
K2: Adjust test data after PCLA implementation [red-to-green]
...
^KT-59791 In Progress
2024-01-10 14:56:30 +00:00
Dmitrii Gridin
37ccf5d4f3
[resolution] KotlinJavaPsiFacade: do not return classes with wrong ClassId
...
We shouldn't return from `findClass`/`findClasses` Java classes with
`ClassId` different from the requested one
^KT-62892
2024-01-04 15:20:38 +00:00
Kirill Rakhman
8f3f72d9c9
[FIR] Use correct type renderer in symbol rendering for diagnostics
...
#KT-62815 Fixed
2024-01-02 15:17:02 +00:00
Kirill Rakhman
6b049df87c
[FIR] Render deprecation message if it's not a named argument.
2024-01-02 15:17:02 +00:00
Kirill Rakhman
14bdcbfecd
[FIR] Improve NO_ELSE_IN_WHEN message
2024-01-02 15:17:02 +00:00
Artem Kobzar
2530cba82a
[K/JS] Compile Kotlin coroutines as JS generator ^KT-63038 Fixed
2023-12-18 17:13:07 +00:00
Dmitriy Dolovov
1c285de55e
[KLIB Resolver] Prettier KLIB resolver messages
...
- Make the messages that are reported by KLIB resolver prettier
- For those messages that affect the resolve process add
prefix "KLIB resolver: "
- Don't log warning on duplicated libraries on the classpath. This
does not make any sense.
^KT-63573
2023-12-18 13:03:40 +00:00
Ilya Goncharov
08e3cb300a
[JS] Migrate tests onto IR compiler with outputDir API instead of outputFile
...
^KT-61117 fixed
2023-11-29 11:21:56 +00:00
Ilya Goncharov
093f51c89a
[JS] Removing usage of legacy JS compiler #1
2023-11-28 13:44:37 +00:00
Artem Kobzar
1832f5a3f7
[K/JS] Introduce the ability to consume platform-specific cli arguments inside the main function ^KT-16981 Fixed
2023-11-18 11:01:34 +00:00
Kirill Rakhman
4964ee12a9
[CLI] Update CLI argument descriptions after review
2023-11-17 14:36:28 +00:00
Mikhail Glukhikh
0aa5170ba2
K2: delay jspecify strict mode introduction to version 2.1
...
Related to KT-62352, KT-55586
2023-11-17 08:21:04 +00:00
Kirill Rakhman
2df1e9dde6
[FIR] Implement warnings for java nullability type mismatch on override
...
#KT-56989
2023-11-15 08:43:55 +00:00
Kirill Rakhman
a6fdeeb7df
[FIR] Implement warnings for java nullability type mismatch
...
#KT-56989
2023-11-15 08:43:55 +00:00
Kirill Rakhman
2613a337ae
[FIR] Improve symbol rendering in *_NOT_IMPLEMENTED diagnostics
2023-10-27 13:27:35 +00:00
Nikolay Lunyak
fedadfb8db
[FIR] Show ARGUMENTS_MAPPING_ERROR diagnostics along with INAPPLICABLE
...
K1 reports `ARGUMENT_TYPE_MISMATCH`
and `TOO_MANY_ARGUMENTS` together, and
one way to do it in K2 is to say that
their kinds of inapplicability difference
is not relevant to the user.
Note that K1 doesn't do such filtering,
so this change "makes K2 closer to K1",
but still different.
^KT-62541 Fixed
fixup! [FIR] Show ARGUMENTS_MAPPING_ERROR diagnostics along with INAPPLICABLE
2023-10-19 09:27:45 +00:00
Mikhail Glukhikh
0fb4c9b4fe
FIR2IR: generate specific sources for property accessors
...
Related to KT-60111
2023-10-13 15:42:58 +00:00
Nikolay Lunyak
41c3f98419
[FIR] Make resolution of classes in FirProvider more reasonable.
...
See the `privateInFile.fir.kt` test.
Type mismatches are simply confusing.
`inheritorOfExpectSealedClass.out`
reports unresolved reference probably
because now it resolves into the expect
declaration, rather than the actual one.
K1 doesn't report UNRESOLVED_REFERENCE
in this case. But this is red code
anyway. And this behavior still
depends on the order in which the compiler
receives both the declarations.
^KT-59927
^KT-62567
2023-10-13 11:56:54 +00:00
Brian Norman
365ce2a6a5
[FIR] Implement checker for missing dependency supertypes
...
#KT-60778 Fixed
2023-10-04 21:57:43 +00:00
Stanislav Erokhin
0cfa721585
[KMP] Remove experimental from -Xmulti-platform flag
...
#KT-61686
2023-10-04 18:19:35 +00:00
Dmitriy Dolovov
78a962f6d2
[KLIB] Deprecate -Xexpect-actual-linker CLI argument
...
This argument has been finally superseded by `-Xmetadata-klib`.
^KT-61136
2023-10-02 16:21:17 +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
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
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
796b9287e2
LV 2.0: fix diagnostic text in CliTestGenerated$Jvm.testWrongAbiVersion
2023-09-19 15:46:29 +00:00
Ilya Chernikov
3dc1b26d83
Fix cli testdata for changed diagnostics in K2
2023-09-19 15:46:28 +00:00
Ilya Chernikov
effb2f801d
Fix cli testdata for the newly added warning suppression tests
2023-09-19 15:46:28 +00:00
Denis.Zharkov
ea0d0097ba
Fix testSelfUpperBoundInference test in LV 2.0 branch
...
The test starts failing after switching to 2.0 because we don't support
TypeInferenceOnCallsWithSelfTypes though it's planned (see KT-59012).
This particular test was introduced in 1.5.x (see KT-48026) to check
if the flag -Xself-upper-bound-inference actually enables
the feature TypeInferenceOnCallsWithSelfTypes.
While the feature is enabled by default since 1.6, it doesn't make sense
to have it with earlier versions.
Another solution would be removing it at all, but that might require
removing related code as well (as we would have some dead code in CLI
arguments processing).
^KT-60885 Fixed
2023-09-19 15:46:28 +00:00
Ilya Chernikov
9fed50c03b
LV20: fix CliTestGenerated testdata for changed K2 error reporting
2023-09-19 15:46:28 +00:00
Ilya Chernikov
e7ff1d4cd9
LV20: mute noStdLib test for K2 until the issue is resolved
...
K2 do not track builtins properly to provide appropriate
diagnostics yet
related to #KT-61033
2023-09-19 15:46:27 +00:00
Mikhail Glukhikh
101166c8a7
K2/CLI tests in LV 2.0: drop warnings related to KT-56989
2023-09-19 15:46:27 +00:00
Mikhail Glukhikh
2a8b655294
Update tests after switching to LV 2.0
...
Related to KT-59171
2023-09-19 15:46:27 +00:00
Alexander Udalov
fd68b9f49c
CLI: add -Xuse-ir-fake-override-builder
...
To be able to test IR fake override builder (KT-61514) outside of
compiler tests.
2023-09-13 15:01:52 +02:00
Nikita Bobko
2127b2ce68
expect/actual classes: experimental -> Beta
...
KT-61573
^KT-61712 Fixed
Review: https://jetbrains.team/p/kt/reviews/12044/files
It's a follow up commit
According our guidelines, it must be in Beta
https://kotlinlang.org/docs/components-stability.html#stability-of-subcomponents
And the whole multiplatform was in Beta, so we can't make part of the
multiplatform to have lower stability level
2023-09-11 13:57:28 +00:00
Anton Bannykh
002cd011d4
[JS] add CLI test for KT-60531
2023-09-07 08:21:34 +00:00
Nikita Bobko
01fc708a0f
Mark expect/actual classifiers as experimental
...
^KT-61573 Fixed
Review: https://jetbrains.team/p/kt/reviews/11969/timeline
Tests:
- MultiPlatformIntegrationTestGenerated
- CliTestGenerated
- MultiPlatformIntegrationTestGenerated
- DiagnosticTestGenerated.Multiplatform
- FirLightTreeOldFrontendDiagnosticsTestGenerated
Also add -Xexpect-actual-classes flag to all necessary ./libraries/* modules
Otherwise compilation of those modules failes because of `-Werror`
2023-09-04 12:21:37 +00:00
Mikhail Glukhikh
6144ae7a6f
Run CLI tests around EnumEntries not enabled with LV 1.9
2023-08-25 08:57:53 +00:00
Kirill Rakhman
d0cc86f52c
[Tests] Update test data after changes to FIR diagnostic messages
2023-08-21 16:28:48 +00:00