Andrey Breslav
ea36024893
Report an error on dynamic types used as supertypes or upper bounds
2014-12-01 20:43:43 +03:00
Andrey Breslav
1f66c64ee0
dynamic receiver admits nullable values
2014-12-01 20:43:42 +03:00
Andrey Breslav
ef34b5c9a9
Commented code removed
2014-12-01 20:43:42 +03:00
Andrey Breslav
cdecb9d8c4
Test for using dynamic types in type inference
2014-12-01 20:43:41 +03:00
Andrey Breslav
7f0df032b4
Highlight dynamic calls in the editor
2014-12-01 20:43:41 +03:00
Andrey Breslav
52f1e037c1
Dynamic calls have priority over extensions
2014-12-01 20:43:40 +03:00
Andrey Breslav
f58b30706e
Parsing dynamic in extension receiver position
2014-12-01 20:43:40 +03:00
Andrey Breslav
4f3158abb3
Mark dynamic calls in tests
2014-12-01 20:43:40 +03:00
Andrey Breslav
c8029307fa
Forbid dynamic on the RHS of is and as
2014-12-01 20:43:40 +03:00
Andrey Breslav
645d931a9e
Support for named arguments in dynamic calls
2014-12-01 20:43:39 +03:00
Andrey Breslav
845f30975d
Basic support for dynamic calls
2014-12-01 20:43:39 +03:00
Andrey Breslav
d5932e1a33
Nullability of dynamic types
2014-12-01 20:43:38 +03:00
Andrey Breslav
e0bd881c1e
Rendering for dynamic types
2014-12-01 20:43:38 +03:00
Andrey Breslav
65794183e7
Specificity supported for dynamic types
2014-12-01 20:43:38 +03:00
Andrey Breslav
20513abe04
Allow dynamic types only in some contexts
2014-12-01 20:43:38 +03:00
Andrey Breslav
28b466d069
Parsing dynamic types
2014-12-01 20:43:37 +03:00
Valentin Kipyatkov
d8bad58db8
Fixed JetDeclarationStub.getParent() which was incorrectly implemented before
2014-12-01 16:06:52 +03:00
Zalim Bashorov
c06d70d190
JS frontend: added checkers for nativeInvoke, nativeGetter, nativeSetter.
2014-12-01 15:27:36 +03:00
Nikolay Krasko
8957a0621c
Refactoring: remove method
2014-11-28 17:19:30 +03:00
Nikolay Krasko
ce45108fe9
LTDA: Add addition scope provider component for lazy resolve and create additional injector for REPL
2014-11-28 17:18:47 +03:00
Nikolay Krasko
4342740195
Refactoring: move common code for ResolveSession init to method
2014-11-28 17:18:46 +03:00
Nikolay Krasko
8cfdcd319b
LTDA: Add the temp ability to build with eager resolve
...
Compiler should be executed with -Dlazy.tda=false parameter
REPL won't work with this option
2014-11-28 17:18:45 +03:00
Nikolay Krasko
1a894c7e5c
LTDA: Store order of declarations in DeclarationProvider
2014-11-28 17:18:44 +03:00
Nikolay Krasko
0f852efb54
LTDA: Don't store illegal 'inner' modifier in descriptors
2014-11-28 17:18:43 +03:00
Nikolay Krasko
a42edb9c8f
LTDA: Assert context was created for light class generation
2014-11-28 17:18:40 +03:00
Nikolay Krasko
571f3c8524
LTDA: Initialize project components with resolve session after injector construction is finished
2014-11-28 17:18:39 +03:00
Nikolay Krasko
602407cc9c
LTDA: Fix REPL and make it work with lazy resolve
2014-11-28 17:18:38 +03:00
Nikolay Krasko
994c8886bc
LTDA: Initialize built-ins reference resolver with lazy tda
2014-11-28 17:18:37 +03:00
Nikolay Krasko
23c6498e1e
LTDA: Injector with lazy TDA for JVM target
...
- REPL is broken
- Tests for Kotlin - Java - Kotlin hierarchy may fail
2014-11-28 17:18:36 +03:00
Nikolay Krasko
48f459f656
LTDA: Enable lazy analyze by default
2014-11-28 17:18:35 +03:00
Valentin Kipyatkov
820c2c7cd8
Smart completion: inheritors instantiation suggested + fixed a bug with incorrect presentation of generic java class instantiation
2014-11-28 15:33:26 +03:00
Alexander Udalov
4d95bcfc7e
Rename CharSequence.get to charAt
...
This is done for JVM interoperability. There's still a member function
String.get() and an extension function "get" on CharSequence
#KT-1730 Fixed
#KT-5389 Fixed
2014-11-27 20:38:18 +03:00
Alexander Udalov
a7b88e9485
Make CharSequence.length a function instead of property
...
And String.length as well.
This is done for JVM interoperability: java.lang.CharSequence is an open class
and has a function 'length()' which should be implemented in subclasses
somehow.
A minor unexpected effect of this is that String.length() is now a compile-time
constant (it wasn't such as a property because properties are not supported in
compile-time constant evaluation)
#KT-3571 Fixed
2014-11-27 20:38:17 +03:00
Denis Zharkov
37d476c388
Moved DiagnosticFactories about reified to
...
``Type parameter declarations'' block
2014-11-27 13:49:18 +04:00
Denis Zharkov
02be1063c1
Do not report a warning on an inline function with a reified parameter
...
#KT-6273 Fixed
2014-11-27 13:49:17 +04:00
Alexey Sedunov
ddccc0e640
Change Signature: Update enum entries w/o delegation specifier when changing signature of enum class constructor
...
#KT-5978 Fixed
2014-11-26 13:07:29 +03:00
Valentin Kipyatkov
32a13502c5
Fixed one of the cases with lambda's returning Nothing
2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
d334011d5d
Renamed firstOrNullIsInstance
2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
ddc60ac5dd
Better injecting of partial body resolve filter
2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
cd90ab951f
Partial body resolve tests: more informative test output
2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
00d9c94a8b
Changed way to pass statementFilter from ElementResolver into ExpressionTypingServices
2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
a0c9c0e7b2
Added firstOrNullIsInstance and firstIsInstance methods
2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
8010c0f09d
Partial body resolve works for local Nothing functions + does not go inside local functions and classes
2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
3b77d337e8
Renames "possibly nothing" to "probably nothing"
2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
e5579bcf32
Partial body resolve: to take source Kotlin callables with Nothing type from caches
2014-11-24 20:11:25 +03:00
Valentin Kipyatkov
a675b5ba38
Basic implementation of partial body resolve
2014-11-24 20:11:23 +03:00
Nikolay Krasko
92d6ac7e7c
Rewrite to Kotlin: LockBasedLazyResolveStorageManager
2014-11-24 19:19:32 +03:00
Nikolay Krasko
2800ab4a12
Rewrite to Kotlin (file rename): LockBasedLazyResolveStorageManager
2014-11-24 19:19:29 +03:00
Nikolay Krasko
a456f9d22e
Add ability to create memoized functions with custom maps
...
- Remove cast in ResolveSession class
2014-11-24 19:19:14 +03:00
Stanislav Erokhin
4c0befbfe9
Remove unnecessary lazy value
2014-11-24 15:38:58 +03:00