Commit Graph

18125 Commits

Author SHA1 Message Date
Zalim Bashorov b3e34cc2b4 Minor: added regression tests for downTo.
Adopted tests from patch attached to KT-2586.
2014-10-21 18:25:17 +04:00
Zalim Bashorov fedbe26480 Minor: added regression tests for KT-4235
#KT-4235 Obsolete
2014-10-21 18:25:16 +04:00
Zalim Bashorov 335771d580 JS lib: provide Kotlin object as parameter of IIFE. 2014-10-21 14:49:00 +04:00
Zalim Bashorov 98d62283c7 JS lib: simplify DefaultPrimitiveHashSet. 2014-10-21 14:49:00 +04:00
Michael Bogdanov 6eaa6201f0 Test for obsolete KT-6020: Type inference failed on property reference of generic class
#KT-6020 Can't Reproduce
2014-10-21 09:47:17 +04:00
Michael Bogdanov da20845e9c Support non standart java source root configuration in gradle plugin
#KT-6051 Fixed
2014-10-21 09:46:59 +04:00
Alexander Udalov 3a8ad45dec Append newline to EOF for .txt test data files
Reverts and fixes 102f0d3
2014-10-21 03:18:27 +04:00
Alexander Udalov 6e5647bb67 Append newline at EOF when creating file in JetTestUtils 2014-10-21 03:17:44 +04:00
Alexander Udalov 102f0d3470 Regenerate .txt testData
Add newline to EOF, trim trailing spaces
2014-10-21 00:16:08 +04:00
Alexander Udalov 51fd654802 Regenerate injectors and keyword strings
After recent changes to Printer
2014-10-21 00:16:08 +04:00
Alexander Udalov f8be39b26b Regenerate tests
After recent changes to Printer and TestGenerator
2014-10-21 00:16:08 +04:00
Alexander Udalov b9836afb49 Reorder imports in test generator
To make IDEA's Optimize Imports action a no-op on most of the generated tests
2014-10-21 00:16:07 +04:00
Alexander Udalov bc9aa9e34f Don't output trailing spaces in Printer
Also don't output trailing empty lines in TestGenerator
2014-10-21 00:16:07 +04:00
Alexander Udalov 4d9ef1042d Prohibit 'override' on classes and all modality on objects
#KT-3464 Fixed
2014-10-21 00:16:07 +04:00
Alexander Udalov 093dedcd85 Minor, don't call Type.getObjectType on array 2014-10-21 00:16:07 +04:00
Alexander Udalov ae401cac0f Prohibit type parameters for enum classes
#KT-5696 Fixed
2014-10-21 00:16:07 +04:00
Alexander Udalov 63366042ed Fix incorrect "senseless null in when" on nullable type 2014-10-21 00:16:07 +04:00
Alexander Udalov fe59dc27b3 Make 'when' on nullable enums exhaustive if 'null' entry is present
#KT-2902 Fixed
2014-10-21 00:16:06 +04:00
Alexander Udalov 91105b8183 Minor, fix some warnings in DeclarationsChecker 2014-10-21 00:16:06 +04:00
Alexander Udalov c071ac854e Prohibit all modifiers for enum entries
#KT-2679 Fixed
2014-10-21 00:16:06 +04:00
Alexey Tsvetkov 1f87bea78f JS backend: added support for nested labels with the same name
#KT-5891 fixed
2014-10-20 19:51:35 +04:00
Alexey Tsvetkov 09c98226c8 JS backend: added tests for labels 2014-10-20 19:51:35 +04:00
Alexey Tsvetkov 0bc05135d8 JS test minor: renamed InlineTestUtils to DirectiveTestUtils 2014-10-20 19:51:35 +04:00
Alexey Tsvetkov 6d16d06120 JS test: extracted test with ast access and directives 2014-10-20 19:51:34 +04:00
Valentin Kipyatkov f00823c7bf Fixed NPE 2014-10-20 18:50:37 +04:00
Evgeny Gerashchenko b9a4ea80c5 Optimized imports. Fixed build. 2014-10-20 17:57:44 +04:00
Valentin Kipyatkov cb00e729ad Optimization to not optimize imports on completion of class name if we do not insert any import 2014-10-20 14:49:49 +04:00
Svetlana Isakova 68e2e21fb9 Refactoring: inlined 'collectSmartCastReceiverValues' 2014-10-18 11:06:53 +04:00
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