Svetlana Isakova
400e6d3f44
KT-4310 Check for definite returns
...
#KT-4310 Fixed
2013-12-17 19:04:40 +04:00
Andrey Breslav
43cc818506
Fixed: EA-52702 - IAE: JetControlFlowProcessor$CFPVisitor.getResolvedCall
2013-12-17 18:55:23 +04:00
Natalia Ukhorskaya
31ad4f8451
Annotation parameter must be constant
2013-12-17 15:41:24 +04:00
Natalia Ukhorskaya
7a9d822070
'As' function for constants
2013-12-17 15:00:30 +04:00
Alexey Sedunov
b4ad149e77
Replace getParentByTypePredicate with getParentByTypesAndPredicate
2013-12-17 01:41:20 +04:00
Alexey Sedunov
e13abf2444
KT-4274 #Fixed
2013-12-17 01:41:19 +04:00
Natalia Ukhorskaya
dbaaa80918
Add i2b cast boxing Int to Byte? or Short? (fix android tests)
2013-12-16 20:54:10 +04:00
Natalia Ukhorskaya
66effee8cd
Fix safe call
2013-12-16 20:54:09 +04:00
Natalia Ukhorskaya
4ef1af7d12
Cast unary intrinsics to expected type
2013-12-16 17:12:40 +04:00
Svetlana Isakova
20aa3409c7
variable as function call is safe
...
if one of variable or function calls is safe
2013-12-16 16:24:21 +04:00
Svetlana Isakova
4c41d19eb1
interpret class in class object as static nested class
...
removed hack in TaskPrioritizer for import class from class object
2013-12-16 16:24:21 +04:00
Svetlana Isakova
656cc16a81
fixed: explicit receiver kind for resolved call shouldn't be used as expected receiver kind for function
2013-12-16 16:24:21 +04:00
Svetlana Isakova
928f77ffce
set explicit receiver kind properly for calls
2013-12-16 16:24:21 +04:00
Zalim Bashorov
cf5174d798
Fixed the collection output of processes in integration tests.
2013-12-16 13:40:30 +04:00
Alexander Udalov
e179e6bb2f
Utilize existing mapType methods
...
Fix warnings related to nullable CallableDescriptor.getReturnType()
2013-12-12 23:34:08 +04:00
Alexander Udalov
cc1d4a033a
Rename KotlinBuiltIns.isAny -> isAnyOrNullableAny
...
Reduce confusion, prevent bugs
2013-12-12 21:38:20 +04:00
Alexander Udalov
0576851102
Fix codegen for closures returning 'Unit?'
...
Only do a checkcast when we need to coerce Object to Unit: the code was
hopefully type-checked so that it'll only be necessary when the value is either
Unit.VALUE or null
2013-12-12 21:38:20 +04:00
Alexander Udalov
9e5c68a8f9
Fix KotlinBuiltIns.isUnit
...
It didn't check type's nullability
2013-12-12 21:38:20 +04:00
Alexander Udalov
2892907947
Delete Enum.name()/ordinal() JVM intrinsics
...
Bytecode is the same if they're generated as is from descriptors
+ Some minor code style improvements
2013-12-12 21:38:20 +04:00
Alexander Udalov
523ad697c7
Minor, fix/suppress warnings in codegen
2013-12-12 21:38:19 +04:00
Alexander Udalov
0215f892a6
Minor, simplify method
2013-12-12 21:38:19 +04:00
Alexey Sedunov
a802853ac6
Fix warnings
2013-12-12 17:30:58 +04:00
Alexey Sedunov
39211e4759
Implement class inheritors search
2013-12-12 17:30:55 +04:00
Alexey Sedunov
d261fe8726
Core classes for declaration search
2013-12-12 17:30:54 +04:00
Alexey Sedunov
6913f42a97
Add support of light classes for local class/object declarations
2013-12-12 17:30:52 +04:00
Alexey Sedunov
594c966c44
Add local class/object declarations to super name index
2013-12-12 17:30:51 +04:00
Alexey Sedunov
72c7399df1
Index object declarations as inheritors
2013-12-12 17:30:50 +04:00
Natalia Ukhorskaya
1c9b093728
Rename parameter
2013-12-12 17:11:42 +04:00
Natalia Ukhorskaya
69ed9bc47a
Do not cast arguments of binary operation to expected type for byte and short
2013-12-12 17:11:42 +04:00
Natalia Ukhorskaya
8b9fbdf911
Make Android test load files with diagnostics
2013-12-12 17:11:41 +04:00
Natalia Ukhorskaya
7e9b1c5c38
Fix Android tests
2013-12-12 17:11:40 +04:00
Svetlana Isakova
cc3f450132
added test for obsolete task
...
#KT-2336 Fixed
2013-12-11 19:53:52 +04:00
Svetlana Isakova
4d39dc38da
fixed: smart cast of boolean variable didn't work in boolean expression
2013-12-11 19:53:52 +04:00
Svetlana Isakova
cd6934bee8
fixed bug in 'DataFlowInfo.getPossibleTypes'
...
parent types should be enriched as well
2013-12-11 19:53:51 +04:00
Svetlana Isakova
4a26c9df04
don't report autocast on left expression in equality
...
if it was checked for not-null beforehand
2013-12-11 19:53:51 +04:00
Svetlana Isakova
90535283ba
refactoring: extracted 'recordCastOrError' method
2013-12-11 19:53:51 +04:00
Svetlana Isakova
4b89c22ba7
Check separately auto casts for nullable types.
...
It's necessary for functions with generics: constraint system ignores nullability divergence,
the error checks are made afterwards, the auto cast check should be made similarly.
2013-12-11 19:53:51 +04:00
Svetlana Isakova
f271cb3609
rename: checkReceiver -> checkReceivers
2013-12-11 19:53:51 +04:00
Svetlana Isakova
41f2fcbb40
while resolve 'equals' as a fake call do not throw away temporary trace
2013-12-11 19:53:51 +04:00
Svetlana Isakova
499783fbc6
rename:
...
getAutoCastVariantsIncludingReceiver -> getAutoCastVariants
getAutoCastVariants -> getAutoCastVariantsExcludingReceiver
2013-12-11 19:53:50 +04:00
Svetlana Isakova
81e6eb8253
refactoring: removed AutoCastService
...
used getAutoCastVariantsIncludingReceiver util method instead
2013-12-11 19:53:50 +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
Alexander Udalov
00da5fe1fb
Fix VerifyError for 'when' of type 'Unit?'
2013-12-11 07:40:19 +04:00
Alexander Udalov
0d9c126485
Add regression test for KT-3634
...
#KT-3634 Obsolete
2013-12-11 07:40:19 +04:00
Alexander Udalov
220e4e98b7
Minor, print internal class names in CallableMethod.toString()
2013-12-11 07:40:18 +04:00
Evgeny Gerashchenko
20542d94c1
Added extra output for tests if they fail. Muted test on "bad" agents.
2013-12-09 19:04:20 +04:00
Evgeny Gerashchenko
50bea726ff
Fixed exit code passing on Windows XP
2013-12-09 19:04:20 +04:00