Denis Zharkov
9c73502bdc
Partially revert "Fix project source to overcome bootstrap problem"
...
Adjust code to new generic signatures generated by Kotlin compiler
This reverts commit 0fd2484bc9 .
2015-12-04 10:19:48 +03:00
Denis Zharkov
95cecdbc42
Support overrides of generic methods with erased version in Java
2015-12-03 18:19:36 +03:00
Denis Zharkov
4f06cece37
Refactor external overidability conditions
...
Before this change they could only negatively affect on result
Now they may force success result
Also refine overridavility condition for java fields:
two java fields having the same name are seen as overrides even
if they have different type
2015-12-03 18:19:36 +03:00
Denis Zharkov
8838e46578
Do not create KotlinTypeImpl with error scope while erasing
...
See assertion in KotlinTypeImpl init block
2015-12-03 18:19:36 +03:00
Denis Zharkov
e2b51f30ed
Extract 'doSubstitute' parameters into SubstitutionConfiguration
2015-12-03 18:19:36 +03:00
Alexander Udalov
2821448dd8
Minor, simplify kdoc for KClass#qualifiedName
2015-12-01 20:20:48 +03:00
Stanislav Erokhin
8807cd828f
Removed MemberScope.getPackage
2015-12-01 15:38:04 +03:00
Denis Zharkov
0fd2484bc9
Fix project source to overcome bootstrap problem
2015-12-01 08:21:02 +03:00
Denis Zharkov
c4bc2c9ba6
J2K Renderer: convert and make contravariant
2015-12-01 08:21:02 +03:00
Denis Zharkov
5a5889e3f3
J2K Renderer: .java -> .kt
2015-12-01 08:21:01 +03:00
Denis Zharkov
6292833a69
Refine generic signature for Map.get/remove
...
Before this change generic signature wasn't written because of wrong
assumption about it absence in all cases where we replace generic parameter
with Object
2015-12-01 08:21:00 +03:00
Denis Zharkov
20cbceb56d
Add temporary hack for wildcards in Collections
...
By default we would render 'MutableCollection<String>.addAll(Collection<String>)' as
'(LCollection<String>;)' (without wildcard) because String is final and
effectively it's the same as '(LCollection<? extends String>;)'.
But that's wrong signature in a sense that java.util.Collection has different
signature: '(LCollection<? extends E>)'.
Actually the problem is much wider than collections,
it concerns any Java code that uses Kotlin classes with covariant
parameters without '? extends E' wildcards.
Temporary solution is just to hardcode/enumerate builtin methods
with special signature.
2015-12-01 08:20:59 +03:00
Ilya Gorbunov
e5dd719eec
Fix warning about incompatible types.
2015-12-01 01:35:19 +03:00
Andrey Breslav
8544a5ab5f
Remove "This" keyword
2015-11-30 19:36:33 +03:00
Alexander Udalov
877129340f
Revert "Rename Extension annotation to ExtensionFunctionType"
...
This reverts commit 460dad135c .
The old compiler will not see the new runtime correctly. Postponing this until
1.0
2015-11-30 19:24:58 +03:00
Mikhail Glukhikh
c6be69a483
No more reified types for catch parameter #KT-9742 Fixed
2015-11-30 15:24:24 +03:00
Ilya Gorbunov
661e288362
Introduce 'step' property in progressions instead of 'increment'
2015-11-30 14:12:05 +03:00
Alexander Udalov
460dad135c
Rename Extension annotation to ExtensionFunctionType
2015-11-30 02:51:04 +03:00
Ilya Gorbunov
5301f3eb46
Fix contains usages in compiler.
2015-11-28 07:21:39 +03:00
Alexander Udalov
f6616e6e42
Minor, improve assertion message
2015-11-27 23:35:20 +03:00
Alexander Udalov
9e7e75de12
Rename ExternalSignatureResolver -> SignaturePropagator
2015-11-27 23:34:47 +03:00
Alexander Udalov
57e75a1b28
Drop deprecated code in ModuleMapping, add TODO
2015-11-27 23:34:46 +03:00
Alexander Udalov
6345d0e6d3
Remove obsolete FallbackPaths
2015-11-27 23:34:46 +03:00
Alexander Udalov
7b3b157707
Remove PropertyMetadata from project and bytecode, migrate code to KProperty
2015-11-27 23:34:34 +03:00
Alexander Udalov
fb61dc7e81
Fix potential deadlock on lazy vs storage manager
2015-11-27 21:41:26 +03:00
Alexander Udalov
caa6cdb3f7
Remove obsolete code in KotlinBuilder, rename PackageClassUtils
2015-11-27 21:41:26 +03:00
Alexander Udalov
8594cfca46
Remove kotlin.jvm.internal.KotlinPackage and corresponding code
2015-11-27 21:22:04 +03:00
Alexander Udalov
ad6888dac6
Drop KPackage and deprecated stuff from Reflection/ReflectionFactory
2015-11-27 21:22:04 +03:00
Alexander Udalov
8a5b63a669
Inline PLATFORM_TYPES = true, simplify signature propagation
2015-11-27 21:22:04 +03:00
Alexander Udalov
417a27f3b1
Minor, get rid of AlternativeMethodSignature in irrelevant place
2015-11-27 21:22:04 +03:00
Alexander Udalov
fa34ebac4a
Delete KotlinSignature and corresponding code
2015-11-27 21:22:04 +03:00
Yan Zhulanow
a3ff3ffc45
Fix tests: "Placing function type parameters after the function name" error
2015-11-27 15:51:11 +03:00
Yan Zhulanow
278f1cd6ef
Fix "Placing function type parameters after the function name" errors in project
2015-11-27 15:51:11 +03:00
Yan Zhulanow
87799e9b6b
Fix "operator modifier required" errors in project
2015-11-27 15:51:11 +03:00
Yan Zhulanow
46ac3571d5
Fix "infix modifier required" errors in project
2015-11-27 15:51:11 +03:00
Zalim Bashorov
d1c5bd4526
Minor: remove unused parameter from LookupTracker.record
2015-11-27 15:08:06 +03:00
Nikolay Krasko
24e473f47b
Minor: put type parameters before function name
2015-11-23 22:03:32 +03:00
Nikolay Krasko
a62e6f7737
Refactoring: extract ObservableStorageManager from LoggingStorageManager
2015-11-23 22:03:32 +03:00
Nikolay Krasko
58dbb1ad53
Rethrow stored process canceled exception as a new one with both stacks
2015-11-23 22:03:32 +03:00
Nikolay Krasko
c9e1671572
LazyThreadSafetyMode.NONE is not safe to use in multithreading environment (EA-76205)
2015-11-23 22:03:32 +03:00
Valentin Kipyatkov
6bd723da11
Templates "ifn" and "inn" to use kotlinVariable() instead of suggestVariableName()
2015-11-23 20:31:33 +03:00
Mikhail Glukhikh
dc60c62781
Enum.values is now deprecated but Enum.values() is no more deprecated
2015-11-23 17:29:36 +03:00
Mikhail Glukhikh
6e733f708e
DeclarationsChecker: converted to Kt + EffectiveVisibility related refactoring
2015-11-23 17:29:29 +03:00
Ilya Gorbunov
7c726bcaf9
Rename parameters: ClosedRange.contains
2015-11-21 00:54:36 +03:00
Ilya Gorbunov
9c59045f48
Rename parameters: CharSequence
2015-11-21 00:54:35 +03:00
Mikhail Glukhikh
f81a5c06ea
Protected in allowed in companion objects but forbidden in other objects, relevant test fixes
2015-11-20 16:32:59 +03:00
Valentin Kipyatkov
bf99f91d83
Fixed EA-75877
2015-11-20 16:06:34 +03:00
Pavel V. Talanov
efa4bf1d74
Script refactoring, frontend: Treat scripts as classes (as opposed to function bodies)
...
ScriptDescriptor implements ClassDescriptor
Scripts are accessible in IDE via stub index
Replace special treatment of scripts with generic mechanism in several cases
Scripts to longer generate 'rv' property for storing result value (changes in repl required)
2015-11-19 22:56:57 +03:00
Alexander Udalov
6367e5e133
Fix deadlock on static initializers of KProperty implementations
...
#KT-10041 Fixed
2015-11-19 02:57:27 +03:00
Alexander Udalov
e50eb50299
Make getNestedTypeVariables() an utility
2015-11-18 16:40:44 +03:00