Ivan Kochurkin
a04deba7c7
[FIR] Fix compiler crash with incorrect argument in FirDanglingModifierList
...
KT-63508 Fixed
2023-11-23 15:25:44 +00:00
Kirill Rakhman
11ab90ecbd
[Tests] Add regression test for #KT-63732
2023-11-23 14:24:47 +00:00
Kirill Rakhman
9ea4afe7c8
[FIR] Fix isValidTypeParameterFromOuterDeclaration check for local class
...
This fixes an IllegalArgumentException when
symbolProvider.getClassLikeSymbolByClassId is called with a local
class ID.
#KT-63656 Fixed
2023-11-23 14:24:47 +00:00
Anastasia.Nekrasova
97ef2de6e3
[K2] OPT_IN_USAGE_ERROR is absent when calling the enum primary constructor
...
^KT-63459
2023-11-23 13:16:05 +00:00
Anastasia.Nekrasova
c6d391c632
[K2] OPT_IN_MARKER_CAN_ONLY_BE_USED_AS_ANNOTATION_OR_ARGUMENT_IN_OPT_IN on an annotation import
...
Only tests added
^KT-59582
2023-11-23 13:14:42 +00:00
Roman Efremov
fa20eb73f2
[Tests] Don't ignore expected file if diagnostic output is empty
...
Because of this, `checkDiagnosticFullText.fir.diag.txt` was
obsolete, because nothing was reported, but test was green.
^KT-62559
2023-11-23 12:17:34 +00:00
Roman Efremov
fcc6f873c7
[FIR] Prevent reporting ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT twice in CLI
...
It is duplicated because we have two checkers: FIR (for IDE support
in simple cases) and IR ("honest" checker supporting all cases).
Fix this by running FIR checker only in IDE.
FIR checker behavior remains covered by tests in
`LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated`.
^KT-62559 Fixed
2023-11-23 12:17:34 +00:00
Svyatoslav Kuzmich
cf3b293072
[Wasm] Move external RTT checkers to web.common and reuse in Wasm
...
#KT-56849
2023-11-23 10:42:56 +00:00
Svyatoslav Kuzmich
d219d5380b
[Wasm] Move FirJsQualifierChecker to web.common and reuse in Wasm
...
#KT-56849
2023-11-23 10:42:56 +00:00
Svyatoslav Kuzmich
640bf67480
[Wasm] Move FirJsExportAnnotationChecker to web.common and reuse in Wasm
...
#KT-56849
2023-11-23 10:42:56 +00:00
Stanislav Ruban
9956c0f83b
[tests] Cover KT-63654 with test cases
2023-11-23 09:34:14 +00:00
Anastasia.Nekrasova
6471080c48
[K2] Disappeared UNSUPPORTED
...
Mark as UNSUPPORTED suspension points in default parameters
^KT-59881
2023-11-23 09:29:07 +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
Artem Kobzar
33ab1871c7
[K/JS] Fix coroutines but turn back the fix for coroutines intrinsics intercepted and releaseIntercepted
2023-11-22 18:10:08 +00:00
Egor Kulikov
43fc4ccf40
[FIR] Source for implicit iterator calls in for should not be null
...
^KT-62111 fixed
Merge-request: KT-MR-13029
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com >
2023-11-22 17:15:24 +00:00
Roman Efremov
6a90926e2e
[K2] Support reporting of IMPLEMENTATION_BY_DELEGATION_IN_EXPECT_CLASS
...
^KT-59983
2023-11-22 16:40:06 +00:00
Ivan Kylchik
c82bc8f0ce
[WASM] Add ConstEvaluationLowering to the lowering list
2023-11-22 14:54:19 +00:00
Nikolay Lunyak
427c067cd8
[FIR] Forbid typeRef-named labels without +ContextReceivers
...
^KT-63068 Fixed
2023-11-22 13:22:45 +00:00
Alexander Korepanov
45c166abf8
[JS IR] Introduce special setMetadataFor*() for synthetic classes
...
^KT-63436 Fixed
2023-11-22 09:21:44 +00:00
Kirill Rakhman
3fe0d3286c
[Tests] Mute failing FakeOverrideRebuilder tests after #KT-61282
...
#KT-63489
2023-11-22 08:46:17 +00:00
Kirill Rakhman
865b8a4175
[FIR] Create special hidden override for Java signature clash due to rename
...
This fixes CharBuffer.get resolving to CharBuffer.charAt
#KT-61282 Fixed
2023-11-22 08:46:17 +00:00
Anastasia.Nekrasova
fb0461f422
[K2] Disappeared UNSUPPORTED_FEATURE (3)
...
Added a check for the enabled context receivers feature flag for @ContextFunctionTypeParams.
^KT-59913
2023-11-22 06:04:13 +00:00
Anastasia.Nekrasova
c04767f1f4
[K2] Disappeared UNSUPPORTED_FEATURE (2)
...
Added a check for the enabled context receivers feature flag for declaration.
^KT-59913
2023-11-22 06:04:13 +00:00
Anastasia.Nekrasova
685c8e4fe7
[K2] Disappeared UNSUPPORTED_FEATURE (1)
...
Added a check for the enabled context receivers feature flag for typeRef.
^KT-59913
2023-11-22 06:04:13 +00:00
Alexander Udalov
471f25abfc
IR: support buildSimpleType for IrCapturedType
...
To make it possible to change nullability of IrCapturedType and change
its annotations, which is happening when determining overridability of
functions via IR.
#KT-63437 Fixed
2023-11-21 20:02:13 +00:00
Ilya Gorbunov
381a8fd55f
[stdlib] Explicit visibility and return types: JS
...
Stepping test line number changes are due to changes in coroutineInternalJS.kt
2023-11-21 18:14:09 +00:00
Evgeniy.Zhelenskiy
5096fd266e
[FIR] Forbid generic type checks inside contracts in K2 as it is done in K1.
...
#KT-59922
2023-11-21 18:00:10 +00:00
strangepleasures
7c6375c85a
KT-63552 [SLC] Support empty arrays in property initializers and default parameter values
2023-11-21 13:20:26 +00:00
Evgeniy.Zhelenskiy
67b1bb448a
[FIR] Report repeating parameters in dynamic functions in Kotlin/JS
...
^KT-59988
2023-11-21 13:12:46 +00:00
Ivan Kylchik
fd4a3a0b88
[FIR] Forbid to use equality and unsigned comparison in const expression
...
#KT-62683
2023-11-21 09:48:58 +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
0b253dc815
[FIR] resolve delegate field return type in correct scope
...
We should resolve it in the same way as delegate constructor call
to avoid access to nested class scopes
^KT-63522 Fixed
^KT-63042
2023-11-21 08:11:21 +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
strangepleasures
03ed1d1d31
KT-62560 [SLC] Fix handling of empty varargs in annotations
2023-11-20 20:57:21 +00:00
Evgeniy.Zhelenskiy
9383d0bfa4
[FIR] Check type arguments in inner/outer local classes as in K1
...
^KT-59922 ^KT-59951
2023-11-20 20:04:45 +00:00
Svyatoslav Kuzmich
43345bbc34
[Wasm] Port js(code) calls checker to K2 (KT-56849)
...
^KT-62725 Fixed
^KT-62726 Fixed
^KT-62727 Fixed
2023-11-20 18:10:55 +00:00
Svyatoslav Kuzmich
7092541e34
[Wasm] K2 js(code) constant checker (KT-56849)
...
Reuse K/JS FirJsCodeConstantArgumentChecker by moving it to web.common
2023-11-20 18:10:54 +00:00
Mikhail Glukhikh
3b7f43a9c2
K2: don't throw an exception for type parameter case in isJavaTypeOnThePath
...
#KT-63569 Fixed
2023-11-20 15:35:58 +00:00
Evgeniy.Zhelenskiy
f5168527ae
[FIR] Report type-parameterized implicit invoke call over type-parameterized property access
...
^KT-59988
2023-11-20 14:59:06 +00:00
Evgeniy.Zhelenskiy
86c09a1c78
[FIR] Report recursive typealias when loop is in type annotations
...
^KT-59908
2023-11-20 14:39:47 +00:00
Svyatoslav Kuzmich
31560217f8
[Wasm] Port @JsFun checker to K2 (KT-56849)
...
^KT-62724 Fixed
2023-11-20 14:39:24 +00:00
Dmitriy Novozhilov
89b98ef784
[FIR2IR] Properly create FIR f/o for lazy IR f/o
...
```kotlin
interface A {
fun foo() // (1)
}
interface B : A {
// f/o fun foo() // (2)
}
```
In previous commits it was forgotten to create new FIR declarations for
IR fake-overrides, which led to the situation when `IR lazy functions
of `(1)` and `(2)` both contained fir of function (1) as their base
declaration
It seems this change fixed some cases from KT-42020
2023-11-20 13:36:28 +00:00
Dmitriy Novozhilov
d85d671b26
[FIR] Update few MPP diagnostic tests
...
Updated tests contain errors which are incompatible with fir2ir conversion
(like `PACKAGE_OR_CLASSIFIER_REDECLARATION` and `EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE`),
so running fir2ir on such code may lead to exceptions
2023-11-20 13:36:27 +00:00
Dmitriy Novozhilov
c9ff0c41fc
[FIR2IR] Generate IR for f/o of common classes generated during platform conversion
...
This change fixes tests which were muted in one of previous commits
2023-11-20 13:36:27 +00:00
Dmitriy Novozhilov
bb892f10f8
[Test] Mute tests with expect supertypes
...
The problem: someone should generate IR for f/o in common classes appeared
after IR actualization
Those tests will be fixed in the following commits
2023-11-20 13:36:27 +00:00
Mikhail Glukhikh
5cd3f8bb97
K2: don't report inline access errors on const properties in annotations
...
#KT-60604 Fixed
2023-11-20 10:32:05 +00:00
Mikhail Glukhikh
bb8002d9f1
K2: reproduce KT-60604
2023-11-20 10:32:05 +00:00
Artem Kobzar
1832f5a3f7
[K/JS] Introduce the ability to consume platform-specific cli arguments inside the main function ^KT-16981 Fixed
2023-11-18 11:01:34 +00:00
Mikhail Glukhikh
ec7caba8ea
K2: restore smart cast in case with invisible receiver but visible callable
...
Related to KT-52432
#KT-63164 Fixed
2023-11-17 20:29:58 +00:00