Svyatoslav Scherbina
7bf6d64cfb
Native: move samples to backend.native/tests/
2022-08-31 16:10:04 +00:00
Svyatoslav Scherbina
b7337d2e64
Native: use samples only as compiler tests
...
Remove unrelated parts.
2022-08-31 16:10:04 +00:00
Svyatoslav Scherbina
71b8089f33
Native: remove samples that are not used in tests
2022-08-31 16:10:04 +00:00
nataliya.valtman
d22cccdc4d
Add property to protect sensitive data in http reports
...
#KT-53773 Fixed
2022-08-31 15:33:57 +00:00
Roman Golyshev
35116696b2
Add missing @Override annotation to KtParameter
2022-08-31 12:41:44 +00:00
Anton Lakotka
2e7a9f737f
fixup! Update defFileProperty initialisation and remove empty method from test
2022-08-31 11:06:37 +00:00
Anton Lakotka
073d75179d
[Gradle] CInterop Task input should be modifiable through Cinterop DSL
...
For configuration cache compatibility reasons Project object
was removed from DefaultCInteropSettings and instead
related factory services were used.
^KT-53704 Verification Pending
2022-08-31 11:06:37 +00:00
Anton Lakotka
45581c11fa
[Gradle] Add test for KT-53704
...
CInterop Task input should be modifiable through Cinterop DSL
2022-08-31 11:06:37 +00:00
Denis.Zharkov
490382b77f
Add test for KT-52782
...
It just demonstrates/fixate the current "broken" behavior in K1
that we unfortunately have and that is fixed in K2
2022-08-31 09:45:54 +00:00
Nikolay Krasko
01f567a16d
Disable yarn and npm tasks from the build when tests are not active
...
Kotlin build shouldn't depend on npm during while deploy artefacts tasks
^KTI-887 Fixed
^KT-53687 Related
2022-08-30 22:15:16 +00:00
Denis.Zharkov
db1bd4f232
Add test for KT-53124
...
The issue itself is supposed to be fixed after eb19d39cbf reverted
^KT-53124 Fixed
2022-08-30 15:56:31 +00:00
Denis.Zharkov
42c41a1916
Revert "[FE 1.0] Build captured type's supertypes in an alternative way: use own projection type as a first supertype, then supertypes from the corresponding type parameter's upper bounds"
...
This reverts commit eb19d39cbf .
2022-08-30 15:56:30 +00:00
Alexander Likhachev
2a53273f4d
[Gradle] Add tests for KT-53686
2022-08-30 14:49:30 +00:00
Alexander Likhachev
fa98430a67
[Gradle] Use valid XCFramework name in fat framework configuration
...
#KT-53686 Fixed
2022-08-30 14:49:30 +00:00
Alexander Likhachev
798f0efcf6
[Gradle] Prevent false positive warning about XCFramework names mismatch
...
#KT-53686
2022-08-30 14:49:29 +00:00
Alexander Likhachev
3836915012
[Gradle] Skip XCFramework task when there's no input frameworks
...
#KT-53686
2022-08-30 14:49:29 +00:00
Roman Golyshev
16cb3064c8
[FIR] Resolve value class constructor to TYPES before using its params
...
Right now it is the easiest way to ensure that all the parameters are
resolved. After KT-53573 is fixed, we might use `resolvedReturnTypeRef`
on each parameter individually instead
Also, add `toString` implementation to `ValueClassRepresentation`
classes, so they are properly rendered in testdata
^KTIJ-22630 Fixed
2022-08-30 13:49:40 +00:00
Sergej Jaskiewicz
17f22c7204
[JS IR] Use a special executor for stepping tests
...
This will hopefully fix flakiness for some tests
2022-08-30 13:38:47 +00:00
Ilya Goncharov
6ebbe12d44
Update yarn.lock to fix dependabot alerts
2022-08-30 11:39:27 +00:00
Denis.Zharkov
f4a3ab877f
Add test for parsing issue KT-53719
...
^KT-53719 Related
2022-08-30 11:21:51 +00:00
Denis.Zharkov
3d7969ec8f
Revert "KT-35811: Type parameter angle brackets followed by equal sign are parsed incorrectly if whitespace is missing"
...
This reverts commit 2053363def .
^KT-35811 Open
2022-08-30 11:21:50 +00:00
Denis.Zharkov
211d662708
Revert "KT-8263: Conditional operators are not parsed correctly"
...
This reverts commit ec8da2033c .
For the reason for the revert see KT-53719
^KT-8263 Open
^KT-53719 Fixed
2022-08-30 11:21:50 +00:00
Simon Ogorodnik
154e53c701
K1: add diagnostic BUILDER_INFERENCE_STUB_RECEIVER
...
It's reported on receivers in extension function calls with stub type,
as such calls can shadow members of finalized stub types causing
change of resolve when corresponding type argument specified explicitly
It works by checking extension receiver during call resolution parts run
That way we can easily detect if we found an extension applicable to
stub receiver and report call diagnostic for it
KT-53739
2022-08-30 10:19:26 +00:00
Simon Ogorodnik
105358dcf6
K1: add diagnostic BUILDER_INFERENCE_MULTI_LAMBDA_RESTRICTION
...
Let's call builder lambdas (BL) a lambda that has non-fixed input type
projection at the moment of lambda arguments analysis, such lambdas
is a subject to be analyzed with builder inference
Due to bug in constraint system joining algorithm, currently system
of two or more such lambdas may lead to unsound type inference
Diagnostic added here should be reported in case when there are two
BL that shares a common constraint system, while not annotated with
@BuilderInference, as a protection against aforementioned bug
It's reported by ConstraintSystemCompleter when such situation has
occurred during builder inference phase, it is the same place that
decides wherever lambdas is subject to builder inference or not
KT-53740
2022-08-30 10:19:25 +00:00
Simon Ogorodnik
db0d8d9f57
Add language feature for diagnostics in builder inference restriction
2022-08-30 10:19:25 +00:00
Simon Ogorodnik
4227fd012f
Fix test for two builder inference lambdas
2022-08-30 10:19:24 +00:00
Mikhail Glukhikh
f6ad6fb816
Add test for stub type receiver and for KT-53639
2022-08-30 10:19:24 +00:00
Mikhail Glukhikh
5cbecd276c
FE: add test reproducing builder inference problem from KT-53422
2022-08-30 10:19:23 +00:00
Dmitriy Dolovov
444cdaa2d8
[Native][tests] Re-enable internalFromFriendModule codegen box test
...
^KT-53723
This reverts commit 6594ebe487f0758e0fab880e2902d3d28eca7f44.
2022-08-30 07:56:18 +00:00
Dmitriy Dolovov
6b6bc7d6fe
[Native][tests] Fix: Pass friend modules to compiler CLI when building static cache
...
^KT-53723
2022-08-30 07:56:17 +00:00
Igor Chevdar
ea4a841056
[box-tests] Ignored a test for K/N for now
...
The test checks internal declarations visibility from friend module,
the K/N test system is broken for now if uses caches
2022-08-30 07:29:07 +00:00
Igor Chevdar
ced974fcb7
[IR] Fixed non-friend module visibility for LazyIR caches
...
K/N builds Lazy IR for cached libraries - so no IrModule for them,
have to use descriptors to find the module's name for the friend module predicate
2022-08-30 07:29:07 +00:00
Ilya Gorbunov
8b95257143
Reduce the chance shuffle produces an identical permutation in test (part 2)
2022-08-29 22:14:24 +02:00
Nikolay Krasko
cfc013137e
Fix compile error
...
Introduced in 43ce805499
2022-08-29 21:58:57 +02:00
Artem Kobzar
98474f0d13
chore: change line breaker for generated js files.
2022-08-29 18:06:27 +00:00
Artem Kobzar
43ce805499
chore: fix typo in a method name.
2022-08-29 18:05:45 +00:00
Artem Kobzar
8b826a865b
[K/JS, K/WASM] feat(Enum.entries): add support of new enum static field for JS and WASM.
2022-08-29 16:04:12 +00:00
Mikhael Bogdanov
bd6aff7f6a
Xjdk-release: avoid folder duplication
2022-08-29 12:26:27 +00:00
Dmitry Gridin
4a6609e491
[lc] LightClassUtil: simplify facade class search
...
^KT-53543
2022-08-29 11:51:43 +00:00
Dmitry Gridin
feb31b79de
[lc] support decompiled facade only for .class
...
we have support only for KtClsFile (see decompiled light classes) so kotlin_builtins and kotlin_metadata should be ignored
^KT-53543
2022-08-29 11:51:43 +00:00
Dmitry Gridin
031edb7344
[lc] do not search files for compiled jvm multifile
...
^KT-53543
2022-08-29 11:51:42 +00:00
Dmitry Gridin
924dd38144
[lc] introduce KotlinAsJavaSupportBase with new common facade logic
...
^KT-53543
2022-08-29 11:51:42 +00:00
Dmitry Gridin
0ea041a1eb
[lc] move SymbolLightClassForDecompiledFacade to common decompiled part
...
^KT-53543
2022-08-29 11:51:42 +00:00
Dmitry Gridin
d2ddf88cdc
[lc] KtLightClassBase: cleanup code
...
^KT-53543
2022-08-29 11:51:41 +00:00
Dmitry Gridin
0bbe981ff0
[lc] KtLightClassForFacadeBase: simplify equals
...
^KT-53543
2022-08-29 11:51:41 +00:00
Dmitry Gridin
5be31e575c
[lc] extract common code to KtLightClassForFacadeBase
...
^KT-53543
2022-08-29 11:51:41 +00:00
Dmitry Gridin
acfbe30f7c
[lc] drop redundant PsiManager argument from KtLightClassForFacadeBase
...
^KT-53543
2022-08-29 11:51:40 +00:00
Alexander Udalov
690322b203
Add flag -Xno-new-java-annotation-targets
...
Do not generate TYPE_USE/TYPE_PARAMETER Java annotation targets when
this flag is specified.
#KT-53712 Fixed
2022-08-29 13:43:49 +02:00
Alexander Udalov
a09fd45ade
Do not generate TYPE_USE/TYPE_PARAMETER when compiling against JDK 1.6
...
#KT-53712
2022-08-29 13:43:32 +02:00
Yahor Berdnikau
0d2e9e7013
Change 'KotlinCompile.classpath' task input deprecation level to ERROR
...
^KT-51679 Fixed
2022-08-29 08:36:17 +00:00