Mikhail Glukhikh
8d88109c00
Underscore names are now forbidden
2015-10-19 15:24:45 +03:00
Mikhail Glukhikh
f61aa18a05
Code cleanup: get rid of _ (mostly renamed to arg)
2015-10-19 15:24:42 +03:00
Mikhail Glukhikh
059175560c
No __ as lambda parameter
2015-10-19 15:24:39 +03:00
Mikhail Glukhikh
a4af6a3076
data deprecations (empty constructors, non val/var arguments, vararg, superclasses) are now errors, relevant tests fixed
2015-10-19 15:24:28 +03:00
Mikhail Glukhikh
cae0388a57
Code cleanup: data deprecations and some effective visibility stuff
2015-10-19 15:24:22 +03:00
Svetlana Isakova
bb9f7094e0
Report 'TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH'
...
on call element, not on callee expression
2015-10-19 14:15:05 +03:00
Yan Zhulanow
b2470a6aad
Report warning on unary plus()/minus()
2015-10-19 11:51:54 +03:00
Yan Zhulanow
e14c9645dc
Error on 'if' without an 'else' branch when used as an expression
2015-10-19 03:56:15 +03:00
Zalim Bashorov
de5dc61820
Make NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION error
2015-10-18 22:49:08 +03:00
Svetlana Isakova
7208efc784
Fix tests with type annotations
2015-10-17 19:07:25 +03:00
Stanislav Erokhin
7d7d37719b
Forbidden old invokeExtension convention.
2015-10-17 14:45:53 +03:00
Yan Zhulanow
3bb1b1adfd
Put property delegates -related warnings on 'by'
2015-10-16 22:20:06 +03:00
Yan Zhulanow
b42d913bd7
Unify 'lateinit' diagnostics
2015-10-16 22:19:33 +03:00
Yan Zhulanow
9699708fb8
Do not put inapplicable annotations on getter
2015-10-16 22:19:33 +03:00
Svetlana Isakova
ded62686a0
Added 'LowPriorityInOverloadResolution' annotation
2015-10-16 21:58:46 +03:00
Svetlana Isakova
a6ec5cecc0
Added 'OnlyInputTypes' annotation
2015-10-16 21:58:46 +03:00
Svetlana Isakova
082469aee4
Resolve annotations on type parameters of functions and properties
2015-10-16 21:58:45 +03:00
Svetlana Isakova
b401d46ae4
Check annotations on type arguments
2015-10-16 21:58:44 +03:00
Mikhail Glukhikh
4b35e3b135
Preliminary declaration visitor for estimating local variable's predictability for smart casts
...
Predictability estimation algorithm is completely new, but backward compatibility should present.
A large set of tests. Some updated tests.
Smart casts allowed for captured variables if they are not modified in closure #KT-9051 Fixed
Also #KT-8643 Fixed
Also #KT-7976 Fixed
Correct handling of lambda arguments in functions #KT-9143 Fixed
2015-10-16 20:47:47 +03:00
Stanislav Erokhin
d5dbc9638d
Added static methods, nested classes and companion object from superclasses.
2015-10-16 20:42:34 +03:00
Stanislav Erokhin
ace99f6c3f
Don't use ForceResolveUtil.forceResolveAllContents in TypeResolver in order to avoid problems with cyclic hierarchy.
2015-10-16 20:42:33 +03:00
Andrey Breslav
b050324869
Mark string prefixes and suffixes as unsupported
2015-10-16 18:03:53 +03:00
Andrey Breslav
267ec2724e
Minor. Ant task renamed: JetLexer -> KotlinLexer
2015-10-16 17:55:12 +03:00
Andrey Breslav
d1a3a66e12
Minor. Comments removed
2015-10-16 17:55:11 +03:00
Yan Zhulanow
2a55894bec
Update OperationsMapGenerated
2015-10-16 16:19:51 +03:00
Michael Nedzelsky
8e9f1ac31a
Extension function type is not allowed as supertype
2015-10-16 14:23:47 +03:00
Dmitry Petrov
670b49ec5e
Dropping package facades: remove unused imports from package facades
...
(not cleaned up automatically)
2015-10-16 11:23:22 +03:00
Michael Nedzelsky
114d19e6d9
use MainFunctionDetector in order to check for main function
2015-10-15 19:24:45 +03:00
Valentin Kipyatkov
f67bd8c13f
Even more precise keyword completion for modifiers
2015-10-15 19:20:11 +03:00
Valentin Kipyatkov
762900037e
Minor
2015-10-15 19:20:11 +03:00
Valentin Kipyatkov
26768ad34b
Renames
2015-10-15 19:20:11 +03:00
Valentin Kipyatkov
dfcf459bf6
Minor
2015-10-15 19:20:11 +03:00
Valentin Kipyatkov
87cfccc2d9
Removed all places in parser where obsolete annotation syntax was allowed
2015-10-15 19:20:10 +03:00
Valentin Kipyatkov
875eaa52e3
Removing unused code
2015-10-15 19:20:10 +03:00
Valentin Kipyatkov
434be3be21
Adapted keyword completion to changed parser + more precise completion for modifier keywords
2015-10-15 19:20:09 +03:00
Valentin Kipyatkov
d84020b1f3
Removed special support for parsing annotations for multi-declaration in for
2015-10-15 19:20:08 +03:00
Valentin Kipyatkov
98dc8f234e
Drop suppport for annotation syntax without '@' from parser
2015-10-15 19:20:07 +03:00
Alexander Udalov
66417ed329
Parse type arguments after callable reference as error
...
Is likely to be supported in the future
2015-10-15 18:25:42 +03:00
Alexander Udalov
bf4a681589
Deduce receiver type of callable reference from LHS, not from descriptor
2015-10-15 18:25:42 +03:00
Alexander Udalov
2cf437c0e2
Fix type of callable reference to fake override
2015-10-15 18:25:41 +03:00
Yan Zhulanow
bff6639e2d
Use stubs in checkParameterInFunctionType
2015-10-15 18:23:58 +03:00
Yan Zhulanow
d52f245cf7
Rename unary plus/minus in builtins and stdlib
2015-10-15 18:23:58 +03:00
Yan Zhulanow
f7ce0c2d20
Add new intrinsic methods: unaryPlus, unaryMinus
2015-10-15 18:23:58 +03:00
Pavel V. Talanov
53b21061fd
Don't use StubBasedPsiElementBase#getStubOrPsiParent
...
#KT-9579 Fixed
2015-10-15 15:49:42 +03:00
Pavel V. Talanov
bfcabad148
Don't override StubBasedPsiElementBase.getStub
...
#KT-9575 Fixed
2015-10-15 15:49:42 +03:00
Michael Nedzelsky
890ae3e914
Make single-file classes tolerant to having many main()'s
2015-10-15 15:46:26 +03:00
Dmitry Petrov
8cd624a58a
Drop package facades: code cleanup in Kotlin project.
2015-10-15 10:33:47 +03:00
Michael Nedzelsky
57205f5721
drop BASE_WITH_NULLABLE_UPPER_BOUND
2015-10-14 20:51:01 +03:00
Alexander Udalov
ced1edcf98
Prohibit callable references to object members
...
To be able to make them more useful in the future, i.e. bound to the object
instance
2015-10-14 20:45:56 +03:00
Alexander Udalov
a6846b3967
Insert KProperty<*> when creating property delegate methods in IDE
2015-10-14 20:45:26 +03:00