Evgeniy.Zhelenskiy
7eab4b672d
[K1, K2, CLI] Mark whole position range of compiler diagnostics in CLI
...
#KT-64989
2024-02-08 12:59:31 +00:00
Mikhail Glukhikh
ed246d372b
K2: introduce platform-dependent filtering for non-JVM platforms
...
This commit fixes a false negative in testData/cli/metadata/getOrDefault
Related to KT-57268
2024-01-30 19:44:00 +00:00
Mikhail Glukhikh
7599ff0ef1
K2: add a reproducer for getOrDefault false negative in metadata compilation
...
This case is similar to KT-57268 in early JDKs
2024-01-30 19:44:00 +00:00
Nikita Bobko
c214c5445a
[FIR] Implement EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE
...
^KT-60367 Fixed
KT review: https://jetbrains.team/p/kt/reviews/14064/timeline
IJ review: https://jetbrains.team/p/ij/reviews/124657/timeline
2024-01-29 14:56:48 +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
Ivan Kochurkin
30899e4bbf
Remove CLI tests that become duplicated/unneeded after switching to 2.0
2023-09-19 15:46:30 +00:00
Ilya Chernikov
3dc1b26d83
Fix cli testdata for changed diagnostics in K2
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
Mikhail Glukhikh
2a8b655294
Update tests after switching to LV 2.0
...
Related to KT-59171
2023-09-19 15:46:27 +00: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
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
Ivan Kylchik
fba0bd79ad
[K2] Don't crash compiler if receiver on property wasn't evaluated
...
Compilation crash must be handled separately in
`convertToConstantValues` method because we still want successfully
compile common code. All constants will be evaluated later on
fir2ir phase.
#KT-59362 Fixed
2023-06-27 08:51:39 +00:00
Ivan Kochurkin
2251214d24
[FIR] Don't crash on complex expression as annotation argument if metadata compilation is used
...
^KT-58139 Fixed
2023-05-31 14:38:38 +00:00
Ivan Kochurkin
994c2229df
[FIR] Report UNSUPPORTED_FEATURE for expect/actual members if MPP is disabled
...
Always enable MultiPlatformProjects for K2MetadataCompilerArguments
^KT-57243 Fixed
2023-05-25 09:46:56 +00:00
Ivan Kochurkin
9a5cc39588
[FIR] Use FirDefaultOverridesBackwardCompatibilityHelper with common metadata compilation
...
Also, use it with JS compilation
^KT-57735 Fixed
2023-04-06 22:27:24 +02:00
Dmitriy Novozhilov
96e9d690a6
[CLI] Prohibit passing HMPP module structure with CLI arguments to metadata compiler
...
^KT-57644 Fixed
2023-03-31 09:59:52 +00:00
Ivan Kochurkin
d829f8b684
[FIR] Drop using of JavaSymbolProvider and OptionalAnnotationClassesProvider in FirCommonSessionFactory
...
Drop using of all Java stuff inside FirCommonSessionFactory
^KT-56063
2023-03-03 20:58:24 +00:00
Sebastian Sellmair
b90207edb9
[Gradle] Rename -Xdepends-on to -Xfragment-refines and use ':' for -Xfragment-sources instead of ';'
...
^KT-56210 Verification Pending
2023-03-01 16:30:44 +00:00
Sebastian Sellmair
21bf497830
[CLI] Replace K2 -Xmodule by -Xfragments and -Xfragment-sources
...
KT-56210
2023-03-01 16:30:41 +00:00
Dmitriy Novozhilov
94faa759cb
[CLI] Rename -XdependsOn flag to -Xdepends-on to keep convention
...
^KT-56209
2023-02-17 14:09:30 +00:00
Dmitriy Novozhilov
79e4df72bf
[CLI] Introduce utilities for creating FirSession hierarchy in CLI for all platforms
...
Also support session creation and compilation for HMPP projects
^KT-56209 Fixed
2023-02-17 11:08:51 +00:00
Kirill Rakhman
22fd7921fe
[FIR] Introduce MetadataBasedAnnotationDeserializer for compiling common
...
^KT-56361 Fixed
2023-02-08 13:32:33 +00:00
Ivan Kochurkin
44b7859356
[FIR] Implement FIR metadata serialization
...
Add FirMetadataSerializer
Add CLI metadata tests on FIR
2023-01-24 15:27:14 +00:00
Mikhail Glukhikh
7a61578e08
Language version 2.0: fix compiler messages and minor details
2023-01-16 18:16:48 +01:00
Mikhail Glukhikh
3dc05f4ec5
Introduce language version 2.0 and associate K2 compiler with it
2023-01-16 18:12:55 +01:00
Dmitriy Novozhilov
c2bb8d6de0
[Test] Fix CLI tests due to migration from -Xuse-fir to -Xuse-k2 flag
2022-04-29 12:26:01 +04:00
Mikhail Glukhikh
08ba89b4ec
CLI K2: report an error for JS/Native/Metadata #KT-52035 Fixed
2022-04-28 13:25:48 +00:00
Dmitriy Novozhilov
803d47daaa
Distinguish classes from different sourcesets in SealedInheritorInSameModuleChecker
...
#KT-45848 Fixed
#KT-46031
2021-04-13 11:21:58 +03:00
Pavel Kirpichenkov
2f3f75b512
Fix local anonymous class name error in K2MetadataCompiler
...
Extract the logic of approximating to denotable class supertype
from JS/KLIB and use it in metadata compiler.
^KT-20996 In Progress
2021-01-20 11:05:53 +03:00
Pavel Kirpichenkov
b82a44fa63
Add test for KT-20996
2021-01-20 11:05:53 +03:00
Alexander Udalov
3323fd5a11
Check "kotlin" package usage when compiling common code
...
#KT-25369 Fixed
2018-07-26 17:10:33 +02:00
Alexander Udalov
c5c4c9cfcc
Support "-module-name" argument for common code compiler
...
#KT-20892 Fixed
2017-12-13 11:49:58 +01:00