Commit Graph

12967 Commits

Author SHA1 Message Date
svtk 95ca2d8f98 Fixed bug with property and function name clash.
Complete type inference dependent on function literals and expected type
for variable as function calls not for 'invoke' calls
2013-11-25 19:42:07 +04:00
Nikolay Krasko f939918d36 Use system variables on teamcity for passing them into ant script 2013-11-25 14:01:26 +04:00
svtk 1bfca62592 Fixed: analyze unmapped (or with no callee) functional arguments with right context. 2013-11-22 18:58:02 +04:00
svtk ae3331717e Fixed: unmapped arguments should be completed as well. 2013-11-22 18:58:02 +04:00
svtk 058726a0f1 Check function arguments of nested unsuccessful calls. 2013-11-22 18:58:02 +04:00
svtk 1a34dffb1f Fixed inference in a simple case.
Try number lower bounds before upper bounds when computing a value.
2013-11-22 18:58:01 +04:00
svtk 9d3a7804cc Fixed tests for labels.
The bug was automatically fixed by previous commit.
2013-11-22 18:58:01 +04:00
svtk ca1650d31d Fixed exception from EA
"The constraint shouldn't contain different type variables on both sides: T <: R".
It occurred because we analyzed function literals before completion with unsubstituted (therefore wrong) expected type, and cached resulting type.
2013-11-22 18:58:01 +04:00
svtk efd5f69330 made try, finally and throw expressions implement JetStatementExpression 2013-11-22 18:58:00 +04:00
svtk 2bd4aa97c6 KT-4204 ConstraintSystem erased after resolution completion
#KT-4204 Fixed
2013-11-22 18:57:59 +04:00
svtk 5d95fa99bd small: removed obsolete logic ('isIrrefutable') 2013-11-22 18:57:59 +04:00
svtk 8defeef050 made UNREACHABLE_CODE a warning instead of error 2013-11-22 18:57:59 +04:00
svtk c1ec8cbde9 check Nothing type for all expressions not only for calls and simple names
(but excluding statement expressions)
2013-11-22 18:57:58 +04:00
svtk 36ce8f24b3 removed obsolete commented code 2013-11-22 13:08:11 +04:00
svtk e187b37f2d use constant BindingContext.EMPTY
instead of creating new BindingTraceContext
2013-11-22 13:08:10 +04:00
svtk e29dab5044 refactoring: record copy of resolved call explicitly 2013-11-22 13:08:10 +04:00
Andrey Breslav 4ac7afbb9f Module annotations-ext removed. Annotations are moved to runtime 2013-11-21 20:47:48 +04:00
Alexander Udalov c7d5819ef2 Pull up getThisAsReceiverParameter() 2013-11-21 19:34:51 +04:00
Alexander Udalov a77d6a006d Cleanup ClassDescriptorImpl & ErrorClassDescriptor
ClassDescriptorImpl now extends ClassDescriptorBase and reuses most of its
functionality. ErrorClassDescriptor now is initialized in its own constructor.
Inline trivial arguments everywhere
2013-11-21 19:34:51 +04:00
Alexander Udalov 62068bf741 Pull up getUnsubstitutedInnerClassesScope() 2013-11-21 19:34:50 +04:00
Alexander Udalov e9f102f3e6 Pull up getClassObjectType() 2013-11-21 19:34:50 +04:00
Alexander Udalov 97f2d568a3 Use StorageManager in AbstractClassDescriptor to create a lazy value 2013-11-21 19:34:50 +04:00
Alexander Udalov ff29684e3d Delete ExpressionPosition
It had been deprecated in 838c408
2013-11-21 19:34:50 +04:00
Alexander Udalov 223bf11de6 Minor, NamedMembers.toString() 2013-11-21 19:34:50 +04:00
Alexander Udalov 2c6bf6171f Rename ClassKind.isObject -> isSingleton
"isObject" gives a false impression that this is a check if the kind is OBJECT
2013-11-21 19:34:50 +04:00
Evgeny Gerashchenko 9a8d639ac5 Fixed compilation.
Ffter accidental using of method from too fresh IDEA.
2013-11-21 19:15:49 +04:00
Alexey Sedunov 2ecac63405 Fix compilation error caused by the change in IDEA API 2013-11-21 18:57:13 +04:00
Evgeny Gerashchenko f2bbbed7f6 Returning correct exit code from Windows batch scripts. 2013-11-21 17:37:38 +04:00
Evgeny Gerashchenko 51ac515941 Fixed kotlinc-* executables. 2013-11-21 17:37:37 +04:00
Evgeny Gerashchenko 581b9646d7 Added test for kotlinc executables. 2013-11-21 17:37:37 +04:00
Evgeny Gerashchenko ca785cbdd5 Minor. Moved classes. 2013-11-21 17:37:37 +04:00
Evgeny Gerashchenko d937909ebf Separated test data depending on target platform (JS/JVM) 2013-11-21 17:37:36 +04:00
Evgeny Gerashchenko f06e46951f Separated ScriptTest from other cli tests. 2013-11-21 17:37:36 +04:00
Evgeny Gerashchenko 46879e5a26 Moved args into test data of cli tests. 2013-11-21 17:37:35 +04:00
Alexey Sedunov 139f98a983 Update to IDEA 133.79 EAP 2013-11-21 17:08:54 +04:00
Andrey Breslav 054ecdaa6c More info in the assert message 2013-11-21 13:07:39 +04:00
Andrey Breslav 345ecbf4c0 Never import object descriptors, for they may overwrite corresponding vals 2013-11-21 13:07:39 +04:00
Andrey Breslav 0fa70b7e47 Move utility method to DescriptorUtils and make it more general 2013-11-21 13:07:38 +04:00
Andrey Breslav dbd12b0c60 More information in debug message: file name 2013-11-21 13:07:38 +04:00
Andrey Breslav d9444fea09 printScopeStructure() introduced for debugging 2013-11-21 13:07:38 +04:00
Andrey Breslav af68739e69 More information in assert message 2013-11-21 13:07:38 +04:00
Andrey Breslav a0b09ae590 Optimization: don't check when there's nothing to check or report 2013-11-21 13:07:37 +04:00
Andrey Breslav ce496c4512 More info in assert 2013-11-21 13:07:37 +04:00
Andrey Breslav 301bcebaf1 Unnecessarily specific cast weakened 2013-11-21 13:07:37 +04:00
Andrey Breslav d2a9cd7b43 Render types with renderer 2013-11-21 13:07:37 +04:00
Andrey Breslav 083644ea43 Support parameter annotations. Fix class path and test data 2013-11-21 13:07:36 +04:00
Andrey Breslav c034d5e675 Report target file on injector generation failure 2013-11-21 13:07:36 +04:00
Andrey Breslav ef2ae0f398 Consider packages equal if their fqNames are equal 2013-11-21 13:07:36 +04:00
Andrey Breslav 9e446373e3 Old JDR and test data fixed 2013-11-21 13:07:35 +04:00
Andrey Breslav 80c281bcd3 Unnecessary downcast removed 2013-11-21 13:07:35 +04:00