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
Andrey Breslav
3d8d92c7d3
JetDiagnosticsTest migrated to TestGenerator
...
- test data files renamed from *.jet to *.kt
2012-07-10 14:48:11 +04:00
Alex Tkachman
ffbce7fe1e
KT-1589: Array<T>(size) renamed to arrayOfNulls
2012-04-02 14:30:37 +03:00
Stepan Koltsov
07ff53d456
add trailing newlines to test files
...
otherwise I have to rollback dozens of files after using sed that follows conventions
2012-03-12 22:54:14 +04:00
Svetlana Isakova
05dfdc7377
KT-1293 Kompiler doesn't show error when element of Array<Int?> is assigned to Int
2012-02-20 17:31:08 +04:00
Andrey Breslav
683e511cf3
OverloadResolutionResult is returned from CallResolver instead of descriptors. This makes more information availbale to the caller (useful for better diagnostics).
2011-12-16 13:09:40 +04:00
Andrey Breslav
0a2108d4d0
Constraint priorities integrated
2011-12-16 13:09:28 +04:00