Svetlana Isakova
38cc3e39e4
test for obsolete KT-2741
...
#KT-2741 obsolete
2012-12-26 18:01:23 +04:00
Svetlana Isakova
a299cec2eb
KT-3174 Call resolver doesn't understand type is not-nullable after ?. safe call
...
#KT-3174 fixed
2012-12-26 16:43:59 +04:00
Svetlana Isakova
9b645589df
KT-2838 Type inference failed on passing null as a nullable argument
...
#KT-2838 fixed
2012-12-26 14:38:53 +04:00
Svetlana Isakova
e6594ed5b1
KT-2883 Type inference fails due to non-Unit value returned
...
#KT-2883 fixed
2012-12-26 13:53:42 +04:00
Svetlana Isakova
54dffd6aad
tests for obsolete tasks
...
#KT-3007 obsolete
#KT-3038 obsolete
2012-12-26 13:01:48 +04:00
Svetlana Isakova
b0302246a0
HtmlTabledDescriptorRendererTest renamed to DiagnosticMessageTest
2012-12-25 19:12:01 +04:00
Svetlana Isakova
76a62d8b7d
added PLACEHOLDER_FUNCTION_TYPE tests
2012-12-25 19:12:01 +04:00
Svetlana Isakova
4089ac68bd
improved error reporting
...
when error type is a generic parameter
2012-12-25 19:12:01 +04:00
Svetlana Isakova
19e6b02da8
CANNOT_INFER_PARAMETER_TYPE reporting improvement
2012-12-25 19:12:01 +04:00
Svetlana Isakova
2077faa76a
no ambiguity when overloading with different function type
...
(in incomplete resolve)
2012-12-25 19:12:01 +04:00
Svetlana Isakova
972b234db6
KT-3150 Kotlin m4 don't recognize function literals
...
#KT-3150 fixed
added check for PLACEHOLDER_FUNCTION_TYPE to constraint system
2012-12-25 19:12:00 +04:00
Andrey Breslav
c849a0c4e3
Redundant/conflicting projections
2012-11-24 15:59:16 +04:00
Andrey Breslav
12fd07af08
Report an error when variance is specified for a function or property type parameter
2012-11-24 15:59:16 +04:00
Svetlana Isakova
e9c8be8449
complete type inference only for one candidate
...
(the most specific)
to avoid exponential resolve of value arguments for several candidates
where type inference is incomplete (or depends on expected type)
2012-11-12 15:32:11 +04:00
Andrey Breslav
e8bd42b691
KT-2729 Warn on 'T?' where 'T' has a nullable upper bound
2012-10-19 19:42:54 +04:00
Svetlana Isakova
e7cbff14ef
mark last parenthesis instead of value argument list
2012-10-16 20:14:52 +04:00
Svetlana Isakova
9d89eb0e58
KT-2841 Can't infer a type for function literal parameter if the return type is error
...
#KT-2841 fixed
2012-10-16 16:00:22 +04:00
Svetlana Isakova
9d5f5f7adf
KT-2842 Function with declared non-null receiver resolves with nullable argument receiver
...
#KT-2842 fixed
2012-10-02 14:20:00 +04:00
Svetlana Isakova
85f3dbf4fc
added annotations for Collections and Arrays
2012-09-24 14:18:04 +04:00
Evgeny Gerashchenko
311325883e
++Added custom "sure" function in some diagnostic tests, because it is being removed from builtins.
2012-09-17 18:00:22 +04:00
Evgeny Gerashchenko
09502433be
Added custom "sure" function in some diagnostic tests, because it is being removed from builtins.
2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko
5de734c9f3
Replaced sure() invocations with '!!' operator in diagnostic tests.
2012-09-17 18:00:21 +04:00
Svetlana Isakova
cd5521d6dc
rename error
2012-09-07 19:03:07 +04:00
Andrey Breslav
b46187a560
KT-2739 Error type inferred for hashSet(Pair, Pair, Pair)
...
#KT-2739 Fixed
2012-09-07 18:24:22 +04:00
Svetlana Isakova
7c828b9ff7
diagnostic tests changes after collections mapping
2012-09-05 18:55:16 +04:00
Svetlana Isakova
31831f2433
added 'class has Kotlin analog' error
...
to existing diagnostic tests
2012-09-05 18:55:16 +04:00
Svetlana Isakova
ffc256f805
test for obsolete task
...
#KT-1358 fixed
2012-08-17 15:10:34 +04:00
Svetlana Isakova
d2e33c8900
tests for obsolete/fixed issues
...
#KT-1038 fixed
#KT-1127 fixed
#KT-1145 fixed
#KT-1410 fixed
#KT-1718 fixed
#KT-2286 fixed
#KT-1431 fixed
#KT-2394 fixed
2012-08-16 18:39:24 +04:00
Svetlana Isakova
df93a26839
use kotlin Iterable/Iterator
...
instead of java Iterable/Iterator
in Kotlin code in tests
2012-08-16 18:39:23 +04:00
Svetlana Isakova
6e67bd64fa
test for KT-2407
...
#KT-2407 fixed
2012-08-16 18:39:22 +04:00
Svetlana Isakova
70c5a5ba9e
KT-2505 Type mismatch: inferred type is T but T was expected
...
#KT-2505
2012-08-07 18:09:02 +04:00
Svetlana Isakova
9102622e02
more tests on type inference
...
#KT-2200 fixed
#KT-2283 fixed
2012-08-07 18:09:02 +04:00
Svetlana Isakova
4b77e9b83a
tests for obsolete tasks
...
#KT-2445 fixed
#KT-2459 fixed
2012-08-06 18:18:27 +04:00
Svetlana Isakova
f730c1357c
KT-2484 Type inferred for function literal is (...) -> Int instead of (...) -> Unit, when function literal parameter is explicit
...
#KT-2484 fixed
2012-08-06 18:18:26 +04:00
Svetlana Isakova
679a678e7c
choose the most specific candidate after type inference
2012-08-06 18:18:26 +04:00
Svetlana Isakova
b24509577c
added issue names in tests
2012-08-06 18:18:26 +04:00
Svetlana Isakova
036ce3c2e1
KT-2514 Type inference fails when using extension function literal
...
(check for bounds when inference is not complete added)
#KT-2514 fixed
2012-08-06 18:18:26 +04:00
Svetlana Isakova
492d4da56d
added variance handling to constraint system
2012-08-06 18:18:26 +04:00
Svetlana Isakova
b5229b8b3d
tests for type inference tasks added
...
#KT-742 fixed
#KT-832 fixed
#KT-943 fixed
2012-08-01 17:03:53 +04:00
Svetlana Isakova
6d9529e826
KT-948 Make type inference work with sure()/!!
...
!! part fixed
2012-08-01 17:03:52 +04:00
Svetlana Isakova
4e0a9f2af6
type inference errors improvement
...
if constraint system without expected type was successful,
expected type mismatch error should be generated (instead of conflicting substitutions error)
#KT-731 fixed
2012-08-01 17:03:52 +04:00
Svetlana Isakova
077f0084bd
test for kt-702 added
...
#KT-702 fixed
2012-08-01 17:03:52 +04:00
Pavel V. Talanov
b216bbb844
KT-619 Type inference fails
...
#KT-619 Fixed
2012-07-24 15:53:39 +04:00
Svetlana Isakova
a4bb47a73f
type inference with functional literal params changed
...
if there are function literals without declared parameter types,
try adding constraint with current substituted result first (known type parameters),
if there is error, try adding constraint with 'dont_care' substitution
2012-07-20 19:34:55 +04:00
Svetlana Isakova
b161b6bfbf
added error TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH
2012-07-20 19:34:54 +04:00
Svetlana Isakova
e3d2b013da
added tests for specific type inference errors
2012-07-20 19:34:54 +04:00
Svetlana Isakova
fd04717ecc
added 'hasErrorInConstrainingTypes'
...
not to report type inference error in such cases
2012-07-20 19:34:54 +04:00
Svetlana Isakova
1002324ad6
regenerated diagnostics tests
2012-07-20 19:34:52 +04:00
Svetlana Isakova
3739301566
TYPE_INFERENCE_FAILED changed in tests
...
to concrete type inference error
2012-07-20 19:34:52 +04:00
Svetlana Isakova
eb82eba121
tests for type inference
...
#KT-1800 fixed
#KT-1029 fixed
#KT-1031 fixed
#KT-1558 fixed
#KT-1944 fixed
#KT-2179 fixed
#KT-2294 fixed
#KT-2320 fixed
#KT-2324 fixed
2012-07-20 19:34:51 +04:00