Commit Graph

11396 Commits

Author SHA1 Message Date
Andrey Breslav 2e978950ab Primary constructors supported 2013-08-23 17:38:55 +04:00
Andrey Breslav 99d1a9b7d7 Serialization tests reuse test data from loadKotlin 2013-08-23 17:38:55 +04:00
Andrey Breslav 4c689bc328 Better processing of upper bounds 2013-08-23 17:38:55 +04:00
Andrey Breslav 2a928a2bfe Support properties in serialized classes 2013-08-23 17:38:55 +04:00
Andrey Breslav c610695612 Flags supported for classes and their members 2013-08-23 17:38:54 +04:00
Andrey Breslav babb1a14d5 Better support for error types 2013-08-23 17:38:54 +04:00
Andrey Breslav cff59a925b Support fake overrides 2013-08-23 17:38:54 +04:00
Andrey Breslav ae4a3942df toString() for types 2013-08-23 17:38:54 +04:00
Andrey Breslav 6be5ecc666 toString(JetType) extracted 2013-08-23 17:38:53 +04:00
Andrey Breslav b9283f0afc Do not serialize fake overrides 2013-08-23 17:38:53 +04:00
Andrey Breslav 5eb33372ae Initial version of (de)serialization test 2013-08-23 17:38:53 +04:00
Andrey Breslav 915b0b79a3 Initial implementation of (lazy) deserialized class descriptor 2013-08-23 17:38:53 +04:00
Andrey Breslav e59b4d1564 Storing only names of nested classes/objects 2013-08-23 17:38:53 +04:00
Andrey Breslav 42cc953aa8 Provide more services from descriptor deserializer 2013-08-23 17:38:52 +04:00
Andrey Breslav 364ed19c4b Simple implementations for lazy values and memoized functions 2013-08-23 17:38:52 +04:00
Andrey Breslav c1cef019ce More low-level constructor added 2013-08-23 17:38:52 +04:00
Andrey Breslav d4ac312142 Account for circular bounds in type parameters 2013-08-23 17:38:52 +04:00
Andrey Breslav 85dad7866d Lazy types 2013-08-23 17:38:51 +04:00
Andrey Breslav 8018f186e5 Overloaded constructor for convenience 2013-08-23 17:38:51 +04:00
Andrey Breslav 2789c2a785 Static import 2013-08-23 17:38:51 +04:00
Andrey Breslav 96db819832 Extracted IndexedSymbolTable and TypeDeserializer 2013-08-23 17:38:51 +04:00
Andrey Breslav 1e345b58f7 Serializing basic descriptors 2013-08-23 17:38:51 +04:00
Andrey Breslav a0895e9046 Serializing/Deserializing simple and qualified names 2013-08-23 17:38:50 +04:00
Andrey Breslav 099b3ffc9f Initial protobuf definition for descriptor serialization 2013-08-23 17:38:50 +04:00
Andrey Breslav e85871861a New module for descriptor serialization code 2013-08-23 17:38:50 +04:00
Andrey Breslav f7a9ea60dd protobuf-java added to the project 2013-08-23 17:38:50 +04:00
Andrey Breslav 187bf8abfe Avoid calling getClass() in equals(). It disturbs profiling 2013-08-23 17:38:50 +04:00
Andrey Breslav 1472499874 Utility methods moved to JetTestUtil 2013-08-23 17:38:49 +04:00
Nikolay Krasko 450d6cad3b Don't memoize exceptions in built-ins resolve session 2013-08-22 21:16:57 +04:00
Andrey Breslav 6cee65d74e A test for nesting implicitly labeled calls
The actual error message should be "return not allowed", but due to a bug in label resolution it is "unresolved reference"
2013-08-22 17:13:08 +04:00
Andrey Breslav 55eb994502 KT-3919 Automatic labeling of lambdas by receiving functions
#KT-3919 Fixed
2013-08-22 14:27:01 +04:00
Andrey Breslav 07a8dff5f4 Fix builtins dir lookup for the case where there's no directory entry in the JAR file 2013-08-22 14:02:51 +04:00
Andrey Breslav 6f5c3358ae Fix test data 2013-08-22 12:18:12 +04:00
Andrey Breslav 96335b2e71 Do not look for a common supertype if there is only one type in the worklist 2013-08-22 12:18:12 +04:00
Mikhael Bogdanov eeb4aac313 Fixed wrong annotation for android.PreferenceGroup & PreferenceCategory 2013-08-22 12:00:17 +04:00
Andrey Breslav a51ea10f55 No need to produce error types when RETURN_NOT_ALLOWED_EXPLICIT_RETURN_TYPE_REQUIRED is reported 2013-08-21 20:12:05 +04:00
Andrey Breslav 3f3ee378f3 Test that local return has type Nothing 2013-08-21 20:12:05 +04:00
Andrey Breslav aa99c29d8d JVM backend test for local returns 2013-08-21 20:12:05 +04:00
Andrey Breslav 08625a6b2f Local returns are only allowed with explicitly specified return types
This is a temporary limitation: otherwise type inference is having trouble to account for all the returned expressions.
 We will fix the inference and remove the limitation
2013-08-21 20:12:04 +04:00
Andrey Breslav d97506476f Minor. Local variable renamed 2013-08-21 20:12:04 +04:00
Andrey Breslav 9e9916df6e GenerateTests uses headless mode 2013-08-21 20:12:04 +04:00
Andrey Breslav 4138ac4e36 Support local returns in lambdas 2013-08-21 20:12:04 +04:00
Andrey Breslav 3ead1cea37 Duplicating parameters removed 2013-08-21 20:12:04 +04:00
Andrey Breslav 2c1375f948 Minor: code cleanup 2013-08-21 20:12:04 +04:00
Andrey Breslav db70087573 Labels on function literal arguments are processed properly 2013-08-21 20:12:04 +04:00
Andrey Breslav 9f90fd0938 No "unreachable code" errors when an illegal return expression is the last in a lambda 2013-08-21 20:12:04 +04:00
Andrey Breslav 34df845778 Clarifying comments for RETURN_NOT_ALLOWED 2013-08-21 20:12:03 +04:00
Nikolay Krasko b4c7122528 Move built-in files out of source directory 2013-08-21 19:52:42 +04:00
Nikolay Krasko 9a45277b53 Refactoring: Fix deprecation warning 2013-08-21 19:52:41 +04:00
Natalia Ukhorskaya 3916a8a15f Merge pull request #298 from nskvortsov/master
kotlin-android plugin doesn't work with android-library plugin 
 #KT-3911 Fixed
2013-08-21 05:28:30 -07:00