Pavel Mikhailovskii
134b02c754
KT-59563 [SLC] Fix type erasure in $annotations methods of extension properties
2023-06-22 09:06:12 +00:00
Vladimir Sukharev
3d60ed8874
[Test] Convert IGNORE: NATIVE directives in box tests from A to C
...
^KT-59057
Merge-request: KT-MR-10747
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-22 08:39:20 +00:00
Dmitriy Dolovov
2e43fa7cd0
[PL][tests] Adapt tests for K/N to the conditions when static cache is used w/o lazy IR
2023-06-22 08:10:11 +00:00
Kirill Rakhman
6318da0f02
[FIR] Remove or replace whole expressions in FIR diagnostic messages
...
FIR expressions rendered by FirRenderer don't look very nice in error
messages anyway, and additionally, they can become arbitrarily large,
so we shouldn't use them in messages.
#KT-59449 Fixed
2023-06-22 08:02:07 +00:00
Dmitriy Novozhilov
0f0f0d604f
[FIR] Expand typealiases before checking type of class literal
2023-06-22 07:09:15 +00:00
Dmitriy Novozhilov
6c7eb0167c
[FIR] Report errors about type arguments on resolved qualifiers
...
^KT-56186 Fixed
^KT-56187 Fixed
^KT-59553
2023-06-22 07:09:15 +00:00
Dmitriy Novozhilov
1b24b95cde
[FIR] Check for subtyping during actualization of supertypes of expect class
...
^KT-59356 Fixed
2023-06-22 07:05:31 +00:00
Mikhail Glukhikh
4b7ab54d95
FE: fix test data after commit clash
2023-06-21 19:25:14 +02:00
Alexander Udalov
13baf43ae3
K2: fix NSME on toChar for subclasses of Number
...
Code in `ReplaceNumberToCharCallSitesLowering` relies on `Number.toChar`
being declared in IR as non-abstract. Otherwise the
`resolveFakeOverride` call there doesn't work, and the lowering can't
rewrite the call to `toInt().toChar()`, and we end up with a call to the
missing method `Number.toChar` in the bytecode.
#KT-57217 Fixed
2023-06-21 14:58:02 +00:00
Kirill Rakhman
c867a4b52f
[FIR] Don't expand typealiases when checking for DeprecatedSinceKotlin
...
During serialization, this can lead to a cycle resulting in a Stack
Overflow.
#KT-58356 Fixed
2023-06-21 14:35:43 +00:00
Alexander Udalov
530f533c84
K2 CLI: minor, remove misleading warning
...
Light tree is used by default now, so it's no longer far from being
production-ready.
2023-06-21 14:16:43 +00:00
Mikhail Glukhikh
78f4d399d4
FE: add test to ensure Java entries static field is resolved normally
2023-06-21 13:08:01 +00:00
Mikhail Glukhikh
905e1dcd3b
K2: introduce prioritized enum entries resolve by a 2.1 feature
...
Related to KT-48872
2023-06-21 13:08:01 +00:00
Mikhail Glukhikh
b92f1e2036
K2: de-prioritize access to Enum.entries properly #KT-57954 Fixed
2023-06-21 13:08:00 +00:00
Mikhail Glukhikh
978d52d05b
K2: render additionally *s for static references
...
This commit allows to distinguish static VS non-static things
inside FIR_DUMP, e.g. static synthetic Enum.entries with
enum entry Enum.entries
2023-06-21 13:08:00 +00:00
Mikhail Glukhikh
70899d492d
K2: reproduce KT-57954 and reorganize tests around enum entries warnings
...
In particular, here we add FIR_DUMP to all enum entries tests with
some deprecation diagnostics and the feature on, and remove all txt-files
2023-06-21 13:08:00 +00:00
Kirill Rakhman
911e62257a
[FIR] Improve INVISIBLE_REFERENCE message
...
Report the nearest invisible containing declaration in cases where
the declaration itself is visible.
#KT-53820 Fixed
2023-06-21 08:36:46 +00:00
Kirill Rakhman
6a073e0b17
[FIR] Fix duplicate spaces in FirPartialModifierRenderer
2023-06-21 08:36:46 +00:00
Kirill Rakhman
ee91ee9403
[FIR] Set publishedApiEffectiveVisibility on deserialized declarations
...
#KT-58641 Fixed
2023-06-21 07:34:29 +00:00
Dmitriy Novozhilov
2581139b82
[FIR2IR] Expand typealiases before inserting implicit casts
...
^KT-59461 Fixed
^KT-59464
2023-06-21 07:34:09 +00:00
Dmitriy Novozhilov
8a1372e21c
[Test] Add test for KT-58754
2023-06-21 06:57:42 +00:00
Abduqodiri Qurbonzoda
9f16daac02
[WASM] Throw IllegalArgumentException on negative array size
2023-06-20 16:31:59 +00:00
Egor Kulikov
b147b7e929
[FIR] Store fir for invalid when branches
...
^KTIJ-25646 fixed
Merge-request: KT-MR-10646
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com >
2023-06-20 16:11:31 +00:00
Jinseong Jeon
37876313c9
SLC: add nullity annotation when force-boxing return type
...
^KT-57579 Fixed
2023-06-20 15:43:41 +00:00
Mikhail Glukhikh
8983e3a218
K2: correctly set importedFromObjectOrStaticData for fields
...
#KT-59140 Fixed
#KT-58980 Fixed
2023-06-20 14:13:21 +00:00
Mikhail Glukhikh
18206210cf
K2: reproduce KT-59140
2023-06-20 14:13:21 +00:00
Artem Kobzar
039b5fca7a
[K/JS] Use declared upper-bound types for parameters inside inlined functions body, instead of the provided types
2023-06-20 12:01:28 +00:00
Pavel Mikhailovskii
79dbacb621
[SLC] Keep default constructor parameters' values
2023-06-20 11:00:18 +00:00
Pavel Kunyavskiy
12455451fc
[K/N] Call class static initializer in constructors
...
^KT-59058
2023-06-20 08:41:11 +00:00
Mikhail Glukhikh
d8a20f1975
K2: don't generate Java overridden synthetics for Kotlin get/sets
...
#KT-59038 Fixed
2023-06-20 07:07:10 +00:00
vladislav.grechko
e4f1c10bc1
[JVM_IR] Do not compile-time evaluate apiVersionIsAtLeast in stdlib
...
Function `apiVersionIsAtLeast` was introduced to be able to have
different inline function content inlined to user code call sites
depending on their api version settings. Thus, it should not be
compile-time evaluated when being called in the body of inline stdlib
function.
^KT-59452: Fixed
2023-06-19 16:24:57 +00:00
Mikhail Zarechenskiy
060f3fa7c4
Extract diagnostics about class literals with empty LHS
...
^KT-59152
2023-06-19 15:21:32 +00:00
Mikhail Zarechenskiy
1153238fd7
Extract diagnostics about references to variables to a separate one
...
Note that I've left in FIR everything as is to avoid non-trivial
refactoring that is required right now to report more specific diagnostics
^KT-59152
2023-06-19 15:21:32 +00:00
Mikhail Zarechenskiy
9cf40f8c2f
Extract diagnostics about 'suspend test' to a separate one
...
^KT-59152
2023-06-19 15:21:32 +00:00
Mikhail Zarechenskiy
2dfdd8dcf6
Extract diagnostics about 'sealed fun interface' to a separate one
...
^KT-59152
2023-06-19 15:21:32 +00:00
Mikhail Zarechenskiy
d772126f2c
Extract diagnostics about 'sealed when' to a separate one
...
^KT-59152
2023-06-19 15:21:32 +00:00
Mikhail Zarechenskiy
1df4893a43
Extract diagnostics about an unsupported case of inheritance from Java
...
^KT-59152
2023-06-19 15:21:32 +00:00
Evgeniy.Zhelenskiy
2d920df507
[IR] Fix KT-59346, KT-55993
...
#KT-59346
#KT-55993
2023-06-19 12:36:08 +00:00
Abduqodiri Qurbonzoda
4ae19b2b44
[K/N] Deprecate SharedImmutable annotation #KT-57837
...
As a part of efforts to stabilize Native stdlib.
2023-06-19 11:35:32 +00:00
Dmitriy Novozhilov
d972b78627
[FIR] Allow actualization of expect classes by classes with wider visibility
...
^KT-59355 Fixed
2023-06-19 11:09:32 +00:00
Abduqodiri Qurbonzoda
295fdc36ce
Enum.valueOf throws inconsistent exception across multiple platforms #KT-35116
2023-06-16 22:18:20 +00:00
Abduqodiri Qurbonzoda
d6867917c9
Enum entry hashCode() should return identity hash code #KT-59223
2023-06-16 22:18:20 +00:00
Brian Norman
0ff9982b31
[FIR] Additional errors to distinguish resolution to classifier cases
...
When a call is resolved to a classifier, only a single error message was
being used for multiple cases. This lead to confusion as the default
message may not be applicable to a given error case. Added additional
errors and messages to distinguish between these error cases.
#KT-57251 Fixed
2023-06-16 16:26:50 +00:00
Vladimir Sukharev
05e22e56d3
[K/N] Mark rest of reflection related tests as jvm-only
...
^KT-59057
Merge-request: KT-MR-10570
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-16 11:50:03 +00:00
Brian Norman
269dfc61c8
[FIR] Display actual type for argument type mismatch error
...
Previously the argument type was being used for the actual type error
display. However, safe-call arguments are unwrapped which causes
nullable types to be displayed as non-null. Change to use the actual
type provided by the diagnostic instead of extracting the type from
the argument.
#KT-58844 Fixed
2023-06-16 11:44:14 +00:00
Sergej Jaskiewicz
fd094835a4
[test] Add the NATIVE backend to non-JVM check blocks in signature tests
...
(see KT-59204)
2023-06-16 10:01:54 +00:00
Vladimir Sukharev
217550d10e
[K/N] Enable passed MPP K1/N tests
...
^KT-59057
Merge-request: KT-MR-10526
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-16 07:45:01 +00:00
Vladimir Sukharev
1e05cb308c
[K/N] Convert and enable some tests using System.out?.println()
...
^KT-59057
Merge-request: KT-MR-10546
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-15 20:00:27 +00:00
Vladimir Sukharev
67b00f86b7
[K/N] Remove "IGNORE_BACKEND: NATIVE" from tests already ignored due to incompatible language setting found in test
...
^KT-59057
Merge-request: KT-MR-10587
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-15 19:58:04 +00:00
Brian Norman
6b5e7ae825
[FIR] Transform children independently when callee is an error
...
To make sure all possible types are resolved and any additional errors
are reported, resolve children of function calls using independent
resolution mode when the callee reference is an error.
#KT-59041 Fixed
2023-06-15 14:03:40 +00:00