Ilya Kirillov
8fbd6ab02b
[LL FIR] do not provide cloneable for non-jvm platforms
...
It's a jvm-specific thing
^KT-62935 fixed
2023-11-10 06:41:03 +00:00
Ilya Kirillov
bffbbe6293
[LL FIR] add LL FIR tests based on AbstractFirPsiNativeDiagnosticsTest
...
^KT-62910 fixed
2023-11-10 06:41:03 +00:00
Vladimir Sukharev
8395018de8
[FIR] Fix disappeared INVALID_CHARACTERS_NATIVE_ERROR
...
https://youtrack.jetbrains.com/issue/KT-60003/K2-Disappeared-INVALIDCHARACTERSNATIVEERROR
^KT-60003 Fixed
Merge-request: KT-MR-12686
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-10-24 16:28:30 +00:00
Nikolay Lunyak
cca04bbcc2
[FIR] Check test text for all alongside tests
...
For some reason the practice is to configure the K2
diagnostics tests as "alongside" and instruct K1
tests to ensure there are no unexpected differences
in the sources. But someone may still forget there is
something that they need to configure in the K1 runners.
2023-10-05 08:46:54 +00:00
Vladimir Sukharev
03442e1cee
[FIR] Implement FirGenericArrayClassLiteralSupport platform feature
...
^KT-59931 Fixed
2023-10-04 14:45:23 +00:00
Ivan Kochurkin
3cd4f7c3aa
[FIR] Consider @PlatformDependent annotation everywhere (including JS and Native)
...
^KT-57858 Fixed
Remove FirEmptyOverridesBackwardCompatibilityHelper since it's not used anymore
Remove overridesMemberWithPlatformDependent.kt test file since it becomes redundant
2023-09-20 17:12:52 +00:00
Timofey Solonin
53584cdd49
Don't emit CAST_NEVER_SUCCEEDS when casting to a forward declaration type
...
^KT-58929
2023-09-13 17:49:12 +00:00
Timofey Solonin
28f90b3ea8
Add CAST_NEVER_SUCCEEDS diagnostic to forwardDeclarations.kt
...
Add safe as casts to forwardDeclarations.kt
^KT-58929
2023-09-13 17:49:12 +00:00
Vladimir Sukharev
3e2c662b6b
[FIR] Add testcases to throw class with unresolved parent.
...
^KT-60048 Fixed
2023-09-08 11:40:35 +00:00
Vladimir Sukharev
69b2e2c0ba
[FIR] Don't diagnose MISSING_EXCEPTION_IN_THROWS_ON_SUSPEND in presence of unresolved class
...
^KT-60048 Fixed
2023-09-08 11:40:35 +00:00
Vladimir Sukharev
2a4681b91d
Adjust diagnostic tests for proper K1/N stdlib
...
^KT-58240
2023-09-05 11:42:46 +00:00
Kirill Rakhman
1c446151e7
[FIR] Skip resolvable package names in front of UNRESOLVED_REFERENCE
...
#KT-55471
2023-09-04 08:05:08 +00:00
Kirill Rakhman
5b9c35de2e
[Tests] Update test data with error suppression warnings
...
#KT-61129 Fixed
2023-08-18 13:29:20 +00:00
Vladimir Sukharev
8f03eb9314
[K/N] Fix stdlib import in DiagnosticsNativeTests
...
Merge-request: KT-MR-11635
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-08-16 08:27:16 +00:00
Nikolay Lunyak
4a9ba1c9ac
[FIR] Expand typealiases when checking deprecations
...
^KT-59901 Fixed
2023-08-04 10:11:57 +00:00
Pavel Kunyavskiy
6da3ecceab
[K/N] Implement frontend checkers for usages forward declaration type
...
Forward declaration type doesn't exist in runtime. This restricts
its possible usages.
^KT-59764
2023-07-17 09:24:33 +00:00
Nikolay Lunyak
45bbd432fc
[FIR Native] Stop requiring :dist for native diagnostic test
...
Native uses its own klib stdlib generated
via `:kotlin-native:dist`.
2023-06-07 05:20:01 +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
Nikolay Lunyak
5af4230f46
[FIR Native] KT-58549: Ensure Cloneable is accessible in native
2023-06-01 10:27:54 +00:00
Alexander Shabalin
2364ffb299
[K/N] Remove diagnostics about old Native GC ^KT-58853
2023-05-31 14:29:17 +00:00
Nikolay Lunyak
83f2c2e1f0
[FIR] KT-58623: Unify FirInlineDeclarationChecker
...
> Condition 'isSuspendFunctionType' is always false when reached
The change in the native tests is needed, because K2
doesn't support disabling old language features
^KT-58623 Fixed
2023-05-25 12:19:51 +00:00
Nikolay Lunyak
75c0304671
[FIR] KT-58623: Ensure the diagnostics are missing for Native
2023-05-25 12:19:51 +00:00
Sergey Bogolepov
c57c34525f
[K/N] KT-58562: Implement frontend checkers for HiddenFromObjC on classes
2023-05-19 11:33:17 +00:00
Sergey Bogolepov
fce878d63a
[K/N] KT-56464: implementation of HiddenFromObjC for classes in backend
2023-04-26 09:36:10 +00:00
Ivan Kochurkin
9a5cc39588
[FIR] Use FirDefaultOverridesBackwardCompatibilityHelper with common metadata compilation
...
Also, use it with JS compilation
^KT-57735 Fixed
2023-04-06 22:27:24 +02:00
Pavel Kunyavskiy
09474758ab
[K/N] Fix typo in language feature name
2023-04-04 09:13:36 +00:00
Kirill Rakhman
9dda5e4fcd
[Test] Remove redundant FIR_DISABLE_LAZY_RESOLVE_CHECKS directives
...
KT-56177
2023-02-28 10:19:18 +00:00
Nikolay Lunyak
343b856cfc
[FIR] Expand typealiases in FirNativeObjC checkers
2023-01-17 06:26:39 +00:00
Kirill Rakhman
721a37f7e7
K2: implement FirLateinitIntrinsicApplicabilityChecker ^KT-55495 Fixed
2023-01-04 14:42:43 +00:00
Pavel Kunyavskiy
4928e284f6
Make LateinitIntrinsicApplicabilityChecker warning for Native and JS
...
This checker was enabled only on JVM by mistake.
It's now fixed, but we don't want to make it an error in minor release.
So it will be an warning in 1.8.20 and an error in 1.9.0
^KT-27002
2022-12-20 20:06:52 +00:00
Ilya Kirillov
644d1bf0d0
[FIR] ignore tests which fail because of resolve contracts violation
2022-12-12 16:21:07 +00:00
Rick Clephas
b406722e20
[K/N] Prohibit empty ObjCNames
2022-09-09 12:31:36 +02:00
Rick Clephas
ff1adf596d
[FIR] Implement ObjCName checkers
2022-09-07 11:00:51 +00:00
Rick Clephas
0a8cefc8a5
[FIR] Add NativeObjCRefinement checkers
2022-08-22 16:10:44 +02:00
Rick Clephas
203af3afdd
[FE 1.0] Add NativeObjCRefinement checkers
2022-08-22 16:10:44 +02:00
Ivan Kochurkin
0af43757e3
[FIR] Implement FirNativeIdentifierChecker
...
* INVALID_CHARACTERS_NATIVE
2022-07-25 23:30:10 +02:00
Ivan Kochurkin
a44d5bf52f
[FIR] Implement FirNativeThreadLocalChecker
...
* INAPPLICABLE_THREAD_LOCAL
* INAPPLICABLE_THREAD_LOCAL_TOP_LEVEL
2022-07-25 23:30:10 +02:00
Ivan Kochurkin
987137cf76
[FIR] Implement FirNativeSharedImmutableChecker
...
* INAPPLICABLE_SHARED_IMMUTABLE_PROPERTY
* INAPPLICABLE_SHARED_IMMUTABLE_TOP_LEVEL
2022-07-25 23:30:10 +02:00
Ivan Kochurkin
ad1fb07a95
[FIR] Implement FirNativeThrowsChecker
2022-07-25 23:30:09 +02:00
Ivan Kochurkin
502349c594
[FIR] Implement Native test infrastructure, add FirNativeSessionFactory
2022-07-25 23:30:09 +02:00
Rick Clephas
5a5e6ad8cd
[K/N] Add ObjCName annotation ( #4815 )
2022-07-23 18:58:06 +02:00
Ivan Kylchik
51ccc32a3f
Update test data after introducing IntrinsicConstEvaluation annotation
2022-05-18 21:19:57 +03:00
Victor Petukhov
27fa632630
[FE 1.0] Update test data with new error type representation
2022-03-23 21:13:33 +00:00
Mikhail Glukhikh
53d6ac24e5
Switch kotlin version to 1.7
...
* Change 1.6 to 1.7 constants
* Fix SAFE_CALL_WILL_CHANGE_NULLABILITY for testData
* Change EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_WARNING to EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_ERROR
* Change NON_EXHAUSTIVE_WHEN_STATEMENT to NO_ELSE_IN_WHEN
* Fix testData for SafeCallsAreAlwaysNullable
* Change T -> T & Any in test dumps
* Change INVALID_CHARACTERS_NATIVE_WARNING -> INVALID_CHARACTERS_NATIVE_ERROR
* TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM_WARNING -> TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM_ERROR
2022-02-25 11:46:27 +00:00
Pavel Kunyavskiy
fb875c484d
[K/N] Implement instantiating of annotation class
2021-09-23 06:59:34 +00:00
Svyatoslav Scherbina
d4a8c51637
Native: report a warning on invalid characters in identifiers
...
This will become an error in Kotlin 1.7.
^KT-46182 Fixed
2021-08-31 08:50:14 +00:00
Leonid Startsev
83c1a75c1e
Revert "Revert "Instantiation of annotations for JVM IR with the corresponding feature flag""
...
Fix incorrectly rebased ce0a3a57df
This reverts commit 3d0126d5
2021-07-21 18:24:07 +03:00
Leonid Startsev
3d0126d5dd
Revert "Instantiation of annotations for JVM IR with the corresponding feature flag"
...
because of incorrect rebase
This reverts commit ce0a3a57
2021-07-21 15:23:24 +03:00
Leonid Startsev
ce0a3a57df
Instantiation of annotations for JVM IR with the corresponding feature flag
...
Seperate checker for platforms that do not support this language feature yet
Synthetic implementations of annotations are generated on-demand with proper
equals, hashCode, and annotationType methods
#KT-47699 Fixed
2021-07-21 10:23:51 +00:00
Svyatoslav Scherbina
c9f721848a
Fix Throws declaration in Native diagnostics tests
...
Align annotation target with real declaration in Native stdlib
2020-05-26 20:24:35 +03:00