Evgeny Gerashchenko
5965904c0f
Fixed filename case.
2013-06-06 21:59:37 +04:00
Evgeny Gerashchenko
203dd93a7a
Not loading SAM adapters from compiled Kotlin classes.
2013-06-06 21:35:02 +04:00
Svetlana Isakova
ca88a01e1d
no 'dangling function literal' check for nested calls
2013-06-06 17:20:10 +04:00
Svetlana Isakova
4e6ec64d9a
changed resolution candidates order
...
for foo()
first try 'this.foo()', then 'foo()'
2013-06-06 17:20:10 +04:00
Svetlana Isakova
f41584c7ab
tests added
...
for inference for delegated properties
2013-06-06 16:31:06 +04:00
Alexey Sedunov
3a2e30152a
Improve parser recovery for list of value parameters/arguments
2013-06-05 15:49:33 +04:00
Alexey Sedunov
3a635c537e
Move JetPsiMatcher with tests to plugin module
2013-06-05 15:03:17 +04:00
Svetlana Isakova
7e564de71a
added constraint for package level delegated property
2013-06-04 22:11:43 +04:00
Svetlana Isakova
2337f4b948
bug fix
...
do not combine receiverInfo with error selectorInfo
2013-06-04 22:11:43 +04:00
Svetlana Isakova
ecec6acde8
use explicit type of delegated property as expected
...
while resolving constraint system for delegated expression
2013-06-04 22:11:43 +04:00
Svetlana Isakova
f05f616230
KT-2422 Invalid warning "Condition is always true"
...
#KT-2422 fixed
2013-05-31 16:29:07 +04:00
Sergey Rostov
bcc2c46e99
KDoc wiki links pair matcher and @tags highlighter
2013-05-28 13:05:29 +04:00
Sergey Rostov
12e20378a2
KDoc lexer refactored (got rid of hacks and separate tokens for words). Fixed bug with isInComment(element) detection.
2013-05-28 13:05:28 +04:00
Sergey Rostov
5ff1f746d4
KT-1545, KT-3161 KDoc lexer & parser
2013-05-28 13:05:28 +04:00
Mikhael Bogdanov
e96cf045dd
KT-3652: Char is converted to Int when used inside string interpolation
...
#KT-3652 Fixed
2013-05-27 19:33:49 +04:00
Evgeny Gerashchenko
de6d5a4a96
Fixed loading SAM interfaces when they inherit abstract methods.
2013-05-21 17:52:15 +04:00
Evgeny Gerashchenko
12485c0ef5
Test for KT-3331 RuntimeException in frontend-java at TypeVariableResolverFromTypeDescriptors.getTypeVariable()
...
#KT-3331 obsolete
2013-05-21 17:52:14 +04:00
Evgeny Gerashchenko
5fc7c885bb
KT-3577 Stack overflow when resolving SAM adapter (from completion, show parameters, etc)
...
#KT-3577
2013-05-21 17:52:14 +04:00
Natalia.Ukhorskaya
a5f1a8b3f8
TypeCastException when casting null to T with nullable upper-bound
...
#KT-3637 Fixed
2013-05-21 13:21:52 +04:00
Alexey Sedunov
d2f3dd1629
JetPsiMatcher: reimplement using visitor, add structural type matching
2013-05-15 18:29:14 +04:00
Natalia.Ukhorskaya
308b1a3f29
Change PropertyMetadata in Library.jet
2013-05-14 15:38:50 +04:00
Natalia.Ukhorskaya
9e584ded11
ClassFormatError because of initializing variable with Any type with primitive value
...
#KT-3524 Fixed
2013-05-14 15:38:42 +04:00
Evgeny Gerashchenko
d56494ebd3
KT-3553 Problem with propagation for extension functions
...
#KT-3553 fixed
2013-05-07 18:50:43 +04:00
Evgeny Gerashchenko
516a5b76e8
Fixed calling inherited SAM adapter.
2013-05-06 16:45:36 +04:00
Mikhael Bogdanov
22ddd05e09
KT-3576 Getters for float constants in objects always return 0.0 when constants are less than 1.0
...
#KT-3576 Fixed
2013-05-06 10:41:48 +04:00
Nikolay Krasko
31edd6f440
Make declarations from the current package be resolved before declarations in default package (EA-43715)
2013-05-01 16:53:33 +04:00
Natalia.Ukhorskaya
b88981f678
Workaround for appearance of PsiClass from runtime in JavaDescriptorResolver
2013-04-30 21:47:26 +04:00
Natalia.Ukhorskaya
b9e5227b58
Change String argument of property delegate method to PropertyMetadata
2013-04-30 21:47:24 +04:00
Natalia.Ukhorskaya
6e2584d0de
Generate bytecode for delegated properties
2013-04-30 21:47:22 +04:00
Natalia.Ukhorskaya
3297c0e9d3
No such field error when set private property without backing field (analog of KT-2892)
2013-04-30 21:47:21 +04:00
Natalia.Ukhorskaya
a9b4a342e7
Add diagnostics for get/set methods of property delegate
2013-04-30 20:08:06 +04:00
Natalia.Ukhorskaya
c58d4fd6d2
Resolve expression in property delegate
2013-04-30 20:08:04 +04:00
Natalia.Ukhorskaya
e7bf3b141f
Modify analysis for property initializer. Add errors about delegated property accessors.
2013-04-30 20:07:55 +04:00
Natalia.Ukhorskaya
171144e641
Change ControlFlow for delegated property
2013-04-30 20:07:54 +04:00
Natalia.Ukhorskaya
29984efe76
Parse delegated property
2013-04-30 20:07:52 +04:00
Mikhael Bogdanov
e72b177adc
KT-3561 Bad RuntimeInvisibleParameterAnnotations on attempt to annotate enum constructor hidden parametrs - name and ordinal
2013-04-30 18:46:07 +04:00
Mikhael Bogdanov
b0b6728c7e
KT-3118 NoSuchFieldError on private property without backing field &&
...
KT-3551 Wrong synthetic accessor implementation
2013-04-30 15:28:02 +04:00
Andrey Breslav
42505246b8
Module descriptions in XML
2013-04-29 17:59:51 +04:00
Michał Sapalski
7deec28b9c
Adjusted tests to the new DescriptorRenderer behaviour
2013-04-29 15:44:07 +04:00
Wojciech Lopata
59716fec9c
Cleanup in a test
2013-04-26 13:12:20 +04:00
Mikhael Bogdanov
b6fc0c5c13
KT-3538: Super call to trait implemetation invokes method from base class
2013-04-24 15:52:09 +04:00
Mikhael Bogdanov
aa2db75266
KT-3389: Local class construction results in CompilationException && KT-2873 && KT-3210
...
KT-2873: VerifyError on instantiating a local class inside a closure
KT-3210 Inline Class: CompilationException: Back-end (JVM) Internal error: wrong code generated java.lang.ArrayIndexOutOfBoundsException null
#KT-3389 Fixed
2013-04-24 13:49:47 +04:00
Alexander Udalov
959f2fb70b
Fix codegen tests on Android
...
Since Android tests move files around, changing their packages, and 'toString'
tests the exact name of a class, we now get it via Java reflection
2013-04-22 21:47:17 +04:00
Alexander Udalov
d45889048b
Increase ABI version
...
Due to changes related to FunctionN now being interfaces, FunctionImplN
classes, KFunctionN, callable references
2013-04-22 17:59:32 +04:00
Alexander Udalov
56f8f021f9
Generate proper generic signature for closure classes
2013-04-22 17:59:32 +04:00
Alexander Udalov
ace7bd9bc8
Fix StackValue.coerce void to Object
...
We can only put Unit.VALUE on stack if we're requested an instance of Object or
Unit. In other cases (arbitrary objects / arrays) we put null instead
2013-04-22 17:59:32 +04:00
Alexander Udalov
054e5fb5e7
Codegen for callable reference expressions
...
#KT-1183 In Progress
2013-04-22 17:59:32 +04:00
Alexander Udalov
1eeaaad05d
Refactor method/constructor calls in codegen
...
- use ResolvedCall where possible
- 'call' parameter to invokeMethodWithArguments was used only to generate
callee, e.g. in "A()" where A is an expression which can be invoke()'d.
In case of constructors and enum entry delegation specifiers there's no need
to generate callee, so 'call' is made Nullable with a subsequent assert
- remove generateJavaConstructorCall() method, since it did no useful work.
Java constructor invocation is broken anyway and needs to be fixed (KT-3532)
- minor code style / formatting issues fixed, several methods renamed to better
reflect semantics
2013-04-22 17:59:32 +04:00
Alexander Udalov
fee7846c7e
LHS of callable reference can't be a type parameter
2013-04-22 17:59:31 +04:00
Alexander Udalov
d40906a690
Disallow references to extensions in classes
...
It's not clear in which order should the two receiver arguments be passed to
them, and there's no corresponding K*FunctionN class for now
#KT-1183 In Progress
2013-04-22 17:59:31 +04:00