Alexander Udalov
872f6e2cea
Minor, make AnnotatedImpl not abstract
2018-08-27 23:36:24 +02:00
Alexander Udalov
50270293e3
Minor, improve assertion message in test
2018-08-27 23:36:24 +02:00
Vyacheslav Gerasimov
bc544d764a
Refactor build repositories to reduce number of unnecessary request
...
Setup for all projects only local, jcenter and bootstrap repositories
2018-08-27 18:09:26 +03:00
Mikhael Bogdanov
ca5b19d0c6
Merge Java 8 write signature tests in common ones
2018-08-27 15:55:03 +02:00
Mikhael Bogdanov
7e7b556018
Minor. Reformat
2018-08-27 15:17:26 +02:00
Mikhael Bogdanov
7843d4e0d4
Minor. Code clean
2018-08-27 15:17:26 +02:00
Mikhael Bogdanov
efd93670f8
Migrate AbstractWriteSignatureTest.kt to CodegenTestCase stuff
2018-08-27 15:17:25 +02:00
Mikhail Zarechenskiy
3f79a752a5
Check for accessibility of unsigned types when using unsigned literals
2018-08-27 15:16:14 +03:00
Alexander Udalov
afd53c9870
Revert metadata version reading advancement for JS/Common
...
This commit reverts 59e2101a25 partially,
leaving only the implementation of KT-25972 for JVM. The reason is that
we can't fully commit to stabilizing JS (and .kotlin_metadata) binary
metadata formats so much as to postpone any changes done to it for a
whole release year time. It's likely that we will need to update JS
metadata format incompatibly pretty soon, and with the scheme where we
can read the "current + 1" version, it'd require advancing the metadata
version by 2, which would break the nice property that the metadata
version (since Kotlin 1.4) is equal to the version of the compiler that
produced it.
See KT-25972
2018-08-27 13:14:09 +02:00
Mikhail Zarechenskiy
4067d6b196
[NI] Fix overload resolution ambiguity for incorrect provideDelegate
...
#KT-25810
2018-08-27 13:49:19 +03:00
Toshiaki Kameyama
ae4ff45750
"Remove redundant let" inspection: do not report for long call chains #KT-26289 Fixed
2018-08-27 13:42:25 +03:00
Toshiaki Kameyama
c6db26ba91
"Replace 'if' with elvis operator": Don't suggest on nullable type check #KT-25886 Fixed
2018-08-27 13:33:46 +03:00
Toshiaki Kameyama
1a31ce769c
Fix false negative in not reduceable binary expression #KT-26179 Fixed
2018-08-27 13:32:49 +03:00
Toshiaki Kameyama
8f80851b9a
if then to elvis: support calling extension function in class #KT-26343 Fixed
2018-08-27 13:31:04 +03:00
Toshiaki Kameyama
b34f32d4f3
"Remove redundant backticks": Fix false positive for yield #KT-25968 Fixed
2018-08-27 13:10:57 +03:00
Toshiaki Kameyama
362e6863ac
"Replace if with when": Do not remove block braces if block has single lambda expression #KT-26187 Fixed
2018-08-27 12:54:45 +03:00
kenji tomita
e59427edab
Fix false positive for if-else
2018-08-27 12:53:35 +03:00
Toshiaki Kameyama
0099b7b3b1
"Remove explicit type specification" intention: Add type argument to initializer if need #KT-13343 Fixed
2018-08-27 12:35:32 +03:00
Alexander Podkhalyuzin
54922362e3
Added Kotlin svg icon to the distribution
...
#KT-26393 Fixed
2018-08-25 17:21:50 +03:00
Alexander Podkhalyuzin
c0e92ba350
Added resolve scope enlarger to module infos in Kotlin
...
From now it's possible to enlarge resolve scope for analysis in IDE,
the only difference is that it's based on module file.
#KT-26313 Fixed
2018-08-25 11:22:50 +03:00
Alexander Udalov
a9a8925409
Revert "Report error on .class files produced by Kotlin 1.3-M1"
...
This reverts commit ba111d58ae .
The reverted commit only makes sense after a bootstrap step after
advancing the metadata version, which has not yet happened in master,
but did happen in 1.3-M2, where this commit was supposed to end up
2018-08-24 22:38:59 +02:00
Vyacheslav Gerasimov
0dd410a5bb
Make CommandAdapter.beforeCommandFinished override compatible with 183 platform
2018-08-24 22:19:28 +03:00
Juan Chen
1a562d477a
Add sync after Kotlin configured in Android Studio projects.
2018-08-24 22:07:36 +03:00
Mikhael Bogdanov
f21dd9f801
Minor. Review fixes
2018-08-24 20:22:33 +02:00
Mikhael Bogdanov
367ab5470c
Minor. Code clean
2018-08-24 20:22:32 +02:00
Mikhael Bogdanov
4687381179
Convert AbstractLineNumberTest.java to Kotlin
2018-08-24 20:17:25 +02:00
Mikhael Bogdanov
c28b9f75e3
Rename .java to .kt
2018-08-24 20:17:24 +02:00
Mikhael Bogdanov
de02e97f39
Print generated bytecode on AbstractCheckLocalVariablesTableTest fail
2018-08-24 20:17:23 +02:00
Mikhael Bogdanov
9a1b2daa12
Minor. Code clean
2018-08-24 20:17:21 +02:00
Mikhael Bogdanov
f06b6ed47e
Convert AbstractCheckLocalVariablesTableTest.java to Kotlin
2018-08-24 20:17:20 +02:00
Mikhael Bogdanov
614fad016f
Rename .java to .kt
2018-08-24 20:17:19 +02:00
Mikhael Bogdanov
232170b72a
Migrate AbstractIrCheckLocalVariablesTableTest to CodegenTestCase stuff
2018-08-24 20:17:18 +02:00
Alexander Udalov
ba111d58ae
Report error on .class files produced by Kotlin 1.3-M1
...
Advance incremental cache version to force rebuild after switching from
1.3-M1 to 1.3-M2
2018-08-24 18:49:55 +02:00
Cuihtlauac ALVARADO
813d7ff84a
Remove useless parameter
...
It seems a candidate is added either when requiresExtensionReceiver is true and
receiver is not null or when requiresExtensionReceiver is false and receiver is null.
Consequently, f appears useless.
2018-08-24 18:48:03 +03:00
Cuihtlauac ALVARADO
eb7d77ebd9
Accept renaming and formating requests
...
* Rename "resolve" into "resolveCandidates"
* Use multi-line formatting for formal parameters
* Move ")" down one line at call sites
2018-08-24 18:48:03 +03:00
Cuihtlauac ALVARADO
bf08755969
Factor duplicated code.
...
Move SimpleScopeTowerProcessor from TowerResolver into ScopeTowerProcessors.
Lift code duplicated in functions:
* ExplicitReceiverScopeTowerProcessor.simpleProcess()
* QualifierScopeTowerProcessor.simpleProcess()
* NoExplicitReceiverScopeTowerProcessor.simpleProcess()
into AbstractSimpleScopeTowerProcessor. Turn it into a function and call it
in the various context. Incidentally, now useless functions resolveAsMember()
and resolveAsExtension() are removed.
2018-08-24 18:48:03 +03:00
Alexey Sedunov
7ae740dd91
MPP: Add tests for new MPP model import
2018-08-24 18:00:57 +03:00
Mikhail Glukhikh
ded652382b
"Deferred result not used": report all Deferred results by default
...
#KT-26181 Fixed
2018-08-24 18:00:56 +03:00
Mikhail Glukhikh
564ea629d1
Add annotations to primary constructor together with 'constructor'
...
This fixes incorrect behaviour if primary constructor has no explicit
'constructor' keywork
#KT-25548 Fixed
2018-08-24 18:00:54 +03:00
Mikhail Glukhikh
c12f29ae30
Enhance inspection about SuccessOrFailure (related to KT-25621)
...
Increase performance by searching first SuccessOrFailure/runCatching/etc
in text of functions without return type.
Remove stdlib false positives, like success() & failure().
For catching extension, check also non-catching members.
Add "rename to *Catching" fix.
2018-08-24 18:00:46 +03:00
Mikhail Glukhikh
7a2d0a3bb2
Add inspection "Redundant runCatching {}" (related to KT-25621)
2018-08-24 18:00:44 +03:00
Mikhail Glukhikh
2084e94099
Add quick-fix "add .getOrThrow()" for SuccessOrFailure inspection
...
#KT-25621 Fixed
2018-08-24 18:00:42 +03:00
Mikhail Glukhikh
87d750aa1c
Add inspection to detect functions with SuccessOrFailure return type
...
Partial implementation of KT-25621 (no quick-fixes yet)
2018-08-24 18:00:41 +03:00
Ivan Gavrilovic
48784fd95e
Use new API for getting the raw Android resources
...
A new method has been added in the Android Gradle
plugin 3.3.0. This commit switches from ussing the
MergeResources task, and uses getAllRawAndroidResources
API instead.
Test: manually verified
2018-08-24 17:28:40 +03:00
Roman Artemev
5dcb02466a
Update test data
2018-08-24 15:49:13 +03:00
Roman Artemev
2e5940e46d
[JS IR BE] Fix object instance reference
...
* set it in primary constructor prior to constructor body
2018-08-24 15:49:13 +03:00
Roman Artemev
85a8af13cf
[JS IR BE] Fix constructor parent
2018-08-24 15:49:13 +03:00
Georgy Bronnikov
30a2058f74
Fix JVM_IR backend crashes when compiling for Android
...
^KT-23963 Fixed
^KT-23968 FIxed
^KT-23972 Fixed
2018-08-24 15:46:44 +03:00
Roman Artemev
cc14442be1
Add tests for primitive companion object
...
Update test data
2018-08-24 14:58:42 +03:00
Roman Artemev
450ed63690
[JS IR BE] Implement primitive companion object
2018-08-24 14:58:42 +03:00