Dmitriy Dolovov
cd007c02df
[IR][tests] Add cases to visibility-related tests where a callable accidentally starts to override newly added open callable in super class
...
^KT-53608
2022-10-20 10:18:56 +02:00
Dmitriy Dolovov
ec4b85b111
[IR][tests] Add cases to visibility-related tests where a visibility of an open callable in super class is narrowed
...
^KT-53608
2022-10-20 10:18:56 +02:00
Dmitriy Dolovov
15cf2bab98
[IR][tests] Replace returned values in visibility-related tests
...
^KT-53608
2022-10-20 10:18:55 +02:00
Dmitriy Dolovov
64867a1627
[IR][tests] Rename top-level declarations in visibility-related tests to distinguish them from nested declarations
2022-10-20 10:18:55 +02:00
Dmitriy Dolovov
296c1cbd0f
[Native][tests] Add partial linkage tests (muted) for replacement-of-return-type case
...
^KT-51707
2022-10-20 10:18:54 +02:00
Dmitriy Dolovov
24d8ac97cd
[IR][tests] Make ABI compatibility tests less verbose, part 2
2022-10-20 10:18:54 +02:00
Dmitriy Dolovov
db1c8cc7a7
[IR][tests] Make ABI compatibility tests less verbose, part 1
2022-10-20 10:18:53 +02:00
Dmitriy Dolovov
3569ec7666
[IR][tests] New test: change of visibility for callables
2022-10-20 10:18:53 +02:00
Dmitriy Dolovov
8374b2da85
[IR][tests] New test: non-abstract callable member in abstract class becomes abstract
...
^KT-53663
2022-10-20 10:18:53 +02:00
Dmitriy Dolovov
4d056b211e
[IR][tests] Update tests to reflect changes in partial linkage error messages
2022-10-20 10:18:52 +02:00
Artem Kobzar
7b9aed25da
[K/JS] Add the ability to turn off polyfills generating
2022-10-19 12:52:23 +00:00
Dmitriy Novozhilov
248c45acb3
[FIR] Properly set resolvedToCompanionObject field for lhs of GetClassCall
...
^KT-54209 Fixed
2022-10-19 11:09:32 +00:00
Dmitriy Novozhilov
55aae5325c
[Test] Add test for KT-54209
2022-10-19 11:09:32 +00:00
Dmitriy Novozhilov
64e21af03b
[FIR] Consider containing class during visibility check of static function call
...
^KT-53441
2022-10-19 11:09:32 +00:00
Dmitriy Novozhilov
5665139865
[Test] Add test for KT-54125
2022-10-19 11:09:31 +00:00
Igor Yakovlev
5218acd5c9
[WASM] Optimise interop adapters
2022-10-18 20:48:12 +02:00
pyos
1fcf099104
FIR: serialize both expanded and abbreviated type to metadata
2022-10-18 14:59:11 +00:00
Sergej Jaskiewicz
a939f9ccd0
[JS IR] Improve debug info precision for blocks
...
Namely:
- Generate debug info for closing braces, which allows the breakpoints
set on closing braces to be hit
- Generate debug info for 'if' and 'try/catch' statements.
KT-46276
2022-10-18 14:31:14 +00:00
Ivan Kylchik
1ce99db830
Change class loader in ir interpreter that is used to create proxy obj
...
#KT-54509 Fixed
2022-10-18 13:47:34 +00:00
Ilya Goncharov
b76fdb2efa
[JS IR] Fix js help
2022-10-18 09:59:17 +00:00
Ilya Goncharov
ca8b415726
[JS IR] Change names of ir-only arguments
2022-10-18 09:59:17 +00:00
Ilya Goncharov
ec50036884
[JS IR] Change module name compiler flags
2022-10-18 09:59:16 +00:00
vladislav.grechko
b5a23e3ef7
Minor: improve usability of tests for custom equals in inline classes
2022-10-17 14:11:01 +00:00
vladislav.grechko
cc1b4243dd
Fix exception on 'equals()' returning 'Nothing' in inline class
...
^KT-54401: Fixed
2022-10-17 14:11:00 +00:00
Mikhail Glukhikh
69c883ecee
FIR: use FIR_IDENTICAL instead of FIR_IGNORE for diags with BE tests
2022-10-17 12:46:25 +00:00
Mikhail Glukhikh
1826d9b332
K2: add & fix tests for JVM BE diagnostics
2022-10-17 12:46:24 +00:00
Mikhail Glukhikh
185e74fd26
Minor: add Suppress usage to CONFLICTING_JVM_DECLARATIONS test
...
Related to KT-54366
2022-10-17 12:46:23 +00:00
Xin Wang
69a4de0461
K2 JVM: Take JVM declarations conflicting error back
...
Since SimpleDiagnosticsCollectorWithSuppress have been replaced by
PendingDiagnosticsCollectorWithSuppress after commit 9add6f3d55 ,
diagnostics need to be committed now.
#KT-54366 Fixed
2022-10-17 12:46:23 +00:00
vladislav.grechko
aeccc2e787
Fix equality comparison of inline classes with primitive underlying type
...
^KT-54455 Fixed
2022-10-14 23:25:48 +00:00
Artem Kobzar
9a4a30c9bb
[K/JS] Add flag for disabling signature uniqueness checks at klib generating phase
2022-10-14 13:08:58 +00:00
Sergej Jaskiewicz
d9681caf0c
[JS IR] Generate 'names' entries for functions in sourcemaps
2022-10-14 10:09:40 +00:00
Sergej Jaskiewicz
227864c6ec
[JS IR] Add a compiler option for generating name entries in sourcemaps
2022-10-14 10:09:39 +00:00
pyos
ee921412fc
FIR: intersect return types of declarations in intersection scopes
...
^KT-54378 Fixed
2022-10-14 08:25:26 +00:00
Ivan Kochurkin
1deb253bac
[FIR] Run FirSupertypesChecker for anonymous objects, ^KT-54300 Fixed
2022-10-13 18:11:49 +00:00
Ivan Kochurkin
69ee40325b
[FIR] Fix dependencyProviders generation in FirDependenciesSymbolProviderImpl
...
Get rid of unnecessary creating of FirCompositeSymbolProvider
2022-10-13 18:11:49 +00:00
Ivan Kochurkin
9c6df5313a
[FIR] Fix substitution of anonymous type's supertypes, ^KT-51418 Fixed
2022-10-13 18:11:47 +00:00
vladislav.grechko
817afcd4af
KT-MR-7307 review fixes
2022-10-13 15:19:10 +00:00
Artem Kobzar
de880ce9aa
[K/JS] Move ES modules logic to a new transformer with IC
2022-10-13 07:32:44 +00:00
Denis.Zharkov
31ba1f1534
Add deprecation warning for false-negative TYPE_MISMATCH
...
See KT-49404 for details
In K1, within SubstitutingScope we approximate almost all the types
containing captured types are being approximated to either a lower or
an upper bound.
While mostly, it's being done correctly there are some problems with
approximations for flexible types
So, the parameter's type of A<in Any>::foo is approximated to Inv<in Any!>,
thus allowing to use Inv<*>, while it's obviously unsound.
NB: For the similar example, in B, there are regular TYPE_MISMATCH
because parameter for B<in Any>::foo is approximated to Nothing
Also, it's important to say that
- in K2 everything works because we don't use type approximation there
- approximation algorithm that works incorrectly is only being used in K1
^KT-54332 Fixed
2022-10-12 20:53:02 +00:00
pyos
2ec264cfa2
FIR CFG: filter out variables declared inside lambdas more eagerly
2022-10-12 11:56:02 +00:00
Mikhail Glukhikh
0080f16cc2
K1: report TYPE_MISMATCH for incorrect assignments in builder
...
#KT-54004 Fixed
2022-10-12 08:21:13 +00:00
Mikhail Glukhikh
0940707fd4
FE: add reproducer for KT-54004
2022-10-12 08:21:12 +00:00
Pavel Mikhailovskii
f4bdf54601
KT-8575 Fix warnings for Java synthetic properties
2022-10-10 22:03:58 +00:00
vladislav.grechko
e0c8142106
Support of custom 'equals' and 'hashCode' in inline classes
...
'equals' from any made available for overriding in inline classes
'typed' equals made available for definition in inline classes
'typed' equals definition made compulsory if 'untyped' is overridden
'operator' keyword is allowed in 'typed' equals definition
^KT-24874: Fixed
2022-10-10 16:52:34 +00:00
Pavel Mikhailovskii
0947834f0d
Add a test for KT-54318
2022-10-10 13:47:34 +02:00
Pavel Mikhailovskii
5fdfd4a421
Revert "KT-53146 Don't coerce Nothing? returned from "catch" clauses"
...
This reverts commit 903a5d69a4 .
2022-10-10 13:36:44 +02:00
Nikolay Lunyak
b6f950ed75
[FIR][FE 1.0] KT-47933: Warn about redundant @Repeatable
...
Merge-request: KT-MR-7318
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com >
2022-10-07 13:33:49 +00:00
Evgeniy.Zhelenskiy
6117cdc0c3
[IR] Remove unused MFVC getters
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2022-10-07 12:43:46 +00:00
Evgeniy.Zhelenskiy
9dd308dc01
[IR] Add context receivers test, fix a flattening fields bug
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2022-10-07 12:43:46 +00:00
Evgeniy.Zhelenskiy
e1f886936c
[IR] Support try for MFVC
...
#KT-1179
2022-10-07 12:43:45 +00:00