Denis Zharkov
751f66c656
Report warning on generic type as argument for reified parameter
...
#KT-6484 Fixed
2016-01-22 19:17:22 +03:00
Denis Zharkov
ae6c62ddff
Minor. Report reified-related diagnostics on arguments if possible
2016-01-22 19:17:22 +03:00
Denis Zharkov
5baa0ed4bb
Minor. Rename TypeUtils.containsSpecialType -> contains
2016-01-22 19:17:22 +03:00
Denis Zharkov
a5c13ce8cf
Approximate projections in SAM type when creating SAM adapter
...
Use the same approach as Java 8 applies to function types
(see non-wildcard parametrization in §9.9 of JLS)
#KT-6918 Fixed
2016-01-22 19:17:22 +03:00
Denis Zharkov
d87b13931d
Create special type for missing dependencies when resolving annotations
...
#KT-10748 Fixed
2016-01-22 19:17:22 +03:00
Mikhail Glukhikh
e9af4d25d0
Handling of try / catch / finally with 'Nothing' in all catch blocks #KT-10735 Fixed
2016-01-22 16:37:22 +03:00
Mikhail Glukhikh
60f5d9ef8b
DelegatingDataFlowInfo: do not create redundant instances
2016-01-22 16:37:19 +03:00
Mikhail Glukhikh
2ee9f22242
DelegatingDataFlowInfo: never store original type or its supertypes #KT-10666 Fixed
2016-01-22 16:37:16 +03:00
Mikhail Glukhikh
e04338f4fa
Minor refactoring: DelegatingDataFlowInfo.create()
2016-01-22 16:37:13 +03:00
Mikhail Glukhikh
366ab508e1
Data flow analysis: assignment of null makes variable effectively of type 'Nothing?'
2016-01-22 16:37:10 +03:00
Mikhail Glukhikh
859059d714
Bug fix: jump out of a loop inside if condition
2016-01-22 16:37:07 +03:00
Mikhail Glukhikh
b3c5760eb5
Type intersection fix: T & (final A) is no more calculated as just A #KT-7801 Fixed
2016-01-22 16:37:04 +03:00
Mikhail Glukhikh
3106a8508a
Front-end and back-end test for KT-7801
2016-01-22 16:37:00 +03:00
Mikhail Glukhikh
7ac55cefcb
Extra test with smart cast to 'T'
2016-01-22 16:36:57 +03:00
Mikhail Glukhikh
d5ffa0bbca
DelegatingDataFlowInfo: default constructor
2016-01-22 16:36:54 +03:00
Mikhail Glukhikh
7870ad2445
DataFlowInfo converted to Kotlin, DataFlowInfoFactory introduced
2016-01-22 16:36:51 +03:00
Mikhail Glukhikh
9e1c2f396e
DataFlowInfo.java --> DataFlowInfo.kt
2016-01-22 16:36:48 +03:00
Alexey Tsvetkov
310a995bb1
Add lookup for every expression's type
2016-01-22 16:01:36 +03:00
Pavel V. Talanov
16ab4bec34
Try to diagnose NoDescriptorForDeclarationException in completion
2016-01-22 15:32:37 +03:00
Dmitry Petrov
f371e67ce8
PatternMatchingTypingVisitor:
...
rewrite type inference for 'when' using special constructs.
This fixes several type inference issues for 'when':
KT-9929, KT-9972, KT-10439, KT-10463
along with some other diagnostics-related issues.
2016-01-22 10:41:55 +03:00
Dmitry Petrov
b49e08fe04
PatternMatchingTypingVisitor:
...
separate condition data flow info analysis and exhaustiveness check
from type inference for "incomplete" (statement-like) 'when'.
2016-01-22 10:41:55 +03:00
Michael Bogdanov
a76d16931c
Temporary generate old default method
2016-01-22 10:10:32 +03:00
Michael Bogdanov
829978a37d
Added additional parameter for default methods
2016-01-22 10:10:32 +03:00
Ilya Gorbunov
875287574f
Update testData for LoadBuiltinsTest and BuiltInDecompilerTest
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
4d5ec9be3f
Drop identityEquals from builtins, compiler and tests.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
f5f5a2dcc1
Move progression final element test to stdlib tests.
...
Less values are tested for iteration not to timeout in js tests.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
2257fa36ec
Drop deprecations: text and system
...
Fix import in testData
Fix testData: replace removed method.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
6d5a65cac6
Minor: remove File?.readTextOrEmpty()
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
d728a1a6c7
Replace File.relativePath from stdlib with File.descendantRelativeTo in fileUtils.
...
IO utils: cleanup java usages.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
25c4453dc5
Cleanup deprecated symbol usages in testData
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
69f884dcd3
Drop deprecations: preconditions with non-lazy message.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
2813840769
Fix testData: diagnostics changed.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
b97e436a50
Fix deprecated Range and Progression usages in testData
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
d48ec7e296
Update testData for LoadBuiltinsTest
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
91f4cf0ebc
Drop Progression<T> and its deprecated properties: start, end, increment.
...
Drop deprecated range extensions.
Make progression constructors private.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
f4822cd757
Fix testData in compiler: add collections and ranges package to fq-names.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
98e2d27c77
Resolve types from all builtin default packages in TypeUnifierTest
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
c84cbfb36a
Allow to specify fq-names in expected resolve testData
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
3262a4ddc2
LoadBuiltinsTest inspects three packages: kotlin, kotlin.collections and kotlin.ranges
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
46a59b7550
Fix imports in java: temporary replace with star imports.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
0213a129ce
Increment STUB_VERSION due to changed fq-names in signatures.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
26a6147a56
Minor: array constructor names formatting.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
1129cee0ff
Collect nested classes from all 4 builtin packages.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
346291af7b
Use fq-names from KotlinBuiltins.FQ_NAMES instead of hardcoded ones.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
9c0f0cad70
Packages: move collections to kotlin.collections.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
9fbbc9db98
Packages: move Ranges, Progression, ProgressionIterators to kotlin.ranges and PrimitiveIterators to kotlin.collections.
2016-01-22 05:54:38 +03:00
Alexander Udalov
0b7d2e3a68
Do not write old callable proto flags, use only new ones
2016-01-22 05:51:14 +03:00
Pavel V. Talanov
1fe749c114
Refactor: get rid of LightClassUtil#getPsiClass() in favor of KtClassOrObject:toLightClass extension
2016-01-21 20:47:22 +03:00
Pavel V. Talanov
2972dbca00
Rename LightClassGenerationSupport.getPsiClass -> getLightClass and make it return KtLightClass
2016-01-21 20:47:21 +03:00
Pavel V. Talanov
06215ca932
Correctly avoid calculation of autogenerated parameter name in ClsParameterImpl.calcName()
2016-01-21 20:47:21 +03:00