pyos
85c53bc24e
IR: do not create unused capture fields
...
^KT-48784 Fixed
2021-09-29 16:25:43 +02:00
Leonid Startsev
e7f1cef3a1
Correctly rearrange arguments for annotation constructors copied from another module
...
It won't fix KT-48181 completely, but it will allow to create such annotations
if all value arguments are specified.
For the full fix, we need to read default annotation values from classfiles in jar.
#KT-48181 In progress
2021-09-29 13:45:45 +00:00
Yahor Berdnikau
60cbfbf107
Change KotlinGradleSubplugin deprecation level to ERROR.
...
^KT-48830 Fixed
2021-09-29 12:13:02 +00:00
Pavel Kunyavskiy
e15cfe8f70
[K/N] Use gradle-level conditional compilation for core symbolication
2021-09-29 07:00:07 +00:00
Pavel Kunyavskiy
9f2035c43d
[K/N] Don't assume all apple target support CoreSymbolication
2021-09-29 07:00:07 +00:00
Ilya Gorbunov
193effc7c4
Fix Random.nextLong returning value out of range KT-47304
...
Correctly zero-extend the lower Int part of the Long being produced
2021-09-29 06:50:41 +00:00
Alexander Shabalin
43f64bc7b4
[K/N] Fix timer tests
2021-09-28 22:50:52 +00:00
Steven Schäfer
00134fddf9
Parcelize: Allow Parcelize annotation on sealed classes
...
See https://issuetracker.google.com/177856520
2021-09-28 22:16:33 +02:00
Denis.Zharkov
9ac29e0714
Fix enhancement when mixing TYPE_USE and non-TYPE_USE annotations
2021-09-28 22:59:18 +03:00
Tianyu Geng
a5435c0efc
Make FE1.0 report tailrec diagnostics on the keyword
2021-09-28 22:30:20 +03:00
Tianyu Geng
5252effb10
FIR checker: report tailrec problems on the keyword
...
FE1.0 reports it on the declaration signature. This is not ideal so we
move it to the `tailrec` keyword in FIR.
2021-09-28 22:30:09 +03:00
Ivan Kochurkin
922ae607f6
[FIR] Implement REPEATED_ANNOTATION for types refs ^KT-48652 Fixed
2021-09-28 21:33:06 +03:00
Ivan Kochurkin
3dc0935da4
[FIR] Pass bounds from original type to fully expanded ^KT-40203 Fixed
2021-09-28 21:32:54 +03:00
Sergej Jaskiewicz
f0f60907e2
[JS IR] Fix generating property accessors
...
TL;DR, before we were emitting this JS code:
Object.defineProperty(Base.prototype, 'bar', {
configurable: true,
get: Base.prototype._get_bar__0_k$,
set: Base.prototype._set_bar__a4enbm_k$
});
Now we emit this code instead:
Object.defineProperty(Base.prototype, 'bar', {
configurable: true,
get: function () {
return this._get_bar__0_k$();
},
set: function (value) {
this._set_bar__a4enbm_k$(value);
}
});
This fixes the issue where if we had a @JsExport'ed base class with a
public property overridden in a non-exported derived class, we couldn't
access that property from JS if we were given an instance of
the derived class.
#KT-41912 Fixed
2021-09-28 20:04:38 +03:00
Svyatoslav Kuzmich
841f5a583e
[Wasm] Support wasm target in multiplatform plugin
2021-09-28 18:26:07 +03:00
Roman Artemev
070c64f9b5
[JS IR] Add descriptive error message for js("...") call
...
Report a message instead of NPE if `js("...")`` code couldn't be emitted
2021-09-28 18:15:57 +03:00
Roman Artemev
920daac0a2
[JS IR] Fix string literal folder in codegen for js("...") function
...
Support `val v = "S"` and plus (`v1 + v2`) cases
Fix KT-48941, KT-47360 and probably KT-42681
2021-09-28 18:15:55 +03:00
Roman Artemev
f05c8ad953
[JS IR] Fix js("...") call checker in frontend.
...
Call mather relies on that BuiltIn package fragment implement specific
interface `BuiltInsPackageFragment` which was missed. Make sure that
BuiltIn module's package fragments implement that interface.
Fix progression optimizer symbols resolve in JS & WASM IR BE
2021-09-28 18:15:51 +03:00
Roman Artemev
18950feeff
[JS IR] Add tests for KT-48941
2021-09-28 18:15:48 +03:00
Ilya Kirillov
7d4d035287
Analysis API: add validity assertions to diagnostics
2021-09-28 15:55:24 +03:00
Ilya Kirillov
9fd988d727
Analysis API: regenerate diagnostic classes
2021-09-28 15:55:22 +03:00
Ilya Kirillov
6c97393927
Analysis API: get rid of weak refs scheme for working with FIR internals for diagnostics
2021-09-28 15:55:19 +03:00
Ilya Kirillov
d723916d67
Analysis API: get rid of weak refs scheme for working with FIR internals for KtScope
2021-09-28 15:55:18 +03:00
Ilya Kirillov
d348c48e4f
Analysis API: get rid of weak refs scheme for working with FIR internals for KtSymbol and KtType
2021-09-28 15:55:17 +03:00
Ilya Kirillov
2de4a6f924
Analysis API: fix reference resolving for implicit invoke calls
2021-09-28 15:55:16 +03:00
Ilya Kirillov
7045e3ee45
Unmute passing FIR LC test
2021-09-28 14:19:15 +02:00
sebastian.sellmair
4eaabe54ee
[Gradle] Finalize naming of 'runProjectConfigurationHealthCheckWhenEvaluated' API
...
^KT-48823
2021-09-28 12:11:10 +00:00
sebastian.sellmair
5430b19262
[Gradle] Add 'gradleKotlinDsl' dependency to 'functionalTestImplementation'
...
^KT-48823
2021-09-28 12:11:10 +00:00
sebastian.sellmair
29fb74d27d
[Gradle] Don't run post-evaluation-checks on projects that failed to configure
...
When in 'lenient' or 'classpath' mode, Gradle will catch exceptions
during project evaluation and collect them into the
'ClassPathModeExceptionCollector'.
Running checks on the project after evaluation should only happen
if the project is properly configured (aka no such exceptions collected)
to prevent false positive error reports (that will then fail
the Gradle process and swallow the real cause)
^KT-48823 Verification Pending
2021-09-28 12:11:09 +00:00
Yahor Berdnikau
e4827efb4a
Remove WorkersIT test.
...
Now all compilations are using workers and issues should be covered
by other tests.
^KT-46406 Fixed
2021-09-28 11:41:09 +00:00
Yahor Berdnikau
3dc69495f9
Restore tasks outputs to pre-execution state in worker.
...
Workers usually execute later than task action and does not raise
exception to the task. Such behaviour skips task outputs restoration to
the pre-execution state.
Kotlin compiler on incremental compilation error leaves 'dirty*' files
in the build output, forcing Gradle to run non-incrementally on the
next build. Fixed it by moving task outputs reset logic into worker as
well.
^KT-46406 In Progress
2021-09-28 11:41:09 +00:00
Yahor Berdnikau
904f9c72f2
Remove 'kotlin.parallel.tasks.in.project' property.
...
^KT-46406 In Progress
2021-09-28 11:41:08 +00:00
Yahor Berdnikau
24454ba726
Split toolchain and jvm target validation tests.
...
Should slightly improve test suite execution time.
2021-09-28 13:38:06 +02:00
Sergej Jaskiewicz
b3c681ee42
[JS IR] Tests for TS declarations of sealed classes
...
Also make sure we generate proper declarations for abstract and data
classes.
#KT-39364 Fixed
#KT-47376 Fixed
2021-09-28 13:54:48 +03:00
Vyacheslav Karpukhin
5530080a7d
KMA-271 Android dependencies are not imported with AGP 7
2021-09-28 10:51:28 +00:00
Vyacheslav Gerasimov
29787218e1
Build: Add proper kotlin-compiler-runner-unshaded for ide artifacts
...
Fixes tests in kt-212-master branch of kotlin plugin in
intellij-community repository
2021-09-28 13:42:31 +03:00
Dmitriy Novozhilov
825ecc3a6f
[Build] Remove JDK 15 and 16 from JdkMajorVersion
...
They are replaced with JDK 17 LTS release
2021-09-28 13:01:48 +03:00
Dmitriy Novozhilov
de7fb9606a
Migrate all JDK 9 related tests to JDK 11
2021-09-28 13:01:47 +03:00
Dmitriy Novozhilov
ce3562f0e8
Migrate all JDK 15 related tests to JDK 17
2021-09-28 13:01:45 +03:00
nataliya.valtman
452dfd6edd
Use default performance manager for K2JVMCompiler
2021-09-28 09:20:50 +00:00
Ilya Matveev
37e9d8c8f5
[K/N][GC] Fix enabling the gc-aggressive mode
2021-09-28 08:18:38 +00:00
Mikhail Glukhikh
363680e4c9
Delay abstract class member forbiddance (see KT-45508) to 1.7
2021-09-28 11:17:42 +03:00
Dmitriy Novozhilov
4f7103b2a1
Add ApiVersion for 1.7
2021-09-28 10:16:51 +03:00
Elena Lepilkina
cb7fab612c
[K/N][perf] Fix running benchmarks with custom native build type
2021-09-28 07:06:05 +00:00
Ilya Kirillov
65b6e7076b
Fix cooperative development configuration
...
Deprecated testCompile was not available, replace with testApi
2021-09-27 21:20:36 +03:00
Roman Artemev
4073f177b4
[JS IR] Fix switch transformer in case of if as an expr
...
- Fix KT-43374
2021-09-27 19:01:43 +03:00
Roman Artemev
9123d426c3
[JS] Add test for KT-43374
2021-09-27 19:01:42 +03:00
Ilya Gorbunov
af5ec9d289
Fix a typo in Typography object constants KT-46243
2021-09-27 14:55:19 +00:00
Ivan Kylchik
cc934d9574
Support arguments' evaluation of primitive arrays in fir2ir transformer
2021-09-27 17:45:01 +03:00
Svyatoslav Kuzmich
dd45714137
[Wasm] Add property reference stdlib part
2021-09-27 17:08:55 +03:00