Kirill Rakhman
11ab90ecbd
[Tests] Add regression test for #KT-63732
2023-11-23 14:24:47 +00:00
Svyatoslav Kuzmich
cf3b293072
[Wasm] Move external RTT checkers to web.common and reuse in Wasm
...
#KT-56849
2023-11-23 10:42:56 +00:00
Svyatoslav Kuzmich
d219d5380b
[Wasm] Move FirJsQualifierChecker to web.common and reuse in Wasm
...
#KT-56849
2023-11-23 10:42:56 +00:00
Stanislav Ruban
ec995fc847
[tests] Regenerate configurations for box-tests
2023-11-23 09:34:15 +00:00
Ivan Kylchik
c82bc8f0ce
[WASM] Add ConstEvaluationLowering to the lowering list
2023-11-22 14:54:19 +00:00
Ivan Kylchik
8715bd6189
[IR] Don't evaluate expressions in inner class of an annotation
2023-11-21 09:48:58 +00:00
Dmitrii Gridin
b3b184f00d
[FIR] add more tests diagnostic tests on data and delegated classes
...
^KT-63522
^KT-63512
^KT-63042
2023-11-21 08:11:20 +00:00
Svyatoslav Kuzmich
31560217f8
[Wasm] Port @JsFun checker to K2 (KT-56849)
...
^KT-62724 Fixed
2023-11-20 14:39:24 +00:00
Mikhail Glukhikh
a139965231
K2: reproduce KT-63164
2023-11-17 20:29:58 +00:00
Artem Kobzar
e64068cf82
[K/JS, K/Wasm, K/Native] Process anonymous initializers inside classes as a part of their primary constructors ^KT-61929 Fixed
2023-11-17 13:04:34 +00:00
Stanislav Ruban
6edc742934
[tests] builder inference test-set: regenerate diagnostic & codegen tests
2023-11-17 07:02:15 +00:00
Artem Kobzar
ff50d40b32
[K/JS] Rework kotlin tests compilation to make it works with per-file granularity ^KT-61525 Fixed
2023-11-16 19:02:04 +00:00
Svyatoslav Kuzmich
62ebb9932f
[Wasm] Port external declaration checker to K2 (KT-56849)
...
Share common code with FirJsExternalChecker using
FirWebCommonExternalChecker
2023-11-16 14:27:49 +00:00
Mikhail Glukhikh
4b1368409d
K2: add a black box test to confirm KT-55705 now works properly
2023-11-15 09:33:05 +00:00
Mikhail Glukhikh
f2ef41dbbd
K2: add a black box test for KT-58874 to confirm work also in runtime
2023-11-15 09:33:03 +00:00
Svyatoslav Kuzmich
1c230c8f27
[Wasm] Port WasmImport/WasmExport checker to K2 (KT-56849)
2023-11-14 12:24:10 +00:00
Dmitriy Novozhilov
8578a0bf6a
[FIR2IR] Properly insert casts for smartcasts in argument position
...
Previously cast inserter didn't consider expected type for arguments
of function calls
^KT-63257 Fixed
2023-11-10 07:50:01 +00:00
Kirill Rakhman
7da271bab8
[FIR] Serialize context receivers using the correct local serializer
...
This leads to type ref referring to generic type variables being
serialized correctly.
When the type variable is declared on the member itself, it's written to
typeParameterName,
otherwise it's written to typeParameter. This is required for
deserialization to work correctly.
#KT-63227 Fixed
2023-11-08 10:26:34 +00:00
Dmitriy Novozhilov
d08567c2c7
[FIR2IR] Approximate extension receiver type after type argument substitution
...
Frontend may leak captured types into type arguments, so they should be
approximated before using them in fir2ir cast inserter to determine
a specific type from smartcast
^KT-62863 Fixed
2023-11-07 12:37:19 +00:00
Svyatoslav Kuzmich
15d3bf5e25
[Wasm] Port JS interop type checker to K2 (KT-56849)
2023-10-31 12:34:32 +00:00
Svyatoslav Kuzmich
a8e5655ffe
[Wasm] K2 port of definedExternally diagnostic (KT-56849)
2023-10-26 12:40:17 +00:00
Vladimir Sukharev
e43b634122
[K/N] Migrate most simple filecheck tests to new infra
...
^KT-62157
Merge-request: KT-MR-12376
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-10-23 10:07:28 +00:00
Ivan Kylchik
8c7c44f9f5
[FIR] Fix evaluation of Java properties for Char and String types
...
#KT-57802
2023-10-20 16:33:20 +00:00
Dmitriy Novozhilov
940567978d
[FIR2IR] Treat delegated functions as fake-overrides
...
Delegated callables in FIR are session-dependant (as fake-overrides),
so it's incorrect to use their FIR as a key for declaration storage.
Pair of original function and owner lookup tag should be used instead
^KT-62671 Fixed
2023-10-19 13:15:48 +00:00
Pavel Kunyavskiy
da488f513f
[IR] Fix file modules after actualization
...
When files from different IrModules are merged in IrActualizer
their IrModule link was not updated. This led to assuming them
as different modules, and incorrect internal visibility handling.
^KT-62623
2023-10-19 10:16:45 +00:00
Ilya Gorbunov
469ca237db
Remove the previous approach to build wasm stdlib variants
2023-10-17 16:30:41 +00:00
Igor Chevdar
c6470a684d
[box-tests] Added a reproducer for #KT-62313
2023-10-12 13:34:13 +00:00
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