Svyatoslav Kuzmich
0295057520
Refactor: extract test generation regexp into a common util object
2023-10-12 13:26:58 +00:00
Svyatoslav Kuzmich
0da9cf8159
[Wasm] Add K2 diagnostic tests (KT-56849)
2023-10-12 13:26:58 +00:00
Artem Kobzar
eef57f216c
[K/JS] Rework main function call to support it in per-file
2023-10-04 12:13:20 +00:00
Alexander Korepanov
522952db1f
[JS IR] Run diagnostics by IR before the klib serialization
...
Implement an infrastructure for checking IR before JS klib serialization.
Implement the EXPORTING_JS_NAME_CLASH and EXPORTING_JS_NAME_CLASH_ES checks.
^KT-61710 Fixed
2023-09-23 19:49:17 +02:00
Igor Yakovlev
758484a01f
[Wasm] Fix generation optimised when expression with Nothing type
...
Fixed #KT-62147
2023-09-23 10:18:30 +02:00
Gavriil Maksyutenko
b119b4de02
[Wasm] Return SpiderMonkey in box tests
...
^KT-61958 fixed
2023-09-22 10:16:31 +00:00
Gavriil Maksyutenko
c9ba080383
[Gradle, Wasm] Update jsshell
2023-09-22 10:16:30 +00:00
Ivan Kochurkin
3cd4f7c3aa
[FIR] Consider @PlatformDependent annotation everywhere (including JS and Native)
...
^KT-57858 Fixed
Remove FirEmptyOverridesBackwardCompatibilityHelper since it's not used anymore
Remove overridesMemberWithPlatformDependent.kt test file since it becomes redundant
2023-09-20 17:12:52 +00:00
Kirill Rakhman
5b4409e34c
[FIR] Store abbreviated type in deserialized declarations as attribute
...
#KT-58542 Fixed
2023-09-20 09:31:29 +00:00
Dmitriy Dolovov
249106b23f
[KLIB] Drop obsolete tests on serialization of expect IR declarations
...
These tests are muted for all KLIB-oriented platforms for a long time
and are no more relevant since the removal of ExpectActualTable.
^KT-61136
2023-09-20 07:54:36 +00:00
Ilmir Usmanov
f7a2da8f82
Minor. Add regression test for KT-41997
...
#KT-41997 Fixed
2023-09-19 20:11:57 +00:00
Zalim Bashorov
86e854a980
Revert "[Wasm] Don't use the new br_on_cast* instructions since they are not supported in Node.js yet"
...
This reverts commit 2d728727
#KT-60828 Fixed
2023-09-19 09:23:26 +00:00
Zalim Bashorov
48d4bb5261
[Wasm] Temporarily disable running tests on SpiderMonkey
...
#KT-59720
2023-09-19 09:23:26 +00:00
Zalim Bashorov
c71a341a53
[Wasm] Remove no longer needed options for V8
...
#KT-59720
2023-09-19 09:23:26 +00:00
Zalim Bashorov
9ec6fea9d5
[Wasm] Update Wasm GC to final codes 🎉
...
#KT-59720 Fixed
2023-09-19 09:23:26 +00:00
Dmitriy Novozhilov
9a6c6a40a9
[FIR2IR] Allow symbolTable cache lookups for generated Any methods
...
^KT-61972 Fixed
2023-09-18 09:16:15 +00:00
Igor Chevdar
1df93e1611
[box-tests] Added a reproducer for #KT-61924
2023-09-15 09:26:54 +00:00
Alexander Korepanov
be4f6beddb
[JS Tests] Prepare JS tests for testing backend diagnostics
...
- Introducing a backend diagnostic handler.
- Moving JS diagnostic tests from test-common to
js.test to avoid circular module dependencies.
^KT-61886 Fixed
2023-09-13 12:19:15 +00:00
Anastasia.Nekrasova
eab6e9bb36
Added tests for all code samples from KT-60523, except 2.3.
...
Test for 2.3 sample must be added in the context of KT-61792.
2023-09-12 07:03:20 +00:00
Denis.Zharkov
034671ad78
K2: Update substituted member candidate if it contains type variables
...
See the comment at updateSubstitutedMemberIfReceiverContainsTypeVariable
It became necessary after delegate inference is rewritten, since before
that happened, stub types were being left there and FIR2IR handled
them accidentally properly because stub types are equal to anything.
But that wasn't really correct even there because stub types are not
intended to leak out of the FIR
^KT-61060
2023-09-08 07:11:48 +00:00
Alexander.Likhachev
6eaccc997f
[Build] Fix the typo junit jupyter -> jupiter
2023-09-06 22:47:34 +00:00
Alexander.Likhachev
6f96be0b76
[Build] Get rid of the testApiJUnit5 method
...
#KTI-1349 In Progress
2023-09-06 22:47:34 +00:00
Alexander.Likhachev
53fde520d5
[Build] Add jUnit dependencies in testApiJUnit5 to the implementation configuration
...
Adding these dependencies to the `api` configuration pollutes classpath for each dependant modules even if it doesn't need them. Instead, the dependencies should be declared more granularly if they're required
#KTI-1349 In Progress
2023-09-06 22:47:34 +00:00
Alexander.Likhachev
357d12fc8e
[Build] Move JUnit dependencies into the version catalog
...
The `kotlin-test` dependencies are left untouched as changing them affects publications, thus these versions are independent from the used inside our build
#KTI-1349 In Progress
2023-09-06 22:47:33 +00:00
Ivan Kochurkin
c8c25d8b98
[FIR] Fix resolving of overload function with expect and common candidates
...
^KT-58896 Fixed
2023-08-30 15:58:59 +00:00
Stanislav Ruban
44a4c4ee1c
[tests] BI (1P&1TV/1TIO): add tests for target types
...
single builder parameter
single postponed type variable
single origin of type information
relevant issues:
KT-60719
KT-60720
KT-60855
KT-60877
KT-60880
2023-08-25 14:01:56 +00:00
Ilya Chernikov
b821009617
K2: add missing checks for integral parameter type on implicit coercion
...
#KT-61418 fixed
#KT-61442 fixed
#KT-61441 fixed
2023-08-25 08:55:58 +00:00
Roman Efremov
8aa3ccd342
[FIR] Store matched actual class members inside FIR attribute
...
Currently, there is only attribute `ExpectForActualAttributeKey`
where mapping is stored only for source declarations with `actual`
modifier. But we need mapping of all class members, including classes
which were actualized via `actual typealias` or fake override members.
This data will be needed for the annotation checker in subsequent
commits.
^KT-60668
^KT-60936
2023-08-22 12:14:42 +00:00
Kirill Rakhman
fa77e3952d
[FIR] Bring equivalent call behavior closer to K1
...
#KT-61159 Fixed
2023-08-21 12:11:58 +00:00
Kirill Rakhman
79fe48ab5b
[FIR2IR] Support error qualifier in case of error suppression
...
#KT-60536 Fixed
2023-08-18 14:28:56 +00:00
Ivan Kochurkin
553114e245
[K2, MPP] Actualize annotation calls
...
^KT-57963 Fixed
2023-08-17 14:04:59 +00:00
Svyatoslav Kuzmich
833c8b2cd4
[Wasm] Fix transforming setField in an inline class constructor body
...
IrSetField was transformed to its value to preserve side effects
This transformation produced invalid IR in cases where
IrSetField used in Unit-returning expression context.
This commit fixes it by producing Unit-typed expression
^KT-59084 Fixed
2023-08-17 10:35:00 +00:00
Dmitriy Dolovov
033bb385b9
[IR] Drop expectDescriptorToSymbol completely
...
^KT-61136
2023-08-16 19:17:17 +00:00
Artem Kobzar
05ed134fbb
[K/Wasm] Introduce stepping tests for Wasm
2023-08-15 17:03:11 +00:00
Alexander Korepanov
7a31167e0b
[Common IR] Do not add internal methods to overrides
...
[JS IR] Use a module name in JsFunctionSignature for internal methods
^KT-60635 Fixed
2023-08-09 16:35:59 +00:00
Dmitriy Novozhilov
4e3dbcada3
[FIR2IR] Always look for already generated fake overrides before creating them
...
This change covers the case where some f/o was generated in common module
and it is referenced in platform code. But signature of this f/o may be
different in different modules because of e.g. actualization of value
parameters with actual typealias
^KT-60850 Fixed
2023-08-09 09:40:23 +00:00
marat.akhin
ae4fab8483
[KMP] Allow matching expect ctorless final classes to objects
...
both directly and via typealias.
This is a possible fix to KT-59747
2023-08-08 23:18:35 +00:00
Igor Yakovlev
983991d46c
[Wasm] Add box and stdlib tests in wasi mode
2023-08-08 18:10:19 +02:00
Igor Yakovlev
f42d0b1ed4
[Wasm] Add wasi kotlin.test target gradle buildscript
2023-08-08 18:10:19 +02:00
Igor Yakovlev
d1c7caf15c
[Wasm] Add wasi stdlib target gradle buildscript
...
KT-56608
2023-08-08 18:10:19 +02:00
Igor Yakovlev
60d35200f6
[Wasm] Wasi frontend diagnostics
2023-08-08 18:10:19 +02:00
Svyatoslav Kuzmich
47ade4530c
[Wasm] Add compiler flag to disable exception handling proposal
...
Fail with unreachable instead of throwing an exception
Merge-request: KT-MR-11481
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com >
2023-08-07 16:19:29 +00:00
Dmitriy Novozhilov
cc2bc5e8b1
[FIR2IR] Reuse IR fake overrides for FIR fake overrides for all MPP modules
...
^KT-58229 Fixed
2023-08-03 10:02:57 +00:00
Zalim Bashorov
cac5342add
Generate tests
2023-08-01 23:48:24 +02:00
Zalim Bashorov
2d728727da
[Wasm] Don't use the new br_on_cast* instructions since they are not supported in Node.js yet
...
#KT-60835 Fixed
2023-08-01 08:46:59 +00:00
Zalim Bashorov
a1115236f9
[Wasm] Disable deprecated instructions while running tests in V8
...
To make sure that our implementation is up-to-date with the spec.
2023-07-28 16:16:34 +00:00
Zalim Bashorov
4572680877
[Wasm] Migrate to the latest br_on_cast* instructions
...
#KT-59722 Fixed
2023-07-28 16:16:33 +00:00
Zalim Bashorov
9254f70c2a
[Wasm] Update SpiderMonkey to 2023-07-24-09-16-21
2023-07-28 16:16:33 +00:00
Ivan Kylchik
fe9de6875a
[FIR2IR] Use a fully expanded type when generating IrClassReference
...
#KT-60639 Fixed
2023-07-28 09:02:45 +00:00
Stanislav Ruban
8bd823de0d
[tests] BI (1P&1TV/1TIO): add tests for contexts of source-sink feeds
...
single builder parameter
single postponed type variable
single origin of type information
relevant issues:
KT-60274
KT-60663
2023-07-27 14:25:08 +00:00