Commit Graph

18135 Commits

Author SHA1 Message Date
Andrey Breslav d9f5bd013b Clean up declarations of runReadAction() etc 2014-10-22 00:41:19 +04:00
Andrey Breslav 9bd3ac26e3 toString() for easier debugging 2014-10-22 00:41:19 +04:00
Andrey Breslav b5f89c661a DescriptorRenderer can now render flexible types for code (i.e. ft<L, U>) 2014-10-22 00:41:19 +04:00
Andrey Breslav 0e42de4e99 CHECK_TYPES injected through imports 2014-10-22 00:41:19 +04:00
Andrey Breslav 71d9ad5e8b Removing the static import that caused exception on compilation 2014-10-22 00:41:18 +04:00
Andrey Breslav f06e5581aa Support creating flexible types in tests
Flexible types can not be created in normal user code, but if there's a special classifier `kotlin.internal.flexible.ft` with two type parameters,
its occurrences are replaced by flexible types, e.g. `ft<Int, Int?>` becomes `Int!`
2014-10-22 00:41:18 +04:00
Zalim Bashorov 8067a9ad56 Added regression tests for KT-2474 Range lacks reverse() in JavaScript backend
#KT-2474 Fixed
2014-10-21 22:46:09 +04:00
Zalim Bashorov 66519d9973 Added regression tests for KT-1906 Support invoke() convention is js-backend (including classes implementing Function trait)
#KT-1906 Fixed
2014-10-21 22:46:09 +04:00
Zalim Bashorov f3d9d21757 Added regression tests for KT-3518 Null pointer during null comparison in JS Backend. 2014-10-21 22:46:09 +04:00
Nikolay Krasko 2e3c0505cd Update to EAP 139.144.2 2014-10-21 19:45:27 +04:00
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