Pavel Kunyavskiy
e6f4d6e6fa
[Tests] Use stable order for ir/kotlinLike dumps
...
^KT-65406
2024-02-16 10:19:38 +00:00
Vladimir Sukharev
f9df4e1487
[K/N] Reorder hashCode, toString, equals in data classes to match K1 order
...
^KT-60247 Fixed
Merge-request: KT-MR-11080
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-07-18 00:06:48 +00:00
Ivan Kylchik
dd264cff50
[IR] Split const folding into necessary one and for optimizations only
...
In this commit we have a lot of change in test data. This was caused
by the way where we evaluate constants. We split constant evaluation
into two distinct parts: only necessary evaluations for `fir2ir`
(like const val and annotations) and optimizations for lowering.
Now we don't do all constant evaluation on `fir2ir`, but IR
dump is executed after this phase, so test data changed.
#KT-58923
2023-06-14 19:02:39 +00:00
Sergej Jaskiewicz
fd76a34277
[IR] Don't print flags in declaration references in irText tests
...
This doesn't reduce the quality of tests, because the flags are still
printed for declarations themselves. We only omit them in references.
However, this makes the tests more compatible with non-JVM backends
(see KT-58605), because flags of referenced stdlib declarations may
differ among target platforms.
2023-05-30 17:26:30 +00:00
Mikhail Glukhikh
1ba900be44
FIR2IR: change origin & operator flag in data classes making them closer to K1
...
Related to KT-54887
2023-05-15 08:16:24 +00:00
Alexander Udalov
3120a35a88
JvmDefault: remove most tests on @JvmDefault
...
The tests are removed because JvmDefault is going to be deprecated with
error in KT-54746 and removed later in KT-57696.
Many of the removed tests already had existing counterparts with the new
modes `all` and `all-compatibility`. In this change, I've added such
tests where they were missing, and removed tests which were testing
behavior specific to the JvmDefault annotation, such as some
diagnostics.
#KT-54746
2023-04-25 14:33:00 +00:00
Sergej Jaskiewicz
4b6975c3d0
[fir2ir] Set origins for componentN and copy methods of data classes
...
This aligns the behavior with psi2ir.
2023-04-06 14:45:47 +00:00
Ivan Kylchik
63b340651d
Add possibility to interpret and fold IrStringConcatenation expression
2023-03-24 15:55:06 +00:00
Kirill Rakhman
b80970b09f
[FIR] Fix references to generic synthetic properties
...
When synthetic properties are built from a substitution override,
set originalForSubstitutionOverride, too.
^KT-56251 Fixed
2023-03-06 09:45:02 +00:00
Dmitriy Novozhilov
e0fa1e64b9
[FIR] Properly setup java parser version for CLI pipeline with light tree
...
^KT-56549 Fixed
2023-02-28 09:17:41 +00:00
Dmitriy Novozhilov
f836d16dc6
[FIR] Don't generate synthetic declarations from java records from binary dependencies
...
^KT-56548 Fixed
2023-02-28 09:17:40 +00:00
Dmitriy Novozhilov
8bd3c9d019
[FIR] Don't transform nested classes during class update because of @JvmRecord annotation
...
^KT-55703 Fixed
2023-01-17 14:51:28 +00:00
Dmitriy Novozhilov
ad191eb179
[Test] Add test for KT-55703
2023-01-17 14:51:28 +00:00
Dmitriy Novozhilov
d898e256ca
[FIR] Don't update explicit delegated constructor calls of classes with @JvmRecord
...
^KT-54573 Fixed
2022-12-09 12:02:08 +00:00
Mikhael Bogdanov
edc54524aa
Xjdk-release: support mixed compilation of Java and Kotlin
...
#KT-52815 Fixed
2022-11-14 06:57:12 +00:00
Dmitriy Novozhilov
6623456d2a
[FIR] Properly support @JvmRecord
...
^KT-53867 Fixed
2022-10-03 15:48:17 +03:00
Dmitriy Novozhilov
c0ad67c4f9
[FIR] Generate java declarations for record components of java records
...
^KT-53964 Fixed
2022-10-03 15:48:17 +03:00
Mikhael Bogdanov
90f8f8e14e
Support inner classes in -Xjdk-release
...
#KT-52823 Fixed
2022-08-02 04:56:20 +00:00
Ilya Chernikov
5d6e2b57a7
Sort sealed class inheritors to ensure reproducible builds with IC
...
without this sorting the inheritors field in the metadata may depend on
whether some inheritors are compiled in the IC round or not.
2022-03-30 08:35:30 +00:00
Mikhael Bogdanov
3593e45b97
Rename 'RELEASE' fields into 'JDK_RELEASE'
2021-12-23 07:26:00 +00:00
Mikhael Bogdanov
409d36c911
Basic -Xrelease option support
...
#KT-29974 Fixed
2021-12-23 07:25:57 +00:00
Dmitriy Novozhilov
8fd2474b9e
[Test] Generated FIR codegen tests on modern jdk
2021-10-09 17:07:37 +03:00
Dmitry Petrov
146f0f4904
JVM_IR KT-41214 emit PermittedSubclasses on JDK17+
2021-10-09 17:07:35 +03:00
Dmitriy Novozhilov
ce3562f0e8
Migrate all JDK 15 related tests to JDK 17
2021-09-28 13:01:45 +03:00
Dmitriy Novozhilov
17fc1da719
[Reflection] Support java records in kotlin reflection
...
^KT-47760
2021-08-01 22:23:46 +03:00
Dmitriy Novozhilov
8dad8fa813
[Reflection] Support java sealed classes in kotlin reflection
...
^KT-46778
2021-08-01 22:23:45 +03:00
Dmitriy Novozhilov
fa1d09c778
[FE 1.0] Support java sealed classes
...
^KT-46778 Fixed
2021-08-01 22:23:45 +03:00