Alexander Udalov
70d0c2ff92
Generate generic signature to collection method stubs
...
#KT-6213 Fixed
2014-11-07 16:10:12 +03:00
Michael Bogdanov
8a9977de72
Fix for KT-6202: Redundant and wrong linenumber after if/else condition
...
#KT-6202 Fixed
2014-11-05 18:25:36 +03:00
Michael Bogdanov
ad6afee53f
Fix for KT-6196: ClassCastException on unit property initializer
...
#KT-6196 Fixed
2014-11-05 18:25:36 +03:00
Valentin Kipyatkov
0806de6782
Highlighting ranges should never include comments before/after element
2014-10-31 21:08:52 +03:00
Valentin Kipyatkov
c93b78c6dc
Fixed diagnostics tests
2014-10-31 21:07:50 +03:00
Michael Bogdanov
59917f3727
Fix for KT-6154: Inlining a private class function accessing a private val member throws exception at runtime in accessing the val getter
...
#KT-6154 Fixed
2014-10-30 19:02:03 +03:00
Natalia Ukhorskaya
8deef10292
Fix android tests
2014-10-29 17:31:14 +03:00
Michael Bogdanov
8e93719e9d
Fix test data for android tests
2014-10-29 17:04:10 +03:00
Michael Bogdanov
d0f6f03380
Fixes for call site finally generation before non-local returns
2014-10-28 19:15:00 +03:00
Michael Bogdanov
dd8c3f0e49
Fixes for inline fun finally block generation before lambda non-local returns
2014-10-28 19:14:52 +03:00
Michael Bogdanov
25d7c9f20a
Enabled disabled non-local returns in stdlib
2014-10-28 19:14:14 +03:00
Alexander Udalov
35e956609a
Rewrite mutable collection stub method generation
...
The main problem of the previous approach was that we were only generating
erased method signatures, which was incorrect in case a class also had a member
from another supertype with the same signature as the substituted one from the
collection. Javac issues compilation errors when compiling Java code against
such classes.
Also all the needed method stub signatures were hardcoded in
generateBuiltInMethodStubs() and the case of MutableListIterator was missing
2014-10-27 17:17:31 +03:00
Nikolay Krasko
ea69f5a9a6
Fix for KT-6106: Using platformStatic crashes intellisense (but not Compiler)
...
#KT-6106 Fixed
2014-10-24 10:04:43 +04:00
Alexander Udalov
c50ca3ab86
Fix empty stack trace in assertion for platform typed expression
2014-10-23 18:32:47 +04:00
Michael Bogdanov
b212fbd0b5
Remove empty try catch nodes from inlined code
2014-10-22 18:31:11 +04:00
Alexander Udalov
fb5806f5fb
Fix inheritance from mutable Java collections
...
Don't use CodegenUtil#getDeclaredFunctionByRawSignature because it's incorrect
in case of platform types. Instead use JetTypeMapper to find JVM signatures of
methods which are callable on the current class
#KT-6042 Fixed
2014-10-22 10:51:14 +04:00
Andrey Breslav
7ed7f020d3
Generation of ++ and += fixed for platform types
2014-10-22 00:41:20 +04:00
Michael Bogdanov
6eaa6201f0
Test for obsolete KT-6020: Type inference failed on property reference of generic class
...
#KT-6020 Can't Reproduce
2014-10-21 09:47:17 +04:00
Alexander Udalov
3a8ad45dec
Append newline to EOF for .txt test data files
...
Reverts and fixes 102f0d3
2014-10-21 03:18:27 +04:00
Alexander Udalov
fe59dc27b3
Make 'when' on nullable enums exhaustive if 'null' entry is present
...
#KT-2902 Fixed
2014-10-21 00:16:06 +04:00
Svetlana Isakova
4a1a95ea36
Rename: casted -> cast
2014-10-18 11:06:53 +04:00
Alexander Udalov
6ddc063a76
Regenerate test data on enums
...
Now they have final equals, hashCode and compareTo
2014-10-17 21:27:24 +04:00
Alexander Udalov
624e507ec2
Make enum classes comparable
...
#KT-3727 Fixed
2014-10-17 21:27:23 +04:00
Alexander Udalov
6ec71b3fd1
Generate lambdas in enum entry super calls
...
#KT-4423 Fixed
2014-10-17 21:27:22 +04:00
Alexander Udalov
1edaf43051
Fix Double and Float equality/hashCode in data classes
...
#KT-5818 Fixed
2014-10-17 21:27:22 +04:00
Denis Zharkov
ec63394121
Check that boxing instruction is simple call
...
like T.valueOf(unboxType(T))
#KT-6047 fixed
2014-10-17 01:22:25 +04:00
Alexander Udalov
159878e09d
Pass correct outer instance in complex case of inheritance
...
#KT-5343 Fixed
2014-10-16 16:16:55 +04:00
Alexander Udalov
61674fb3d9
Don't put outer instance twice for anonymous object extending inner
...
#KT-5343 In Progress
2014-10-16 16:16:54 +04:00
Alexander Udalov
7315146753
Fix and refactor ExpressionCodegen#pushClosureOnStack
...
- change Closure parameter to ClassDescriptor, load closure in the beginning
- invert and rename boolean parameter, also use it only to prevent pushing
dispatch receiver (not the extension receiver) onto the stack because the
only non-trivial usage of it is preceded by manual handling of the dispatch
(not extension) receiver. This fixes innerOfLocalCaptureExtensionReceiver.kt
2014-10-16 16:16:54 +04:00
Michael Nedzelsky
aa3d0fe1d7
minor: rename TargetBackend enum values
2014-10-13 19:24:59 +04:00
Andrey Breslav
5be4dda58b
Unit obtained through a generic substitution should not be mapped to VOID
2014-10-13 15:38:14 +04:00
Andrey Breslav
a737352b5d
Assertions when approximating platform types in delegation by expression
2014-10-13 15:38:13 +04:00
Andrey Breslav
f1c66fa6b0
Assertions on approximation of platform types to non-null types
...
- for most expressions (ExpressionCodegen.genQualified)
2014-10-13 15:38:13 +04:00
Andrey Breslav
1dbfe5483a
Fix isNullableType() to always consider flexible types, even if they contain type parameters
2014-10-13 15:38:01 +04:00
Michael Bogdanov
a88e9666e4
As designed KT-5930: Wrong execution order in case of extension function
...
#KT-5930 As Designed
2014-10-13 11:31:15 +04:00
Michael Bogdanov
5abc2dac4e
Generate labeled statements as statements
2014-10-13 11:31:15 +04:00
Michael Bogdanov
9d72036ba5
Fix for KT-5995: Labeled val causes an exception from the back-end
...
#KT-5995 Fixed
2014-10-13 11:30:28 +04:00
Michael Bogdanov
860544d299
Obsolete KT-5685: VerifyError: Bad local variable type for class with inline method and optional parameters
...
#KT-5685 Obsolete
2014-10-11 13:53:43 +04:00
Michael Bogdanov
605c9f48b4
Added inline annotation check on local funs
2014-10-11 13:53:43 +04:00
Michael Bogdanov
2a1520228e
Support inheritance from java 8 interfaces
...
#KT-5969 In Progress
2014-10-11 13:53:43 +04:00
Pavel V. Talanov
b2c288b62a
Test super calls in enum literals
2014-10-10 18:12:56 +04:00
Pavel V. Talanov
8e6618920d
Minor: rename test data file
2014-10-10 18:05:36 +04:00
Pavel V. Talanov
bb5998048f
Test code generation for enum deriving from a trait
2014-10-10 17:43:33 +04:00
Evgeny Gerashchenko
fa70192f75
Added test for EA-49318.
2014-10-10 16:00:27 +04:00
Michael Bogdanov
d4307c69d2
Fix for KT-4301: Too many StringBuilders on string concatenations
...
#KT-4301 Fixed
2014-10-09 12:23:06 +04:00
Michael Bogdanov
4a078c1143
Temporary disable local fun inlining (it's not supported now)
2014-10-09 10:38:14 +04:00
Michael Bogdanov
41c4c3befd
Fix test data for KT-3285
2014-10-08 09:34:50 +04:00
Evgeny Gerashchenko
b80f82dffd
Fixed filename case.
2014-10-07 20:57:05 +04:00
Evgeny Gerashchenko
b062548392
Expanded and simplified test for generating bridges in sam conversions.
2014-10-07 17:48:17 +04:00
Michael Bogdanov
6bcb2e9001
Temporary fix for KT-5912
...
#KT-5912 Fixed
2014-10-07 17:48:17 +04:00