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
Mikhail Glukhikh
a139965231
K2: reproduce KT-63164
2023-11-17 20:29:58 +00:00
Aleksandra.Arsenteva
af63763da2
KT-62138 add testcases
2023-11-17 15:47:34 +00:00
Kirill Rakhman
4964ee12a9
[CLI] Update CLI argument descriptions after review
2023-11-17 14:36:28 +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
Mikhail Glukhikh
0aa5170ba2
K2: delay jspecify strict mode introduction to version 2.1
...
Related to KT-62352, KT-55586
2023-11-17 08:21:04 +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
Mikhail Glukhikh
0fba58eee7
K2: repeat K1 logic around SAM-based candidates discrimination
...
#KT-56614 Fixed
2023-11-16 20:12:34 +00:00
Ivan Kochurkin
df43226a08
[FIR] Fix CAST_NEVER_SUCCEEDS for definitely not null types
2023-11-16 19:29:58 +00:00
Ivan Kochurkin
3b9095a5ab
[FIR] Use isSubtypeOfClass with platform types mapping instead of isSubtypeOf during checking CAST_NEVER_SUCCEEDS
...
Refactor and generalize code
^KT-62783 Fixed
2023-11-16 19:29:58 +00:00
Brian Norman
e92fab65aa
[FIR] Support including flow information when dumping CFG dot file
2023-11-16 18:04:26 +00:00