Pavel V. Talanov
44dffa7bbc
Minor: remove a couple of usages of KotlinBuiltIns.getInstance()
2015-07-15 19:44:17 +03:00
Mikhail Glukhikh
c19785252c
Sealed classes now are decompiled correctly + test #EA-70762 Fixed
2015-07-15 17:55:16 +03:00
Ilya Gorbunov
8b325e8a30
Make ByteArray.inputStream a method, not a property.
...
#KT-8360 Fixed
2015-07-15 17:48:56 +03:00
Ilya Gorbunov
4de5dd9aeb
Drop deprecated FunctionalList, FunctionalQueue.
...
Remove dependency on FunctionalList from tests.
2015-07-15 17:45:56 +03:00
Ilya Gorbunov
0a320a13e5
Stdlib generators: change constants for Long: ZERO, ONE, -ONE.
2015-07-15 17:21:52 +03:00
Ilya Gorbunov
10c376975a
Stdlib generators: refactor and eliminate warnings, add families of Sets and InvariantArrays, allow to specify custom signature for particular families.
2015-07-15 17:21:43 +03:00
Ilya Gorbunov
d1a12aa2a7
plus, plusAssign, minus, minusAssign for all possible parameter types for Maps.
...
#KT-6594 Fixed
2015-07-15 17:12:45 +03:00
Ilya Gorbunov
e080753dc2
Provide toMap and putAll for Arrays and Sequences of key-value pairs.
...
#KT-4166 Fixed
2015-07-15 17:12:43 +03:00
Ilya Gorbunov
96b79eebe7
asSequence returns empty sequence singleton for empty arrays and strings.
...
#KT-8450 Fixed
2015-07-15 17:08:27 +03:00
Valentin Kipyatkov
5f8a652a38
KT-4592 Parameter info shows signatures of inaccessible methods
...
#KT-4592 Fixed
2015-07-15 16:32:20 +03:00
Dmitry Jemerov
d34d54ba47
nicer looking action to create a new Kotlin file
...
#KT-8445 Fixed
2015-07-15 13:58:51 +02:00
Denis Zharkov
e82adc9d90
Drop unused Approximation type capabilities
2015-07-15 10:01:15 +03:00
Denis Zharkov
d19cb747be
Emit not-null assertions for enhanced types
2015-07-15 10:01:14 +03:00
Denis Zharkov
e23c7f457b
Preserve type annotations on type parameter when substituting
...
Subsitute(@A T, T:@B String) = @B @A String
Nullability when loading Java:
Subsitute(@NotNull T, T:String) = @NotNull String
Subsitute(@NotNull T, T:String!) = @NotNull String
Subsitute(@NotNull T, T:String?) = @NotNull String
Subsitute(@Nullable T, T:String) = @Nullable String?
Subsitute(@Nullable T, T:String!) = @Nullable String?
Subsitute(@Nullable T, T:String?) = @Nullable String?
2015-07-15 10:01:14 +03:00
Alexander Udalov
2b541a560e
Make function references compiled with old compiler work with new runtime
2015-07-14 21:23:59 +03:00
Dmitry Jemerov
0295b13cc7
couple more tuple leftovers
2015-07-14 17:14:33 +02:00
Dmitry Jemerov
64860345e3
drop tuple type support from parser
2015-07-14 17:09:09 +02:00
Dmitry Jemerov
55c11539f8
drop tuples support from parser
2015-07-14 17:06:17 +02:00
Mikhail Glukhikh
a84fe53256
Minor refactoring of LookupElementsCollector
2015-07-14 16:25:11 +03:00
Mikhail Glukhikh
37b2e97e56
Rendering changed: "annotation class" is now just "class" (with kotlin.annotation.annotation if it's kotlin annotation).
...
A swarm of tests fixed accordingly.
2015-07-14 16:25:08 +03:00
Mikhail Glukhikh
0d2a81f098
Annotation target checking in front-end, a set of tests for different annotation targets, existing test fixes
...
No checks for erroneous annotations. Additional checks for identifiers.
2015-07-14 16:25:04 +03:00
Mikhail Glukhikh
609d696202
Annotations have now retention of "RUNTIME" by default. Java retention is generated as given by kotlin annotation. Annotation rendering changed.
...
Annotation arguments with default values are rendered as ... if renderDefaultAnnotationArguments is true.
Tests: java retention does not taken into account by Descriptor comparator.
Java retentinon changed to kotlin retention in some tests + one new test with java retention added.
More accurate tests for intentions in byte code (visibility controlled).
2015-07-14 16:25:01 +03:00
Mikhail Glukhikh
4a27b4d614
JetClassOrObject.isAnnotation() is deprecated
2015-07-14 16:24:59 +03:00
Mikhail Glukhikh
1eac4d67de
"annotation" is now parsed as an identifier. It is no longer a soft keyword.
...
Sometimes it's allowed to parse "annotation" unescaped even if other annotations must be escaped.
A set of annotations and their options tests.
A swarm of existing tests fixed (mostly kotlin.annotation.annotation() added to txt-files).
STUB_VERSION increased. Some quick fixes slightly changed.
2015-07-14 16:24:55 +03:00
Mikhail Glukhikh
7a6e5f66bd
Regression test: char + int = char
2015-07-14 16:24:52 +03:00
Mikhail Glukhikh
5126f01452
kotlin.annotation package with annotations "target" and "annotation" and enums AnnotationTarget and AnnotationRetention introduced.
...
Targets for existing built-in annotations.
Access to annotation package from packageFragmentProvider.
Documentation for all classes in the package.
2015-07-14 16:24:45 +03:00
Svetlana Isakova
b162a65e85
Changed the way the constraints are written in tests
...
SUBTYPE T Int -> T <: Int
2015-07-13 21:57:59 +03:00
Valentin Kipyatkov
d32ba08cb7
KT-8394 ReplaceWith for Delegates.lazy fails outside of stdlib
...
#KT-8394 Fixed
2015-07-13 19:41:42 +03:00
Evgeny Gerashchenko
1346d98bf3
Merge pull request #721 from JetBrains/rr/yole/unwhatever
...
don't use "whatever" as implementation of getFamilyName(), provide co…
2015-07-13 19:18:35 +03:00
Dmitry Jemerov
31f6405e07
don't use "whatever" as implementation of getFamilyName(), provide correct implementation instead
2015-07-13 18:11:44 +02:00
Ilya Gorbunov
4ad6a8e301
Ensure type of a stack value is coerced to the expected return type after the binary operation instruction with the different return type.
2015-07-13 17:27:37 +03:00
Zalim Bashorov
f7ccb3819e
JS: don't pollute object with $metadata$
...
#KT-8126 Fixed
2015-07-13 15:52:57 +03:00
Alexander Udalov
4de2c5a5c8
Don't generate default no-args constructor for enums
...
#KT-8438 Fixed
2015-07-13 11:59:35 +03:00
Alexey Sedunov
064b03ca3f
Minor: Suppress error message to fix compilation against Java 8
2015-07-11 14:10:36 +03:00
Alexey Sedunov
969183fbf3
Control-Flow: Move type predicate computation out of control-flow analysis
2015-07-10 21:09:07 +03:00
Alexey Sedunov
34cd2e0ac3
Refactoring: Replace factory functions with constructors
2015-07-10 21:09:06 +03:00
Alexander Udalov
290983687d
Fix generation of bridges for lambdas
...
#KT-8447 Fixed
2015-07-10 20:10:16 +03:00
Dmitry Petrov
5dc28f1313
KT-7507 Check expected type for class literal expression
2015-07-10 20:10:15 +03:00
Dmitry Petrov
d540ff8890
KT-8206 java.lang.NoSuchFieldError: $kotlinClass for deprecated::class
...
Instantiate class literals for annotation classes as foreign.
2015-07-10 20:10:15 +03:00
Alexander Udalov
95f5d24988
Use a built-in marker class for Configure Kotlin action
...
This helps to get rid of the balloon which was shown in Kotlin project itself
because of the recent change where a source root was added to the module
'builtins', which doesn't have the class kotlin.jvm.internal.Intrinsics (the
'runtime.jvm' module does)
2015-07-10 20:10:15 +03:00
Alexander Udalov
670565b251
Wrap property reference instance before storing to static field
2015-07-10 20:10:14 +03:00
Alexander Udalov
16b5b95556
Test equals/hashCode/toString for function references
2015-07-10 20:10:14 +03:00
Alexander Udalov
f8815d9450
Test visibility of anonymous classes for callable references
2015-07-10 20:10:13 +03:00
Alexander Udalov
3b2be6212d
Add some tests on Java property references
2015-07-10 20:10:13 +03:00
Alexander Udalov
c62f19ee82
Move getterName/setterName to JvmAbi
...
Reuse in RuntimeTypeMapper in reflection
2015-07-10 20:10:13 +03:00
Alexander Udalov
64d8e35d26
Remove ScriptParameterResolver, inline its single method
2015-07-10 20:10:12 +03:00
Alexander Udalov
9b832d4b87
Container of value parameter is always a callable
2015-07-10 20:10:12 +03:00
Alexander Udalov
636b63a8c5
Make "reflection not found" a warning, provide a quick fix
...
Reporting the warning on each "::", as ReflectionNotFoundInspection did, is not
correct anymore, because for example name/get/set on properties works perfectly
without kotlin-reflect.jar in the classpath. So instead we report the warning
on calls to functions from reflection interfaces. This is not perfect either
because it's wrong in projects with custom implementations of reflection
interfaces, but this case is so rare that the users can suppress the warning
there anyway
#KT-7176 Fixed
2015-07-10 20:10:11 +03:00
Alexander Udalov
4f1247f03f
Support property getters/setters in reflection
2015-07-10 20:10:10 +03:00
Alexander Udalov
749d0c4a52
Minor, simplify KProperty.accessible
2015-07-10 20:10:10 +03:00