Stanislav Ruban
a65ea2ce02
[FIR][checkers][Wasm] Reorder information in messages for WRONG_JS_INTEROP_TYPE
2024-03-15 11:40:55 +00:00
Stanislav Ruban
b165ff675b
[tests][FIR][checkers][Wasm] Improve test coverage for WRONG_JS_INTEROP_TYPE
2024-03-15 11:40:55 +00:00
Stanislav Ruban
2de0e4b8d2
[FIR][checkers] Respect ClassKind.INTERFACE in FirRegularClass.canHaveAbstractDeclaration
...
A Kotlin interface can have abstract members regardless of its modality. However, this invariant was previously ignored by FIR checkers. As a result, false-positive `ABSTRACT_<MEMBER>_IN_NON_ABSTRACT_CLASS` errors were being reported in explicitly non-abstract interfaces.
This commit makes a relevant FIR utility used by relevant FIR checkers aware of the aforementioned invariant.
#KT-66260 Fixed
2024-03-04 12:00:18 +00:00
Stanislav Ruban
e0b83def00
[tests] Add test data for KT-66260
2024-03-04 12:00:18 +00:00
Stanislav Ruban
9fb920874c
[tests] Add additional test data for KT-64222
2024-02-15 13:22:23 +00:00
Stanislav Ruban
64083d6d5c
[FIR][checkers][minor] Move FirNativeForwardDeclarationGetClassCallChecker to an appropriate package
2024-02-13 09:47:16 +00:00
Stanislav Ruban
bc0633188c
[FIR][checkers][minor] Move several checkers to more appropriate directories
...
Some FIR checkers were placed into the wrong directories either
by accident or minor oversight. This commit contains fixes
for such cases that were made during work on an internal KCCQA utility
to simplify its workings.
This commit is expected not to affect much (if anything).
2024-02-13 09:47:16 +00:00
Stanislav Ruban
8f79d519b8
Add @NotNull to return type of KtTestUtil.getJdk21Home
2024-01-09 18:45:59 +00:00
Stanislav Ruban
8c2293ddcd
Use JDK 21 in AdditionalBuiltInsMembersSignatureListsTest
...
^KT-58765
2024-01-09 18:45:59 +00:00
Stanislav Ruban
4ef830f9ee
Regenerate tests after removing separate test configurations for JDK 21
...
^KT-58765
Now that JDK 21 was released as stable, we can remove separate test
configurations for testing the compiler with JDK 21 and reintegrate
the corresponding test data into standard test configurations.
2024-01-09 18:45:59 +00:00
Stanislav Ruban
a5bae12915
Remove separate test configurations for JDK 21
...
^KT-58765
Now that JDK 21 was released as stable, we can remove separate test
configurations for testing the compiler with JDK 21 and reintegrate
the corresponding test data into standard test configurations.
2024-01-09 18:45:58 +00:00
Stanislav Ruban
13b3987aab
Prepare test data for removal of separate test configurations for JDK 21
...
^KT-58765
Now that JDK 21 was released as stable, we can remove separate test
configurations for testing the compiler with JDK 21 and reintegrate
the corresponding test data into standard test configurations.
2024-01-09 18:45:58 +00:00
Stanislav Ruban
78221bac11
Regenerate test configuration files with outdated copyright notices
2024-01-09 15:08:34 +00:00
Stanislav Ruban
7515efc52c
[tests] Change builder inference tests in accordance with new K2 BI diagnostics
...
Related to KT-59369, KT-59390
2023-12-05 18:15:53 +00:00
Stanislav Ruban
da0c3090a9
[tests] Regenerate test configurations
2023-12-05 18:15:53 +00:00
Stanislav Ruban
c0bf67af22
[tests] Add test data for KT-63841
2023-12-05 18:15:52 +00:00
Stanislav Ruban
4f38d77fae
[tests] Add test data for KT-63840
2023-12-05 18:15:52 +00:00
Stanislav Ruban
2bcaa3eb8f
[tests] Add test data for KT-63733
2023-12-05 18:15:52 +00:00
Stanislav Ruban
a836e94619
[tests] Add test data for KT-63648
2023-12-05 18:15:52 +00:00
Stanislav Ruban
4671a9612a
[tests] Add test data for KT-61310
2023-12-05 18:15:52 +00:00
Stanislav Ruban
7dc3ed61c0
[tests] Add test data for KT-60447
2023-12-05 18:15:52 +00:00
Stanislav Ruban
7a254cab9a
[tests] Add test data for KT-60291
2023-12-05 18:15:51 +00:00
Stanislav Ruban
e5642d83aa
[tests] Add test data for KT-59798
2023-12-05 18:15:51 +00:00
Stanislav Ruban
4676b8a2ca
[tests] Add test data for KT-59426
2023-12-05 18:15:51 +00:00
Stanislav Ruban
f90bd8821c
[tests] Add test data for KT-57834
2023-12-05 18:15:51 +00:00
Stanislav Ruban
e3fce848b4
[tests] Add test data for KT-57709
2023-12-05 18:15:51 +00:00
Stanislav Ruban
55485a8fd6
[tests] Add test data for KT-57707
2023-12-05 18:15:51 +00:00
Stanislav Ruban
2226486152
[tests] Add test data for KT-56949
2023-12-05 18:15:51 +00:00
Stanislav Ruban
4021e022b7
[tests] Add test data for KT-55281
2023-12-05 18:15:51 +00:00
Stanislav Ruban
6532eb4c60
[tests] Add test data for KT-55057
2023-12-05 18:15:51 +00:00
Stanislav Ruban
bb054f75b5
[tests] Add test data for KT-55056
2023-12-05 18:15:51 +00:00
Stanislav Ruban
ddb7c6cff8
[tests] Add test data for KT-54767
2023-12-05 18:15:51 +00:00
Stanislav Ruban
f600e1f591
[tests] Add test data for KT-54664
2023-12-05 18:15:51 +00:00
Stanislav Ruban
205d568545
[tests] Add test data for KT-54400
2023-12-05 18:15:51 +00:00
Stanislav Ruban
126022a80d
[tests] Add test data for KT-53740
2023-12-05 18:15:51 +00:00
Stanislav Ruban
7d040af24c
[tests] Add test data for KT-53639
2023-12-05 18:15:51 +00:00
Stanislav Ruban
9dd3cf7bfc
[tests] Add test data for KT-53553
2023-12-05 18:15:51 +00:00
Stanislav Ruban
982e8133ba
[tests] Add test data for KT-53422
2023-12-05 18:15:50 +00:00
Stanislav Ruban
96e12584a1
[tests] Add test data for KT-53109
2023-12-05 18:15:50 +00:00
Stanislav Ruban
385b29f9c2
[tests] Add test data for KT-52838
2023-12-05 18:15:50 +00:00
Stanislav Ruban
f6a3f999c3
[tests] Add test data for KT-52757
2023-12-05 18:15:50 +00:00
Stanislav Ruban
50e58c00ea
[tests] Add test data for KT-50827
2023-12-05 18:15:50 +00:00
Stanislav Ruban
de8f0c157e
[tests] Add test data for KT-50453
2023-12-05 18:15:50 +00:00
Stanislav Ruban
9de8d020f1
[tests] Add test data for KT-49263
2023-12-05 18:15:50 +00:00
Stanislav Ruban
2a257091fb
[tests] Add test data for KT-49160
2023-12-05 18:15:50 +00:00
Stanislav Ruban
cef44cfa7d
[tests] Add test data for KT-47989
2023-12-05 18:15:50 +00:00
Stanislav Ruban
83117fa464
[tests] Add test data for KT-47982
2023-12-05 18:15:50 +00:00
Stanislav Ruban
04b05f7912
[tests] Add test data for KT-43710
2023-12-05 18:15:50 +00:00
Stanislav Ruban
3a77f39199
[tests] Regenerate test configurations
2023-12-01 19:20:28 +00:00
Stanislav Ruban
b275aeb39d
[tests] Add test data for KT-63705
2023-12-01 19:20:26 +00:00
Stanislav Ruban
514ae0c813
[tests] builder inference test-set: regenerate diagnostic & codegen tests
2023-11-30 06:27:00 +00:00
Stanislav Ruban
80462efe7e
[tests] BI (1P&1TV/1TIO): add additional test data for contexts of source-sink feeds
...
single builder parameter
single postponed type variable
single origin of type information
relevant issues:
KT-63816
2023-11-30 06:26:59 +00:00
Stanislav Ruban
269b60b420
[tests] Add a test case for KT-61978
...
^KT-61978 Obsolete
2023-11-27 15:50:46 +00:00
Stanislav Ruban
ec995fc847
[tests] Regenerate configurations for box-tests
2023-11-23 09:34:15 +00:00
Stanislav Ruban
9956c0f83b
[tests] Cover KT-63654 with test cases
2023-11-23 09:34:14 +00:00
Stanislav Ruban
6edc742934
[tests] builder inference test-set: regenerate diagnostic & codegen tests
2023-11-17 07:02:15 +00:00
Stanislav Ruban
196f5760f8
[tests] BI (1P&1TV/1TIO): add test data for sinks & sources of type information [1/X]
...
single builder parameter
single postponed type variable
single origin of type information
cover member properties as type info sinks;
cover extension functions as type info sinks;
cover extension properties as type info sinks;
cover extension functions as type info sources;
cover extension properties as type info sources;
cover input values of builder arguments as type info sinks;
cover input values of builder arguments as type info sources;
cover return types of builder parameters as type info sources;
relevant issues:
KT-61907
KT-61909
KT-63477
2023-11-17 07:02:15 +00:00
Stanislav Ruban
73aaa1ce28
[tests] Add code examples from exploration of KT-62239
2023-11-16 16:39:35 +00:00
Stanislav Ruban
b2fb37043d
[tests] Regenerate configurations for diagnostic tests
2023-11-14 17:58:21 +00:00
Stanislav Ruban
c7caca8ccd
[tests] Refactor code examples relevant to exploration of KT-22004
2023-11-14 17:58:20 +00:00
Stanislav Ruban
d0958068c9
[tests] Add code examples from exploration of KT-22004
2023-11-14 17:58:20 +00:00
Stanislav Ruban
857bfeb92c
[KMP] Fix multiplatform test data with ACTUAL_WITHOUT_EXPECT messages
2023-08-30 12:06:43 +00:00
Stanislav Ruban
e7b7ef18fa
[KMP] Tweak ACTUAL_WITHOUT_EXPECT message to include 'value' modifier
...
See KT-59660 for an example of relevant code.
2023-08-30 12:06:43 +00:00
Stanislav Ruban
a03f65e06b
!fixup [tests] BI (1P&1TV/1TIO): add tests for target types
...
failing legacy JVM backend tests for
LocalClass.kt and GenericLocalClass.kt test data
were not initially muted
2023-08-25 14:01:56 +00:00
Stanislav Ruban
44a4c4ee1c
[tests] BI (1P&1TV/1TIO): add tests for target types
...
single builder parameter
single postponed type variable
single origin of type information
relevant issues:
KT-60719
KT-60720
KT-60855
KT-60877
KT-60880
2023-08-25 14:01:56 +00:00
Stanislav Ruban
9ecf02fddf
fixup! Add a 2nd user-defined class to InsideNestedBuilderInferenceLambda.kt
2023-07-27 14:25:08 +00:00
Stanislav Ruban
816906c7b7
fixup! Remove integer literals from InsideNestedBuilderInferenceLambda.kt
2023-07-27 14:25:08 +00:00
Stanislav Ruban
8bd823de0d
[tests] BI (1P&1TV/1TIO): add tests for contexts of source-sink feeds
...
single builder parameter
single postponed type variable
single origin of type information
relevant issues:
KT-60274
KT-60663
2023-07-27 14:25:08 +00:00
Stanislav Ruban
b13a225949
[tests] BI (1P&1TV/1TIO): add tests for basic cases
...
single builder parameter
single postponed type variable
single origin of type information
relevant issues:
KT-59551
2023-07-27 14:25:07 +00:00
Stanislav Ruban
4f92008f01
[test docs] Actualize the README.md for diagnostic tests somewhat
2023-07-13 13:41:36 +00:00
Stanislav Ruban
5c644bcac8
[test infra] Add a directive for type checking utils that use @Exact
2023-07-13 13:41:36 +00:00
Stanislav Ruban
e6d5df18b8
[tests] Add new (and refactor existing) tests for @SubclassOptInRequired
...
KT-54617
2023-05-23 12:33:51 +00:00
Stanislav Ruban
47c32ef37f
KT-52671: Add CLI test
...
The issue in question was obsoleted by development of K2/MPP.
^KT-52671
2023-05-05 11:58:22 +00:00
Stanislav Ruban
5b0b7c4da4
KT-57206: Add diagnostics test
...
Problem described in KT-57206 seems to have been fixed by KT-56506. This
commit adds code example from KT-57206 as a diagnostics test.
^KT-57206 Fixed
2023-03-10 14:03:43 +00:00
Stanislav Ruban
4523535545
Deprecate -Xuse-k2 compiler flag in Gradle DSL
...
^KT-56239 Fixed
2023-01-27 12:42:50 +00:00
Stanislav Ruban
7e0f69b8de
Introduce tweaks and wording changes related to LV2.0-specific CLI warnings
...
Fix merge conflict related to renaming of one of the tests
Regenerate tests affected by previous commit
Fix merge conflict related to renaming of one of the tests
Improve wording of the `-Xuse-k2 -language-version 1.*` CLI warning
Improve wording of LV2.0-specific CLI warnings some more
Fix output of one of the tests for -Xuse-k2 deprecation
Tweak wording of LV2.0-specific CLI warnings
* make it clear in every warning that -Xuse-k2 is deprecated
* add a reminder to remove -Xuse-k2 for `-Xuse-k2 -language-version 2.0`
* add both possibly wanted fixes for `-Xuse-k2 -language-version 1.*`
Remove deprecated -Xuse-k2 flag from one of the tests
Merge-request: KT-MR-8449
Merged-by: Stanislav Ruban <Stanislav.Ruban@jetbrains.com >
2023-01-26 11:55:03 +00:00
Stanislav Ruban
5cb31c4874
KT-55822: Add diagnostics test showing that issue is fixed in K2
...
^KT-55822: Fixed Target versions: K2
2023-01-24 13:44:28 +00:00
Stanislav Ruban
451e27fd46
Regenerate Analysis API tests to include new test cases
2023-01-04 08:08:33 +00:00
Stanislav Ruban
ca8cfa4596
KT-55335: Add diagnostics test showing that issue is fixed in K2
...
^KT-55335: Fixed
2023-01-04 08:08:33 +00:00
Stanislav Ruban
965015bb1e
KT-55288: Add diagnostics test showing that issue is fixed in K2
...
^KT-55288: Fixed
2023-01-04 08:08:32 +00:00
Stanislav Ruban
0f179e8949
KT-33132: Add diagnostics test showing that issue is fixed in K2
...
^KT-33132: Fixed
2023-01-04 08:08:32 +00:00