Denis Zharkov
34518c0ecc
Extract common logic into generateIsCheck
2015-11-17 16:26:29 +03:00
Denis Zharkov
f5a086140e
Refine special bridge generating rule
...
Generate special bridge even in case current class has Kotlin superclass implementing
this builtin method, but that super class was generated without special bridge
(e.g. because it would have the same signature)
#KT-9901 Fixed
2015-11-17 15:41:49 +03:00
Mikhail Glukhikh
657052e1d2
Rename: ClassReceiver ---> ImplicitClassReceiver, CastClassReceiver ---> CastImplicitClassReceiver
2015-11-17 13:02:22 +03:00
Mikhail Glukhikh
59e54d1db1
Rename: ThisReceiver ---> ImplicitReceiver
2015-11-17 13:02:16 +03:00
Stanislav Erokhin
b4fe62e53e
Minor. rename getObjectType to getCompanionObjectType
2015-11-17 01:25:18 +03:00
Stanislav Erokhin
6b7bf63814
Minor. Split ExpressionReceiver to interface & implementation
2015-11-17 01:25:17 +03:00
Ilya Gorbunov
96f301fdec
Support only integer primitive ranges and progressions in optimized for loop codegen.
...
Do not call getProgressionFinalElement, use new progression properties 'first' and 'last' instead.
2015-11-13 20:58:18 +03:00
Denis Zharkov
8cb85759c7
Fix written generic signature in case of inner types
2015-11-13 14:59:03 +03:00
Denis Zharkov
c57dbcc602
Fix substition of inner classes constructors
...
It should have substituted class as containing declaration
2015-11-13 14:47:28 +03:00
Denis Zharkov
990bd7e71d
Correct parameters of inner's class type constructor
...
Now it contains copies of outer's class constructor parameters
They are appended just after real type parameters
2015-11-13 14:47:28 +03:00
Denis Zharkov
c9aa75259b
Introduce ClassDescriptor.declaredTypeParameters
...
Should be a subset of type constructor's parameters
2015-11-13 14:47:28 +03:00
Michael Bogdanov
7e8e4e9e1b
Fix for KT-2789: NoSuchMethodError when calling trait function with default arguments that returns generic type, KT-9428 Abstract method with one parameter and one default parameter produces NoSuchMethodError, KT-9924 NoSuchMethod when replacing generic with specific type
...
#KT-2789 Fixed
#KT-9428 Fixed
#KT-9924 Fixed
2015-11-13 10:14:01 +03:00
Michael Bogdanov
3f995935d3
Fix for KT-9022: Wrong result when use break in if condition
...
#KT-9022 Fixed
2015-11-13 10:14:00 +03:00
Zalim Bashorov
28366a0bf4
Fix refer to classes from default package in SMAP
2015-11-11 22:59:05 +03:00
Ilya Gorbunov
0579f6c8bf
Replace Regex.match and matchAll usages
2015-11-11 18:59:55 +03:00
Michael Bogdanov
3651ec9294
Support access to protected members within inline functions
2015-11-11 14:34:48 +03:00
Michael Bogdanov
5a8ead0092
Fix for KT-8204: java.lang.VerifyError for super method invocation in inline function
...
#KT-8204 Fixed
2015-11-11 14:34:47 +03:00
Mikhail Glukhikh
0d35033106
Introduction of CastedClassReceiver and its handling in codegen #KT-6744 Fixed
...
ClassReceiver converted to Kotlin
Also #KT-7617 Fixed
2015-11-10 20:20:51 +03:00
Michael Bogdanov
a5771c6c1c
Fix for KT-9939: java.lang.VerifyError: Bad type on operand stack for Boolean convenience accessor
...
#KT-9939 Fixed
2015-11-10 16:17:52 +03:00
Pavel V. Talanov
f5c4f82971
Fix exception from backend in light classes mode for null passed as annotation argument
2015-11-10 14:30:50 +03:00
Alexander Udalov
75bb15a9fc
Do not wrap callable references when a special option is enabled
2015-11-09 22:24:41 +03:00
Dmitry Jemerov
e64a270d1a
more renames to get rid of "Jet" in class and method names
2015-11-09 19:07:11 +01:00
Michael Bogdanov
7147c84396
Fix for KT-9897: Cannot pop operand off an empty stack" with -= on ArrayList element
...
#KT-9897 Fixed
2015-11-09 16:17:24 +03:00
Valentin Kipyatkov
06812aed11
Better completion for static members: special behavior in case of imports from same class exist
2015-11-09 15:37:44 +03:00
Michael Bogdanov
0619ef47ac
Fix for KT-9877: CompilationError: Cannot pop operand of empty stack
...
#KT-9877 Fixed
2015-11-06 11:46:13 +03:00
Michael Bogdanov
4d77181692
Fix for KT-9855: java.lang.IllegalAccessError when using private package level operator method
...
#KT-9855 Fixed
2015-11-06 11:46:12 +03:00
Michael Bogdanov
bd2b01ac1c
Fix for KT-5150: Accessors for private methods are not generated for get/set conventions
...
#KT-5150 Fixed
2015-11-06 11:46:12 +03:00
Michael Bogdanov
0fcaaa80df
Fix for KT-9140: Default parameters are passed as nulls when using indexing [ ] invocation
...
#KT-9140 Fixed
2015-11-06 11:46:11 +03:00
Michael Nedzelsky
981d471ebe
fix KT-9843 Bug in incremental compilation: module is not recompiled when optional parameter added
...
and KT-8434 Removing parameter with default value from function in different module breaks incremental compilation
#KT-9843 Fixed
#KT-8434 Fixed
2015-11-06 07:45:46 +03:00
Ilya Gorbunov
f3ff2e2e76
Replace deprecated join with joinToString
2015-11-06 01:12:00 +03:00
Stanislav Erokhin
55157df3eb
Removed MemberScope.ownerDescriptor
2015-11-06 00:01:35 +03:00
Stanislav Erokhin
2c3f58eeb7
Renamed methods in MemberScope from getSmth to getContributedSmth
2015-11-05 14:34:00 +03:00
Stanislav Erokhin
6f9d9759ce
Renamed KtScope to MemberScope
2015-11-05 14:34:00 +03:00
Stanislav Erokhin
a90ca14033
Removed KtScope.Empty and created util function emptyScope
2015-11-04 14:28:28 +03:00
Stanislav Erokhin
0b5de434fa
Removed usages KtScope.getAllDescriptors
2015-11-04 12:41:34 +03:00
Stanislav Erokhin
6412df2e0b
Change return type of KtScope.getProperties()
2015-11-04 12:41:32 +03:00
Michael Bogdanov
9daa44566b
Fix for KT-5589: VerifyError when default value for parameter of local function is obtained from closure
...
#KT-5589 Fixed
2015-11-03 15:40:16 +03:00
Michael Bogdanov
15eaa15b65
Fix for KT-7421: Unable to inherit from inner class
...
Fix for KT-6708: Compiler Error when extending open inner class: "java.lang.RuntimeException: Error generating primary constructor of class InnerB with kind IMPLEMENTATION"
#KT-7421 Fixed
#KT-6708 Fixed
2015-11-03 10:14:57 +03:00
Michael Bogdanov
65b85711e3
Fix for KT-3335: Creating imported super class' inner class fails in codegen
...
#KT-3335 Fixed
2015-11-03 10:14:56 +03:00
Dmitry Jemerov
736b496f6a
drop deprecated @platformName and @platformStatic annotations
2015-11-02 17:00:44 +01:00
Pavel V. Talanov
dc1fbe89ec
J2K ValueParameterDescriptor inteface in one go
2015-11-02 18:38:30 +03:00
Pavel V. Talanov
4a3632f70e
Backend: generate default values for annotation parameters in light classes mode
2015-11-02 18:38:26 +03:00
Alexey Sedunov
1de3faf3f5
Codegen: Fix origin of overloaded methods generated for constructors with @JvmOverloads
...
Find Usages: Add tests for declarations annotated with @JvmOverloads
#KT-8534 Fixed
2015-11-02 15:15:34 +03:00
Alexander Udalov
b5f89100f6
Remove obsolete SCRIPT markers
2015-10-30 23:41:32 +03:00
Michael Bogdanov
7ee42ab18d
Fix for KT-9828: DX error on MutableMap.MutableEntry<String, Int> deconstruction: attempt to set or access a value of type java.lang.Object using a local variable of type int.
...
#KT-9828 Fixed
2015-10-30 16:47:21 +03:00
Michael Bogdanov
f3092bf390
Fix for KT-9637: Runtime crash when using class literal in inline functions with reified type parameters
...
#KT-9637 Fixed
2015-10-30 09:39:10 +03:00
Michael Bogdanov
34fccc6dae
Fix for KT-6990: inline reified doesn't inline call in some cases
...
#KT-6990 Fixed
2015-10-30 09:39:09 +03:00
Michael Bogdanov
33bf314518
Fix for KT-6552 IllegalAccessError in inline function with "when" over enum across modules
...
#KT-6552 Fixed
2015-10-30 09:39:09 +03:00
Michael Bogdanov
9e5af43ce1
Fix for KT-9788: AssertionError from back-end when we read field from inline function
...
#KT-9788 Fixed
2015-10-30 09:39:08 +03:00
Alexander Udalov
5677ff60e7
Move/inline stuff from DescriptorUtils to other modules
2015-10-29 21:16:06 +03:00