Igor Yakovlev
18e5af37ff
[FIR IDE] LC Fixed incorrect JvmOverloads
2020-12-02 15:13:07 +03:00
Igor Yakovlev
535aa1e9e0
[FIR IDE] LC expand typealiases for applied annotations
2020-12-02 15:13:07 +03:00
Igor Yakovlev
229c6f97ac
[FIR IDE] LC Fixed nullability for getters
2020-12-02 15:13:07 +03:00
Igor Yakovlev
aff90b335c
[FIR IDE] LC Implement special keywords like transient, volatile, synchronized, strictfp
2020-12-02 15:13:07 +03:00
Igor Yakovlev
6aff96a401
[FIR IDE] Remove extra analyzing for local declarations
2020-12-02 15:13:07 +03:00
Igor Yakovlev
3fc424246b
[FIR IDE] LC basic support for type arguments
...
+ small fixes for deprecation, etc.
2020-12-02 15:13:06 +03:00
Igor Yakovlev
2a8f783393
[FIR IDE] HL API Better support of nullability and modality
2020-12-02 15:13:06 +03:00
Igor Yakovlev
4c69043a15
[FIR IDE] Move refactoring and minor bugfixing for modality, jvmname, etc.
2020-12-02 15:13:06 +03:00
Igor Yakovlev
3e3ec5fc69
[FIR IDE] Supporting member scopes in EnumEntries
2020-12-02 15:13:06 +03:00
Igor Yakovlev
fdaf31dbf3
[FIR IDE] Fix typemapping for FirTypeAliasSymbol
2020-12-02 15:13:05 +03:00
Igor Yakovlev
aae0081f3f
[FIR IDE] Fixed invalid HL API getters request
2020-12-02 15:13:05 +03:00
Mikhail Glukhikh
2429f429c5
[FIR] Set isStubTypeEqualsToAnything = true for inference as in FE 1.0
...
#KT-43616 Fixed
2020-12-02 14:49:08 +03:00
Mikhail Glukhikh
eae8821dec
FIR Java: unbind possible named annotation cycle
2020-12-02 14:48:46 +03:00
Nikolay Krasko
2ffedd2731
Fix Daemon compiler tests on Windows
...
In 202 platform tearDown tries to remove temporary directory, but this
fails on Windows, because while Daemon is active directory can't be
deleted.
2020-12-02 14:23:32 +03:00
Georgy Bronnikov
8a969dab7d
Bugfix for FIR
2020-12-02 09:47:34 +03:00
Georgy Bronnikov
b23d7a79b0
IR: get rid of WrappedDescriptorWithContainerSource
2020-12-02 09:47:34 +03:00
Georgy Bronnikov
c0cd9064d7
IR: IrMemberWithContainerSource
2020-12-02 09:47:34 +03:00
Georgy Bronnikov
14b773c1fd
JVM_IR: do not rely on DescriptorWithContainerSource in InlineCodegen
2020-12-02 09:47:34 +03:00
Ilmir Usmanov
f0a787551a
Value classes: Raise retention of @JvmInline to RUNTIME
...
so it will be visible by reflection
2020-12-01 23:45:50 +01:00
Ilmir Usmanov
129de76288
Value classes: Generate @JvmInline annotation for inline classes
...
but not for value classes.
Since inline classes and value classes share the same flag, we use
presence of the annotation to distinguish them.
2020-12-01 23:45:47 +01:00
Dmitry Petrov
ae8abd1832
Minor: ignore nestedBigArityFunCalls.kt in WASM
2020-12-01 19:43:52 +03:00
Dmitry Petrov
1412ee96f8
JVM_IR KT-43524 static wrappers for deprecated accessors are deprecated
2020-12-01 19:43:52 +03:00
Dmitry Petrov
e96fc74ffa
JVM_IR KT-43519 no delegates for external funs in multifile facades
...
Also add ABI tests for @JvmStatic/JvmOverloads + 'external'.
2020-12-01 19:43:52 +03:00
Dmitry Petrov
2b4564059e
JVM_IR KT-43459 fix $annotations method receiver type
2020-12-01 19:43:51 +03:00
Dmitry Petrov
85b5948931
JVM_IR KT-43051 no static inline class members for default Java methods
2020-12-01 19:43:51 +03:00
Dmitry Petrov
4c3ffc3451
JVM_IR KT-41911 process big arity 'invoke' arguments recursively
2020-12-01 19:43:51 +03:00
Georgy Bronnikov
b0e2d5637d
Mute a test for WASM
2020-12-01 18:37:55 +03:00
Georgy Bronnikov
bb4950a021
Regenerate LightAnalysis tests
2020-12-01 16:01:48 +03:00
Dmitriy Novozhilov
91bccad72b
[JS] Fix path of generated js tests
2020-12-01 15:43:25 +03:00
Mikhail Glukhikh
7550a1870b
[FIR2IR] Make checks about f/o accessors necessity more precise
...
#KT-43342 Fixed
2020-12-01 14:23:19 +03:00
Ilya Goncharov
b179b567a9
[Gradle, JS] Add test on resolution of js project with directory dependency
...
^KT-43668 fixed
2020-12-01 14:12:39 +03:00
Alexander Udalov
2fdc2dfaaf
JVM IR: fix regression in JvmStatic-in-object lowering for properties
...
References to properties with JvmStatic getter were not handled in
MakeCallsStatic (by overwriting dispatchReceiver with null) because the
property itself was not considered static.
#KT-43672 Fixed
2020-12-01 11:54:45 +01:00
Georgy Bronnikov
4607eca987
JVM_IR: bug fix in classFileContainsMethod
...
The old test sequence failed for toplevel functions because of file
class wrappers, so that the second branch was never invoked.
2020-12-01 13:15:51 +03:00
Roman Golyshev
f50480d258
FIR IDE: Fix resolving of nested types in type references
2020-12-01 09:24:20 +00:00
Roman Golyshev
94a5379631
FIR IDE: Add tests for resolving from nested types references
...
Some of those tests are failing in the FIR IDE
2020-12-01 09:24:20 +00:00
Alexander Udalov
19ca9c0fde
Enable JVM IR for bootstrap in the project
2020-11-30 22:09:24 +01:00
Alexander Udalov
606de26646
JVM IR: fix generation of equals/hashCode for fun interfaces over references
...
... in case `-Xno-optimized-callable-references` is enabled. Before this
change, the generated abstract equals/hashCode methods were considered
as accidental overrides because they did not have equals/hashCode from
the supertype in the overriddenSymbols list.
#KT-43666 Fixed
2020-11-30 19:15:20 +01:00
pyos
50ae360ff9
FIR2IR: fix the way annotations are moved to fields
...
1. When an annotation has multiple targets, the priority goes like this:
constructor parameter (if applicable) -> property -> backing field.
2. The argument to `kotlin.annotation.Target` is a vararg, so that
should be handled as well.
3. `AnnotationTarget.VALUE_PARAMETER` allows receivers, constructor
parameters, and setter parameters, while `AnnotationTarget.FIELD` allows
both backing fields and delegates.
Known issue: java.lang.annotation.Target is not remapped to the Kotlin
equivalent, so things are still broken for pure Java annotations.
2020-11-30 20:29:18 +03:00
Andrei Klunnyi
4817d5e01d
KTIJ-585 [Gradle Runner]: main() cannot be launched from AS 4.1
...
Android gradle-project model differs from what we have for pure Java
and MPP. It's the reason why application classpath cannot be collected
correctly.
Until universal solution is provided delegation to gradle is put under
the registry flag. If disable platform runner is used as before.
2020-11-30 15:44:37 +00:00
Ilya Goncharov
995d96e5a3
[JS IR] Use one concat elements for non vararg and vararg arguments
...
^KT-42357 fixed
2020-11-30 17:34:44 +03:00
Ilya Goncharov
67e4b0948e
[JS IR] Constructor call with vararg invoking with apply
...
[JS IR] Nullize external empty varargs
[JS IR] Concat varargs with array of nonVarargs arguments
^KT-42357 fixed
2020-11-30 17:33:28 +03:00
Ilya Goncharov
ac42dcd8da
[JS IR] Add test for external fun vararg
...
[JS IR] Add tests with empty vararg and default arg before it
[JS IR] Ignore backend in tests instead of target backend
[JS IR] Add function with named spread operator
[JS IR] Remove ignoring of current js backend in jsExternalVarargFun
[JS IR] Add with arguments after vararg
^KT-42357 fixed
2020-11-30 17:33:07 +03:00
Ilya Goncharov
e7789d2e30
[Gradle, JS] Add filter on file on fileCollectionDependencies because Gradle can't hash directory
...
^KT-43668 fixed
2020-11-30 17:04:30 +03:00
Dmitry Petrov
96ed99d62e
JVM_IR KT-40305 no nullability assertions on built-in stubs
2020-11-30 15:49:02 +03:00
Dmitry Petrov
b2aed536c9
JVM_IR KT-39612 process subexpressions recursively in 'name' lowering
2020-11-30 15:49:02 +03:00
Dmitry Petrov
3b604cfa7f
JVM_IR KT-32701 generate multiple big arity invokes, report error later
2020-11-30 15:49:02 +03:00
Dmitry Petrov
a157b58c61
JVM_IR KT-43610 keep track of "special bridges" for interface funs
2020-11-30 15:49:01 +03:00
Dmitriy Novozhilov
c43db2ee8d
[TEST] Inherit UpdateConfigurationQuickFixTest from KotlinLightPlatformCodeInsightFixtureTestCase
...
This is needed for proper test muting
2020-11-30 15:39:05 +03:00
Alexander Udalov
7d9eeb6847
Minor, add workaround for KT-42137
2020-11-30 12:44:42 +01:00
Alexander Udalov
e1d54bf99f
Minor, add workaround for KT-43666
2020-11-30 12:37:27 +01:00