Svetlana Isakova
70374ea9be
KT-4529 Lambdas are analyzed improperly in an infix call nested inside a println
...
#KT-4529 Fixed
2014-02-12 14:47:10 +04:00
Svetlana Isakova
9ed57a5767
removed AutoCastReceiver
...
check subtype for receiver by AutoCastUtils.isSubTypeByAutoCast directly
#KT-4403 Fixed
#KT-4415 Fixed
2014-02-12 12:48:10 +04:00
Svetlana Isakova
cfb7bcb73b
use smart cast info while adding constraint for receiver
2013-12-19 22:05:52 +04:00
Svetlana Isakova
ab1d27dd6b
don't use data flow info while checking for receiver
...
receiver with smart cast is checked separately
2013-12-11 19:53:50 +04:00
Svetlana Isakova
46b77f4472
don't report unnecessary smart cast on receiver
2013-12-11 19:53:50 +04:00
Svetlana Isakova
33c04bde9a
changed tests where autocasts aren't needed but are reported
...
due to KT-4294
2013-12-11 19:53:50 +04:00
Svetlana Isakova
c30259dfbe
added info about smart casts to diagnostic tests
2013-12-11 19:53:50 +04:00
Svetlana Isakova
de85d3df72
KT-4009 Unnecessary attempt to do a smart cast causes an error
...
#KT-4009 Fixed
do not add smart casted types for vars to constraint system
2013-10-16 19:51:52 +04:00
Svetlana Isakova
928133b69b
small fixes after review
2013-09-03 13:09:10 +04:00
Svetlana Isakova
99bb6f13b5
data flow info for arg may affect next argument's type for type argument inference case
2013-09-02 23:18:45 +04:00
Svetlana Isakova
27cff93ed8
use data flow info in constraint system
...
intersect data flow value possible types
add intersection type (or exact type for the most cases) as a lower bound to constraint system
always get common super type for intersection type as a result
(avoid returning it, even in error messages)
2013-09-02 23:18:45 +04:00
Svetlana Isakova
2eadd5202d
check argument types through complete phase
...
with right data flow info
2013-09-02 23:18:42 +04:00
Svetlana Isakova
d3e6d2d6cd
do not need to check stand-alone class object for class,
...
when it's on the left hand side of dot it is analyzed in 'getIdForImplicitReceiver' (test added)
2013-07-05 18:03:52 +04:00
Svetlana Isakova
2337f4b948
bug fix
...
do not combine receiverInfo with error selectorInfo
2013-06-04 22:11:43 +04:00
Svetlana Isakova
f05f616230
KT-2422 Invalid warning "Condition is always true"
...
#KT-2422 fixed
2013-05-31 16:29:07 +04:00
Svetlana Isakova
7b6dfc3470
small fix while choosing maximally specific
...
return success if there is one candidate after filterOverrides step
#KT-1461 fixed
2013-03-11 14:54:16 +04:00