Denis Zharkov
580d03be5f
Support JvmWildcard/JvmSuppressWildcard in ultra-light classes
...
The idea is reusing logic from KotlinTypeMapper for that
2018-11-19 14:40:51 +03:00
Denis Zharkov
ce3b489fa9
Avoid using CheckSignatureAdapter in ultra-light classes
2018-11-19 14:40:51 +03:00
Denis Zharkov
037ad2923c
Minor. Rename parameter in KtUltraLightClass::asJavaMethod
2018-11-19 14:40:51 +03:00
Denis Zharkov
e15e82e1a9
Refactor KotlinType::asPsiType for ultra-light classes
...
- Extract HOF that UltraLightSupport::mapType that allows to call
arbitrary functions of type mapper
- Use it for computing return type of functions
- "declaration: KtDeclaration" parameter became unused since it was only
used for return types
2018-11-19 14:40:51 +03:00
Egor Ushakov
06d91fd95f
use CharSequence methods where available (KOTLIN-CR-2456)
2018-11-19 13:06:40 +03:00
Toshiaki Kameyama
35cc6ff495
Keyword completion: add 'val' after 'const' #KT-27916 Fixed
2018-11-19 11:51:45 +03:00
Natalia Selezneva
1b715ab253
"Add non-null asserted (!!) call": Fix for array access expression (KT-27071)
...
^KT-27071 Fixed
2018-11-19 11:09:32 +03:00
Dmitry Petrov
90da274eaa
KT-28054: Treat inline class constructor accessors specially
2018-11-19 09:42:03 +03:00
Mikhail Zarechenskiy
3a93cab3b6
Mark JVM specific test with TARGET_BACKEND directive
...
This is needed to avoid test failing for Kotlin/Native
2018-11-17 22:55:18 +03:00
Ilya Chernikov
c05c46d50f
Convert to release coroutines (kotlinx-coroutines.1.0.1)
2018-11-17 19:24:34 +01:00
Toshiaki Kameyama
89ba7a7ae8
Make abstract: do not suggest for inline classes #KT-28268 Fixed
2018-11-17 18:07:15 +03:00
Toshiaki Kameyama
e671318653
Formatting: add line break between '{' and enum entry (KT-28227)
...
#KT-28227 Fixed
2018-11-17 01:26:27 +03:00
Ilya Gorbunov
7d3de70754
Correct replacement for js Math.log
...
The correspondent kotlin.math function is ln(x)
#KT-28251 Fixed
2018-11-17 00:20:54 +03:00
Ilya Gorbunov
e81859b50d
Document exceptions that can be thrown from MatchGroupCollection.get(name)
2018-11-16 20:29:38 +03:00
Ilya Gorbunov
8d0d6d1bf3
Do not mutate Matcher in MatchResult.next()
...
Instead of mutating the matcher create a new one when `next()` is called.
This allows getting named groups from that matcher later.
Add lookbehind in matchSequence test to ensure this change doesn't alter
the existing behavior.
Also fixes #KT-20865
2018-11-16 20:29:38 +03:00
Ilya Gorbunov
f76c0568ea
Additionally run kotlin-stdlib-jdk8 tests on jdk9 and jdk10/11 if available
2018-11-16 19:46:38 +03:00
Ilya Gorbunov
c0a7c5cff4
Refactor: use ArrayDeque instead of Stack in FileTreeWalkIterator
...
Cleanup modifiers, replace if with when.
#KT-27251 Fixed
2018-11-16 19:40:40 +03:00
Toshiaki Kameyama
52ca1803d3
Call chain into sequence: use registerProblemWithoutOfflineInformation() #KT-28231 Fixed
2018-11-16 18:20:40 +03:00
Nikolay Krasko
6c3f01ce2c
Refactoring: move channels titles and urls to single place
2018-11-16 17:45:04 +03:00
Nikolay Krasko
bc85b531ee
Include jre -> jdk library replacement to cleanup
2018-11-16 17:45:02 +03:00
Nikolay Krasko
c568ea043f
Reformat parameterInfo
2018-11-16 17:45:01 +03:00
Nikolay Krasko
b1cf98d82a
Reformat completion.handlers
2018-11-16 17:45:00 +03:00
Toshiaki Kameyama
8b2fef3812
Remove explicit type specification: don't propose for ext function type
...
#KT-8875 Fixed
2018-11-16 16:35:04 +03:00
Dmitry Savvinov
c8cbe05722
[Minor] Add even more logging for EA-119635
2018-11-16 14:46:46 +03:00
Toshiaki Kameyama
8089d2e9e3
Replace deprecated symbol usage in whole project: enable on annotation declared without parentheses #KT-12479 Fixed
2018-11-16 13:07:36 +03:00
Toshiaki Kameyama
fa51354ef9
Reformat: DeprecatedSymbolUsageInWholeProjectFix
2018-11-16 13:07:36 +03:00
Toshiaki Kameyama
75755afc00
Remove redundant spread operator: don't remove inner argument spread operator #KT-27699 Fixed
2018-11-16 13:06:25 +03:00
Toshiaki Kameyama
52c499166e
Reformat: RemoveRedundantSpreadOperatorInspection
2018-11-16 13:06:25 +03:00
Denis Zharkov
aa63ad4a45
Report a warning when comparing incompatible enums
...
I've put `isIncompatibleEnums` to TypeIntersector because I placed
all of its usages after all of the TypeIntersector::isIntersectionEmpty ones
^KT-28225 Fixed
2018-11-16 10:36:09 +03:00
Dmitry Petrov
a0d74be7cf
KT-28235: Make sure array access produces unique elements
...
This requires generating calls on-demand in
LValueWithGetterAndSetterCalls.
2018-11-16 10:33:30 +03:00
Dmitry Petrov
080c177ed2
Minor: formatting
2018-11-16 10:33:30 +03:00
Mikhail Zarechenskiy
090d3327c0
Use wrapper class of an inline one as a result for javaClass
...
#KT-28185 Fixed
#KT-28246 Open
2018-11-16 00:55:01 +03:00
Alexander Udalov
1a2579d8e8
Minor, add test for obsolete issue
...
#KT-21692 Obsolete
2018-11-15 20:29:34 +01:00
Igor Chevdar
2ff87ab1ce
Fixed tests on IR copier
2018-11-15 19:13:06 +03:00
Igor Chevdar
728b7b130b
Removed descriptors usage from IR copier
2018-11-15 19:13:06 +03:00
Nikolay Krasko
2d1c76344c
Store presence of spread operator for value argument in stubs
2018-11-15 18:55:56 +03:00
Alexander Udalov
4c64db66dc
Use File.toPath instead of Paths.get+File.toURI in moduleVisibilityUtils
...
#KT-27930 Fixed
2018-11-15 16:51:37 +01:00
Roman Artemev
d5acc8ff5b
[JS BE] Set enclosing exception state in finally block
...
[Fix KT-28207]
2018-11-15 18:44:22 +03:00
Denis Zharkov
353b469f4a
Update bootstrap to 1.3.20-dev-1708
2018-11-15 17:17:41 +03:00
Simon Ogorodnik
ad6ae3ba48
Fix failing test for AS33
2018-11-15 16:27:57 +03:00
Simon Ogorodnik
2d514d410f
Update testData due to platform changes
2018-11-15 16:27:56 +03:00
Simon Ogorodnik
6b07cd1950
Update testData due to changes in stdlib
...
New function equals, and kotlin.js.JsName in common
2018-11-15 16:27:20 +03:00
Toshiaki Kameyama
2a03e1b3da
Leaking this: fix for 'this' in enum class #KT-15835 Fixed
2018-11-15 15:16:48 +03:00
Xavi Arias Seguí
14311e77c2
Fix typo in Kotlin doc for contract method
...
Fix the typo in "Specifies the contact of a function."
2018-11-15 03:58:41 +03:00
Alexander Udalov
9b07bbdf56
Do not use backslash for escaping outside of string literals in argfiles
...
This fixes CLI tests testArgfileWithEscaping and
testApiVersionLessThanLanguageUsingArgfile on Windows
#KT-28180 Fixed
2018-11-14 12:53:24 +01:00
Ilya Gorbunov
607b11e6b9
Replace kotlin-stdlib-jre8 dependency with -jdk8 in 'idea' module
...
No API is used from -jre8 artifact and -jdk8 is required in runtime for tests
2018-11-14 14:28:34 +03:00
Ilya Gorbunov
3e72c0bece
Add stdlib-jdk7/8 to Kotlin IDEA plugin classpath
...
Motivation: standard library dynamically loads its JDK7/8 extensions by class name.
When these extensions are missing from the plugin classloader, they are loaded by
the parent classloader thus becoming assignment incompatible with the base class.
Fixes EA-120914
2018-11-14 14:28:33 +03:00
Mikhail Glukhikh
ad4ebcd953
Do not run MPP wizard tests for AS34 (fixes test suite warning)
2018-11-14 13:14:22 +03:00
Dmitry Petrov
08f23d981b
Minor: generated tests
2018-11-14 13:01:00 +03:00
Alexey Tsvetkov
5fa627c501
Add flag to enable intra-project parallel tasks
...
To enable parallel tasks execution within a project,
add 'kotlin.parallel.tasks.in.project=true'
to gradle.properties or local.properties file .
#KT-28155 fixed
2018-11-14 11:41:43 +03:00