Commit Graph

18085 Commits

Author SHA1 Message Date
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
Natalia Ukhorskaya 6a4fe52e51 Fix Android tests 2014-10-16 14:31:57 +04:00
Andrey Breslav a128b94e2e Typo fixed: "cast", not "casted" 2014-10-16 14:10:14 +04:00
Andrey Breslav 9feebb1dc6 "typedef" replaced with "typeAlias" in the grammar 2014-10-16 14:10:02 +04:00
Nikolay Krasko 4cb276c47f More information about context for assert 2014-10-16 13:01:37 +04:00
Nikolay Krasko 501bb398d4 Update to Idea 139.69.2 2014-10-16 13:01:36 +04:00
Evgeny Gerashchenko 1a3750f31b Stabilized order of static accessors. 2014-10-15 20:38:16 +04:00
Evgeny Gerashchenko 84c7b05781 Stabilized order of methods inherited by delegation. 2014-10-15 20:38:16 +04:00
Evgeny Gerashchenko db45f4a062 Fixed hot swap when closure captures variables
Stabilized order of synthetic constructor parameters in anonymous class.

 #KT-5440 fixed
2014-10-15 20:33:17 +04:00
Valentin Kipyatkov afa59a616c More tests 2014-10-15 17:30:33 +04:00
Valentin Kipyatkov 2365db1367 Fixed KT-6011 Smart completion works for argument of wrong method
#KT-6011 Fixed
2014-10-15 17:30:33 +04:00
Alexey Sedunov b18b888161 PSI Pattern Matching: Fix matching of !!
#KT-6021 Fixed
2014-10-15 15:41:47 +04:00
Alexey Kudravtsev 6f5a2172ac moved more find usages-related stuff to idea-analysis for upsource 2014-10-15 15:11:49 +04:00