Artem Kobzar
71486a321c
[K/JS] Add support of compilation with ES-classes
2023-01-17 18:14:17 +00:00
Igor Yakovlev
f7940a2d46
[Wasm] Fix invalid cast generation for inline classes
2023-01-04 17:16:04 +00:00
Vladimir Sukharev
924898afb7
[K/N] KFC-446: K2 platform: Native alpha
...
Merge-request: KT-MR-7905
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-01-04 16:10:40 +00:00
Steven Schäfer
6af616d3c3
FIR: make declarations marked with 'override' implicitly open
...
#KT-52236 Fixed
2022-12-14 21:46:41 +00:00
Evgeniy.Zhelenskiy
f09fb5ed09
[IR] Enable tests for inline classes secondary constructors with body for not JVM
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-55333
2022-12-11 22:06:47 +01:00
Evgeniy.Zhelenskiy
abc1d942d1
[IR] Add tests for value classes secondary constructors with body and set language feature version for the feature
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-55333
2022-12-11 22:06:47 +01:00
Vladislav Grechko
cb93e9d408
Get rid of redundant boxing of unsigned operands of infix 'compareTo'
...
^KT-48759: Fixed
2022-12-02 18:25:52 +00:00
Dmitriy Novozhilov
1281b778fb
[Test] Fix broken testdata
2022-12-01 14:47:24 +02:00
Evgeniy.Zhelenskiy
fa4a4e56f3
[Tests] Remove unnecessary usages of OPTIONAL_JVM_INLINE_ANNOTATION
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2022-11-30 18:55:42 +00:00
Evgeniy.Zhelenskiy
4d426fc4cd
[IR] Generate not FIR_IDENTICAL box fir value classes tests
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2022-11-30 18:55:39 +00:00
Evgeniy.Zhelenskiy
9f01ccc304
[IR] Support user-defined equals for MFVC
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2022-11-30 18:55:36 +00:00
Evgeniy.Zhelenskiy
6107caa8e2
[FE1.0, FIR] Support secondary constructors for Value Classes
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2022-11-30 18:55:35 +00:00
Vladislav Grechko
cd6e865fb3
Improve support of 'lateinit' modifier
...
- Allow 'lateinit' for inline classes which underlying type
is suitable for 'lateinit'
- K2: report all problems related to 'lateinit' modifier
^KT-55052: Fixed
2022-11-24 19:47:21 +00:00
vladislav.grechko
e0c13e5276
Fix addAll & putAll invocations on inline mutable collections
...
^KT-54950: Fixed
2022-11-24 19:27:42 +00:00
vladislav.grechko
36b8ba8df3
Improve support of custom equals in inline classes
...
- Ensure that typed equals parameter's type is a star projection of
corresponding inline class
- Make possible to declare typed equals that returns 'Nothing'
- Forbid type parameters in typed equals operator declaration
^KT-54909 fixed
^KT-54910 fixed
2022-11-17 15:35:14 +01:00
Ilya Chernikov
7e4ee399c8
FIR JS: temporarily mute remaining codegen tests
2022-11-12 16:28:25 +01:00
pyos
fbb54f0300
FIR: fix Clonable detection condition in inline checker
2022-11-10 11:34:53 +01:00
Xin Wang
4d9c2d3d14
Don't treat java constructor as 'hidden' one
...
Fix KT-54656
2022-11-02 12:56:38 +01:00
vladislav.grechko
6f4a60ac91
Fix equality comparison for inline class over inline class
...
^KT-54536: Fixed
2022-10-21 21:17:40 +00:00
vladislav.grechko
db133bedf9
Fix ClassCastException on equality comparison on inline class objects
...
^KT-54603: Fixed
2022-10-21 21:17:40 +00:00
vladislav.grechko
c990bbb26c
Get rid of excess method in compiled inline class with custom equals
...
^KT-54501: Fixed
2022-10-21 12:57:11 +00:00
vladislav.grechko
70c2f2b86f
Support specifying different bytecode listings for FIR and old frontend
2022-10-21 12:57:11 +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
vladislav.grechko
aeccc2e787
Fix equality comparison of inline classes with primitive underlying type
...
^KT-54455 Fixed
2022-10-14 23:25:48 +00:00
vladislav.grechko
817afcd4af
KT-MR-7307 review fixes
2022-10-13 15:19:10 +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
Alexander Udalov
4baa74f396
Add regression tests for obsolete issues
...
#KT-50909
#KT-50974
#KT-51888
2022-09-28 23:18:59 +02:00
Ilmir Usmanov
569e72c34e
Minor. Do not check for specific bytecode in test
2022-09-21 16:42:15 +00:00
Xin Wang
0eadf35132
Inline: Fix operand stack type verify error
...
This is a proposal to fix KT-49364.
Operand stack type verification happens before `checkcast`
is executed. When we implicitly cast an inline class
to a non-inline type, if type of stack value is not subtype
of the target, then coercing is necessary.
2022-09-21 16:42:14 +00:00
Igor Yakovlev
61d6f69bca
[WASM] Native support of returnable blocks
2022-09-15 16:27:41 +00:00
Mads Ager
59c2bde10a
[K/N] Unmute passing tests.
2022-08-01 08:57:16 +00:00
Steven Schäfer
7d59c7689c
JVM IR: Avoid direct invokes in callable reference tests
...
Due to the direct invoke optimization, most callable reference tests
were not generating callable references/lambdas.
2022-07-14 23:24:18 +02:00
Ilmir Usmanov
a5084c2f69
JVM IR: Make receiver type of IrGetField not null
...
otherwise, it will be mapped to inline class type if underlying type
is primitive of nullable.
#KT-52913 Fixed
2022-06-30 01:28:09 +00:00
Pavel Mikhailovskii
bcd8a28d4c
KT-47823 IR.JVM Fix handling of for loop ranges with inline types and break/continue/return
2022-06-10 18:42:28 +00:00
Steven Schäfer
dbb6144ab0
JVM IR: Avoid boxing in generic floating point equality (KT-48635)
2022-06-08 15:38:06 +02:00
Steven Schäfer
90d09dce2c
JVM IR: Mangle overridden symbols in non-inline functions (KT-52394)
2022-05-17 12:13:29 +00:00
Steven Schäfer
1134dc3858
JVM IR: Resolve fake overrides during inline class mangling
...
This is necessary to determine which mangling scheme to use (KT-51672).
2022-03-24 00:38:34 +00:00
Ilmir Usmanov
254ada88d1
Minor. Add test with inline class inside inline class's init block
2022-03-04 05:23:23 +03: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
Ilmir Usmanov
8811f62300
Fix mapping of nullable generic underlying types of inline classes
...
#KT-32162 Fixed
2022-02-23 01:23:07 +03:00
Ilmir Usmanov
c072448d22
Lower fun interface children's body during inline class lowering
...
#KT-51121 Fixed
2022-02-21 19:50:12 +03:00
Alexander Udalov
e5e5970883
JVM IR: workaround indirect dependency between lowerings
...
#KT-51353 Fixed
2022-02-18 17:04:18 +01:00
Ilmir Usmanov
28b60d7e61
Add another flavor to android tests
2022-02-18 08:50:25 +00:00
Ilmir Usmanov
05457c291d
Minor. Update test
2022-02-17 09:00:37 +03:00
Ilmir Usmanov
f4407c213a
Rename some tests with long names
...
Otherwise, their path on WIN will be longer than MAXPATH, leading to
V8 load error.
2022-02-16 23:46:30 +03:00
Ilmir Usmanov
290a06676d
Minor. Ignore tests in JS_IR
2022-02-16 16:12:29 +03:00
Pavel Punegov
33931bf010
[K/N][test] Ignore test that uses JvmInline
2022-02-15 12:41:25 +03:00
Ilmir Usmanov
714c5091cc
Add regression test for KT-51254
...
#KT-51254 Fixed
2022-02-15 08:11:21 +01:00
Ilmir Usmanov
00a08fc6a4
Minor. Add tests and comment about copying generic parameters to
...
constructor, but not function reference to the constructor.
#KT-32162
2022-02-15 08:11:19 +01:00