Stanislav Ruban
269b60b420
[tests] Add a test case for KT-61978
...
^KT-61978 Obsolete
2023-11-27 15:50:46 +00:00
Dmitriy Novozhilov
06af6adf4f
[Test] Unify all fir2ir facades for non-jvm platforms
...
Setup of fir2ir for JS, Native and Wasm is very similar, so it makes
sense to extract all common parts of it into common base facade
2023-11-27 10:17:54 +00:00
Dmitriy Novozhilov
e38b25c278
[FIR2IR] Make convertAndActualize method the only entrypoint to fir2ir
...
Fir2Ir conversion consists of multiple steps with complex logic (like
conversion of each module, actualization, plugins application, constant
evaluation), and to ensure that they all are executed correctly it's
convenient to have the single entry point for all this machinery
2023-11-27 10:17:54 +00:00
Dmitriy Novozhilov
075010b14e
[Test] Get rid of some properties in IrBackendInput
...
`fir2IrComponents`, `irActualizerResult` and `dependentIrModuleFragments`
were used in `IrActualizerAndPluginsFacade`, which was removed in the
previous commit
2023-11-27 10:17:54 +00:00
Ivan Kochurkin
115d685d91
[FIR] Fix ambiguity of Throws and other std annotations importing
...
Including `SharedImmutable` and `ThreadLocal`
Simplify code, remove `DefaultImportPriority.KOTLIN_THROWS`
Introduce `FirNativeClassMapper`
2023-11-23 23:51:23 +00:00
Vladimir Sukharev
5ea59f57d6
[K/N] Verbose possible cinterop tool exceptions
...
^KT-59288
2023-11-23 18:36:00 +00:00
Kirill Rakhman
11ab90ecbd
[Tests] Add regression test for #KT-63732
2023-11-23 14:24:47 +00:00
Stanislav Ruban
ec995fc847
[tests] Regenerate configurations for box-tests
2023-11-23 09:34:15 +00:00
Brian Norman
c1f6fe1e76
[FIR] Do not include transitive friend dependencies in symbol provider
...
When flattening a dependency FirSymbolProvider, make sure transitive
dependency FirSymbolProviders are not included. This requires checking
that nested symbol provider sessions match the composite symbol provider
session when they are both source sessions.
^KT-60614 Fixed
2023-11-22 19:43:24 +00:00
Vladimir Sukharev
6cff71e7d1
[K/N] Add objc-related clang options to cinterop executable tests
...
^KT-63287
2023-11-22 11:18:09 +00:00
Ivan Kylchik
8715bd6189
[IR] Don't evaluate expressions in inner class of an annotation
2023-11-21 09:48:58 +00:00
Ivan Kylchik
3fa82c7bb1
[K2] Properly evaluate complex boolean constants
...
Some boolean expressions could be transformed into `IrWhen`
node. To understand that this node is actually
a boolean expression, we need to analyze its origin.
#KT-62683
2023-11-21 09:48:57 +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
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
Alexander Shabalin
9ad7b00613
[K/N] Migrate some runtime/workers tests to new testing infra ^KT-61259
2023-11-17 07:42:28 +00:00
Stanislav Ruban
6edc742934
[tests] builder inference test-set: regenerate diagnostic & codegen tests
2023-11-17 07:02:15 +00:00
Ilya Kirillov
6aeabc83ea
[kotlin] fix "IllegalStateException: Could not find stdlib"
...
The commit removes all the KLib resolution logic,
now Analysis API Standalone clients need to provide all the KLib
list directly.
The resolution logic was removed as too error-prone and requiring compiler configurations.
Kotlin Gradle plugin can provide a full set of required KLibs,
so if a client is a Gradle plugin, this should not be an issue.
Probably, some fancy API which will explicitly perform all KLib dependency searches
should be introduced in the future (KT-63395)
^KT-63126 fixed
2023-11-16 13:31:53 +00:00
Dmitriy Dolovov
1183244455
[tests] Use full paths with the proper extensions to KLIBs in LibraryProvider
...
^KT-61098
2023-11-15 19:38:25 +00:00
Dmitriy Dolovov
2fe49f2e5a
[Native][tests] Don't use KLIB repositories in new test infrastructure
...
Don't pass KLIB repositories via '-repo' or '-r' compiler parameters.
^KT-61098
2023-11-15 19:38:25 +00:00
Vladimir Sukharev
c38a0e10af
[K/N] Implement a concept of conditional ignore of K/N blackbox tests
...
^KT-59288 Fixed
2023-11-15 19:03:07 +00:00
Svyatoslav Scherbina
6ce33e80a5
Native: fix ConcurrentModificationException in test infra
...
Synchronously copy system properties before iterating over them, because
other thread sometimes tries to modify them in the meantime, which leads
to ConcurrentModificationException otherwise.
2023-11-15 18:52:12 +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
Vladimir Sukharev
1b1df9f0db
[K/N] Create test model for building/executing C-Interop tests
...
^KT-63287 Fixed
2023-11-14 19:35:52 +00:00
Svyatoslav Scherbina
8d20d5b16c
Native: support objcExportReportNameCollisions=true binary option
...
This binary option makes the compiler emit a warning whenever it mangles
a name emitted by ObjCExport.
^KT-63153 Fixed
2023-11-14 19:24:43 +00:00
Mikhail Glukhikh
4abce54748
K2: reproduce KT-60312
2023-11-13 16:23:26 +00:00
Alexander Shabalin
fa9c620261
[K/N] Migrate some runtime/basic tests to new testing infra ^KT-61259
2023-11-10 15:51:05 +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
Ilya Kirillov
b6fdd7cacc
[FIR, Native] extract test initialization code to functions from AbstractDiagnosticsNativeTest for further reuse in LL FIR tests
...
^KT-62910
2023-11-10 06:41:03 +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
Vladimir Sukharev
4d4ad6c0d8
[K/N] Fix K2 ObjC interop: Fields are not supported for Companion of subclass of ObjC type
...
^KT-63048
2023-11-07 18:51:10 +00:00
Vladimir Sukharev
3ea4a6a937
[K/N] Add test for KT-63048, K1greenK2red
...
^KT-63048
2023-11-07 18:51:10 +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
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
Dmitriy Dolovov
a3bfe58415
[KLIB tool] Fix failing test on dumping c-interop signatures
2023-11-02 18:44:14 +00:00
Vladimir Sukharev
9e7bb90e44
[K/N] Don't pass language version to the second stage.
2023-11-01 01:51:12 +00:00
Dmitriy Dolovov
e18a2d0a2e
[KLIB tool] Add tests for dumping metadata signatures
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
88a297b022
[KLIB tool] Run tests for 'dump-metadata' with & without signatures
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
aa9b901926
[KLIB tool] Migrate 'dump-metadata' tests to K/N test infra
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
57e004e2b0
[KLIB tool] Respect '-signature-version' in 'dump-metadata' and 'dump-ir' commands
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
93506bcb95
[KLIB tool] Add tests for dumping IR signatures
...
^KT-62341
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
a49723e35c
[KLIB tool] Minor. Rename ir() to dumpIr()
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
02f52371c1
[KLIB tool] Rename "contents" to "dump-metadata"
...
To make KLIB tool command names more uniform.
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
447b0eddac
[KLIB tool] Drop useless arg: -target
2023-10-27 09:27:59 +00:00
Alexander Shabalin
b3e13fb2c2
[K/N] Migrate runtime/collections tests to new testing infra ^KT-61259
2023-10-24 09:27:46 +00:00
Johan Bay
fb1d2278a0
[klibs] header klibs should keep private interfaces
...
^KT-62213 Fixed
2023-10-23 11:48:05 +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