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
Artem Kobzar
890fbd6b0b
[K/JS] Process JS-specific returnable blocks before the state machine building
...
^KT-60785 Fixed
^KT-63207 Fixed
2023-11-16 13:25:51 +00:00
Ivan Kylchik
0a6f711a41
[JS_IR] Use IrModuleFragment as input to lowering instead of iterable
...
This way we will be able to reuse existing utils
to create a lowering.
#KT-63073
2023-11-16 12:03:41 +00:00
Artem Kobzar
f4d088a886
[K/JS] Don't add nested classes generated by plugins into ExportModel for interfaces ^KT-63184 Fixed
2023-11-15 10:21:22 +00:00
Artem Kobzar
82bca7a04f
[K/JS] Rework member-exportability check in a right way ^KT-61957 Fixed
2023-11-15 10:18:05 +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
Brian Norman
ed4a778aa7
[FIR2IR] Convert data class properties of type dynamic for hashCode
...
Properties of type dynamic within a data class cause compilation to fail
when converting FIR to IR. This is because dynamic types do not have a
proper backing class for symbol lookup. However, dynamic types can just
be considered of type Any for hashCode calculations.
^KT-63094 Fixed
2023-11-14 17:45:04 +00:00
Ilya Goncharov
11b7c35eab
All tasks related to typescript generation made configuration avoidance compatible
...
^KTI-1471 fixed
2023-11-14 16:53:23 +00:00
Artem Kobzar
bec434d534
[K/JS] Save nullability from the original type of value parameters ^KT-63013 Fixed
2023-11-14 10:40:07 +00:00
Mikhail Glukhikh
4913c38e98
FIR2IR: insert spread for named argument against primitive vararg
...
#KT-60312 Fixed
2023-11-13 16:23:26 +00:00
Mikhail Glukhikh
4abce54748
K2: reproduce KT-60312
2023-11-13 16:23:26 +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
cristiangarcia
69c209874d
Use cache-redirector to download Node.js for js.tests
2023-11-06 11:01:54 +01:00
Dmitriy Novozhilov
420fbad73d
[FIR2IR] Properly insert implicit casts to extension receiver in case of intersection smartcast type
...
^KT-62863 Fixed
2023-11-06 06:50:35 +00:00
Mikhail Glukhikh
50106c740c
K2: reproduce situation from KT-62863
2023-11-06 06:50:35 +00:00
Mikhail Glukhikh
1ef0f9e944
K2: reproduce strange "smartcast aside" behavior related to KT-62544 fix
2023-11-06 06:50:35 +00:00
Vladimir Sukharev
8e4a6759a4
[FIR] Fix Disappeared INVALID_CHARACTERS
...
^KT-59996 Fixed
2023-10-31 22:04:06 +00:00
Alexander Korepanov
0d7de87e2e
[JS IR test] Add a test for invalidation with a src name chash
2023-10-30 09:14:16 +00:00
Alexander Korepanov
ec71fe20e2
[JS IR] Fix file name clashes during JS BE invalidation
2023-10-30 09:14:16 +00:00
Alexander Korepanov
73bf7fa506
[JS IR test] Add a simple multiplatform invalidation test
2023-10-30 09:14:15 +00:00
Alexander Korepanov
bf80d55fc3
[JS IR test] Use relative paths for klib building in invalidation tests
2023-10-30 09:14:15 +00:00
Alexander Korepanov
27b458c222
[JS IR test] Support multiplatform for invalidation tests
2023-10-30 09:14:15 +00:00
Alexander Korepanov
91edbeb747
[JS IR] Add tests for checking constant inlining with JS IR IC
...
^KT-62425
2023-10-26 19:22:14 +00:00
Alexander Korepanov
4ebfed04d3
[JS IR] Add tests for JS code KLIB diagnostics
...
^KT-62425
2023-10-26 19:22:14 +00:00
Alexander Korepanov
04809a6b3b
[JS IR] Move tests for JS code diagnostics
...
^KT-62425
2023-10-26 19:22:14 +00:00
Alexander Korepanov
78aa34b3e8
[JS IR] Fix JS box tests
...
^KT-62425
2023-10-26 19:22:14 +00:00
Alexander Korepanov
188cdf2f98
[JS IR] Allow constant inlining in JS IR
...
Fixed the incremental compilation issue,
which had prevented enabling const inlining during constant
evaluation and folding a constant expression with JS code.
^KT-62425
2023-10-26 19:22:14 +00:00
Alexander Korepanov
720fe2ac89
[JS PSI] Deprecate using not constant variables in js() calls
...
Added JSCODE_ARGUMENT_NON_CONST_EXPRESSION warning which
checks non constant variable usages in js() argument expressions.
The fix is related to KT-57156.
2023-10-26 19:22:13 +00:00
Artem Kobzar
6cd42eeb71
[K/JS] Fix reexport with CommonJS and incremental compilation
2023-10-26 09:58:35 +00:00
Ilya Goncharov
573bc34b56
[JS] Invoke processing separately for suspend and non-suspend function
...
^KT-62771 fixed
2023-10-25 13:28:58 +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
Ilya Goncharov
3d399a8b25
[JS] Remove npm publication of JS packages
...
^KTI-1380 fixed
2023-10-23 09:42:03 +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
Artem Kobzar
4a042dafef
[K/JS] Fix nameBindings for ES-modules after the ES-modules external declarations optimization
2023-10-20 14:04:39 +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
Vladimir Sukharev
242c1cf5f0
[FIR] Fix disappeared REPEATED_ANNOTATION for dynamic types
...
https://youtrack.jetbrains.com/issue/KT-59916/K2-Disappeared-REPEATEDANNOTATION
FirAnnotationChecker does not detect repeated annotation on dynamic type, since FirTypeResolverImpl wrongly did not convert source annotations to attributes of ConeDynamicType.
This MR improves FirTypeResolverImpl to convert attributes of FirDynamicTypeRef to annotations and attach them to ConeDynamicType.
Merge-request: KT-MR-12551
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-10-17 10:18:36 +00:00
Ilya Goncharov
a79324037d
[JS] Fix JPS artifacts cordinates
2023-10-16 13:34:37 +00:00
Mikhail Glukhikh
13ae4abe52
FIR2IR: use elvis temporary variable name closer to PSI2IR
...
Related to KT-61983
2023-10-13 15:42:57 +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
Ilya Gorbunov
eb813b7837
KT-62004 Drop legacy JS build of kotlin-test
2023-10-06 00:46:08 +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
Artem Kobzar
1062ca9646
[K/JS] Add ingored test for KT-60785 fix until the rr/vgrechko/accidental-reification-2 will be merged
2023-09-28 15:15:04 +02:00
Artem Kobzar
857c07fa25
[K/JS] Fix corutines build for 1.9.20
...
This reverts commit f0d6471a8bcbdfc52ddc840a6383032ef86976d1.
2023-09-28 15:15:04 +02:00
Alexander Korepanov
0f4c550ee0
[JS IR] Add JS BE diagnostic tests
...
Add tests for:
- EXPORTING_JS_NAME_CLASH
- EXPORTING_JS_NAME_CLASH_ES
^KT-61710
2023-09-23 19:49:17 +02:00