Nikolay Krasko
f7fdffefd6
Add an explicit dependency on dist for UAST tests
2021-04-27 22:00:18 +03:00
Dmitry Petrov
b34e2c1474
JVM_IR KT-36646 fuze primitive equality with safe call
2021-04-27 19:41:31 +03:00
Dmitry Petrov
72849a3dc3
JVM_IR update test for KT-36637
2021-04-27 19:41:29 +03:00
Dmitry Petrov
bdf914e8d5
JVM_IR use static 'hashCode' for boxed primitives on JVM 1.8+
2021-04-27 19:41:28 +03:00
Dmitriy Novozhilov
07b15f9de6
[FIR] Support effective visibility with @PublishedApi
...
#KT-46270 Fixed
2021-04-27 18:39:10 +03:00
Dmitriy Novozhilov
32c3f85679
[FIR] Add inline checker for bodies of inline functions
...
This checker doesn't support `@PublishedAPI` yet, so some BB tests for it
were muted. #KT-46270
2021-04-27 18:39:09 +03:00
Dmitriy Novozhilov
7e052c1eb1
[FIR] Fix suppressing diagnostics for some expressions
2021-04-27 18:39:07 +03:00
Dmitriy Novozhilov
2a08923c51
[FIR] Add more utilities for builtin functional types
2021-04-27 18:39:06 +03:00
Dmitriy Novozhilov
8925b8c922
[FIR] Fix leaking mutable map type of resolved argument mapping
2021-04-27 18:39:05 +03:00
Dmitriy Novozhilov
1afb844e1a
[FIR] Fix FirExpressionWithSmartcastImpl.acceptChildren
2021-04-27 18:39:03 +03:00
Dmitriy Novozhilov
12331cb10c
[FIR] Build resolved declaration status for all non-raw declarations
2021-04-27 18:39:02 +03:00
Ivan Kochurkin
d54808e33f
[FIR] Implement CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS diagnostics, fix tests
2021-04-27 18:27:39 +03:00
Alexander Likhachev
f2f2df90aa
[Gradle] Prevent early resolve of compiler classpath
...
#KT-45834 Fixed
2021-04-27 18:21:19 +03:00
Dmitry Petrov
660208740e
PSI2IR KT-44013 WA: function interface constructor call accepted by FE
2021-04-27 17:35:37 +03:00
Ivan Kochurkin
704b5a0e13
[FIR] Implement UNDERSCORE_IS_RESERVED, UNDERSCORE_USAGE_WITHOUT_BACKTICKS diagnostics (lighttree)
2021-04-27 17:03:53 +03:00
Ivan Kochurkin
ea2d9f7c0c
[FIR] Implement UNDERSCORE_IS_RESERVED, UNDERSCORE_USAGE_WITHOUT_BACKTICKS diagnostics (psi only)
2021-04-27 17:03:52 +03:00
Sergey Bogolepov
cc4adb798f
Add cacheable targets for macos_arm64 host.
2021-04-27 13:47:20 +00:00
Andrey Zinovyev
0c6066db74
[KAPT] Don't fail on illegal delegate
...
Kapt ignores error diagnostics, but backend can't
compile such code at all
This is workaround so backend won't fail.
#KT-46176 Fixed
2021-04-27 16:18:44 +03:00
Ilmir Usmanov
0c0710bb79
Fix outer class accesses inside suspendImpl functions
...
We need to generate this$0 fields to get to the outer class and generate
accesses to these fields inside suspendImpl function.
#KT-46214 Fixed
2021-04-27 10:44:18 +02:00
Pavel Kirpichenkov
71365d2452
[IDE] Move library dependency filtering to dependencies cache
...
The primary client of LibraryDependenciesCache is LibraryInfo,
but it is also used for maintaining modification trackers of
source-dependent libraries. Moving dependency filtering to
cache allows keeping all client in sync.
^KT-45908 In Progress
2021-04-27 10:14:13 +03:00
Mikhael Bogdanov
dfc6d85aee
Enable runtime string concatenation by default (for -Xjvm-target=9 or greater)
...
#KT-42522 Fixed
2021-04-27 09:08:28 +02:00
Ilmir Usmanov
dc2485ae71
Support suspend functions as superinterfaces
...
Forbid mixing suspend and non-suspend functional supertypes.
Since JVM BE generates suspend functional types as non-suspend ones
with SuspendFunction marker interface, there is not way to distinguish
non-suspend functional type from suspend one if they are mixed.
#KT-18707 Fixed
2021-04-26 22:14:32 +02:00
Alexander Udalov
37ccd82b6c
Fix some warnings in kotlin-gradle-plugin
2021-04-26 22:02:26 +03:00
Alexander Udalov
19a5c2f1c8
Fix warnings related to appendln in kotlin-gradle-plugin
...
`appendln` is deprecated, but its replacement `appendLine` can't be used
yet in kotlin-gradle-plugin because it's compiled with API version 1.3.
2021-04-26 22:02:25 +03:00
Alexander Udalov
e5128a8772
Improve generated code for Gradle properties
...
Fix warnings about double nullability and useless elvis.
2021-04-26 22:02:24 +03:00
Svyatoslav Kuzmich
ccc27b6a0c
[IR] Add module property to IrFile
2021-04-26 18:52:42 +03:00
Vasily Levchenko
6f2af740cb
[kotlin-native][tests][lldb] adds possibility to run simple lldb scenarious with simulator
2021-04-26 14:46:51 +00:00
Ilya Gorbunov
ed3542cdf5
Support covariant MutableMap.entries.remove in JS/IR
...
Workaround for KT-43321
Follow up to KT-41278
2021-04-26 17:45:27 +03:00
Anton Yalyshev
666ad1f9d5
1.5.0 Change-notes correction. Restore excessively removed items
2021-04-26 16:23:11 +03:00
Anton Yalyshev
ea7ea979ee
1.5.0 Change-notes correction according to KT-42522
2021-04-26 16:01:00 +03:00
Ilya Kirillov
e2acc507d4
FIR IDE: fix inconsistency in element collecting in DiagnosticTraversalCounterTest
2021-04-26 15:11:47 +03:00
Dmitriy Novozhilov
9cb740bfdb
Fix tests broken in c6fa3634
2021-04-26 15:11:46 +03:00
Steven Schäfer
a1c1a32515
JVM: Fix unsigned literals in API version < 1.5
2021-04-26 15:11:45 +03:00
Mark Punzalan
af2d0ad36f
FIR: Properly set light-tree source for all nested types (e.g.,
...
nullable function type) and error type refs.
2021-04-26 15:11:44 +03:00
Mark Punzalan
1835185b16
FIR: Remove duplicated diagnostics on annotations on types.
2021-04-26 15:11:43 +03:00
Mark Punzalan
edb6b337dc
FIR: Resolve anonymous function bodies during
...
IMPLICIT_TYPES_BODY_RESOLVE phase.
This fixes an issue where some FirAnnotationCalls can be left with some
implicit type refs if they have anonymous functions in the arguments.
2021-04-26 15:11:42 +03:00
Mark Punzalan
e69b729e21
FIR checker: Create a new kind of checker FirTypeChecker and add
...
FirSuspendModifierChecker to report WRONG_MODIFIER_TARGET for `suspend`
on non-functional types.
2021-04-26 15:11:41 +03:00
Dmitriy Novozhilov
4282d17467
[FIR] Optimize imports
2021-04-26 15:11:40 +03:00
Mark Punzalan
b88913af1d
FIR checker: Report WRONG_MODIFIER_TARGET for suspend on
...
non-functional types.
2021-04-26 15:11:39 +03:00
Mark Punzalan
9a4742c08d
FIR: Properly build nullable suspend function types, and aggregate
...
modifiers and annotations within KtTypeReference/REFERENCE_TYPE nodes.
2021-04-26 15:11:38 +03:00
Mark Punzalan
9cf5ac1fbd
FIR: Render "?" on nullable function types.
2021-04-26 15:11:37 +03:00
Ilya Gorbunov
a9cc046ec9
Add missing constructor for expect annotation class JvmRecord
...
KT-46280
2021-04-26 10:41:49 +00:00
Alexander Dudinsky
2c29957cb8
Move tests from GradleImportingTestCase to MultiplePluginVersionGradleImportingTestCase
2021-04-26 13:20:00 +03:00
Alexander Dudinsky
e96f64e6c9
Refactor MultiplePluginVersionGradleImportingTestCase
...
By this commit:
- Used `isTeamcityBuild` flag for a separating local run of the tests from CI
For local run by default uses master version of gradle-plugin and
LATEST_SUPPORTED_GRADLE_VERSION of the Gradle.
But you can specify versions for local run by overriding sysenv
`IMPORTING_TESTS_LOCAL_RUN_PARAMS`.
For example: export IMPORTING_TESTS_LOCAL_RUN_PARAMS=6.7.1:1.4.30
- Moved main logic from `GradleImportingTestCase` to
`MultiplePluginVersionGradleImportingTestCase` for removing the first one later
- Removed `AbstractModelBuilderTest` as useless only
`DistributionLocator` left from this class.
2021-04-26 13:19:59 +03:00
Ilya Gorbunov
b59f668a50
Change the way kotlin.js source map paths are postprocessed
...
The idea is that we do no longer use `sourceMapBaseDirs` parameter
of `compileKotlin2Js` task to remove prefix from source paths,
but instead preserve the full paths relative to the output directory.
This allows us to avoid duplicate file names and to identify
source files more reliably.
Then, after sources have been embedded in the source map, we remove
several relative prefixes from source paths.
2021-04-26 13:13:21 +03:00
Mikhail Glukhikh
29d2a6acee
FIR: fold String arguments inside string concatenation call
...
Related to KT-28006
2021-04-26 12:50:57 +03:00
Mikhail Glukhikh
f278de8768
FIR: don't call toString() inside string concatenations
2021-04-26 12:50:55 +03:00
Igor Chevdar
7dcdbf283b
[box-tests] Added test
2021-04-26 11:53:27 +05:00
Igor Chevdar
eb1dcdb344
[K/N][IR] Fixed bug with enum companion init
...
Fixes https://youtrack.jetbrains.com/issue/KT-46048
2021-04-26 11:53:27 +05:00
Igor Chevdar
476b3befaf
[K/N][IR] Refactored enums lowering a bit
2021-04-26 11:53:26 +05:00