Svetlana Isakova
4a1a95ea36
Rename: casted -> cast
2014-10-18 11:06:53 +04:00
Svetlana Isakova
595b3ffe23
KT-6026 Exception on instantiating a nested class in an anonymous object
...
#KT-6026 Fixed
2014-10-18 11:06:53 +04:00
Svetlana Isakova
c0c9552f4c
KT-5971 Missing error when fun argument is safe call
...
#KT-5971 Fixed
2014-10-18 11:06:53 +04:00
Svetlana Isakova
c339df65a9
Small refactoring in CandidateResolver
2014-10-18 11:06:52 +04:00
Svetlana Isakova
a47729c626
KT-5455 Need warning about redundant type cast
...
#KT-5455 Fixed
2014-10-18 11:06:52 +04:00
Svetlana Isakova
b20327770b
KT-5854 Incorrect 'Nested class should be qualified'
...
#KT-5854 Fixed
2014-10-18 11:06:52 +04:00
Svetlana Isakova
29fa87ee7c
Slightly reduce number of candidates in task prioritizer
...
return only extensions (functions) when we expecting extensions (not all functions);
for properties it's not that easy: they may have extension function types, and we want to avoid early computing of deferred types
rename: getNonMembersByName -> getExtensionsByName
Report NO_RECEIVER_ALLOWED for '42.(f)()' where f: () -> Unit in TracingStrategyForInvoke
(we don't store candidates for such 'invoke' functions any more)
2014-10-18 11:06:52 +04:00
Svetlana Isakova
c0eb894bd9
Rename: NO_RECEIVER_ADMITTED -> NO_RECEIVER_ALLOWED
2014-10-18 11:06:51 +04:00
Svetlana Isakova
cd3dc5998f
Rewrote CallableDescriptorCollectors to Kotlin
2014-10-18 11:06:51 +04:00
Svetlana Isakova
dfd88b8f24
Rename CallableDescriptorCollectors.java to CallableDescriptorCollectors.kt
2014-10-18 11:06:51 +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
02861308bc
Add toString() to kotlin.Enum
...
Overridable because it is in java.lang.Enum
2014-10-17 21:27:23 +04:00
Alexander Udalov
66a7a58313
Prohibit to override equals/hashCode in enums
...
#KT-5721 Fixed
2014-10-17 21:27:22 +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
Alexander Udalov
f632a34959
Delete unused JavaSignatureFormatter
2014-10-17 21:27:21 +04:00
Alexander Udalov
d3e3039eb2
Add tests for obsolete "nested class is inaccessible"
...
#KT-3535 Obsolete
#KT-3647 Obsolete
#KT-3731 Obsolete
2014-10-17 21:27:21 +04:00
Alexey Sedunov
0def7d4b4e
JetFileReferenceResolver: Stabilize reference order
2014-10-17 17:34:04 +04:00
Alexey Sedunov
80321b610a
Use QUALIFIER info in JetFileReferenceResolver
2014-10-17 17:34:02 +04:00
Alexey Sedunov
f3a219f062
Shorten References: Extract common superclass for type- and expression-processing visitors
2014-10-17 17:33:48 +04:00
Alexey Sedunov
f7e947e912
Shorten References: Simplify shortening of qualified expressions
2014-10-17 13:30:19 +04:00
Natalia Ukhorskaya
be73ec2cc9
KotlinEvaluateExpressionTestGenerated:testSimple: add comment
2014-10-17 11:46:25 +04:00
Natalia Ukhorskaya
6bf0152f6d
Fix KotlinEvaluateExpressionTestGenerated:testSimple
2014-10-17 10:37:54 +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
Michael Nedzelsky
34269e1a3e
JS backend: fix KT-6037 (default arguments in simple function with expression as body)
...
#KT-6037 Fixed
2014-10-17 00:46:05 +04:00
Evgeny Gerashchenko
954a011721
Added incremental cache format versioning.
2014-10-16 22:01:45 +04:00
Evgeny Gerashchenko
0eda00e2df
Rearranged code in abstract incremental compilation test.
2014-10-16 22:01:44 +04:00
Evgeny Gerashchenko
f63f1274cd
Changed shortcuts for "Show expression type".
...
Using same shortcuts as in Scala.
2014-10-16 19:17:09 +04:00
Alexey Tsvetkov
5fb5cea4a3
JS inline: fixed bug with simple return inline function, when result is not used.
...
When function body can be expression
(contains only one statement, and it's return),
result was saved to resultExpr, not body.
But when result was not used, resultExpr was not
used then.
Fixed by checking, that result is used in first place.
2014-10-16 17:16:10 +04:00
Alexey Tsvetkov
be82d4c661
JS backend: increment counter for fresh names
2014-10-16 17:16:10 +04:00
Alexander Udalov
f0169f4181
Regenerate tests
2014-10-16 17:10:33 +04:00
Alexander Udalov
6698e0ecc9
Add test for outdated smart cast with elvis issue
...
#KT-5335 Obsolete
2014-10-16 16:38:11 +04:00
Alexander Udalov
6387076efe
Uncomment previously failing code in J2K after fixing KT-5343
2014-10-16 16:38:04 +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
Valentin Kipyatkov
79123d6bb6
Minor
2014-10-16 15:14:23 +04:00
Valentin Kipyatkov
6b163bca8a
Keyword completion uses simple prefix matching only
2014-10-16 15:14:23 +04:00
Valentin Kipyatkov
1e5ea703b5
Added a test
2014-10-16 15:14:23 +04:00
Valentin Kipyatkov
0da62a8815
Keyword completion: added missing 'out' keyword
2014-10-16 15:14:23 +04:00
Valentin Kipyatkov
6dc17e5a03
Minor refactoring in keyword completion
2014-10-16 15:14:22 +04:00
Valentin Kipyatkov
96a5e573c3
Fix in keyword completion
2014-10-16 15:14:22 +04:00
Valentin Kipyatkov
8e1a89230e
Keyword correction: smaller file text
2014-10-16 15:14:22 +04:00
Valentin Kipyatkov
f7dc0fca74
Keyword correction: more correct behavior + smaller file text
2014-10-16 15:14:22 +04:00
Valentin Kipyatkov
525a1cc3c6
Fixed tests
2014-10-16 15:14:22 +04:00
Valentin Kipyatkov
d65d3b9068
Checked that KT-2795 has been fixed
...
#KT-2795 Fixed
2014-10-16 15:14:21 +04:00
Valentin Kipyatkov
9663fac5b1
Checked that KT-2832 has been fixed
...
#KT-2832 Fixed
2014-10-16 15:14:21 +04:00
Valentin Kipyatkov
50e1ec9c4f
Fixed KT-5809 Code completion after "?." should not include keywords
...
#KT-5809 Fixed
2014-10-16 15:14:21 +04:00
Valentin Kipyatkov
549171d043
Completely rewritten keyword completion implementation using another approach
...
#KT-2816 Fixed
2014-10-16 15:14:21 +04:00