Commit Graph

1987 Commits

Author SHA1 Message Date
Alexander Udalov a814f6a897 Advertise CompileBinaryTestData.kt in tests with binaries 2013-09-25 16:04:17 +04:00
Alexander Udalov da1325f5cc Add a script to regenerate binary test data (jars) 2013-09-24 20:33:00 +04:00
Alexander Udalov 1de637c143 Regenerate compiled testData
Add sources and instructions to tests which had compiled jars in the testData.
PLEASE ALWAYS ADD SOURCES for tests with jars.

Delete runtime, stdlib and their sources from these jars -- PLEASE DO NOT PUT
kotlin-runtime.jar INTO TEST DATA JARS: every such jar is around 1Mb, it spoils
the repository
2013-09-24 20:32:07 +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 836eef67fa Create proper annotation descriptors when annotation arguments don't match 2013-09-24 06:58:41 -07:00
Andrey Breslav 2dfaa81995 Tests for 'suppress' annotation 2013-09-24 06:58:40 -07:00
Andrey Breslav b98d05bd73 'suppress' annotation added to built-ins
#KT-3319 In Progress
2013-09-24 06:58:39 -07:00
Andrey Breslav 9fef0c8650 Support '-suppress warnings'
#KT-3319 In Progress
2013-09-24 06:58:39 -07:00
Mikhael Bogdanov 39b5be6e2b Test fix for android configuration 2013-09-24 17:10:44 +04:00
Nikolay Krasko 143d8d945c Rewrite isFirstPartInQualified to work properly inside call expressions
#KT-4000 In Progress
2013-09-24 16:54:25 +04:00
Mikhael Bogdanov 6ca3a581b0 Test fix for previous commit 2013-09-24 14:31:58 +04:00
Mikhael Bogdanov 7520ff1420 KT-3308: Support local generic functions in codegen
#KT-3308 Fixed
2013-09-24 12:59:57 +04:00
Mikhael Bogdanov fc1c3a2e23 KT-3978: Kotlin: [Internal Error] org.jetbrains.jet.codegen.CompilationException: Back-end (JVM) Internal error: null
#KT-3978 Fixed
2013-09-19 15:40:28 +04:00
Alexander Udalov c029cbdf62 Do not escape AS_SAFE,NOT_IN,NOT_IS in DescriptorRenderer 2013-09-18 17:20:45 +04:00
Alexander Udalov f5af43ed24 Cleanup descriptors in frontend
Remove useless classes/interfaces, inline useless superclasses, make the code
greener
2013-09-18 16:40:35 +04:00
Evgeny Gerashchenko e338cda06d Changed extension in parsing test data (jet -> kt) 2013-09-17 18:10:00 +04:00
Evgeny Gerashchenko 2ee3d22ab9 Generated missing test data. 2013-09-17 18:10:00 +04:00
Evgeny Gerashchenko dcfeea4029 Removed IDE templates support from compiler. 2013-09-17 18:09:59 +04:00
Mikhael Bogdanov 8ffee527d7 KT-3573 "Error generating primary constructor" when trying to use "this" in extensions from constructors
#KT-3573 Fixed
2013-09-17 17:31:47 +04: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 f0bb41ba50 resolve default values for parameters for local functions
moved method 'resolveValueParameters'

#KT-3978 In progress
2013-09-13 16:04:17 +04: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 828d57c2be Annotation on object test 2013-09-11 12:01:33 +04:00
Nikolay Krasko 08b8f56740 Fix rewrite for ANNOTATION slice (EA-49336) 2013-09-11 12:01:32 +04:00
Nikolay Krasko 8c53d19452 Remove unresolve 'erased' annotation 2013-09-11 12:01:31 +04:00
Pavel V. Talanov e4b2e32827 Return error class in case we are not able to find class for object property 2013-09-10 13:15:30 +04:00
Pavel V. Talanov 217312ab78 Continue to look for descriptors if IGNORE_KOTLIN_SOURCES was passed as DescriptorSearchRule
Add comment to DesriptorSearchRule explaining why we should get rid of it asap
Remove useless code from DesriptorSearchRule
2013-09-10 13:14:46 +04:00
Alexander Udalov c0a4d8d24f Support Class<?> as annotation arguments in java 2013-09-06 23:26:27 +04:00
Alexander Udalov ccff9e38fe Rename LoadJava annotations test data 2013-09-06 23:26:26 +04:00
Alexander Udalov b69970d621 Rename CompileKotlinAgainstCustomJava test
It's not against Java per se, but rather any binaries
2013-09-06 21:28:49 +04:00
Alexander Udalov 9d2add81f8 Don't break the world if enum in annotation isn't found 2013-09-06 21:28:49 +04:00
Alexander Udalov c8a5c9ef59 Add regression for EA-47864 2013-09-06 21:16:42 +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
Pavel V. Talanov 61d5d43e15 Do not generate KotlinClass/Package annotation when not in ClassBuilderMode.FULL
#KT-3967 Fixed
2013-09-05 21:32:48 +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
Andrey Breslav a28d211442 'Cast can never succeed' diagnostics improved 2013-09-05 14:17:32 +04:00