Svyatoslav Kuzmich
4ad6fd4cde
[Wasm] Add RUN_UNIT_TESTS directive to unit-test compiler tests
2023-06-25 10:20:43 +02:00
Svyatoslav Kuzmich
a3e2d2804c
[Wasm] Update testData after adding K2 and new test infra support.
...
- Actualize muted K2 tests
- Actualize muted K1 tests with module systems because legacy Wasm test
infra had no respect for "// MODULE: ..." test directives
2023-06-25 10:20:40 +02:00
Svyatoslav Kuzmich
736519c506
[JS] Rename JsLibraryProvider to LibraryProvider
...
This class is not JS-specific and can be used in Wasm test services
2023-06-25 10:18:50 +02:00
Vladimir Sukharev
7930885131
[Test] Convert IGNORE: NATIVE directives in box tests from M to R
...
^KT-59057
Merge-request: KT-MR-10757
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-23 14:15:48 +00:00
Vladimir Sukharev
a036e41809
[Test] Convert IGNORE: NATIVE directives in box tests from D to I
...
^KT-59057
Merge-request: KT-MR-10748
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-23 09:11:17 +00:00
Ivan Kylchik
8f88f08573
[FIR] Use correct source for implicit this receiver
...
#KT-57489 Fixed
#KT-56139 Fixed
#KT-56755 Fixed
2023-06-23 07:23:39 +00:00
Vladimir Sukharev
ab03cb2357
[Test] Convert IGNORE: NATIVE directives in box tests sam/* and sameFile*/*
...
^KT-59057
Merge-request: KT-MR-10758
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-23 06:23:53 +00:00
Vladimir Sukharev
1bf3bde4f8
[Test] Convert IGNORE: NATIVE directives in box tests from J to J
...
^KT-59057
Merge-request: KT-MR-10749
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-22 18:39:59 +00:00
Vladimir Sukharev
f3fcaa69eb
[Test] Convert IGNORE: NATIVE directives in box tests from T to W and boxInline
...
^KT-59057
Merge-request: KT-MR-10752
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-22 18:33:24 +00:00
Artem Kobzar
64158a8a2f
[K/JS] Add file-to-file compilation ^KT-6168 Fixed
2023-06-22 18:23:45 +00:00
Alexander.Likhachev
407a2d4203
[Build] Remove usages of Provider.forUseAtConfigurationTime()
...
It's not required anymore and was deprecated since Gradle 7.4
#KTI-1221 In Progress
2023-06-22 15:16:08 +00:00
Ilya Goncharov
1c89a7e400
[JS] Remove legacy and output prefix-postfix tests
2023-06-22 12:25:24 +00:00
Ilya Goncharov
1465abcfed
[JS] Source map to IR
2023-06-22 12:25:24 +00:00
Ilya Goncharov
5783693039
[JS] Remove js legacy codegen
2023-06-22 12:25:24 +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
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
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
Kirill Rakhman
ee91ee9403
[FIR] Set publishedApiEffectiveVisibility on deserialized declarations
...
#KT-58641 Fixed
2023-06-21 07:34:29 +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
Artem Kobzar
66bdb9ce79
[K/JS] Fix private constructor delegating inside single class with ES6 mode ^KT-59335 Fixed
2023-06-20 11:07:08 +00:00
Evgeniy.Zhelenskiy
2d920df507
[IR] Fix KT-59346, KT-55993
...
#KT-59346
#KT-55993
2023-06-19 12:36:08 +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
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
vladislav.grechko
457837a255
Fix function invocation mangling rule
...
Mangle invocations of functions with value classes in signature which
override (directly or indirectly) a method declared in Kotlin code.
Otherwise, NoSuchMethodError is being thrown.
^KT-55945: Fixed
2023-06-15 09:34:21 +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
Alexander Korepanov
fc898c7620
[JS IR] Use type upper bounds for calculating function signatures
...
^KT-59239 Fixed
2023-06-14 14:57:15 +00:00
Artem Kobzar
d2b64cd481
[K/JS] Generate .js files from .ts if they were not created, because of the incremental flag in tsconfig
...
The incremental option will prevent creating file if there is an incremental cache from TS compiler even if the file doesn't exist.
The situation could happen if `./gradlew clean` was executed (js file will be removed and ts incremental cache - not)
Merge-request: KT-MR-10229
Merged-by: Artem Kobzar <Artem.Kobzar@jetbrains.com >
2023-06-14 09:26:18 +00:00
Kirill Rakhman
8ff67218f5
[FIR] Fix serialization of annotation vararg arguments
...
#KT-58937 Fixed
2023-06-14 08:41:27 +00:00
Abduqodiri Qurbonzoda
36924775c8
Add a compiler box test for Boolean.hashCode()
2023-06-14 08:19:47 +00:00
Pavel Kunyavskiy
f67f8c393b
K2: Added test for data class metadata
...
#KT-57622 Fixed
2023-06-14 07:09:16 +00:00
Svyatoslav Kuzmich
1dc0b054ed
Deprecate PlatformDiagnosticSuppressors::shouldReportUnusedParameter with one parameter
2023-06-13 15:37:54 +00:00
Svyatoslav Kuzmich
dc4aa8c15e
[Wasm] Restore binary compatibility of PlatformDiagnosticSuppressor
...
Keep the original shouldReportUnusedParameter method without
BindingContext parameter
^KT-58188 Fixed
2023-06-13 15:37:53 +00:00
Kirill Rakhman
4b85776405
[FIR] Fix completion of FirDelegatedConstructorCall
...
Before this fix, changes that were made to the arguments list by calling
argumentList.transformArguments() were overriden by replaceArgumentList.
This fixes reverses the order in which these calls are made.
This also aligns the logic between the completion of qualified accesses
and delegated constructor calls.
#KT-59102 Fixed
2023-06-13 09:47:58 +00:00
Dmitriy Novozhilov
ba41e8ec38
[IR] Use common expect/actual matching algorithm in IR actualizer
...
^KT-58578 Fixed
2023-06-10 07:33:29 +00:00
Alexander Udalov
ccf4a6813c
Minor, move kt57353 test to a subfolder
2023-06-08 15:42:27 +00:00
Denis.Zharkov
c474c54903
FIR2IR: Fix IAE for case of local override of a method with defaults
...
It was happening because for MyClass.foo we didn't set overriddenSymbols
properly because in ClassMemberGenerator.convertFunctionContent we
used incorrect containingFirClass that was pointing to anonymous class
instead of MyClass.
^KT-58902 Fixed
2023-06-08 08:04:03 +00:00
Pavel Kunyavskiy
15e5adf2b5
Mark reflection related tests as jvm-only
2023-06-07 14:59:38 +00:00
Dmitriy Novozhilov
357c552b5f
[Test] Set JVM target backend for load compiled tests which use JDK classes
2023-06-07 10:58:01 +00:00
Dmitriy Novozhilov
7eca772ec2
[JS Test] Introduce tests for loading metadata produced by JS compiler
2023-06-07 10:58:01 +00:00
Ilmir Usmanov
95662234d0
JVM: Support instantiation of annotations with vararg parameters
...
when they are instantiated without argument.
#KT-59033 Fixed
2023-06-06 17:27:52 +00:00
Pavel Kunyavskiy
733ca5a358
[K/N] Unmute tests already working on native
...
Also, add issue references for some tests
2023-06-06 14:29:21 +00:00
Alexander Korepanov
82a1242f22
[JS IR] Add tests for JS IR IC + PL
...
^KT-57347 related
2023-06-06 09:27:57 +00:00
Alexander Korepanov
97620030c6
[JS IR] Rollback PL hacks from JS IR IC infra
...
^KT-57347 related
2023-06-06 09:27:57 +00:00
Pavel Kunyavskiy
f2520a9cb7
[K/N] Rework is checks and as casts codegeneration
...
^KT-58707
^KT-59022
2023-06-05 08:56:17 +00:00
Artem Kobzar
bfd57fd2df
[K/JS, K/Wasm] Optimize simple objects declaration and usage ^Fixed KT-58797
2023-06-02 14:23:40 +00:00
Nikolay Lunyak
70605c84df
[FIR Native] KT-58549: Get rid of the builtin provider
...
According to
`FirNativeCodegenBoxTestGenerated.testNestedClassesInAnnotations`,
the annotation
`kotlin.internal.PlatformDependent` is
unresolved reference.
^KT-58549 Fixed
2023-06-01 10:27:54 +00:00
Ilmir Usmanov
a41d36edba
JS IR: Minor. Disable test
2023-05-31 11:21:39 +00:00