Alexander Udalov
1ebcd193a2
Add release notes for 1.0.2-1
2016-06-23 17:37:43 +03:00
Pavel V. Talanov
5d31d6d98d
REPL: call 'toString()' for returned values explicitly and correctly report exceptions
...
#KT-12389 Fixed
2016-06-23 16:12:03 +03:00
Pavel V. Talanov
8ac40d7401
Refactor Repl: use sealed class to represent line result
2016-06-23 16:12:01 +03:00
Pavel V. Talanov
17832e10e7
Refactor ReplInterpreter and ReplFromTerminal classes
...
Drop some of the exception reporting code
2016-06-23 16:11:50 +03:00
Pavel V. Talanov
246409d033
J2K ReplFromTerminal: rename file
2016-06-23 15:58:07 +03:00
Pavel V. Talanov
35c56431b3
J2K ReplFromTerminal, convert code
2016-06-23 15:58:05 +03:00
Stanislav Erokhin
7c2825b397
KT-12623 Fixed ISE: Type parameter ... not found for public fun ...
...
#KT-12623 Fixed
Also EA-72653 fixed.
2016-06-23 02:03:24 +03:00
Alexander Udalov
3eeccb407e
Simplify and fix createReflectionTypeForCallableDescriptor
...
Previously its call sites needed to determine if the receiver type should be
ignored (e.g. if the reference is to static member or nested class constructor,
or if it's a bound reference), and 3 of 4 callers did it incorrectly. Simplify
this by passing the DoubleColonLHS instance everywhere.
Also rename it to createKCallableTypeForReference
#KT-12738 Fixed
#KT-12751 Fixed
#KT-12799 Fixed
2016-06-22 21:35:57 +03:00
Alexander Udalov
6cc10aa226
Minor, move utilities form CallableReferencesResolutionUtils.kt closer to usages
2016-06-22 21:35:57 +03:00
Alexander Udalov
80bf6e1bee
Refactor CallableReferencesResolutionUtils.kt
...
Get rid of trace & reportOn parameters of
createReflectionTypeForCallableDescriptor: move the two checks that required
them to DoubleColonExpressionResolver and combine with other checks into a
single function that checks the validity of the referenced symbol. This also
makes these checks reported only once when invalid expressions are passed as
function arguments (previously they were also reported from
getResolvedCallableReferenceShapeType).
Also inline getReflectionTypeForCandidateDescriptor after this, and refactor
its usages
2016-06-22 21:35:57 +03:00
Alexander Udalov
cf630e01db
Minor, refactor "is KProperty" checks in ReflectionTypes
2016-06-22 21:35:57 +03:00
Alexander Udalov
e68de436bb
Allow data classes to inherit from other classes
...
#KT-10330 Fixed
2016-06-22 21:35:57 +03:00
Stanislav Erokhin
065c4e19ec
Add debug info for EA-79267 - (T is not T) assert: TypeCheckingProcedure.checkSubtypeForTheSameConstructor
2016-06-22 19:42:09 +03:00
Stanislav Erokhin
ad285d5ca2
KT-11679 Fixed exception at ResolvedCallImpl.getArgumentMapping()
...
#KT-11679 Fixed
Also fixed EA-75913 EA-78908
2016-06-22 19:42:09 +03:00
Stanislav Erokhin
7389d412a5
Fixed visibility check on a property with private setter of the subclass
...
#KT-3689 Fixed
2016-06-22 19:42:08 +03:00
Pavel V. Talanov
f607bdebd3
Update Changelog for 1.0.3-eap-58
2016-06-22 14:18:08 +03:00
Pavel V. Talanov
0d52a20a46
Add Kotlin "Tips of the day"
...
Content from https://youtrack.jetbrains.com/issue/DOC-4026
2016-06-22 14:17:56 +03:00
Pavel V. Talanov
b750f20718
Update changelog for 1.0.3
2016-06-22 14:17:44 +03:00
Pavel V. Talanov
585440b3bd
Minor, changelog: add 1.0.4 section
2016-06-22 14:17:03 +03:00
Mikhail Glukhikh
bd8c7577e1
Replace explicit parameter with it : correct handling of it from outer lambda #KT-12437 Fixed
...
(cherry picked from commit cb8fe96)
2016-06-21 22:24:54 +03:00
Mikhail Glukhikh
b44c94a887
Fix for EA-81477 : correct handling of a property without initializer (but with e.g. getter)
...
(cherry picked from commit 4e2d35a)
2016-06-21 22:24:44 +03:00
Mikhail Glukhikh
5b328e9042
Can be parameter inspection: delete only particular modifiers (e.g. no vararg) #KT-12768 Fixed
...
(cherry picked from commit d4116b5)
2016-06-21 22:24:27 +03:00
Mikhail Glukhikh
4abcc278fd
Can be constructor property: comment saver introduced to retain comments; unbound comments now added before, not after
...
(cherry picked from commit 886cf21)
2016-06-21 22:23:23 +03:00
Mikhail Glukhikh
4145e3438f
Minor fixes: can be constructor property
...
(cherry picked from commit 4d44e15)
2016-06-21 22:23:12 +03:00
Mikhail Glukhikh
8d2389d15c
Code cleanup: "can be constructor property" applied
...
(cherry picked from commit 6967711)
2016-06-21 22:23:01 +03:00
Nikolay Krasko
49aaeb5a38
Refactoring: wrap Spacing.createSpacing to Kotlin function with default parameters
2016-06-21 21:54:50 +03:00
Nikolay Krasko
f8196d8331
Add space after a semicolon only if there's another child at the same line
2016-06-21 21:54:50 +03:00
Kirill Rakhman
b560aab06d
Format spaces before enum arguments
...
Fixes #KT-12714
2016-06-21 21:54:50 +03:00
Kirill Rakhman
a520be5509
Format spaces around semicolon
...
Fixes #KT-12689
2016-06-21 21:54:50 +03:00
Kirill Rakhman
db387bd573
Format spaces after annotation in annotated expression
...
Fixes #KT-12781
2016-06-21 21:54:50 +03:00
Kirill Rakhman
ae83330679
Format spaces inside curly braces in string template
...
Fixes #KT-12791
2016-06-21 21:54:50 +03:00
Kirill Rakhman
655fc45a87
Format spaces around in keyword
...
Fixes: KT-10680
2016-06-21 21:54:50 +03:00
Alexey Tsvetkov
8fe63cdfaf
Prevent usage of deprecated constructor
...
This removes warning with gradle 2.14.
Before 2.14 constructor was removed, then it was returned and deprecated.
#KT-12786 fixed
2016-06-21 20:22:53 +03:00
Alexey Tsvetkov
34181402fb
Fix CCE when creating kotlin-js task in gradle plugin
2016-06-21 20:22:53 +03:00
Denis Zharkov
453ee55615
Fix coroutine generation in case of empty lambda
...
'handleResult' should be called in such case too
2016-06-21 15:52:44 +03:00
Denis Zharkov
b6ccd03ef4
Make loops generation lazy
...
As well as all other kinds of expressions
While it's not necessary in a sense that 'for' loop can not be plain expression,
i.e. it can't be an argument for safe-call etc., but laziness is still very convenient property.
E.g. within attached test they were generated twice in case of last expression
of coroutine block, because coroutine related codegen part is built upon
assumption that all expressions should be generated lazy.
2016-06-21 15:52:44 +03:00
Denis Zharkov
ad71934c55
Minor. Add 'operator' modifier in test for handleResult
2016-06-21 15:52:44 +03:00
Alexey Andreev
2e6a48576d
KT-12417: add support of RTTI against K(Mutable)Property* types
2016-06-21 15:42:50 +03:00
Mikhail Glukhikh
048b6b60e9
dangerousFlexibleTypeOrNull : minor refactoring
...
(cherry picked from commit 31e8fe5)
2016-06-21 15:22:26 +03:00
Mikhail Glukhikh
70becfbd86
Has platform type inspection is now intention-based
...
(cherry picked from commit 7cc6b9b)
2016-06-21 15:22:15 +03:00
Mikhail Glukhikh
a68e8e0db5
Introduce additional fixes & configurable problem range for intention-based inspection
...
(cherry picked from commit ed23aa9)
2016-06-21 15:21:48 +03:00
Mikhail Glukhikh
2b2b937263
Specify type explicitly intention: now derived from self targeting range intention
...
(cherry picked from commit b09b5a9)
2016-06-21 15:20:24 +03:00
Mikhail Glukhikh
5c4b6ba8b0
Has platform type : public API only option
...
(cherry picked from commit a084c1d)
2016-06-21 15:20:11 +03:00
Kirill
86b70ba995
Add quickfix tests for HasPlatformTypeInspection
...
(cherry picked from commit af1b26b)
2016-06-21 15:20:00 +03:00
Kirill Rakhman
d7bf03be46
Implement inspection for declarations with implicit platform types #KT-12310 Fixed
...
(cherry picked from commit 00d8c26)
2016-06-21 15:19:13 +03:00
Sergey Mashkov
1cb72169f9
KT-12512 "Different IDE and Maven plugin version" inspection is being invoked for non-tracked pom.xml files
2016-06-21 13:56:22 +03:00
Sergey Mashkov
7999dc8d01
Fix EA-83601 - ISE: PomFile.<init>
2016-06-21 13:56:17 +03:00
Sergey Mashkov
49ccfa0ec4
KT-12558 Configure Kotlin in Project: Maven: Undo could revert changes in all poms
2016-06-21 13:56:13 +03:00
Sergey Mashkov
f47fd46b7a
Maven: script tag injects kotlin
2016-06-21 13:56:08 +03:00
Sergey Mashkov
0250ab4ac2
KT-12568 Maven pom.xml: execution configuration: file path completion works only in some sub-elements
2016-06-21 13:56:03 +03:00