Alexey Sedunov
fb831a9a2a
Add "Find Usages" tests for local classes/objects
2013-12-12 17:30:57 +04:00
Alexey Sedunov
8981208ac9
Rename "Find Usages" tests
2013-12-12 17:30:57 +04:00
Alexey Sedunov
1095c51d6a
Reimplement "Find Usages" using KotlinClassInheritorsSearch
2013-12-12 17:30:56 +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
f35c77e731
Move search extensions to separate package
2013-12-12 17:30:53 +04:00
Alexey Sedunov
eb6ae2f772
Translate KotlinDirectInheritorsSearcher to Kotlin. Reuse PsiClass.isInheritor()
2013-12-12 17:30:53 +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
Alexey Sedunov
a50dd96401
Changed some annotations to @Nullable to make them JDK-compliant
2013-12-12 17:30:49 +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
Nikolay Krasko
c0df908f0e
Rewrite test to kotlin and add use Json format for tests configure
2013-12-12 15:41:11 +04:00
Nikolay Krasko
03e2e6d352
Rewrite class to Kotlin: temp commit for store history
2013-12-12 15:37:13 +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
Alexander Udalov
ee554d2e2f
Unwrap fake override of original
...
This fixes a couple of verify errors related to the order of supertypes in the
class declaration
2013-12-09 17:59:58 +04:00
Alexander Udalov
68961004a5
Collect overridden descriptors for property accessors to LinkedHashSet
2013-12-09 17:59:58 +04:00
Alexander Udalov
44ad36ef97
Minor cleanup in FunctionGenerationStrategy and inheritors
2013-12-09 17:59:58 +04:00
Alexander Udalov
7453af9f36
Minor, don't do unnecessary mapType
2013-12-09 17:58:00 +04:00
Alexander Udalov
fb370a4538
Make anonymous class inner
2013-12-09 17:58:00 +04:00
Alexander Udalov
6276dd1483
Return Unit.VALUE if Unit or Any is expected
...
StackValue.coerce will do its job in casting void to Unit correctly
#KT-4212 Fixed
2013-12-09 17:57:59 +04:00
Alexander Udalov
f19ede0637
Don't treat values of type "Unit?" to be always equal to Unit.VALUE
...
Two changes here: StackValue.Constant does cast iff value is non-null (if null,
no cast between classes is really needed, as null can be an instance of
anything), and codegen for safe qualified expressions uses correct type for the
expression
#KT-4265 Fixed
2013-12-09 15:52:19 +04:00
Alexander Udalov
96f753278c
Minor, prettify code
2013-12-09 15:52:19 +04:00
Nikolay Krasko
21a0ca5840
Revert extending range of supported versions ( ba96538)
...
Incompatibility in ClsFileImpl file:
java.lang.NoSuchMethodError: com.intellij.psi.impl.compiled.ClsFileImpl.<init>(Lcom/intellij/psi/PsiManager;Lcom/intellij/psi/FileViewProvider;)V
2013-12-09 15:45:50 +04:00
Alexander Udalov
9ba562ba3d
Add more info to exception message (EA-52595)
2013-12-07 02:42:00 +04:00
Nikolay Krasko
5d62805711
Stable order for generated tests
2013-12-06 21:29:39 +04:00
Evgeny Gerashchenko
e80af77c31
Added max() and min() for CharArrays.
2013-12-06 20:35:31 +04:00
nik
f439604b57
standard library: 'max' and 'min' functions reimplemented to avoid unnecessary null checks
...
(as proposed for minBy/maxBy in https://github.com/JetBrains/kotlin/pull/324 )
2013-12-06 20:22:53 +04:00
Nikolay Krasko
ba96538a14
Extend range of compatible versions
2013-12-06 18:39:33 +04:00