Ilya Kirillov
c9decd5dc9
New J2K: correctly retrieve all type variables in printing
2019-05-22 22:20:16 +03:00
Ilya Kirillov
7db4958a17
New J2K: fix tests due to changes in inspections behaviour
2019-05-22 22:20:16 +03:00
Ilya Kirillov
37f8d72756
New J2K: make inner private constructors public when accessed
2019-05-22 22:20:16 +03:00
Ilya Kirillov
78fd56bdf0
New J2K: Fix running some post processings in incorrect thread
...
#KT-31234 fixed
2019-05-22 22:20:15 +03:00
Ilya Kirillov
90ab39f50f
New J2K: Fix CCE in post processing
...
#KT-31217 fixed
2019-05-22 22:15:28 +03:00
Sergey Igushkin
8b150d2b07
Fix Android 3.3 Gradle integration tests running with low Gradle version
2019-05-22 18:11:18 +03:00
victor.petukhov
d4515031de
Report warning about implicitly inferred nothing only for return position
...
^KT-31535 Fixed
2019-05-22 15:45:59 +03:00
Roman Artemev
72f7287ad2
[IR BE] Fix array constructor loop. Use index parameter as immutable value
2019-05-22 15:18:13 +03:00
Roman Artemev
dfa38f4a4d
[JS IR BE] Fix state machine generation in case of composition of loops, inline functions and finally blocks
...
* lower finally blocks in any cases
* do not optimize exit blocks for if-statements
2019-05-22 15:18:13 +03:00
Roman Artemev
9c7d47789c
[JS IR BE] Implement type check for SuspendFunctionN
2019-05-22 15:18:13 +03:00
Steven Schäfer
9894c216c1
Fix test for static default methods in KotlinTypeMapper
2019-05-22 13:33:08 +02:00
Steven Schäfer
cf13293363
Use FQ names for string plus intrinsic in FlattenStringConcatenationLowering
2019-05-22 12:14:43 +02:00
Alexander Udalov
43bf962d79
Fix CLI test data on -XXLanguage arguments
...
We should use '\:' instead of ':' because the latter is replaced to the
path separator in AbstractCliTest.readArg which is ';' on Windows.
2019-05-22 08:48:37 +02:00
Alexander Udalov
d340f6dc62
Minor, simplify code in parseCommandLineArguments
2019-05-22 08:48:37 +02:00
Ilmir Usmanov
effbcdaf70
Do not generate $$forInline suffix for enclosing method
...
in OUTERCLASS field.
The inliner generates two versions of suspend functions/lambdas in
inline functions: with state-machine and without. The former is used
to call the function from Java or via reflection and have ordinary
name, while the latter is used by inliner and have $$forInline suffix.
The inliner throws the state-machine version away, duplicates
$$forInline version and then call state-machine generator.
If these suspend functions/lambdas are not going to be inlined,
$$forInline version is not generated. However, all objects, which are
used in these suspend functions/lambdas, have $$forInline version
written to OUTERCLASS field. This leads to errors by proguard.
Since they are used in both state-machine version and for-inline ones,
we can simply remove $$forInline suffix from OUTERCLASS field and this
fixes the issue.
#KT-31242 Fixed
2019-05-21 21:09:36 +03:00
Svyatoslav Kuzmich
dd6bc100ed
[JS IR BE] Don't detach assignment operator from receiver
2019-05-21 19:19:31 +03:00
Svyatoslav Kuzmich
5495da5241
[JS IR BE] Allow empty call arguments only for external functions
2019-05-21 19:19:31 +03:00
Svyatoslav Kuzmich
e9ceee388e
[JS IR BE] Don't transform toString with extension receiver
2019-05-21 19:19:31 +03:00
Svyatoslav Kuzmich
3153a7dd7e
[JS IR BE] Fix boolean and/or generation
2019-05-21 19:19:31 +03:00
Svyatoslav Kuzmich
b8bbcb3f93
[JS IR BE] Copy type metadata for Boolean, Char and Long varargs
2019-05-21 19:19:31 +03:00
Svyatoslav Kuzmich
59617c97b4
[JS IR BE] Fix VarargLowering
...
- Enable empty vararg transformation for all IrFunctionAccessExpression
- Fix empty vararg boxing
- Refactor inline class boxing logic
- Fix types of generated expressions
2019-05-21 19:19:31 +03:00
Svyatoslav Kuzmich
f80b6ff947
[JS IR BE] Put file names into JsDoc
2019-05-21 19:19:31 +03:00
Sergey Igushkin
71bd88bdb3
Fix the AGP deprecation warning on usage of getPackageLibrary, KT-30784
...
Use the new API that returns the task provider, if available.
Issue #KT-30784 Fixed
2019-05-21 19:08:29 +03:00
Ilya Gorbunov
0a3ebb5780
Unmute tests for JVM_IR that pass after making assertFailsWith inline
2019-05-21 18:53:53 +03:00
Ilya Gorbunov
6632cf5b1d
Add hidden methods to keep binary compatibility in kotlin-test for JVM
2019-05-21 18:53:52 +03:00
Ilya Gorbunov
22694fa6b0
Make assertFails(With) inline-only functions
...
So that the lambda passed to these functions can capture suspend
function calls.
#KT-31194 Fixed
2019-05-21 18:53:52 +03:00
pyos
6b2d874ccc
JVM_IR: generate non-null assertions for arguments
2019-05-21 18:30:27 +03:00
Ilmir Usmanov
266976ac1e
Fix Java interop of inline suspend functions with suspend parameters
...
In 1.3.31 I fixed Java interop for inline function with coroutines
(TL;DR: when we need a state machine, generate two methods: one with
normal name, and the other one with $$forInline suffix, for the inliner
to use, just like inline suspend functions), however, I forgot a case
with inline suspend function with inline suspend function parameter.
In this case, the compiler a generated two functions, as needed, but,
neither of them had a state-machine. This change adds the state-machine
for the method with normal name. Note, that suspend inline functions
with crossinline parameter, which are also supported by the change,
did not cause incorrect behaviour, since until now they were generated
as synthetic.
#KT-31354 Fixed
2019-05-21 17:50:25 +03:00
Georgy Bronnikov
2b9e05e30f
JVM_IR: copy-paste parameter name generation from descriptor-based code
2019-05-21 17:24:53 +03:00
Jiaxiang Chen
afcbd76c9e
Implement stub methods generation for Kotlin Immutable Collection classes.
...
This change is to fill the gap between Kotlin Collection
classes(immutable) and Java Collection classes(mutable), to avoid
calling an unsupported operation like remove() on an immutable class in
jvm.
2019-05-21 17:20:20 +03:00
Elena Lepilkina
8c3cef97bd
New shared version
2019-05-21 16:56:39 +03:00
Mikhail Glukhikh
0cf318918c
Clean & fix tests in "replace manual range with indices / iteration"
...
Related to KT-14344
2019-05-21 13:34:29 +03:00
Natalia Selezneva
7c46338181
Drop ScriptBinariesScopeCache from plugin.xml because it was moved to ScriptDependenciesCache
...
^KT-31521 Fixed
2019-05-21 12:07:11 +03:00
Mikhael Bogdanov
007af75e1e
Properly calculate call site file in JVM IR inliner
2019-05-21 07:42:16 +02:00
Mikhael Bogdanov
6ef3e9ea42
Minor. Code clean
2019-05-21 07:42:15 +02:00
Mikhael Bogdanov
c630df3e49
Simplify code
2019-05-21 07:42:14 +02:00
Mikhael Bogdanov
de62f0123b
Minor. Apply minor TODOs
2019-05-21 07:42:14 +02:00
Mikhael Bogdanov
b8b2607a02
Minor. Clean up code
2019-05-21 07:42:13 +02:00
Igor Yakovlev
f044d654f0
Fix KotlinLintTest.parcel test
...
Added plugin classpath of android compiler extensions to module facet
2019-05-20 19:54:46 +03:00
Benjamin Orsini
3e39f26379
Add map() documentation sample
...
* docs: add map() sample
* docs: add samples for Map and CharSequence
* docs: add another sample for Maps.map()
2019-05-20 19:20:09 +03:00
pyos
08ea982688
Remove imports of javafx from Gradle build files
2019-05-20 17:31:28 +02:00
Vyacheslav Gerasimov
c2a2d80d4c
Build: Minor cleanup & format root build.gradle.kts
2019-05-20 15:16:22 +03:00
Vyacheslav Gerasimov
40e9f48bd0
Build: Fix cache redirector configuration for all projects
...
Since we forcing project evaluation in root build script cache redirector
should be configured before we do so, otherwise `afterEvaluate` is not called
2019-05-20 15:16:22 +03:00
Vadim Brilyantov
d5be5bd96e
Fix obsolete compiler classpath in SourceSectionsTest
2019-05-20 14:23:34 +03:00
Igor Yakovlev
611b6f36ce
Remove redundant import from QuickFixMultiFileTestGenerated
2019-05-20 12:50:09 +03:00
Mikhail Glukhikh
b68e536e2a
Add note about inspection highlighting range
2019-05-20 12:31:58 +03:00
KilianCallebaut
3451c60f93
Suggest to replace manual range with explicit indices or iterable
...
#KT-14344 Fixed
2019-05-20 12:24:52 +03:00
Alexander Udalov
8cda5cb849
Regenerate tests
2019-05-20 11:18:54 +02:00
Toshiaki Kameyama
2c424afefa
Elvis -> if intention: don't produce boilerplate code for return/break/continue/throw in RHS
...
#KT-14369 Fixed
2019-05-20 11:15:41 +03:00
Natalia Selezneva
160de2dbe2
Do not load script dependencies if all script templates aren't loaded
2019-05-20 10:41:15 +03:00