Evgeny Gerashchenko
d645fcaaa7
Reverted import optimization in generated files.
2013-05-06 18:50:03 +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
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
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
Nikolay Krasko
600219d193
Fix tests problems with line separators
2013-04-30 15:42:38 +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
35f1d8a7f3
Convert line separators when loading expected test results
2013-04-29 19:08:07 +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
Michał Sapalski
2352d86932
Refactoring: use DescriptionRenderer to generate overriding functions / properties.
2013-04-29 15:44:06 +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
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
Alexander Udalov
c4b4fa750c
Resolve callable reference expressions
...
#KT-1183 In Progress
2013-04-22 17:59:31 +04:00
Alexander Udalov
76fa9642f0
toString() for FunctionN classes
...
It's implemented as if the types were reified: getting the real type parameters
of the corresponding FunctionN class
2013-04-22 17:59:29 +04:00
Alexander Udalov
0ec1f20140
Write generic signature for closure FunctionN superclass
...
ClosureCodegen.appendType() now appends any Type as a type parameter correctly
2013-04-22 17:59:29 +04:00
Nikolay Krasko
5df85f6100
KT-3525 Duplicate inner class name not detected
...
#KT-3525 Fixed
2013-04-19 01:10:54 +04:00
Evgeny Gerashchenko
622c1c3790
Reverted optimizing imports.
2013-04-18 22:33:06 +04:00
Evgeny Gerashchenko
7133f20247
Added tests with type parameter of class in SAM adapter.
2013-04-18 22:02:04 +04:00
Evgeny Gerashchenko
8c4e45de9a
Supported SAM adapters with type parameters.
2013-04-18 22:01:26 +04:00
Evgeny Gerashchenko
f4994969c0
Added tests with type parameter of class in SAM adapter.
2013-04-18 22:01:26 +04:00
Evgeny Gerashchenko
e554228a73
Added tests with mixture of SAM and non-SAM parameters.
2013-04-18 22:01:26 +04:00
Evgeny Gerashchenko
7bd11718de
Supported simplest cases of SAM adapter in backend.
2013-04-18 22:01:26 +04:00
Evgeny Gerashchenko
8f8d284fe1
Added Kotlin external annotations to codegen tests with Java.
2013-04-18 21:59:49 +04:00
Evgeny Gerashchenko
c8e02f75b0
Supported simplest cases of SAM adapter.
2013-04-18 21:59:49 +04:00
Mikhael Bogdanov
82d7f07cb3
Fixed bug in fix for KT 3492: Bug in bytecode generation for labeled super call from inner class & Property generation refactoring
2013-04-18 18:33:25 +04:00
Andrey Breslav
fe4dd2f661
Fix tests (by extracting a method and calling it multiple times)
2013-04-18 17:36:30 +04:00
Andrey Breslav
140382e280
PSI getter fixed: left-hand side of a binary expression can now be null
...
EA-35976 - IAE: FqNameUnsafe.validateFqName
2013-04-18 16:34:10 +04:00
Mikhael Bogdanov
c69e7f059d
Duplicated JetTypeMapper.mapSignature removed
2013-04-18 15:03:43 +04:00
Mikhael Bogdanov
a1d295638a
ExpressionCOdegen.visitSimpleNameExpression simplification
2013-04-18 14:05:15 +04:00
Mikhael Bogdanov
1fd76845ad
Regression test for kt3315
2013-04-17 18:55:04 +04:00
Andrey Breslav
12cd0675bc
A module can look up a namespace (package view) by FqName
2013-04-17 17:11:20 +04:00
Andrey Breslav
b89dc314c8
getPlatformToKotlinClassMap() removed from ModuleConfiguration
2013-04-17 17:11:19 +04:00
Andrey Breslav
4111e78ac2
ModuleDescriptor stores a PlatformToKotlinClassMap
2013-04-17 17:11:18 +04:00
Andrey Breslav
2e710d7462
getDefaultImports() removed from ModuleConfiguration
2013-04-17 17:11:18 +04:00
Andrey Breslav
f3656bcadd
ModuleDescriptor stores default imports
2013-04-17 17:11:18 +04:00
Andrey Breslav
a72e49d8f7
Use ModuleDescriptor instead of ModuleConfiguration
2013-04-17 17:11:17 +04:00
Andrey Breslav
e29418cde5
ModuleDescriptor stores a ModuleConfiguration
2013-04-17 17:11:17 +04:00