Commit Graph

87742 Commits

Author SHA1 Message Date
Anton Bannykh 0506d422a3 [JS IR] support per-module in the new Ir2JS 2021-11-19 00:38:27 +03:00
Anton Bannykh 1f55dc73d2 [JS IR] don't inline property accessors across files 2021-11-19 00:38:24 +03:00
Anton Bannykh bdf31b8e52 [JS IR] unmute enumUsage IC test 2021-11-19 00:38:21 +03:00
Anton Bannykh 03b9caa439 [JS IR] export external declarations 2021-11-19 00:38:15 +03:00
Anton Bannykh ee8351b9c9 [JS IR] remove unused property 2021-11-19 00:38:11 +03:00
Anton Bannykh 0b0ed5241c [JS IR] remove unused method 2021-11-19 00:38:09 +03:00
Anton Bannykh 3617c1388c [JS IR] improve the hacky fix 2021-11-19 00:38:06 +03:00
Anton Bannykh 46a23c70df [JS IR] hacky fix for local variables name binding 2021-11-19 00:38:03 +03:00
Anton Bannykh e4c668462c [JS IR] fix field namer 2021-11-19 00:38:00 +03:00
Anton Bannykh 5100cb058f [JS IR] local var clashes 2021-11-19 00:37:55 +03:00
Anton Bannykh 05e8bfcd2a [JS IR] split fqn-ish JsNames before resolving temporary names 2021-11-19 00:37:45 +03:00
Anton Bannykh a5d9cb0cc6 [JS IR] copy class models 2021-11-19 00:37:40 +03:00
Dmitriy Dolovov 445156f2fc [Native][tests] Minor. Rename PackageName to PackageFQN 2021-11-18 22:37:38 +03:00
Dmitriy Dolovov 502fb96ccc [Native][tests] Multi-file testData file sample with the same test methods in different packages 2021-11-18 22:37:30 +03:00
Jinseong Jeon 205866a516 FIR IDE: add API to get KtType from KtTypeParameter 2021-11-18 17:33:17 +01:00
Jinseong Jeon d91170ed2c FIR IDE: add more tests about resolving reference to type parameters 2021-11-18 17:33:17 +01:00
Zac Sweers 7f5eb3f5ff Fix incorrect kapt classpath error message.
The correct value is `kapt.include.compile.classpath`

^KT-47002 Fixed
2021-11-18 16:43:45 +01:00
Ivan Gavrilovic 684273783f Kotlin Gradle Plugin - clean caches for in-process compilation
This is to prevent file handle leaks on Windows. This
commit disposes KotlinCoreEnvironment used during
in-process compilation.

^KT-49772 Fixed
2021-11-18 16:20:10 +01:00
Margarita Bobova 7f3b546288 Add changelog for 1.6.0 2021-11-18 17:39:02 +03:00
Alexander Udalov 1b5e3f5d51 Deserialize repeated annotations inside implicit container
#KT-49651 Fixed
2021-11-18 15:33:34 +01:00
Dmitriy Dolovov 6cae6dc5e0 [Native][tests] Re-organize TestCaseGroupProvider 2021-11-18 17:02:44 +03:00
Dmitriy Dolovov 5f9bf1611e [Native][tests] Re-organize packages in 'native.tests' module 2021-11-18 16:12:17 +03:00
Igor Chevdar 0a4fe94717 [K/N][codegen] Removed FieldInfo.hasConstInitializer
If a property is a const val, it can't have non-const initializer
2021-11-18 17:52:57 +05:00
Igor Chevdar cb71240938 [K/N] Supported outer this references from cached inline bodies 2021-11-18 17:52:57 +05:00
Dmitriy Novozhilov da02d25278 [FE 1.0] Implement deprecation warning for private constructors of sealed classes
^KT-44866
^KT-49729 Fixed
2021-11-18 13:54:05 +03:00
Dmitriy Novozhilov 93378b1a04 [FE 1.0] Resolve private constructors of sealed classes same as for regular classes
^KT-44866
^KT-49729
2021-11-18 13:54:05 +03:00
Dmitriy Dolovov e2d68fd239 [Native][tests] Make AbstractRunner.AbstractRun to be fun interface 2021-11-18 13:29:10 +03:00
Dmitriy Dolovov fec63a5f1c [Native][tests] Use a separate directory per every test module 2021-11-18 13:29:10 +03:00
Dmitriy Dolovov 358f1216ad [Native][tests] Fix multimodule test samples to avoid @Test functions in modules compiled to KLIBs
Such functions are not included into the test-runner generated during compilation of the main module.
2021-11-18 13:29:10 +03:00
Dmitriy Dolovov 200d92c287 [Native][tests] Handle unexpected errors during test run 2021-11-18 13:29:10 +03:00
Dmitriy Dolovov f33618330d [Native][tests] Add generating and running blackbox tests to "Generate Compiler Tests" run configuration 2021-11-18 13:29:10 +03:00
Dmitriy Dolovov d13b4bfb25 [Native][tests] Minor. Simplify verification of expectations in LocalTestRunner 2021-11-18 13:29:10 +03:00
Dmitriy Dolovov 0f77c078e8 [Native][tests] Introduce TestRunner that knows how exactly to run an arbitrary test 2021-11-18 13:29:10 +03:00
Martin Petrov aedcfe78e1 [Native] Add -Xoverride-konan-properties to cinterop.
This aligns with the flag added to kotlinc in:
https://youtrack.jetbrains.com/issue/KT-40670

Hermetic builds would benefit from being able to override dependency paths or airplaneMode using this mechanism:

```
$ bin/cinterop -Xoverride-konan-properties "apple-llvm-20200714-macos-x64-essentials.default=/tmp/llvm;airplaneMode=true" -def baz.def
```
2021-11-18 13:18:14 +03:00
Artem Kobzar d5dd35cb20 feat(@JsExport for interfaces): add ability to export interfaces in TypeScript. 2021-11-18 10:07:38 +00:00
Nikolay Kasyanov 4dcfd38236 ObjCExport: remove KotlinUnit from suspend funs returning Unit (#4635)
With `unitSuspendFunctionObjCExport=proper` binary option,
for Unit-returning suspend functions ObjCExport now generates
completion handlers without redundant `KotlinUnit*` result parameter.

So Swift (5.5+) can import these functions as Void-returning async
functions.

^KT-47399 Fixed
2021-11-18 10:01:33 +03:00
Ilya Kirillov 7f6afcabf1 Analysis API: regenerate tests 2021-11-17 20:55:11 +01:00
Ilya Kirillov 7cb1f19a79 Analysis API: move component test classes to corresponding dirs 2021-11-17 20:55:10 +01:00
Ilya Kirillov 82db5fa443 Analysis API: refactor test generation dsl 2021-11-17 20:55:09 +01:00
Ilya Kirillov 6f6a33e852 Analysis API: move testdata to corresponding components folders 2021-11-17 20:55:08 +01:00
Svyatoslav Kuzmich f833fc4bcb [Wasm] Default parameter values for external functions
+ import top-level external functions wrapped in lambdas
2021-11-17 19:28:14 +00:00
Jiaxiang Chen f8262a2549 implement KtSymbolWithTypeParameters interface for KtPropertySymbol 2021-11-17 18:22:34 +01:00
Dmitry Petrov 30ceb49442 JVM_IR KT-48945 generate special bridge with unsubstituted signature 2021-11-17 17:44:01 +03:00
Yahor Berdnikau 4c3404888a Set minimal supported Gradle version to 6.7.1.
^KT-49733 Fixed
2021-11-17 14:10:24 +00:00
Ivan Kylchik c7435ba760 Replace all occurrences of WITH_RUNTIME with WITH_STDLIB
We are going to deprecate `WITH_RUNTIME` directive. The main reason
behind this change is that `WITH_STDLIB` directive better describes
its meaning, specifically it will add kotlin stdlib to test's classpath.
2021-11-17 15:26:38 +03:00
Pavel Punegov 960ba3ffde [K/N] Excluded filecheck test on wasm32. See KT-49739 2021-11-17 09:40:52 +00:00
Ilya Goncharov fb6eb414ad [Gradle, JS] Fix afterEvaluate not inside task configuration 2021-11-17 12:19:39 +03:00
Dmitriy Novozhilov 8cdfec7c40 Regenerate tests 2021-11-17 09:43:27 +03:00
sebastian.sellmair bec2f89a07 [Gradle, MPP] Fix 'getCommonizerTarget' for source sets participating in multiple compilations of the same konanTarget
The previous implementation would return a 'SharedCommonizerTarget'
containing just a single leaf target. This would trigger the commonizer.
The new implementation will correctly return just a single
LeafCommonizerTarget instead.

^KT-49735 Verification Pending
2021-11-16 23:07:47 +00:00
konstantin.tskhovrebov cb37424831 Update K/N to "1.6.20-dev-5356". 2021-11-16 23:10:10 +03:00