Roman Artemev
c3c2bb5884
[TEST] Add Klib ABI test runner logic
...
- common and js-specific classes
2021-12-08 20:18:14 +03:00
Roman Artemev
4ef316a590
[TEST] Move info file names into common place
2021-12-08 20:18:13 +03:00
Roman Artemev
327b529e08
[TEST] Move TestModel parser into common test part
...
- fix dependent invalidation test runner
2021-12-08 20:18:10 +03:00
Roman Artemev
699f16ba55
[KLIB] Move klib-related tests into separate package/directory
...
- regenerate tests
2021-12-08 20:18:08 +03:00
Mikhael Bogdanov
8c17d5f5a7
JvmDefaultWithCompatibility. Switch retention to source
2021-12-08 12:25:02 +01:00
Mikhael Bogdanov
29afd674d2
JvmDefaultWithoutCompatibility. Add test with Kotlin Java mixed inheritance
2021-12-08 12:25:02 +01:00
Dmitry Petrov
93713a9ad4
JVM_IR KT-47939 use FunInterfaceConstructorReference as base class
2021-12-08 14:12:41 +03:00
Dmitry Petrov
0ccd7a7e0c
KT-47939 fun interface constructor reference should throw NPE for null
2021-12-08 14:12:41 +03:00
Dmitry Petrov
e5eee9bab9
KT-47939 KotlinFunInterfaceConstructorReference is experimental
2021-12-08 14:12:40 +03:00
Dmitry Petrov
72f7276f3c
PSI2IR KT-47939 more tests
2021-12-08 14:12:40 +03:00
Dmitry Petrov
9eeb8f54fb
JVM_IR KT-47939 fixes after review
2021-12-08 14:12:39 +03:00
Dmitry Petrov
e179598457
JVM_IR KT-47939 equality for fun interface constructor references
2021-12-08 14:12:38 +03:00
Dmitry Petrov
50b0dae786
KT-47939 fixes after review
2021-12-08 14:12:37 +03:00
Dmitry Petrov
58f1504aaf
KT-47939 basic fun interface constructor reference box test
2021-12-08 14:12:37 +03:00
Dmitry Petrov
11daed8b01
FIR2IR KT-47939 callable references to fun interface constructors
2021-12-08 14:12:36 +03:00
Dmitry Petrov
f55f880726
Minor: regenerate tests, update testData
2021-12-08 14:12:35 +03:00
Dmitry Petrov
27a144f86f
PSI2IR KT-47939 callable references to fun interface constructors
2021-12-08 14:12:34 +03:00
Dmitry Petrov
1fd0dec5e7
FE KT-47939 callable references to functional interface constructors
...
Allow callable references to Kotlin 'fun interface' constructors.
Prohibit callable references to Java SAM interface constructors.
2021-12-08 14:12:33 +03:00
Dmitry Petrov
bfb6e73728
Minor: reformat Errors.java & ErrorsJvm.java
2021-12-08 14:12:32 +03:00
Ilya Goncharov
00289d3514
rra/ilgonmic/exported-bridges-2
...
[JS IR] Use js name for signature
[JS] bridgeSavingExport only for JS IR
[JS IR] Fix test
[JS IR] Stable and non stable signatures
[JS IR] Consider return type in js signature and erase for JS name signature
[JS IR] Copy signature from wasm to JS and export bridge, not original
Merge-request: KT-MR-5174
2021-12-08 08:30:14 +00:00
Ilya Goncharov
0c74376cc4
rra/ilgonmic/after-test-promise
...
[JS] Node downloading for js ir integration kotlin test
[JS] Fix API of Promise
[JS IR] Promise symbol as lazy2
[JS] Support legacy compiler aftertest with promises
[JS IR] Generate finally for promised tests
[JS] Setup it tests for JS IR kotlin-test
Merge-request: KT-MR-5168
^KT-49738 fixed
2021-12-08 08:22:53 +00:00
Mikhael Bogdanov
bdeae7668e
JvmDefault. Support 'JvmDefaultWithCompatibility' annotation in old backend
...
#KT-48217
2021-12-08 06:27:57 +00:00
Alexander Udalov
1471602c9f
JVM IR: do not optimize properties with -Xno-optimized-callable-references
...
#KT-50019 Fixed
2021-12-08 03:15:49 +01:00
Ilmir Usmanov
f95cba0ec3
Support delegation by interface for inline classes in FIR
...
#KT-27435 Fixed
2021-12-08 00:11:55 +01:00
Ilmir Usmanov
bb53ba4a2e
Enable delegation by interface for inline classes in old FE
...
#KT-27435
2021-12-08 00:11:54 +01:00
Mikhail Glukhikh
386e2e0950
FIR2IR: don't create separate delegate fields for constructor properties
2021-12-07 23:17:38 +03:00
Mikhail Glukhikh
f8b3eb0801
FIR: introduce helpers to get resolved reference / symbol
2021-12-07 23:17:34 +03:00
Mikhail Glukhikh
852475337b
FIR: use only most specific members when building intersection
...
In this commit we drop less concrete members in intersection.
See for example change in test data: before the commit, we intersected
all three A.foo, B.foo and C.foo in diamond hierarchy. After the commit
we drop A.foo and intersect B.foo and C.foo only.
2021-12-07 23:17:20 +03:00
Mikhail Glukhikh
a4f7bee9ad
FirTypeIntersectionScope: minor mutability refactoring
2021-12-07 23:17:15 +03:00
Igor Yakovlev
ea060dcf8a
[WASM] Implement lazy with UnsafeLazyImpl
2021-12-07 21:33:34 +03:00
Igor Yakovlev
d55e16a030
[WASM] Regex std implementation
2021-12-07 21:33:31 +03:00
Igor Yakovlev
4f9b54da26
[WASM] Remove ignore from wasm std text tests
2021-12-07 21:33:28 +03:00
Igor Yakovlev
2e78a1cd90
[WASM] Fix invalid string literal encoding
2021-12-07 21:33:21 +03:00
Victor Petukhov
7475d26902
[FE 1.0] Implement checker to detect changed resolve for progressions and ranges due to the start of implementing Collection<T>
...
^KT-49276 Fixed
2021-12-07 18:48:27 +03:00
Victor Petukhov
4363667bc1
Move range utils into common compiler part
2021-12-07 18:48:26 +03:00
Dmitry Petrov
100d7123c2
JVM_IR KT-50078 fix for-in-array loop bytecode shape
2021-12-07 17:41:59 +03:00
Dmitry Petrov
256aaa3388
Minor: extract *LoopHeader classes to separate files
2021-12-07 17:41:58 +03:00
Leonid Startsev
767c570af4
Load default values for annotation members from classfiles
...
so that defaults are available to synthetic implementations.
#KT-48181 Fixed
Implementation is for JVM IR; other backends & FIR need to be supported
separately.
2021-12-07 10:10:04 +00:00
Victor Petukhov
ce2c6f5d1f
[FE 1.0] Don't mark type variable as READY_FOR_FIXATION_DECLARED_UPPER_BOUND_WITH_SELF_TYPES if it has complex dependency to other type variables
...
^KT-49838 Fixed
2021-12-07 11:41:13 +03:00
Victor Petukhov
61d40403e7
[FE 1.0] Create captured star projection for self types by replacing type arguments deeply
...
^KT-49752 Fixed
2021-12-07 11:38:45 +03:00
Mikhael Bogdanov
6474a90555
Fix Android box tests
2021-12-06 19:34:40 +01:00
Mads Ager
529944fe9c
[JVM_IR] Fix inline class default method codegen.
...
Do not coroutine transform static inline class replacements that
forward to a default interface suspend method. No boxing has to
take place on return (as the default interface method always
boxes) so we can simply forward the call.
^KT-49645 Fixed
2021-12-06 17:29:59 +01:00
Dmitriy Novozhilov
50f610cfd8
[Test] Add forgotten dumps for Fir2Ir text tests
2021-12-06 19:23:14 +03:00
Dmitriy Novozhilov
3519543831
[IR Test] Properly create empty dump for IR files witout source
2021-12-06 19:23:12 +03:00
Mikhail Glukhikh
de783ad51f
FIR: clarify some calls around lookupTag.toSymbol
2021-12-06 18:07:20 +03:00
Mikhail Glukhikh
d842ac5d3e
FIR: change dispatch receiver type to ConeSimpleKotlinType
2021-12-06 18:07:20 +03:00
Mikhail Glukhikh
4ed2defd00
FirReifiedChecker: minor cleanup
2021-12-06 18:07:19 +03:00
Mikhail Glukhikh
2ba2453062
ConeFlexibleType: statically require to have simple bounds
2021-12-06 18:07:19 +03:00
Mikhail Glukhikh
fa8441fb23
FIR2IR: insert implicit not-null casts in delegated calls
2021-12-06 18:07:18 +03:00
Mikhail Glukhikh
7cfec0d846
FIR2IR: find & use delegate-to members properly
2021-12-06 18:07:18 +03:00