Commit Graph

19604 Commits

Author SHA1 Message Date
Andrey Breslav 42113b5e58 Filtering error types and accounting for platform types when computing intersections
KT-6508 Build impossible because of NoSuchElementException

 #KT-6508 Fixed
2014-12-29 14:13:14 +03:00
Svetlana Isakova 2d1891c63f Minor: moved checkTraitRequirements 2014-12-27 15:15:11 +03:00
Svetlana Isakova b8cef2925f Refactoring: simplified resolveFunctionCall
Extracted resolveCallForConstructor, resolveCallForThisExpression
2014-12-27 00:55:45 +03:00
Svetlana Isakova 333a91395a Moved TailRecursionKind to cfg package 2014-12-27 00:55:44 +03:00
Svetlana Isakova 509a8adae5 Refactoring: moved capturing in closure check to call resolver extension 2014-12-27 00:55:44 +03:00
Svetlana Isakova bc060dd145 Moved call resolver extensions to subpackage 2014-12-27 00:55:43 +03:00
Svetlana Isakova 37abdc2ca6 Rewritten captured type approximation test
Approximation bounds may be non-trivial both (in this case we ignore 'in' projection);
no need for special interpretation of 'Nothing?'
2014-12-27 00:55:28 +03:00
Svetlana Isakova 7daf9b53ce Minor: added a comment 2014-12-27 00:55:27 +03:00
Svetlana Isakova 74a08c9747 Added tests for simple approximation (of Captured(out/in Int)) 2014-12-27 00:55:26 +03:00
Svetlana Isakova 9d09a4d1b4 Fixed message for TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH error 2014-12-27 00:55:26 +03:00
Svetlana Isakova 7b09e85717 Added check for incompatible variance modifiers and repeated modifiers 2014-12-27 00:55:25 +03:00
Svetlana Isakova d2becce1ac Make vararg argument of java annotation have 'out' type 2014-12-27 00:55:23 +03:00
Svetlana Isakova d1556331ef Simplified signatures propagation for vararg types
(do not change flexible types)
2014-12-27 00:55:23 +03:00
Svetlana Isakova 179c9ef2d6 Refactoring. Moved error checks (for abstract, super)
to CandidateResolver

 Added error SUPER_CANT_BE_EXTENSION_RECEIVER (it was SUPER_IS_NOT_AN_EXPRESSION)
2014-12-27 00:55:22 +03:00
Svetlana Isakova 62c8a6f79a Fixed resolve for callable references
functions and properties have the same priority
2014-12-27 00:55:22 +03:00
Alexander Udalov f0bb6c58fc Add 'build-bootstrap-artifacts' target to build.xml
Will be used in bootstrap build; no reason to build kotlin-for-upsource and
zip-test-data there
2014-12-26 22:55:32 +03:00
Alexander Udalov fa9e1ca602 Fix runtime for kotlin-for-upsource and simplify classpath 2014-12-26 22:52:52 +03:00
Alexander Udalov 11dfdfc123 Minor, add test for obsolete issue
#KT-4228 Obsolete
2014-12-26 22:52:39 +03:00
Valentin Kipyatkov 18a536c846 Added test for correct package names resolve inside local classes 2014-12-26 16:23:19 +03:00
Valentin Kipyatkov b61b45f794 Renamed class + inherited NoSubpackagesInPackageScope from adapter class to get printScopeStructure implementation 2014-12-26 16:23:19 +03:00
Valentin Kipyatkov a383a82ddd No subpackages of current package resolved by short name 2014-12-26 16:23:19 +03:00
Valentin Kipyatkov 817b86a820 Temporary added explicit imports of java.util.Collections into stdlib 2014-12-26 16:23:18 +03:00
Valentin Kipyatkov 0b701950ac Removed js package usages 2014-12-26 15:45:01 +03:00
Valentin Kipyatkov 6275a19a10 Fixing compilation 2014-12-26 15:45:01 +03:00
Valentin Kipyatkov 1f17d7adcd Changed language sematics: imports with '*' do not import packages anymore 2014-12-26 15:45:01 +03:00
Valentin Kipyatkov d540f3b724 JetScope.getAllDescriptors made final 2014-12-26 15:45:01 +03:00
Andrey Breslav 06c5be6489 Fix tests: No dangling annotations in stubs 2014-12-26 15:10:13 +03:00
Zalim Bashorov 6c6ced2442 Minor in JS lib: avoid to use undefined literal which may be over overlapped. 2014-12-26 14:20:21 +03:00
Zalim Bashorov 51724e4b0d Drop some obsolete TODOs in MapJsTest 2014-12-26 14:20:21 +03:00
Zalim Bashorov 9ab045e598 JS declarations: added eval, typeof, undefined.
#KT-4136 Fixed
2014-12-26 14:20:20 +03:00
Nikolay Krasko 0988d6cace Update to idea 139.872.1 2014-12-26 14:00:12 +03:00
Michael Nedzelsky eded72d633 fix KT-6192: VerifyError when using spreads with primitive arrays
#KT-6192 Fixed
2014-12-25 22:07:24 +03:00
Andrey Breslav fb7fe81a85 Support navigation to dangling annotations in the IDE 2014-12-25 22:02:23 +03:00
Andrey Breslav 89e1588e13 LIGHT_CLASSES mode for scripts
- Do not generate constructor bodies
- Do not generate script class when package contents are requested
- NOT DONE: generate script class when its name is requested
2014-12-25 22:02:23 +03:00
Andrey Breslav 95f5e8d08c Fix exception from completion and other services 2014-12-25 22:02:23 +03:00
Valentin Kipyatkov 1fda9ed29f J2K: fixed duplicated open modifier generated 2014-12-25 19:55:29 +03:00
Andrey Breslav 292cb9baa9 Resolve dangling annotations in files and class bodies 2014-12-25 19:42:38 +03:00
Alexey Sedunov e296390dd6 Introduce Variable: Do not create separate template to edit type reference
#KT-4314 Fixed
2014-12-25 17:12:19 +03:00
Alexey Sedunov 46ceed8586 Rename: Show error message when trying to rename dynamically invoked function/property 2014-12-25 17:12:18 +03:00
Alexey Sedunov 47aa0cba7d Change Signature: Do not fail on dynamic calls. Show error messages instead
#KT-6529 Fixed
2014-12-25 17:12:17 +03:00
Alexey Sedunov c7a71827a7 Introduce Variable: Amend semicolons to updated expression
#KT-2098 Fixed
2014-12-25 17:12:16 +03:00
Pavel V. Talanov 2fe77d2c6c Fix problem with several runtimes configured 2014-12-25 15:49:49 +03:00
Nikolay Krasko 63e957559e Add warning when non-empty scope without project is used for IDEVirtualFileFinder 2014-12-24 18:39:57 +03:00
Nikolay Krasko 5041f00fea Do not wrap empty scope and fix kotlinSourceAndClassFiles() 2014-12-24 18:39:55 +03:00
Nikolay Krasko cdeaa484bc Create modules with projects 2014-12-24 18:39:45 +03:00
Nikolay Krasko 2a417e822b Check for dumb mode before evaluation start 2014-12-24 18:29:59 +03:00
Andrey Breslav 0b01667ad1 Incorrect assertions removed: these methods are used by completion
Completion correctly proposes packages in type position, as part of an incomplete fqName
2014-12-24 17:53:02 +03:00
Pavel V. Talanov d6881b78d2 Add hack to avoid stub ast mismatch when decompiling libraries built with M9 compiler 2014-12-24 16:49:59 +03:00
Pavel V. Talanov e9ebf4e3c1 Cls stub builder test: test extension on function type 2014-12-24 16:49:58 +03:00
Valentin Kipyatkov 9f6d32f1f6 Fixed EA-63622 - IAE: FqName.validateFqName 2014-12-24 15:48:42 +03:00