Dmitry Jemerov
73a2c8c436
Test quickfixes for updating language/API version and coroutine support in Gradle projects
2017-03-09 13:41:57 +01:00
Dmitry Jemerov
5d461ec6df
Support updating language/API level specified with compact options
2017-03-09 13:41:57 +01:00
Dmitry Jemerov
4261880340
Add test for enabling coroutines/bumping language level, fix several breakages
2017-03-09 13:41:57 +01:00
Sergey Igushkin
999ef51653
Added gradle-plugins properties with fqnames
...
Added .property files to make the plugins available by fqnames in
order to publish them to Gradle Plugin Portal.
#KT-5756
(cherry picked from commit 991de64)
2017-03-09 14:13:40 +03:00
Dmitry Jemerov
cbccb68948
Fix logic for searching inner classes in LazyResolveBasedCache.findInPackageFragments()
...
#KT-14058 Fixed
2017-03-09 11:47:21 +01:00
Alexander Udalov
9f2ce3c521
Refactor synthesized invokes creation in resolution
...
Instead of verifying that the container of an 'invoke' is a
FunctionClassDescriptor instance, make sure that it's a function class
checking its FQ name instead (classId + isBuiltinFunctionClass calls).
This makes sure that we will create synthesized invokes in a setting
where function classes are not FunctionClassDescriptor instances
synthesized by the compiler, but ordinary classes from sources or
binaries as well, as is going to be the case in kotlin-native
2017-03-09 11:29:39 +03:00
Dmitry Petrov
d188de3086
KT-6014 Wrong ABSTRACT_MEMBER_NOT_IMPLEMENTED for toString implemented by delegation
...
Members declared in interface or overriding members declared in super-interfaces
can be implemented by delegation even if they override members declared in super-class
(NB for interface this can be only 'kotlin.Any').
2017-03-09 09:38:48 +03:00
Mikhail Glukhikh
5e8afd26e1
Do not run write actions from J2K #KT-16714 Fixed
...
Also #EA-97363 Fixed
2017-03-09 09:37:35 +03:00
Dmitry Petrov
f950ff4b8f
'ConstructorDescriptor#getConstructedClass()' should be used to obtain a descriptor for constructed class
...
(it can be different from 'getContainingDeclaration()' in case of type alias constructor).
KT-15109 Subclass from a type alias with named parameter in constructor will produce compiler exception
KT-15192 Compiler crashes on certain companion objects: "Error generating constructors of class Companion with kind IMPLEMENTATION"
2017-03-09 09:23:38 +03:00
Dmitry Petrov
9a2c9ed30e
KT-13342 Unqualified super call should not resolve to a method of supertype overridden in another supertype
2017-03-09 09:16:21 +03:00
Dmitry Jemerov
954c1d853d
Correctly locate build.gradle for modules created from source sets
...
(cherry picked from commit ecce92d)
2017-03-08 15:08:41 +01:00
Dmitry Jemerov
a2f7808ab1
Don't check Java version in LauncherScriptTest
2017-03-08 14:07:47 +01:00
Dmitry Jemerov
263cf85c5c
Fix project leak in IdeReplExecutionTest
2017-03-08 13:47:09 +01:00
Dmitry Petrov
11caa03427
KT-16713 Insufficient maximum stack size
...
1. Analyze method node with fake jumps for loops to make sure that
all instructions reachable only through break/continue jumps are processed.
2. Fix stack for break/continue jumps.
3. Drop fake jumps for loops, analyze method node again.
4. Fix stack for try/catch and beforeInline.
2017-03-08 09:56:08 +01:00
Mikhail Glukhikh
80063b6f91
Quick-fix for DELEGATED_MEMBER_HIDES_SUPERTYPE_OVERRIDE added #KT-15966 Fixed
2017-03-07 19:06:16 +03:00
Ilya Gorbunov
b83b534374
Add missing SinceKotlin to IntStream.toList.
2017-03-07 18:22:11 +03:00
Ilya Gorbunov
c038d3e9a3
Mark all api in kotlin.reflect.full package with SinceKotlin(1.1), since it actually appeared in that package only in 1.1. #KT-16557 Fixed.
...
It doesn't matter that some functions were since 1.0 in the old package.
2017-03-07 18:22:11 +03:00
Kirill Rakhman
646f50dd66
Extract method refactoring should order parameters by first usage
...
Fixes #KT-16198
2017-03-07 18:10:02 +03:00
Ilya Gorbunov
1296c5444b
Fix warning that failed maven plugin smoke test.
2017-03-07 13:56:11 +03:00
Ilya Gorbunov
61e8848aa2
Add samples for sequence building API.
2017-03-07 13:32:39 +03:00
Ilya Gorbunov
a04e6de047
Add groupingBy and eachCount sample.
2017-03-07 13:31:44 +03:00
Ilya Gorbunov
75ae42121b
Improve sample comments.
...
Improve sample for lastIndex property.
2017-03-07 13:31:44 +03:00
Mikhail Zarechenskiy
578dd1dc42
Update Changelog for Kotlin 1.1.1-RC
2017-03-07 12:12:04 +03:00
Dmitry Petrov
d096f1d381
'while' and 'do-while' loop generator fixes.
...
Generate 'do-while' loop body as IrComposite, because variables declared
in loop body should be visible in loop condition.
Wrap 'do-while' loop in IrBlock so that variables declared in loop body
are not visible outside of the loop.
Generate 'while' and 'do-while' loops as expressions of type Unit.
2017-03-07 11:56:52 +03:00
Dmitry Petrov
cb61c358ea
Always generate primitive boolean constants as expressions of type 'kotlin.Boolean'.
2017-03-07 11:56:52 +03:00
Dmitry Petrov
1bbbc1ca1c
KT-16684 hashCode doesn't check data class property value of generic type for null
2017-03-07 11:56:52 +03:00
Dmitry Petrov
68fab55251
Minor: cleanup unused imports
2017-03-07 11:56:52 +03:00
Dmitry Petrov
6bc6c1b6cc
KT-16671 Calls to members imported from objects should be desugared in PSI2IR
2017-03-07 11:56:52 +03:00
Dmitry Petrov
4ba8268a29
KT-16669 Exception in PSI2IR on type alias constructor in supertypes list
2017-03-07 11:56:52 +03:00
Dmitry Petrov
e4683a1e9f
KT-16666 IMPLICIT_INTEGER_COERCION expression should have non-nullable type
2017-03-07 11:56:52 +03:00
Dmitry Petrov
8c32719f3d
Render 'type' for IrTypeOperatorCall expressions, update testData.
2017-03-07 11:56:52 +03:00
Dmitry Petrov
b3aeddac85
Refactor: generalize postfix order transformation in InsertImplicitCasts
2017-03-07 11:56:52 +03:00
Dmitry Petrov
8e8f83656f
KT-16618 IMPLICIT_INTEGER_COERCION isn't generated for global properties and default parameters
2017-03-07 11:56:52 +03:00
Sergey Igushkin
ee6aae7219
Enabled incremental compilation by default in Gradle plugin.
...
#KT-16546 Fixed
(cherry picked from commit 06715c5)
2017-03-07 11:32:26 +03:00
Alexey Andreev
ef38761dc2
JS: unmute now passing tests and mute test that passed by accident.
2017-03-07 10:46:09 +03:00
Alexey Andreev
a6ca2906d8
JS: add tests for reflection against external classes
2017-03-07 10:46:08 +03:00
Alexey Andreev
723c9be5a0
JS: fix class literal expression with primitive classes. See KT-16545
2017-03-07 10:46:08 +03:00
Alexey Andreev
8567db10b5
JS: fix coroutine transformation of callable references to local functions. See KT-16164
2017-03-07 10:46:07 +03:00
Dmitry Petrov
18fb70b32f
Potential fix for KT-16673
...
See also:
http://stackoverflow.com/questions/42571812/unsupportedoperationexception-while-building-a-kotlin-project-in-idea
'original' for SamAdapterFunctionScope.MyFunctionDescriptor#doSubstitute should exactly match 'this.original',
so we can just provide it by default in SamAdapterFunctionScope.MyFunctionDescriptor#newCopyBuilder.
2017-03-06 22:00:09 +03:00
Dmitry Jemerov
268f7b715c
"Configure Kotlin plugin updates" shows 1.2 and doesn't show 1.0.x
2017-03-06 19:50:58 +01:00
Ilya Chernikov
50e7973fc0
Implement verification workaround for annotation-like class InvalidScriptResolverAnnotation
...
fixes #KT-16621
2017-03-06 16:31:52 +01:00
Sergey Mashkov
243f718193
EA-88059 - assert: CompositeElement.addChild
...
ensure parent element for anchor elements so we never try to insert at wrong place
2017-03-06 17:34:36 +03:00
Sergey Mashkov
4637dcde33
EA-86479 - ISE: PomFile.<init>
...
don't apply any inspections for inappropriate pom files
2017-03-06 17:34:35 +03:00
Mikhael Bogdanov
ff9fe85507
Fix for KT-16614: Report inability to inline 1.8 bytecode into 1.6 bytecode as an error, no as an exception
2017-03-06 15:15:22 +01:00
Vyacheslav Gerasimov
5e4459f41d
Fix broken MultiFileHighlightingTest
...
Android resource folding builder should not run in non-Android projects
2017-03-06 14:31:01 +03:00
Alexander Udalov
0111c4d581
Allow references to nested class constructors in objects in LV = 1.0
...
#KT-16598 Fixed
2017-03-06 11:03:24 +03:00
Alexander Udalov
7c22113c34
Refactor serialization of package FQ name extension
...
Instead of requiring to pass it in SerializerExtensionBase's
constructor, pass it always in serializePackage. This is more
straightforward and helps in a situation where one SerializerExtension
instance is used for the whole module, not one per-package
2017-03-06 11:03:24 +03:00
Kirill Rakhman
c952e26cbb
Fix NPE caused by Rename Refactoring of backing field when caret is after the last character
...
#KT-16605 Fixed
2017-03-06 11:01:38 +03:00
Kirill Rakhman
1bad04db50
Fix Can't rename implicit lambda parameter 'it' when caret is placed right after the last character
...
#KT-14401 Fixed
2017-03-06 11:01:38 +03:00
Ilya Chernikov
e3391175d9
Rewrite parallel daemon start test to make it tougher but more robust
2017-03-05 11:29:54 +01:00