Commit Graph

312 Commits

Author SHA1 Message Date
Alex Tkachman 5947759684 proper compilation of enums 2012-08-13 22:37:27 +03: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 fa1c471d92 Partial fix for KT-470: Remove duplicating errors on the same element.
Redeclarations for top-level properties still get two REDECLARATION diagnostics. (In overload resolver and declaration resolver)
Also added test for redeclaring extension properties.
Also remove useless null check.
2012-07-26 13:11:38 +04:00
Pavel V. Talanov cd1ca92f74 KT-53: Allow generic parameter passing for properties.
Obsolete issue.

 #KT-53 Fixed
2012-07-25 14:48:40 +04:00
Pavel V. Talanov fd78340897 KT-310: Tell the user when something is a property and not a function.
#KT-310 Fixed
2012-07-25 14:00:03 +04:00
Pavel V. Talanov 22af8f7296 KT-304: Resolve supertype reference to class anyway.
#KT-304 Fixed
2012-07-25 14:00:01 +04:00
Andrey Breslav 29bc36b69c Merge pull request #109 from udalov/kt2438
KT-2438 Prohibit inner classes with the same name
2012-07-24 07:51:35 -07:00
Alexander Udalov 4712dd759c KT-2438 Prohibit inner classes with the same name
Rewrite checkClassObjectInnerClassNames() to also
check for name clashes between inner classes of a
single class
 #KT-2438 Fixed
2012-07-24 16:25:17 +04:00
Pavel V. Talanov b216bbb844 KT-619 Type inference fails
#KT-619 Fixed
2012-07-24 15:53:39 +04:00
Andrey Breslav 46737dfb11 Don't create constructors for traits 2012-07-23 16:41:23 +04:00
Svetlana Isakova 18b6b53288 Merge pull request #106 from udalov/kt2457-fe
Senseless null in when (KT-2457 frontend part)
2012-07-20 09:25:35 -07:00
Alexander Udalov 0c0232f42b Senseless null in when (KT-2457 frontend part) 2012-07-20 19:51:48 +04:00
Svetlana Isakova 6f8f151db5 added java.lang.Comparable to JavaTypeTransformer 2012-07-20 19:34:55 +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 5edfc6e2eb 'reportTypeInferenceFailed' moved to tracing 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
Pavel V. Talanov f861b69d7a Deal with cases when different visibility of overridden members could produce incorrect fake override.
(by Pavel Talanov and Andrey Breslav)
2012-07-20 18:31:05 +04:00
Pavel V. Talanov d65b6bc69f KT-2472: Wrong "multiple implementations inherited" diagnostics for JFrame.
Check whether member is visible when creating fake overrides.

 #KT-2472 Fixed
2012-07-20 18:29:52 +04:00
Andrey Breslav 98efc0276a Merge pull request #102 from udalov/kt2247
KT-2247 Report name clashes between inner classes and members of class object
2012-07-19 10:10:35 -07:00
Andrey Breslav bf503e9a4b KT-2363 Drop secondary constructors
#KT-2363 Fixed
2012-07-19 19:53:06 +04:00
Alexander Udalov eeacfb96a3 KT-2247 Report name clashes between inner classes and members of class object
#KT-2247 Fixed
2012-07-19 17:56:51 +04:00
Alexander Udalov 5cc043314d KT-2376 java.lang.Number should be visible in Kotlin as jet.Number
#KT-2376 Fixed
2012-07-11 14:31:10 +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
Andrey Breslav 9f0f6f862a Fixing modality in fake overrides
The modality was nondeterministic before.
The main change sits in OverrideResolver: the logic of "fake override" generation is restructured so that
all the descriptors a newly created "fake" one overrides are known by the time it is created, so its
modality can be determined properly from their modalities.

Also, the ReadJavaBinaryClassTestGenerated is now a clear JUnit3 test case
2012-07-09 13:39:05 +04:00
Evgeny Gerashchenko 040d2f8945 Changed "jdk headers" to "jdk annotations" in test and test data directories names. 2012-07-07 23:07:20 +04:00
Alexander Udalov b2defb2cb4 KT-2317 Wrong UNNECESSARY_SAFE_CALL
#KT-2317 Fixed
2012-07-04 15:39:58 +04:00
Evgeny Gerashchenko a8aee841c9 Temporarily added external annotations for ArrayList.clone() method and updated test data. Alternative signature annotations should be parsed for overridden methods, too. 2012-07-03 13:36:58 +04:00
Evgeny Gerashchenko 77df57c150 Replaced jdk-headers with jdk-annotations everywhere. 2012-07-03 13:36:58 +04:00
Pavel V. Talanov 187c90ed3b Update for the previous fix for class object's visibility. 2012-07-02 17:29:06 +04:00
Pavel V. Talanov 2975cda4d6 Fix a bug which caused class object's visibility to be ignored 2012-07-02 17:29:04 +04:00
Andrey Breslav 8611814bf4 Test data fixed 2012-06-26 23:25:52 +02:00
Andrey Breslav ceafb5ddaf Using a function type in a supertype list removed from the test 2012-06-26 23:13:54 +02:00
Svetlana Isakova 190360b1d4 EA-35501 fixed (checkBackingField assert) 2012-06-22 19:02:03 +04:00
Svetlana Isakova 53b59ce152 EA-36814. Do not repeat annotations resolve
for primary constructor parameters as properties
(annotations are already resolved for parameters themselves)
2012-06-22 17:26:29 +04:00