Alexander Udalov
776b5d0a6e
Minor, move enum diagnostic tests, add another test
2013-11-14 19:11:20 +04:00
Alexander Udalov
8c3f9149ac
Add a test on extension function to object
2013-11-14 19:11:20 +04:00
Alexander Udalov
29f3c4a1a0
Report upper bounds violation for objects, not only classes
2013-11-14 19:11:18 +04:00
Alexander Udalov
57aa355b05
Report INVISIBLE_MEMBER on private class object usage
2013-11-14 19:10:18 +04:00
Alexander Udalov
94deb21551
Minor, move diagnostic tests for class objects
2013-11-14 17:45:57 +04:00
svtk
64e12398af
comment added to tests
2013-11-08 16:33:41 +04:00
svtk
95ef417ee8
KT-4170 Compiler hangs (or works too long)
...
#KT-4170 Fixed
2013-11-08 16:33:41 +04:00
Andrey Breslav
70acf0fdba
Test for an obsolete issue
...
#KT-2956 Obsolete
2013-10-25 19:55:42 +04:00
Natalia Ukhorskaya
3287744415
Add common JetElement for imports: JetImportList
2013-10-25 13:55:40 +04:00
Nikolay Krasko
d23ad4f262
Process each namespace only once while reporting redeclaration errors
2013-10-23 20:43:39 +04:00
Svetlana Isakova
9fc66d686e
treat function literals without value argument list
...
as without arguments by default
2013-10-16 20:41:21 +04:00
Svetlana Isakova
ab7e3ce78c
interpret block with function literal as function literal
...
(temporary)
2013-10-16 20:41:21 +04:00
Svetlana Isakova
73c5cb07d8
get rid of 'unwrapFromBlock'
...
do the logic in 'deparenthesize' method
2013-10-16 20:41:20 +04:00
Svetlana Isakova
0f444903f6
refactoring: added hasOnlyErrorsFromPosition(ConstraintPosition)
...
to use it for errors from completer as well
2013-10-16 20:41:19 +04:00
Svetlana Isakova
6c584fd252
do not add NO_EXPECTED_TYPE as a subtype constraint to constraint system
...
fixed exception from EA
2013-10-16 20:41:19 +04:00
Svetlana Isakova
0a0f76239f
resolve delegated expression always using completer
2013-10-16 19:51:54 +04:00
Svetlana Isakova
af930012d5
removed stored systemWithoutExpectedTypeConstraint
...
now we can filter out constraints of special type if necessary
2013-10-16 19:51:53 +04:00
Svetlana Isakova
65e2f47bc3
try intersection of upper bounds as a suggestion
...
not each bound itself
while resolving constraint system
2013-10-16 19:51:53 +04:00
Svetlana Isakova
8a4afb9330
support one more special case of propagating bound constraints
...
(temporary while there is no common constraint system and its resolution)
2013-10-16 19:51:53 +04:00
Svetlana Isakova
cb25e1d55a
if some type parameter has only weak constraints (from bounds), then we consider it as unknown
2013-10-16 19:51:53 +04:00
Svetlana Isakova
de85d3df72
KT-4009 Unnecessary attempt to do a smart cast causes an error
...
#KT-4009 Fixed
do not add smart casted types for vars to constraint system
2013-10-16 19:51:52 +04:00
Svetlana Isakova
9a0ec7949e
fixed bug in constraint system
...
For parameter type T constraint T? <: Int? should NOT transform to T <: Int, it should be T <: Int?
equality constraint T? = Int? should transform to T <: Int? && T >: Int
2013-10-16 19:51:52 +04:00
Andrey Breslav
f05f3f5686
Let the user know that class object bounds are not supported
...
KT-4080 Code analisys show all good, but got compile error
#KT-4080 Fixed
2013-10-15 14:45:22 +04:00
Evgeny Gerashchenko
d56c59d9d7
Removed toArray() from collections (few tests are still failing).
...
#KT-3352 in progress
2013-10-01 15:11:30 +04:00
Evgeny Gerashchenko
48625dd7b6
Disallowed using type parameter as reified type argument.
...
#KT-3050 fixed
2013-10-01 15:06:57 +04:00
Svetlana Isakova
a3f9cef354
fixed bug: 'isStatement' for function body == 'hasBlockBody'
...
not vice versa
2013-09-30 21:06:05 +04:00
Pavel V. Talanov
9599f7d98c
Test for delegated members being overridden
2013-09-30 20:54:42 +04:00
Pavel V. Talanov
51a6bcb727
Test for reporting clashes with multiple delegated methods
...
Verifies that the order in which traits are inherited is irrelevant
2013-09-30 20:54:41 +04:00
Mohammad Shamsi
f554ff3c8c
KT-3945 Fixed - Prohibit modifiers for packages
2013-09-26 15:25:36 +04:00
Andrey Breslav
8f6b6639c5
Allow no else in annotated when-statements
2013-09-24 06:58:42 -07:00
Andrey Breslav
db9dd5d320
Allow annotations on loop statements
2013-09-24 06:58:41 -07:00
Andrey Breslav
c7c151a726
Support suppression on expressions
2013-09-24 06:58:41 -07:00
Andrey Breslav
b379ab3ebd
Resolve annotations on expressions and multi-declarations
2013-09-24 06:58:41 -07:00
Andrey Breslav
2dfaa81995
Tests for 'suppress' annotation
2013-09-24 06:58:40 -07:00
Svetlana Isakova
b9f55f5070
test added
2013-09-17 16:09:27 +04:00
Svetlana Isakova
845b6f7d7e
fixed bug
...
NULL_FOR_NONNULL_TYPE can represent type mismatch error as well
(later the whole method 'makeTraceInterceptingTypeMismatch' should be removed)
2013-09-17 16:09:26 +04:00
Andrey Breslav
a9134f8eff
Do not allow inference of type arguments on the rhs if there's no information available
2013-09-13 22:41:06 +02:00
Andrey Breslav
5c86a5bd7c
Allow bare types on the right-hand side of as/as?/is/!is
2013-09-13 22:41:06 +02:00
Andrey Breslav
69cc11d035
Existing tests updated according to "'Else' is not required in 'when' if Unit is expected"
2013-09-13 22:05:37 +02:00
Andrey Breslav
c017858f77
'Else' is not required in 'when' if Unit is expected
2013-09-13 22:04:46 +02:00
Svetlana Isakova
298d344c31
check constants with Unit return type as usual
2013-09-13 16:04:17 +04:00
Svetlana Isakova
b6386e345c
added positioning for 'ILLEGAL_ESCAPE' error
2013-09-13 16:04:17 +04:00
Svetlana Isakova
96db2ecabd
added different errors instead of ERROR_COMPILE_TIME_VALUE with different text
...
check type for constants in DataFlowUtils
2013-09-13 16:04:17 +04:00
Svetlana Isakova
5f189a8c0f
KT-3833 Invoke method not working inside class object?
...
#KT-3833 Fixed
2013-09-13 16:04:17 +04:00
Evgeny Gerashchenko
e4d8e4d61b
Not ignoring other properties in scope.
...
First one (almost randomly) was chosen instead of ambiguity.
2013-09-12 14:58:58 +04:00
Nikolay Krasko
e4c1fe7c3a
Report unsupported annotations for local variables
2013-09-11 12:01:34 +04:00
Nikolay Krasko
08b8f56740
Fix rewrite for ANNOTATION slice (EA-49336)
2013-09-11 12:01:32 +04:00
Andrey Breslav
fca6182288
Fixed the case of "Any is/as List<*>" for erased cast diagnostic
2013-09-06 13:37:09 +04:00
Andrey Breslav
e3175c66e8
Fixing failed tests: do not report anything on casts that can never succeed
2013-09-05 15:03:37 +04:00
Andrey Breslav
e3079ac667
Erased casts supported
2013-09-05 14:17:33 +04:00