Alexey Sedunov
1c75a5f642
Pseudocode: Generate instructions for superclass constructor calls. Consume value of delegate expression in the by-clause
2014-07-11 19:13:21 +04:00
Evgeny Gerashchenko
86d2565700
Added test for KT-4827 UOE at PackageType.throwException()
...
#KT-4827 obsolete
#EA-53605 obsolete
2014-07-10 15:05:18 +04:00
Andrey Breslav
e3b1639edf
KT-5425 Kotlin plugin crashes when project uses RxJava 17.0 or older
...
#KT-5425 Fixed
2014-07-09 16:10:41 +04:00
Michael Bogdanov
6ddeb85c00
Added checking for ONLY_LOCAL_RETURN in actual parameter of inline function
2014-07-09 09:46:28 +04:00
Svetlana Isakova
cec01237d0
Added test for labeled delegated expression
2014-07-08 14:57:40 +04:00
Svetlana Isakova
72e9822d99
All RESOLVED_CALL getters replaced with util methods
...
JetElement.getResolvedCall(BindingContext)
JetElement.getResolvedCallForSure(BindingContext)
2014-07-08 14:57:37 +04:00
Svetlana Isakova
b2c2e1811c
Check 'isDirty' for resolved calls replaced with check 'hasUnresolvedArguments' for call
...
Don't report 'cannotCompleteResolve' error if some arguments are unresolved (like 'ambiguity')
2014-07-08 14:48:19 +04:00
Svetlana Isakova
a3e306b820
Update recorded type for argument in parentheses correctly
2014-07-08 14:48:18 +04:00
Svetlana Isakova
11fbe375fa
Logic of completing call rewritten in CallCompleter
...
Changed interface ResolutionResultsCache
2014-07-08 14:48:15 +04:00
Michael Bogdanov
ce71c5abde
Test update for new ONLY_LOCAL_RETURN diagnostic
2014-07-07 10:51:46 +04:00
Michael Bogdanov
da01a11137
New diagnostic for non-local return annotation
2014-07-07 10:51:46 +04:00
Andrey Breslav
06d060d5de
KT-4295 Wrong diagnostic about "weaken access privilege" when override properties in constructor
...
#KT-4295 Fixed
2014-07-05 17:47:00 +04:00
Alexander Udalov
c0fc5cfb53
Disallow named arguments for SAM adapters
...
SAM adapters are Java functions, and named arguments are not allowed for Java
functions
#KT-5022 Fixed
2014-07-02 20:35:31 +04:00
Alexander Udalov
a38a396a43
Remove default import "kotlin.reflect"
...
Basic reflection is usable without any imports (with :: literals)
This reverts commit 9503056dd5 .
2014-07-02 01:55:53 +04:00
Alexander Udalov
d32a02f21a
Modify top-level/extension property hierarchy
...
- rename KTopLevelProperty to KTopLevelVariable
- create KTopLevelExtensionProperty, a subclass of KExtensionProperty
- create KTopLevelProperty, a superclass of KTopLevelVariable and
KTopLevelExtensionProperty. (In the future, it will have a container of type
KPackage.)
2014-07-02 01:55:53 +04:00
Alexander Udalov
aa4d6a4ea7
Support :: references to properties in frontend
...
#KT-1183 In Progress
2014-07-02 01:26:18 +04:00
Alexander Udalov
52dadfc264
Add test for obsolete issue
...
#KT-3311 Obsolete
2014-07-02 00:38:50 +04:00
Alexander Udalov
a9b2fd964b
Support nullable types on left-hand side of ::
...
#KT-1183 In Progress
2014-06-26 20:57:39 +04:00
Alexander Udalov
e31f2cfa23
Make protected static visibility reach members in the same package
2014-06-26 20:57:39 +04:00
Nikolay Krasko
d8490ce2a6
Don't parse entries if left brace absent in 'when'
2014-06-25 14:22:53 +04:00
Nikolay Krasko
f36f1796d6
Fix recovery for 'for' expression
2014-06-25 14:22:53 +04:00
Svetlana Isakova
0673dc51d6
Test for KT-3162 More precise try-finally error marking
...
#KT-3162 Obsolete
2014-06-24 16:14:07 +04:00
Svetlana Isakova
8680ff4e88
Do not mark comment next to reachable child as unreachable
2014-06-24 16:14:06 +04:00
Svetlana Isakova
9d4aad3bbc
Extracted 'generateBooleanOperation'
...
Generate magic instruction for '&&, ||' in condition as well
2014-06-21 12:26:34 +04:00
Svetlana Isakova
4279da12f5
KT-5200 Mark unreachable code in lambdas
...
#KT-5200 Fixed
2014-06-21 12:26:33 +04:00
Svetlana Isakova
abfc8ed7e8
KT-5155 Auto-casts do not work with when
...
#KT-5155 Fixed
2014-06-21 12:26:33 +04:00
Svetlana Isakova
17c4930404
KT-2334 An error 'local function without body' is not reported
...
#KT-2334 Fixed
2014-06-21 12:26:33 +04:00
Svetlana Isakova
79cec6411d
Mark only unreachable parts of element if it has reachable parts
...
like for 'return todo()' mark only 'return'
2014-06-21 12:26:33 +04:00
Svetlana Isakova
6e622f2301
Highlight all text ranges for diagnostics in tests
2014-06-21 12:26:32 +04:00
Andrey Breslav
64175d3996
Tests for some more cases of JVM signature clashes
2014-06-20 15:51:47 +04:00
Andrey Breslav
e2c5d9edf6
Support reporting errors on class objects and any classes or objects contained anywhere
2014-06-19 22:12:02 +04:00
Andrey Breslav
b076dc3b58
Test for signature clash in fields copied from class object
2014-06-19 22:12:01 +04:00
Andrey Breslav
f0da5d570e
Do not report "accidental overrides" when "override" modifier is specified
2014-06-19 22:12:01 +04:00
Andrey Breslav
9f29a8b263
Test for required class
2014-06-19 22:12:00 +04:00
Andrey Breslav
98701b7c6e
Properly check overloads in enum
2014-06-19 22:11:59 +04:00
Andrey Breslav
f1545963f3
Generate $propertyMetadata field in LIGHT_CLASSES mode
2014-06-19 22:11:58 +04:00
Andrey Breslav
654dd5afff
Tests for more special names
2014-06-19 22:11:58 +04:00
Andrey Breslav
b49a203a67
Generate bridges in light classes
2014-06-19 22:11:56 +04:00
Andrey Breslav
f59ff5d8fe
Diagnostics for illegal platform names
2014-06-19 22:11:54 +04:00
Andrey Breslav
111c0e55b8
Extra test for the case of error types in detecting duplicate signatures
2014-06-19 22:11:53 +04:00
Andrey Breslav
707da9278f
Do not skip delegated members in LIGHT_CLASSES mode
2014-06-19 22:10:57 +04:00
Andrey Breslav
622b7e3740
Do not report ACCIDENTAL_OVERRIDE on SAM adapters and such
2014-06-19 22:10:55 +04:00
Andrey Breslav
6bbc8ea951
Fix reporting errors on properties declared in constructors
2014-06-19 22:10:55 +04:00
Andrey Breslav
27f76630e6
ACCIDENTAL_OVERRIDE diagnostics supported
...
#KT-1 In Progress
2014-06-19 22:10:55 +04:00
Andrey Breslav
d2e464a02b
Tests for local classes in weird positions
2014-06-19 22:10:54 +04:00
Andrey Breslav
9cb71c7fa8
Test data fixed
2014-06-19 22:10:54 +04:00
Andrey Breslav
55cfa161c7
Report conflicting signatures that are purely inherited from traits
...
When all signatures are inherited from traits, the origin elements lie outside of the class in question
2014-06-19 22:10:54 +04:00
Andrey Breslav
dd23b02dae
Use safe names in codegen, for the case of light classes
2014-06-19 22:10:53 +04:00
Andrey Breslav
d2ce6f5787
Safe identifier for the case of no name in PSI moved to 'descriptors' module, to be used in 'descriptor.loader.java'
2014-06-19 22:10:52 +04:00
Andrey Breslav
bb581bb645
Only normalize names when accessing PSI, not earlier
...
#KT-4833 Fixed
2014-06-19 22:10:52 +04:00