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
Kirill Rakhman
793e3552e7
[FIR] Add tests for K2-only suspend operators get/set/contains
...
#KT-57169
2023-05-30 16:48:53 +00:00
Kirill Rakhman
d1ce55cbd2
[FIR2IR] Fix infinite loop between annotation and annotation parameter
...
When an annotation constructor value parameter is annotated with the
very same annotation, FIR2IR went in an infinite loop when trying
to generate it.
To fix this, the constructor is added to the Fir2IrDeclarationStorage
cache before generating the value parameters.
To accommodate for the missing parameters, the value arguments count
is determined using the FIR.
2023-05-30 15:53:12 +00:00
Denis.Zharkov
e4480a1c52
K2: Refine mapping of primitive arrays to JVM descriptor
...
Earlier, it wasn't really important but after the previous commit
when JvmMappedScope semantics has been changed, we erroneously
started loading `toCharArray` as a member to String because
its jvmDescriptor was computed to "toCharArray()Lkotlin/CharArray",
while hardcoded information that prevents it from loading expect
"toCharArray()[C" there.
^KT-57694 In progress
2023-05-30 10:44:41 +00:00
Alexander Korepanov
8066f1b7d2
[JS IR] Do not copy interface method if base class inherits it
...
^KT-58599 Fixed
2023-05-30 08:22:43 +00:00
Ivan Kochurkin
432c781ff7
[K2, MPP] Fix actualization of fake overrides (fixes a set of bugs in coroutines / ktor)
...
Split MissingFakeOverridesAdder on FakeOverridesActualizer and ActualFakeOverridesAdder
^KT-57984 Fixed
^KT-58003 Fixed
^KT-58124 Fixed
^KT-57833 Fixed
^KT-58153 Fixed
2023-05-24 14:54:51 +00:00
Ilmir Usmanov
a0484de1a6
JVM_IR: Do not copy static init blocks to inline class's constructor
...
#KT-58593 Fixed
2023-05-24 13:24:47 +00:00
Pavel Kunyavskiy
ee1608ec99
[PL] Make call an exception in case of several inherited implementations
...
^KT-57701
2023-05-24 08:17:59 +00:00
Vladimir Sukharev
a534708900
[K2/N] Use FqName to mangle invisible class-like symbol in fake override
...
^KT-57484
Merge-request: KT-MR-10263
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-05-24 07:34:11 +00:00
Nikita Bobko
ac40010501
[FE] Prohibit open val deferred initialization
...
^KT-57553 Fixed
Review: https://jetbrains.team/p/kt/reviews/9967
Other related tests:
- testUninitializedOrReassignedVariables
- testUseOfPropertiesWithoutPrimary
- @TestMetadata("compiler/testData/diagnostics/tests/secondaryConstructors")
- testAugmentedAssignmentInInitializer
- testInitOpenSetter
- testInitOverrideInConstructorComplex
- testPropertyInitializationOrder
2023-05-23 14:12:28 +03:00
Alexander Korepanov
e4d7897071
[JS IR] Check fir compilation errors after checking IC next round
2023-05-23 10:13:26 +00:00
Ilya Goncharov
bcefa1cd66
[Gradle, Wasm] Add wasm platform kind
...
KTIJ-25583
2023-05-17 13:28:20 +00:00
Sergej Jaskiewicz
973adb6a38
[test] Remove TARGET_BACKEND: JVM_IR for non JVM-specific irText tests
...
If they fail on other backends, use the IGNORE_BACKEND directive instead
2023-05-16 18:28:23 +00:00
Nikolay Lunyak
d72a50b3f5
[FIR] KT-58065: Support LT in K2JsIrCompiler
2023-05-16 12:11:46 +00:00
Vladimir Sukharev
bbe1e708f9
[K2/N] Rewrite mpp tests from old native infra to new
...
^KT-58543
Merge-request: KT-MR-10065
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-05-16 08:41:39 +00:00
Sergej Jaskiewicz
1a8d5056bf
[test] Mute an irText test on JS_IR instead of making it JVM-only
...
The test is not in any way JVM-specific, but it fails on the JS BE
because of different fq-names of stdlib symbols on JVM and JS.
The fix is in progress. Mute the test until the fix is ready.
2023-05-15 15:40:25 +00:00
Mikhail Glukhikh
5d35bfd88d
Add IR text test for KT-54887
2023-05-15 08:16:24 +00:00
Mikhail Glukhikh
a86279b766
IR text: add a test with data object
2023-05-15 08:16:24 +00:00
Ivan Kochurkin
d06d3ff467
[FIR2IR] Consider isExpect value of super members during fake-overrides generating
...
It's important for FIR2IR and IrActualizer
Because `isExpect` is a part of signature, and it's considered during actualization
2023-05-12 14:03:15 +00:00
Artem Kobzar
669efc781d
[K/JS] Import @JsModule declarations without asterisk
2023-05-11 12:39:57 +00:00
Alexander Korepanov
1920bbde07
[K/JS] Enable partial linkage tests
2023-05-11 12:37:01 +00:00
Ilmir Usmanov
aec78ab2d8
Minor. Add regression test for KT-42696
...
#KT-42696 Fixed
2023-05-11 11:15:06 +02:00
Ivan Kylchik
d26e3871ba
[K2] Support interpretation of values in type annotations
...
#KT-57812
2023-05-11 08:22:13 +00:00
Ivan Kochurkin
31424e38ac
[FIR] Consider the isExpect value of the receiver class for intersection overrides
...
It's critical for signature calculation in FIR2IR because `isExpect` is a part of signature
2023-05-10 14:17:53 +00:00
Artem Kobzar
c7853c61b6
[K/JS] Make TS tests generating faster
2023-05-10 13:27:46 +00:00
Alexander Udalov
987e8c25dc
K2: do not generate line numbers for delegated members
...
Psi2ir does not generate them, see
https://github.com/JetBrains/kotlin/blob/1.8.20/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ClassGenerator.kt#L319 .
Besides influencing debugger and coverage behavior, it also affects how
conflicting JVM signature diagnostics are reported because they
use offsets to determine which element to report the error on. So after
this change, K1 and K2 behavior is the same in that regard as well.
#KT-58215 Fixed
2023-05-10 10:32:07 +00:00
Ivan Kochurkin
988927154e
[Tests] Extract common dependentIrModuleFragments and diagnosticReporter for IrBackendInput
2023-05-09 20:50:01 +00:00
Alexander Udalov
45bf70c9f9
Minor, add debug stepping test for KT-44745
2023-05-09 12:44:47 +00:00
Mikhail Glukhikh
aec0def5ca
FE: add test for KT-58332 (K2 fails with ARGUMENT_TYPE_MISMATCH)
2023-05-09 09:19:37 +00:00
Anna Kozlova
366c67a668
extract StandartNames.NAME constant
2023-05-09 07:36:10 +00:00