Commit Graph

28300 Commits

Author SHA1 Message Date
Alexey Sedunov 09f8aafb77 Change Signature: Drop 'override' keyword when changing function/property, but not its overriden declarations
#KT-9470 Fixed
2015-11-26 21:22:15 +03:00
Michael Nedzelsky 2fa34ae170 KT-9883 prohibit using spread operator for nullable value
#KT-9883 Fixed
2015-11-26 19:42:34 +03:00
Stanislav Erokhin 63fa71606f Create new Tower Resolve 2015-11-26 16:21:49 +03:00
Stanislav Erokhin c08545359e Minor. Changes after review 2015-11-26 16:21:47 +03:00
Stanislav Erokhin ebc3ccbb2a Fixed scope kind for default values 2015-11-26 16:21:47 +03:00
Stanislav Erokhin a502405779 Fixed scope creations for properties scopes. 2015-11-26 16:21:46 +03:00
Stanislav Erokhin 67abdd755f Created kind in LexicalScope 2015-11-26 15:40:00 +03:00
Stanislav Erokhin f06f557dae Minor. introduce CallResolver.TaskContextForMigration 2015-11-26 15:38:17 +03:00
Michael Bogdanov 2d3d526ccd Fix for KT-10110: ClassReader$BadClassFile undeclared type variable: E
#KT-10110 Fixed
2015-11-26 13:29:30 +03:00
Dmitry Petrov 9ccb1fd506 KT-9601, KT-10103:
Chose maximally specific function in callable reference
 #KT-9601 Fixed
 #KT-10103 Fixed
2015-11-26 12:52:12 +03:00
Natalia Ukhorskaya 67dd97b918 Mark bridge methods in lambdas classes as synthetic
#KT-10101 Fixed
2015-11-26 11:39:19 +03:00
Natalia Ukhorskaya cb80a3e83a Write lineNumber for function literal with void return value
#KT-9865 Fixed
2015-11-26 11:39:18 +03:00
Natalia Ukhorskaya 4a2e4312ea Write lineNumber when inline function result is written to property 2015-11-26 11:39:17 +03:00
Natalia Ukhorskaya f40e3857fa KotlinOutputParser: do not amend next line to warnings
#KT-9678 Fixed #KT-10129 Fixed
2015-11-26 11:39:16 +03:00
Natalia Ukhorskaya 0d80b4f8b0 Fix compatibility with AS 2.0 (for master branch) 2015-11-26 11:39:16 +03:00
Natalia Ukhorskaya 48027f5fb5 Fix compatibility with AS 2.0
#KT-10153 Fixed
2015-11-26 11:39:15 +03:00
Ilya Gorbunov ca4bdd23e0 Provide flatten for sequence of iterables.
#KT-9977
2015-11-26 00:45:15 +03:00
Ilya Gorbunov 4181142400 Deprecate sequenceOf(Progression). 2015-11-26 00:45:15 +03:00
Ilya Gorbunov 8440c196d1 GeneratorSequence: do not get first value, until it's requested by iterator, allow initialValue to be null and return EmptySequence in this case.
#KT-9153 Fixed
2015-11-26 00:45:15 +03:00
Nikolay Krasko 29a9ba64ca Move creating sink for extra diagnostics into generation state to take responsibility for correct diagnostics suppression 2015-11-26 00:24:38 +03:00
Nikolay Krasko 652eeca872 Allow suppress additional diagnostics for JVM target
Suppression doesn't work without resolved annotation in binding context.
2015-11-26 00:24:38 +03:00
Nikolay Krasko 5bb141381b Refactoring: replace condition with function 2015-11-26 00:24:38 +03:00
Nikolay Krasko 7622e90438 Filter diagnostics during creating cache 2015-11-26 00:24:38 +03:00
Nikolay Krasko 7baf58b5de Refactoring: mark all fields in PositionStrategies with @JvmFileld and fix warnings 2015-11-26 00:24:38 +03:00
Nikolay Krasko d80c5ec7f7 Minor: clean warnings in ErrorsJvm 2015-11-26 00:24:38 +03:00
Nikolay Krasko 03fe5125cb Minor: remove warnings 2015-11-26 00:24:38 +03:00
Stanislav Erokhin 28226906da Minor. removed usages ExpressionReceiverImp 2015-11-25 20:53:40 +03:00
Stanislav Erokhin f0cefd5583 Create hacks for magic annotations NoInfer, OnlyInputTypes and LowPriorityInOverloadResolution. 2015-11-25 20:53:39 +03:00
Ilya Gorbunov 1be4f795ed Fix testData after deprecated toLinkedList and joinToString were dropped. 2015-11-25 18:35:04 +03:00
Ilya Gorbunov 229504f42d Byte iterator only available for buffered input streams,
InputStream.buffered() returns BufferedInputStream.
2015-11-25 18:35:03 +03:00
Ilya Gorbunov c848ebdc52 Deprecate complex delegation to map. 2015-11-25 18:35:03 +03:00
Ilya Gorbunov 77f69abca4 Drop deprecated toGenerator and toLinkedList. 2015-11-25 18:35:02 +03:00
Ilya Gorbunov c485eda1c2 Make zip operation symmetrical for CharSequences (missed to generalize parameter before). 2015-11-25 18:35:01 +03:00
Ilya Gorbunov a05d0a3c49 Drop hidden declarations provided for binary compatibility in beta2 2015-11-25 18:35:00 +03:00
Ilya Gorbunov 542ab6ae34 Deprecate String.toCharList to use toList instead. 2015-11-25 18:34:58 +03:00
Mikhail Glukhikh a53ad098d6 Codegen test for smart cast to Nothing? 2015-11-25 18:26:25 +03:00
Mikhail Glukhikh 9a6d4c32c5 More accurate handling of "always null" for receivers 2015-11-25 18:26:15 +03:00
Mikhail Glukhikh 89e56093a2 Limit "always null" scope: only for !!, is and dot; senseless comparison rolled back; "smart constant" information for nulls #KT-10029 Fixed 2015-11-25 18:26:08 +03:00
Dmitry Petrov db42941586 Allow annotation constructor calls
in default parameter value expressions of anonymous classes
(if it is not a compile-time constant, it will be reported separately).

 #KT-10136 Fixed
2015-11-25 18:06:08 +03:00
Ilya Gorbunov 73e3a252d3 JS: ArrayList.addAll must return Boolean
#KT-7809
2015-11-25 17:19:00 +03:00
Ilya Gorbunov b253ace198 Test different return results of collection mutation operations. 2015-11-25 17:18:59 +03:00
Ilya Gorbunov f17316f4b4 Provide removeAll and retainAll with predicate for MutableIterables and MutableList.
#KT-8760 Fixed
2015-11-25 17:18:58 +03:00
Ilya Gorbunov 5ab2f47101 Make MutableCollection extensions return Boolean indicating whether the operation resulted collection to be changed. 2015-11-25 17:18:58 +03:00
Sergey Mashkov 2f04f30063 KT-10114 Maven: plugin doesn't recognize sourceDirs configured in the goal configuration 2015-11-25 16:45:48 +03:00
Mikhail Glukhikh 46f4191185 Unnecessary safe call is now reported in CallExpressionResolver, removed code duplication for safe call receivers
See also KT-10175
2015-11-25 16:19:48 +03:00
Dmitry Petrov da90c21284 Warn about comma-separated conditions in when without argument.
See KT-5143.
2015-11-25 15:39:23 +03:00
Mikhail Glukhikh b9e9c47b28 Using of enum entries as types is now forbidden #KT-5401 Fixed 2015-11-25 13:33:16 +03:00
Alexey Sedunov 736813c76a Introduce Lambda Parameter: Support extraction of string template fragments 2015-11-24 20:40:26 +03:00
Alexey Sedunov c82d431cff Psi Unifier: Match unifier parameters by declaration instead of descriptor (since descriptor identity may change in the new context) 2015-11-24 20:40:22 +03:00
Alexey Sedunov 1b162e0294 Introduce Parameter: Support extraction of string template fragments 2015-11-24 20:40:21 +03:00