Commit Graph

104776 Commits

Author SHA1 Message Date
Ilya Chernikov 5b64741609 LV20: unmute scripting test
the test doesn't fail anymore, but should
see #KT-60452
2023-09-19 15:46:28 +00:00
Ilya Chernikov beeae2772e LV20: fix / mute failing main-kts test 2023-09-19 15:46:28 +00:00
Ilya Chernikov c639febf36 LV20: remove redundant scripting plugin registration
related to #KT-61452
2023-09-19 15:46:28 +00:00
Ilya Chernikov 3dc1b26d83 Fix cli testdata for changed diagnostics in K2 2023-09-19 15:46:28 +00:00
Ilya Chernikov 7b49acb490 Fix ant testdata for changed diagnostics in K2 2023-09-19 15:46:28 +00:00
Ilya Chernikov 21b7945216 Fix ant testdata due to the newly added suppression warning 2023-09-19 15:46:28 +00:00
Ilya Chernikov effb2f801d Fix cli testdata for the newly added warning suppression tests 2023-09-19 15:46:28 +00:00
Ilya Chernikov 562ede4c7d LV20: Fix maven plugins test metadata 2023-09-19 15:46:28 +00:00
Ilya Chernikov 7cbe728e35 LV20: mute scripting test testLazyScriptDefinitionDiscovery 2023-09-19 15:46:28 +00:00
Ilya Chernikov 856e801cbc LV20: fix CompilerSmokeTest testdata for changed K2 error reporting 2023-09-19 15:46:28 +00:00
Denis.Zharkov ea0d0097ba Fix testSelfUpperBoundInference test in LV 2.0 branch
The test starts failing after switching to 2.0 because we don't support
TypeInferenceOnCallsWithSelfTypes though it's planned (see KT-59012).

This particular test was introduced in 1.5.x (see KT-48026) to check
if the flag -Xself-upper-bound-inference actually enables
the feature TypeInferenceOnCallsWithSelfTypes.

While the feature is enabled by default since 1.6, it doesn't make sense
to have it with earlier versions.
Another solution would be removing it at all, but that might require
removing related code as well (as we would have some dead code in CLI
arguments processing).

^KT-60885 Fixed
2023-09-19 15:46:28 +00:00
Ilya Chernikov 9fed50c03b LV20: fix CliTestGenerated testdata for changed K2 error reporting 2023-09-19 15:46:28 +00:00
Ilya Chernikov e29cd3d0b3 LV20: fix testdata for OldCompileKotlinAgainstCustomBinariesTest
fake future version changed
2023-09-19 15:46:27 +00:00
Aleksei.Cherepanov 39a0829f39 Fix Maven tests for K2
1) Update test data according to K2 compiler output
2) Finally switch logic of choosing compiler runner depends on language version instead of deprecated useK2 flag

#KT-60859 Fixed
2023-09-19 15:46:27 +00:00
Ilya Chernikov e7ff1d4cd9 LV20: mute noStdLib test for K2 until the issue is resolved
K2 do not track builtins properly to provide appropriate
diagnostics yet
related to #KT-61033
2023-09-19 15:46:27 +00:00
Ilya Chernikov e3dae559d0 LV20: refactor K2 scripting tests - rename tasks 2023-09-19 15:46:27 +00:00
Ilya Chernikov 2c4cca5785 LV20: fix K2 scripting tests - plugin registration 2023-09-19 15:46:27 +00:00
Ilya Chernikov 60603de042 LV20: fix JPS testdata where the error reporting slightly changed 2023-09-19 15:46:27 +00:00
Ilya Chernikov 0883b4468b LV20 mute test related to main function detection
related to #KT-44557
2023-09-19 15:46:27 +00:00
Ilya Chernikov 137dfbaca4 LV20: fix LauncherScriptTest testdata
note: the follow-up ussue for one of the changes - KT-60865
2023-09-19 15:46:27 +00:00
Mikhail Glukhikh ab2053df4b Use K2/PSI in lookup tracker tests, fix test data in accordance with 2.0
#KT-60736 Submitted
2023-09-19 15:46:27 +00:00
Mikhail Glukhikh f1a297279d Fix Java LC test for LV 2.0 (see KT-60646) 2023-09-19 15:46:27 +00:00
Mikhail Glukhikh 876a0768e4 Mute a pair of intrinsic trim tests for old BE in LV 2.0
We muted tests in this commit because LV 2.0 shouldn't support old BE,
so this behavior is not important
2023-09-19 15:46:27 +00:00
Mikhail Glukhikh e077be38f7 Migrate some Gradle tests to Kotlin 2.0 2023-09-19 15:46:27 +00:00
Mikhail Glukhikh 101166c8a7 K2/CLI tests in LV 2.0: drop warnings related to KT-56989 2023-09-19 15:46:27 +00:00
Mikhail Glukhikh 0a498660cb Run K2 scripts in PSI mode 2023-09-19 15:46:27 +00:00
Dmitrii Gridin 11d86992c5 [SLC] update test data for 2.0 version
* disable compiled tests for scripts because they are not supported yet
* fix test data

^KT-60590 Fixed
2023-09-19 15:46:27 +00:00
Mikhail Glukhikh 2a8b655294 Update tests after switching to LV 2.0
Related to KT-59171
2023-09-19 15:46:27 +00:00
Mikhail Glukhikh 5fb38008b7 Switch Kotlin version to 2.0
#KT-59171 In Progress
2023-09-19 15:46:26 +00:00
Sebastian Sellmair 68ca571528 [Gradle] jvm+android: Add additional test for 'java only'
^KT-62033 Verification Pending
2023-09-19 15:31:57 +00:00
Sebastian Sellmair cb5026b528 [Gradle] jvm+android: Support source dependency resolution to jvm only project
^KT-62033 Verification Pending
2023-09-19 15:31:57 +00:00
Konstantin Tskhovrebov 5473db9ac5 KT-56369: [cinterop] Add gradle integration test on '-fmodules' hint 2023-09-19 15:23:52 +00:00
Konstantin Tskhovrebov 4ad5be35f4 KT-56369: [cinterop] Throw an error for an unexpected module imports
Module imports require explicit '-fmodules' compiler flag.
If the indexer meets a module import but there is no the flag
then it throws an error.
2023-09-19 15:23:52 +00:00
Dmitrii Krasnov 8e71488adf [Gradle] Check ~/.konan after each test class
Added deleting ~/.konan before kotlin-gradle-plugin-integration-tests execution. And added checking ~/.konan after each test class. This is necessary to check that in each test konan.data.dir gradle property is set properly
2023-09-19 14:39:25 +00:00
Nikita Bobko b15787bfa8 Fir incorrect usage of AbstractExpectActualCompatibilityChecker.getCallablesCompatibility API
^KT-62027 Fixed

`getCallablesCompatibility` requires parentSubstitutor as a parameter,
but we created a member-level substitutor

`getCallablesCompatibility` will create member-level substitutor itself,
no need to create member-level substitutor on the call site.

IndexOutOfBounds was happening in an attempt of creating member-level
substitutor

I will refactor the `createExpectActualTypeParameterSubstitutor` API in
the following commits later. It will help to avoid problems like that
2023-09-19 14:24:15 +00:00
Dmitrii Gridin 9ff3871a8b [LL FIR] LLFirPhaseUpdater: add missing update for code fragment block 2023-09-19 14:03:29 +00:00
Dmitrii Gridin e5f0356e16 [LL FIR] LLFirPhaseUpdater: add missing update for initializer body 2023-09-19 14:03:29 +00:00
Dmitrii Gridin 12dc6b1ebc [FIR] FirRenderer: render name for scripts
A script name is important information, so it is better to render it.
This also will fix the inconsistency with redundant space after 'SCRIPT:'.
2023-09-19 14:03:29 +00:00
Dmitrii Gridin c6bb9af823 [FIR] FirRenderer: add missing resolvePhaseRenderer usage for anonymous initializer and dangling modifiers 2023-09-19 14:03:29 +00:00
Dmitrii Gridin c9df6aff5f [LL FIR] do not crash on attempt to resolve class initializer in case of class clash
^KT-61788 Fixed
2023-09-19 14:03:29 +00:00
Dmitrii Gridin e3ad946d23 [LL FIR] add more debug info into containingClass
^KT-61788
2023-09-19 14:03:29 +00:00
Brian Norman 4b6c767704 [FIR] Report UNINITIALIZED_VARIABLE for top-level properties
When checking top-level properties, check with initialization enabled.
This makes sure the same errors are reported for member and top-level
properties.
2023-09-19 13:42:54 +00:00
Anton Lakotka 1a35d01fe1 [Gradle] Fix possible CME in sourceSetsMetadataOutputs
Iterating over source sets and waiting for compilation wasn't safe.
 Because compilation upon configuration were able
 to add more source sets.

 Awaiting source sets first should solve the issue.

^KT-61652 Verification Pending
2023-09-19 13:28:51 +00:00
Anton Lakotka 7d047261d9 [Gradle] Test no CME when jupiter plugin is applied
^KT-61652 Verification Pending
2023-09-19 13:28:51 +00:00
Pavel Kunyavskiy 71128e232e [K/N] Avoid creating fake overrides before setting class parent
This fixes a tests crash introduced in #KT-61366 fix.
2023-09-19 12:04:05 +00:00
Roman Efremov c88b4105c5 [K2] Correctly handle case when expect annotation is unresolved
Don't report if annotation has error type.

Review: KT-MR-12250

^KT-62026 Fixed
2023-09-19 10:19:08 +00:00
Roman Efremov 04c1bf749c [K1] Correctly handle case when expect annotation is unresolved
Before change NPE was thrown.

Review: KT-MR-12250

^KT-62026
2023-09-19 10:19:08 +00:00
Alexander Udalov 5cae87b263 K2: add package FQ name to ClassId of anonymous objects
This is needed because in order to figure out which declarations are
visible from anonymous objects in terms of overridability (see
`FirVisibilityChecker.isVisibleForOverriding`), we need to get the
package name of that anonymous object, because there's package-private
visibility on JVM.

 #KT-62017 Fixed
2023-09-19 09:32:55 +00:00
Zalim Bashorov 59a9855373 [Wasm] Use Node.js with canary v8 that supports recent Wasm GC changes
It's required to run wasm stdlib tests and compiler box tests with WASI.

#KT-59720
2023-09-19 09:23:26 +00:00
Zalim Bashorov 8a6fdf2493 [Wasm] Change expected outcome to SUCCESS in wasm-wasi-test
Added workaround for missing dependency.

#KT-59720
2023-09-19 09:23:26 +00:00