Commit Graph

210 Commits

Author SHA1 Message Date
pyos 803abfeba8 FIR: rewrite lambda return type inference
* `return` should only be added to the last statement if the return
   type is not Unit

 * If there is a `return` without an argument, then the expected return
   type is Unit and the last expression is not a return argument (unless
   it's an incomplete call, in which case it is inferred to return Unit;
   this behavior is questionable, but inherited from K1)

 * There should be a constraint on return arguments even if the expected
   type is Unit, otherwise errors will be missed

 * When the expected type is known, using the call completion results
   writer is pointless (and probably subtly wrong).

^KT-54742 Fixed
2023-01-10 15:40:45 +02:00
Dmitriy Novozhilov 0a902c1bef [Build] Remove dist_root artifact from JPS project configuration
This artifact was used to build compiler artifact during each project
  build, which is not needed for running compiler tests. Removal of
  this artifact from build chain reduces time of build for ~3 seconds
  which is a lot for rebuilds after minor changes (which are usually
  take only few seconds)
2021-11-09 20:06:08 +03:00
Svyatoslav Kuzmich 4fc461a2ff [Wasm] Imporove external interface support
* Support boxing/unboxing when casting to Any
* Support ===, equals, hashCode, toString

* Support adapting String in interop boundary
2021-10-23 01:26:12 +03:00
Tianyu Geng e3b92fe5f3 FIR IDE: move helper to shorten refs to IDE 2021-10-15 00:43:20 +03:00
Elena Lepilkina 510e38b791 [K/N][performance] Adopted performance service to work with new configurations and build numbers 2021-03-29 17:10:18 +00:00
Elena Lepilkina f7099d34d4 [K/N] Fixed build of performance server project 2021-03-10 11:49:39 +00:00
Vasily Levchenko be08e29cb3 [.idea][artifacts] added kotlinx_cli_jvm 2021-02-26 12:51:53 +01:00
Yan Zhulanow 65e06c86cc Revert dist_root removed by mistake 2020-04-15 18:19:32 +09:00
Yan Zhulanow f115bde682 Debugger, BE: Provide Java-like stepping for 'for' loops
- Visit '}' instead of 'for' keyword on post-condition
- Visit 'for' keyword on pre-condition
2020-02-14 17:35:17 +09:00
Vyacheslav Gerasimov 286b9f5233 Build: Add jps artifact for kotlinc 2019-06-27 17:56:50 +03:00
Vyacheslav Gerasimov db8a4a52da Build: Add JPS artifact for kotlin-compiler.jar
JPS build assumes fat jar is built from embedded configuration,
but we can't use it in gradle build in :prepare:compiler project
since slightly more complex processing is required like stripping
metadata & services from some jars
2019-06-27 17:56:50 +03:00
Vyacheslav Gerasimov 31c3955940 Build: Add workaround dist root artifact referencing auto-generated dist
We can't set output-path and build-on-make from idea-ext plugin
2019-06-27 17:56:49 +03:00
Vyacheslav Gerasimov 72be81ba46 Build: Add JPS artifact for dist 2019-06-27 17:56:49 +03:00
Vyacheslav Gerasimov 86ad25ba55 Build: Add jps artifact for kotlin-reflect 2019-06-27 17:56:49 +03:00
Vyacheslav Gerasimov 3138757d66 Build: Add jps artifact for kotlin-compiler-client-embeddable 2019-06-27 17:56:49 +03:00
Vyacheslav Gerasimov 7149fc75f5 Build: Add jps artifact for kotlin-main-kts 2019-06-27 17:56:49 +03:00
Vyacheslav Gerasimov 5c72fed918 Build: Add jps artifact for kotlin-imports-compiler-dumper 2019-06-27 17:56:49 +03:00
Vyacheslav Gerasimov d24c56e08d Build: Add jps artifact for kotlin-daemon-client.jar 2019-06-27 17:56:48 +03:00
Vyacheslav Gerasimov 12b4cf3f0e Build: Add jps artifact for kotlin-jps-plugin.jar 2019-06-27 17:56:48 +03:00
Yan Zhulanow a9057e914b Move back the hardcoded artifacts needed for JPS build 2019-06-14 17:13:50 +09:00
Yan Zhulanow f450a8ed89 Disable Kapt tests for new multiplatform in Android Studio 2019-06-13 17:35:27 +09:00
Alexander Udalov d05e72dda8 Update bootstrap to 1.3.50-dev-526 2019-05-28 11:33:34 +02:00
Alexey Tsvetkov ad7de948f6 Update bootstrap
The new version fixes NSME from CoreJarFileSystem (KT-31574)
Also see 6addb24e4b
2019-05-27 13:08:34 +03:00
Ilmir Usmanov e7c78d8d7e Update bootstrap
Update reference public API. Before 266976ac1e
suspend inline functions with crossinline parameters were effectively
inline-only. Fixing it exposed suspendCoroutine as public API.
Update jps artifacts after bootstrap.
2019-05-23 09:28:31 +03:00
Mikhael Bogdanov c8564e9ade Update jpsBuild dependencies 2019-05-13 14:18:33 +02:00
Nikolay Krasko ad02700200 Update to bootstrap 1.3.50-dev-2
Fix Compiler and all IDE plugins configuration struggling to build
stdlib because of circular dependency.

See 1.3.50-dev-2 build in https://teamcity.jetbrains.com/app/buildConfiguration/Kotlin_dev_CompilerAllPlugins?branch=%3Cdefault%3E&buildTypeTab=builds
2019-05-08 20:01:01 +03:00
Svyatoslav Kuzmich 5baa520232 Advance bootstrap to 1.3.40-dev-2251
Required for JS IR CLI and Gradle plugin
2019-04-25 19:04:59 +03:00
Sergey Rostov cfa635b36a JPS Build: update artifacts for scripting-compiler-impl and js ir backend 2019-04-24 09:45:23 +03:00
Sergey Rostov 21232d202e JPS Build, 191: update artifacts 2019-04-22 21:52:02 +03:00
Sergey Rostov 15e3482eec JPS Build: add type-system to kotlin-reflect.jar 2019-04-19 11:51:34 +03:00
Sergey Rostov 30d1cc51bf JPS Build: update artifacts 2019-04-18 10:36:22 +03:00
Vyacheslav Gerasimov c492c0c9f9 Build: Generate JPS artifacts for idea plugin from gradle configurations 2019-04-10 17:54:06 +03:00
Sergey Rostov 283ad04f7c JPS Build: fix artifacts after moving dependencies repo 2019-03-28 15:48:35 +03:00
Ilya Chernikov 215d24e12c Fix jps build after adding new scripting jar 2019-03-22 12:26:02 +01:00
Vyacheslav Gerasimov c650206f54 Build: Fix hardcoded paths in artifacts for JPS build 2019-03-20 21:29:25 +03:00
Yan Zhulanow b2a47027fb Move eval4j to idea 2019-03-20 20:52:22 +03:00
Sergey Rostov f5d0a38629 JPS Build: update artifacts 2019-03-06 14:42:49 +03:00
Ilya Chernikov 336f43dbf2 Reorganize files and folders in the scripting plugin 2019-03-02 08:10:16 +01:00
Sergey Rostov 50263ed7cd JPS Build: update artifacts configuration (bootstrap) 2019-02-28 09:16:10 +03:00
Sergey Rostov db8f423880 JPS Build, update artifacts: fix js stdlib, remove stdlib-jdk7 and 8 2019-02-19 11:39:53 +03:00
Sergey Rostov cc62c971e7 JPS Build: update artifacts for IDEA 2019.1 module names 2019-02-14 10:32:28 +03:00
Sergey Rostov 70ffb14d0a JPS Build: update artifacts 2019-02-11 15:18:43 +03:00
Alexander Udalov be74f36acc Add module backend.jvm to kotlin-compiler.jar JPS artifact 2019-02-07 21:23:00 +01:00
Sergey Rostov d81f9dc24d JPS build: artifacts 2019-01-28 13:43:07 +03:00
Simon Ogorodnik 228927f948 Remove obsolete run configurations and artifacts 2017-09-20 18:00:10 +03:00
Alexander Podkhalyuzin 3f8170d369 Clean idea files generated on the gradle import, add them to .gitignore 2017-09-19 23:58:27 +02:00
Yan Zhulanow 8e72a1211b Kapt: Add IDEA integration (KT-19097, KT-17923, KT-19823) 2017-09-14 18:40:55 +03:00
Dmitry Jemerov 895d5fda46 Extract parts of plugin that depend on Java-only plugins to idea-jvn 2017-09-01 11:57:37 +02:00
Dmitry Jemerov 7fffb7b553 Remove UAST services registration from Kotlin plugin 2017-08-10 22:05:44 +03:00
Vyacheslav Gerasimov 4405021f85 Add ProjectOpenProcessor for *.gradle.kts file to open it as project
#KT-19024 Fixed
2017-08-09 15:34:11 +03:00