Commit Graph

1375 Commits

Author SHA1 Message Date
Andrey Breslav 3403e6c95d Proper scoping for inner classes: they must shadow outer classes 2012-07-19 18:12:12 +04:00
Andrey Breslav 8c1fd5e9c7 LR: Class object of an enum class doesn't carry type parameters 2012-07-19 17:22:10 +04:00
Andrey Breslav c91af010e1 Class descriptors with kind OBJECT are always final 2012-07-19 17:19:53 +04:00
Andrey Breslav 4c71624997 LR: Delegation supported 2012-07-19 17:09:58 +04:00
Andrey Breslav 67900e9dfa Delegation resolved refactored for reuse
BindingContext.DELEGATED key replaced with kind == DELEGATION
2012-07-19 17:09:58 +04:00
Andrey Breslav 77353d4a56 LR: Detecting and disconnecting loops in type hierarchy 2012-07-19 17:09:58 +04:00
Andrey Breslav eb1a279c67 Lazy resolve: Objects don't show up as classifiers 2012-07-19 17:09:57 +04:00
Pavel V. Talanov 346cc1410e Use OperatorConventions.BOOLEAN_OPERATIONS in frontend. 2012-07-18 17:11:09 +04:00
Pavel V. Talanov 62ad7a9b17 Finishing refactoring intrinsic. Implemented most of FunctionIntrinsics and basic BinaryOperationIntrinsics.
All test pass, need to add tests for type conversion operation though.
2012-07-18 17:11:08 +04:00
Dmitry Jemerov 1ac60dae5e don't use PSI for calculating the type of first argument of trait function implementation 2012-07-13 16:12:33 +02:00
Andrey Breslav de7b93c4b8 Class object resolution scope should not have an implicit receiver
See testData/diagnostics/test/ClassObjectCannotAccessClassFields.kt test
2012-07-13 12:31:21 +04:00
Andrey Breslav 7cf9eeee65 Class object handling refactored to emphasize the structure 2012-07-13 12:31:21 +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 acd0d5eb56 Lazy resolve: Anonymous initializers do not declare anything relevant 2012-07-10 22:48:49 +04:00
Andrey Breslav 3266c2bdde Lazy resolve: Proper scope when inferring types of member properties 2012-07-10 22:48:49 +04:00
Andrey Breslav 33dfd5bb6b Lazy resolve: Package-level objects are handled properly 2012-07-10 22:48:49 +04:00
Andrey Breslav 853dc31510 toString() for debugging 2012-07-10 22:48:49 +04:00
Svetlana Isakova ab9d1c935f KT-2379 Compilation error after running "ant dist" from terminal on Debian system with openjdk
#KT-2379 fixed
2012-07-10 19:53:29 +04:00
Andrey Breslav 8b2ad52ce6 Formatting 2012-07-10 14:48:09 +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
Andrey Breslav 2a1fd7e7d6 Java packages are declared externally for the Kotlin PSI
Same for JetStandardLibrary classes
2012-07-09 13:39:04 +04:00
Andrey Breslav e42f91a7de Do not add error supertypes
If we add them, error functions and such will be in the member scope + the type checker will be confused when an ambivalent type will appear in this position
2012-07-09 13:39:04 +04:00
Andrey Breslav 1f95636bdf Injectors regenerated 2012-07-09 13:39:03 +04:00
Evgeny Gerashchenko 6e7d08b478 Introduced BuiltinsScopeExtensionMode enum. Using it instead of CompilerSpecialMode to create JavaBridgeConfiguration. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 4781d62dd2 Created CompilerConfiguration and classpath/annotations path keys. 2012-07-07 20:33:23 +04:00
Pavel V. Talanov 6354d1bae0 Custom equals operator (includes little patch to frontend)
#KT-2354 fixed
2012-07-05 16:25:33 +04:00
James Strachan 2090b422c0 added compiler scope to the exception thats thrown 2012-07-05 08:52:19 +01:00
James Strachan 85782179c6 added extra diagnostics on assertions so its clear which bit of code caused the problem 2012-07-04 22:02:09 +01:00
Pavel V. Talanov 92231d2eae Merge remote-tracking branch 'origin/master'
Conflicts:
	js/js.tests/test/org/jetbrains/k2js/test/SingleFileTranslationTest.java
	js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestToJSTest.java
2012-07-04 18:32:24 +04:00
Alexander Udalov b2defb2cb4 KT-2317 Wrong UNNECESSARY_SAFE_CALL
#KT-2317 Fixed
2012-07-04 15:39:58 +04:00
Pavel V. Talanov 9f4a48bb1c Remove some strange code from StaticContext. Also use Collection<JetFile> instead of List<JetFile> in some APIs 2012-07-04 12:42:46 +04:00
Pavel V. Talanov 62ff95205c Better fix for class object's visibility problem 2012-07-02 18:09:30 +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
Nikolay Krasko 72271cbdd4 Allow store nullable qualified names in object stubs 2012-07-02 17:16:09 +04:00
Nikolay Krasko de4e302578 Index package-level properties 2012-07-02 15:16:49 +04:00
Nikolay Krasko 5f2c22f944 Remove endless recursive call 2012-06-29 18:23:55 +04:00
Nikolay Krasko ce283d038a Declaration providers on stubs 2012-06-29 18:07:04 +04:00
Nikolay Krasko ede771935f Stub for object 2012-06-29 14:27:46 +04:00
Nikolay Krasko fed9df9858 Add qualified name to top level functions stub 2012-06-29 14:19:44 +04:00
Nikolay Krasko a0bbf24709 Add isAnnotation to class stub 2012-06-28 16:46:30 +04:00
Andrey Breslav 0c910dba8b Supporting (predefined) classifier aliases in Lazy Resolve 2012-06-26 23:23:06 +02:00
Andrey Breslav eb4bcc35c0 Tuple classes have constructors 2012-06-26 23:13:54 +02:00
Andrey Breslav 06aa1478e6 A private constructor added to Nothing 2012-06-26 23:13:54 +02:00
Andrey Breslav 1361c70f68 FunctionN and ExtensionFunctionN are now abstract classes, not traits
+ Indexing of their type parameters is fixed (should match actual positions in the parameter list)

 The reason to make them classes:
 * This is how they are actually implemented in the JVM back-end (for performance)

 This can be reconsidered later, but seems to be a reasonable solution
2012-06-26 23:13:54 +02:00
Andrey Breslav a10d0e9c2b Type parameters of tuples and functions are not reified 2012-06-26 23:13:53 +02:00
Andrey Breslav 61d4f51cde THe 'reified' annotation respected in Lazy resolve 2012-06-26 23:13:53 +02:00
Andrey Breslav f0e0411847 Special classes (for Any and Nothing) introduced to Lazy Resolve 2012-06-26 23:13:53 +02:00
Andrey Breslav ac06825f08 jet.Any: modality and constructor straightened 2012-06-26 23:13:53 +02:00
Nikolay Krasko d3041d410e Merge pull request #80 from Frostman/quickfix-impr
Fix for KT-2174 Need "Replace with unsafe call" intention
2012-06-26 13:42:34 -07:00