Nikolay Krasko
75c887048e
Drop AbstractLazyResolveRecursiveComparingTest test
...
Test data from compiler/testData/lazyResolve/ was moved to diagnostics tests
2014-12-03 14:08:23 +03:00
Nikolay Krasko
dd79fd9a98
Remove tests - same is tested in AbstractLoadJavaTest
2014-12-03 14:08:22 +03:00
Nikolay Krasko
f50aab4b85
Drop LazyResolveStdlibLoadingTest
...
- Descriptors compare is useless
- Absence of errors in stdlib is checked in NoErrorsInStdlibTest
2014-12-03 14:08:21 +03:00
Nikolay Krasko
a0a292cbf5
Drop AbstractLazyResolveDescriptorRendererTest with DescriptorRendererTest refactoring
2014-12-03 14:08:21 +03:00
Nikolay Krasko
44aba2d761
Drop lazy tests: test data is used in ResolveTestGenerated.Imports
2014-12-03 14:08:20 +03:00
Nikolay Krasko
b99d346e3a
Subclass JetLightCodeInsightFixtureTestCase to avoid assert about invalid root
2014-12-03 14:08:19 +03:00
nik
ca7ce6228c
initial injection support (KT-2428): allow injection inside string literals
2014-12-03 13:52:59 +03:00
Natalia Ukhorskaya
3ab7c6c8e9
Evaluate Expression: fix for anonymous objects - expressions where anonymous type can be replaced with super type can be evaluated
2014-12-03 12:49:40 +03:00
Natalia Ukhorskaya
b056fd7e2e
Add test for completion with runtime type cast
2014-12-03 12:49:38 +03:00
Natalia Ukhorskaya
0c74016ab7
Remove duplicates in completion with runtime types
2014-12-03 12:49:37 +03:00
Natalia Ukhorskaya
e191130446
Move helper method
2014-12-03 12:49:35 +03:00
Natalia Ukhorskaya
732700e959
Completion: insert cast to runtime type for receiver in code fragments
2014-12-03 12:49:33 +03:00
Natalia Ukhorskaya
73e71543c6
Save runtime type evaluator to userdata of codeFragment
2014-12-03 11:19:39 +03:00
Natalia Ukhorskaya
deb80bc3ad
Minor: fix warnings
2014-12-03 11:19:38 +03:00
Natalia Ukhorskaya
86af5ded76
Add surrounder for cast to runtime type
2014-12-03 11:19:38 +03:00
Stanislav Erokhin
99ec8952e1
Temporary hack for KT-6320
2014-12-02 18:09:01 +03:00
Stanislav Erokhin
b55114055e
Change usage "v == Visibilities.PRIVATE" to Visibilities.isPrivate(v)
2014-12-02 14:30:17 +03:00
Stanislav Erokhin
b3f3b3946e
Add receiver to Visibility#isVisible
2014-12-02 14:30:16 +03:00
Stanislav Erokhin
d997a6cb35
Fix protected visibility in class object.
2014-12-02 14:30:16 +03:00
Stanislav Erokhin
fc70c416ed
Fix blinking test
2014-12-02 14:30:16 +03:00
Stanislav Erokhin
aa97bb8cfc
Added Variance tests
2014-12-02 14:30:15 +03:00
Stanislav Erokhin
db457a612c
Add test (recursive resolve in property declaration) to JetPsiChecker
2014-12-02 14:30:15 +03:00
Stanislav Erokhin
1664a55dcf
Add VarianceChecker to TopDownAnalyzer
2014-12-02 14:30:15 +03:00
Stanislav Erokhin
c2d99a40cd
Create VarianceChecker
2014-12-02 14:06:07 +03:00
Stanislav Erokhin
a8be80328f
Convert Variance.java -> .kt
2014-12-02 13:48:44 +03:00
Stanislav Erokhin
9ed37ca1eb
Add method getValueParameters() to JetCallableDeclaration
2014-12-02 13:48:44 +03:00
Stanislav Erokhin
a5c0dda10f
Add TypeBinding.
2014-12-02 13:48:44 +03:00
Stanislav Erokhin
b2774a9cd0
Fix classpath test for openjdk
2014-12-02 13:47:48 +03:00
Denis Zharkov
5d2792d68b
Removed redundant call v.done() in ClosureCodegen
...
It should be called by super.done()
2014-12-01 22:31:54 +03:00
Denis Zharkov
669f5e7b87
Minor, removed Contract from deparenthesize
...
and added some asserts
2014-12-01 22:31:53 +03:00
Denis Zharkov
0d03253f4e
DependencyInjectorGenerator: reified extensions
...
1. Introduced reified extensions
2. Replaced extensions accepting varargs with ones
that accept single reified argument (it's looks more concise)
2014-12-01 22:31:53 +03:00
Denis Zharkov
b3bf8933df
Extensions PsiElement.getParentOfType with reified T
...
1. Renamed *ByType -> *OfType (as in PsiTreeUtil.java)
2. Introduced PsiElement.getStrictParentOfType and PsiElement.getNonStrictParentOfType
with reified TP
3. Replaced current usages of PsiTreeUtil.getParentOfType and current
extensions
4. Made reified version of PsiElement.getParentOfTypeAndBranch with
default strict value --- false (as it used)
2014-12-01 22:28:35 +03:00
Denis Zharkov
8b80daa2a1
Replaced filterIsInstance with class-literal argument with simplified version
2014-12-01 22:28:34 +03:00
Andrey Breslav
c9c16696f1
Do not fail when delegating to an (unsupported) dynamic type on the JVM
2014-12-01 20:43:46 +03:00
Andrey Breslav
e10d29a10b
JS-specific tests moved to a separate directory
2014-12-01 20:43:46 +03:00
Andrey Breslav
6187a0e9e0
Fix for UNSUPPORTED diagnostic for dynamic types in local classes
2014-12-01 20:43:46 +03:00
Andrey Breslav
8211f084e6
Dynamic types spec cleaned up
2014-12-01 20:43:46 +03:00
Andrey Breslav
b7dd63465b
Allow invoke-convention on dynamic expressions
2014-12-01 20:43:45 +03:00
Andrey Breslav
53bbf20b0d
Allow augmented assignments on dynamic receivers
2014-12-01 20:43:45 +03:00
Andrey Breslav
cc210c2950
Minor. Comments removed
2014-12-01 20:43:45 +03:00
Andrey Breslav
300f484535
Support operator conventions for dynamic types
...
TODO:
- invoke
- += etc
2014-12-01 20:43:45 +03:00
Andrey Breslav
fac53de40c
Mark dynamic calls in for's, delegated properties and multi-declarations
2014-12-01 20:43:44 +03:00
Andrey Breslav
4adf74b46f
Do not allow compareTo() to return Int?
2014-12-01 20:43:44 +03:00
Andrey Breslav
304d22553c
Prohibit using dynamic as an argument for reified type parameters
2014-12-01 20:43:44 +03:00
Andrey Breslav
d5fdfcb797
Resolve dynamic.extensionForDynamic() statically
2014-12-01 20:43:44 +03:00
Andrey Breslav
8ee00b70ee
Tests for extensions properties on dynamic types
2014-12-01 20:43:43 +03:00
Andrey Breslav
5cced5a451
Comments on bounded dynamic types
2014-12-01 20:43:43 +03:00
Andrey Breslav
1afe6fca5b
Test for vararg parameter of dynamic type
2014-12-01 20:43:43 +03:00
Andrey Breslav
8cf6d24ffe
Test for using dynamic types in conditions
2014-12-01 20:43:43 +03:00
Andrey Breslav
ea36024893
Report an error on dynamic types used as supertypes or upper bounds
2014-12-01 20:43:43 +03:00