Ilya Gorbunov
b5e637bed5
Rename toMap with selector and transform to toMapBy
2015-12-17 22:50:44 +03:00
Ilya Gorbunov
544bc9a70c
Introduce toMap with key-value pair selector.
...
#KT-6657
2015-12-17 22:50:43 +03:00
Ilya Gorbunov
2966420d24
Harden deprecation level for synchronized helper functions.
...
Make migration helper classes deprecated-hidden, although it doesn't affect anything.
2015-12-17 22:48:13 +03:00
Stanislav Erokhin
7521b89b3e
Resolve unaryPlus as plus with error.
2015-12-17 20:21:01 +03:00
Denis Zharkov
1a6f9b8d1c
Do not build inner type for error classes
...
#KT-10409 Fixed
2015-12-17 19:56:38 +03:00
Denis Zharkov
0d7c8635b3
Refine INSTANCE_ACCESS_BEFORE_SUPER_CALL check
...
- Detect usages of unitialized `this` as extension receiver argument
- Make it work within object literal created before super call
#KT-9120 Fixed
#KT-8289 Fixed
2015-12-17 19:56:38 +03:00
Zalim Bashorov
ba180f915a
Minor: uncomment code fragments in ic tests which already should work
2015-12-17 19:41:25 +03:00
Zalim Bashorov
d9b67ae0ef
Minor: use ".touch" extension instead of ".new" in incremental compilation tests when it possible
2015-12-17 19:41:24 +03:00
Mikhail Glukhikh
fe57a9e48f
Setter visibility must be worse or the same as property visibility
2015-12-17 19:03:06 +03:00
Mikhail Glukhikh
f5989aa4f2
CallableMemberDescriptor.isOverridable / ClassDescriptor.isFinal refactoring
...
Extra JvmField and integer constants tests
2015-12-17 18:11:41 +03:00
Mikhail Glukhikh
91621704a2
Additional information to catch EA-75872
2015-12-17 17:30:30 +03:00
Evgeny Gerashchenko
16f482f723
Merge pull request #797 from JetBrains/rr/kt8365
...
KT-8365 Bogus "Receiver never used" warning when receiver is used in invoke() convention call
2015-12-17 17:38:24 +04:00
Alexey Tsvetkov
7384d25cb3
Prohibit Array<Nothing>
2015-12-17 16:26:26 +03:00
Mikhail Glukhikh
35f788a89c
INAPPLICABLE_FIELD_TARGET_NO_BACKING_FIELD deleted (not necessary already)
2015-12-17 15:07:07 +03:00
Mikhail Glukhikh
3fb04aceb9
Check backing field availability for AnnotationTarget.FIELD #KT-10387 Fixed
...
Some duplicated checks deleted (UseSiteTargetChecker / JvmFieldApplicabilityChecker)
2015-12-17 15:06:58 +03:00
Mikhail Glukhikh
f55574df36
Code fix: TestOnly on a property without backing field
2015-12-17 15:06:51 +03:00
Michael Bogdanov
ca9e8fc5a7
Fix for KT-5910: Can't call Throwable() in Kotlin
...
#KT-5910 Fixed
2015-12-17 14:09:15 +03:00
Natalia Ukhorskaya
d40e9ffc13
Do not convert anonymous object to lambda if its function is recursive
...
#KT-10348 Fixed
2015-12-17 13:39:36 +03:00
Evgeny Gerashchenko
9aa38d99fb
KT-8365 Bogus "Receiver never used" warning when receiver is used in invoke() convention call
...
#KT-8365 fixed
2015-12-17 13:31:43 +03:00
Evgeny Gerashchenko
2e6d82a72b
Minor. Green code.
2015-12-17 13:06:27 +03:00
Natalia Ukhorskaya
43476bd773
Do not drop negation if resulting type isn't boolean
2015-12-17 11:11:33 +03:00
Natalia Ukhorskaya
f84b3414c8
Remove outdated test: generic property should have a receiver
2015-12-17 11:11:32 +03:00
Natalia Ukhorskaya
4b1edf7bb0
Intention tests: add directive to skip errors before
2015-12-17 11:11:31 +03:00
Natalia Ukhorskaya
7e6495618b
ChangeVariableMutability: diagnostic can be reported on constructor parameter
...
#KT-10416 Fixed
2015-12-17 11:11:31 +03:00
Natalia Ukhorskaya
fc7c45d4d0
NegatedExpressionWithDemorgansLaw may produce code with error
2015-12-17 11:11:30 +03:00
Natalia Ukhorskaya
7f0065c806
Fix OperatorToFunctionIntention: insert function literal expressions to arguments correctly
2015-12-17 11:11:29 +03:00
Natalia Ukhorskaya
6bfbec8c88
ConvertAssertToIf may produce code with error
...
// TODO: we could generate anonymous function instead of lambda expression when there is a return
2015-12-17 11:11:28 +03:00
Natalia Ukhorskaya
ce3d53d2ee
Intention tests: add operator modifier in some tests
2015-12-17 11:11:27 +03:00
Natalia Ukhorskaya
2c29f6f5ab
ConvertIfWithThrowToAssertIntention: generate assert with lazy argument
2015-12-17 11:11:26 +03:00
Natalia Ukhorskaya
2dc1ba1d62
Intention 'remove explicit lambda parameter' may break code, do not check error in tests for it
2015-12-17 11:11:26 +03:00
Natalia Ukhorskaya
269676ee2e
Intention tests: skip errors check for tests that fix some error
2015-12-17 11:11:25 +03:00
Natalia Ukhorskaya
abd7ed5c70
Fix intention for when: insert '||' instead of ','
2015-12-17 11:11:24 +03:00
Natalia Ukhorskaya
6a3ac66208
Intention tests: add runtime where necessary
2015-12-17 11:11:23 +03:00
Natalia Ukhorskaya
78d737f3f4
Check errors in Intentions tests by default
2015-12-17 11:11:22 +03:00
Natalia Ukhorskaya
cc259c2d15
Intention convert object literal to lambda should add parameters if there are more than one
2015-12-17 11:11:22 +03:00
Natalia Ukhorskaya
5e231db631
J2K: convert method from Map (Java8) with cast to java.util.Map
...
#KT-10400 Fixed
2015-12-17 11:11:21 +03:00
Natalia Ukhorskaya
3f7b8554dd
J2K: parenthesize receiver if needed
...
#KT-10121 Fixed
2015-12-17 11:11:20 +03:00
Natalia Ukhorskaya
a520e93b5b
J2K: don't automatically convert Java code when pasting to a string literal in Kotlin
...
#KT-7759 Fixed
2015-12-17 11:11:19 +03:00
Natalia Ukhorskaya
f3a6c541ec
J2K: Convert usages of kotlin functions from library correctly
...
#KT-6115 Fixed
2015-12-17 11:11:18 +03:00
Natalia Ukhorskaya
693e158759
Intention to convert anonymous function to lambda
2015-12-17 11:11:18 +03:00
Natalia Ukhorskaya
c79ffbac5c
Run code cleanup on j2k module
2015-12-17 11:11:16 +03:00
Natalia Ukhorskaya
a983e6cf60
J2K: Do not convert string literal with escaped symbols automaticaly during java to kotlin conversion
...
#KT-9942 Fixed
2015-12-17 11:11:16 +03:00
Natalia Ukhorskaya
68101eeffa
J2K: do not drop formatting for expressions with operator
2015-12-17 11:11:15 +03:00
Natalia Ukhorskaya
293b8eeda8
Minor: fix IDEA(win) run configuration
2015-12-17 11:11:14 +03:00
Michael Bogdanov
7a1d789e9a
Added InliningLambdaContext
2015-12-17 09:52:28 +03:00
Michael Bogdanov
ebbc68dfae
isInlineFunction renamed to isInlineMethodContext
2015-12-17 09:52:27 +03:00
Michael Bogdanov
9cad1a912a
Choose proper context for accessor generation: skip inline ones; Fix for KT-6102: Bypass synthetic accessor when inlining lambda which calls private member
...
#KT-6102 Fixed
2015-12-17 09:51:41 +03:00
Michael Bogdanov
033698c51d
Added crossinline field to MethodContext
2015-12-17 09:50:54 +03:00
Michael Bogdanov
b0a7706812
Test for obsolete KT-5445: Bad access to protected data in getfield
...
#KT-5445 Obsolete
2015-12-17 09:50:39 +03:00
Dmitry Jemerov
179498d971
UI for enabling EAP channel for plugin updates
2015-12-16 19:59:56 +01:00