Yan Zhulanow
74f44dddb0
Add tests for publicField
2015-07-07 16:35:23 +03:00
Ilya Gorbunov
1605027b19
Change return type of Char plus Int and Char minus Int binary operations.
...
JS: Remove unnecessary intrinsic binary operation patterns, adjust intrinsics for binary operations with char.
2015-07-04 04:47:00 +03:00
Ilya Gorbunov
39b27751df
Drop deprecated char operations: correct test data.
2015-07-04 04:46:23 +03:00
Mikhail Glukhikh
bae9a7d7f8
Types are no more rendered for annotation arguments + a swarm of tests corrected accordingly
2015-07-01 16:12:32 +03:00
Alexander Udalov
3a6ba67602
Delete unused diagnostic about j.l.Class in annotations
2015-06-15 15:55:23 +03:00
Mikhail Glukhikh
46d5290f70
Exception fix (equal returns true for the same types) #EA-65206 Fixed
2015-06-15 14:43:17 +03:00
Denis Zharkov
d71fe0d11a
Drop JavaClassValue and it's usages
...
Also drop related testData
2015-06-12 09:55:10 +03:00
Denis Zharkov
2e284718ce
Revert "Create additional constructor for java annotation with Class-parameter"
...
This reverts commit 8f0e290dec .
2015-06-12 09:55:06 +03:00
Denis Zharkov
9080b57635
Revert "Load annotation parameter's type for ctr as contravariant"
...
This reverts commit 294eb1dceb .
2015-06-12 09:55:03 +03:00
Denis Zharkov
2df6fcb785
Drop some tests using java.lang.Class in annotation
...
We are going to drop such cases anyway, but they're annoying when reverting commits
2015-06-12 09:55:02 +03:00
Alexey Sedunov
e1e1dd9413
Diagnostics: Fix range of DECLARATION_SIGNATURE diagnostics reported on secondary constructors
2015-06-11 13:53:00 +03:00
Alexander Udalov
64b60718e3
Finish off old deprecated function/extension function classes
...
This reverts commit d14e5b8a72 .
2015-06-10 14:41:57 +03:00
Mikhail Glukhikh
98407a7c4b
Recursive annotations are now possible for properties / functions / classes / primary constructors #EA-66984 Fixed #EA-63992 Fixed #EA-64272 Fixed
...
A set of tests provided.
2015-06-04 20:09:36 +03:00
dnpetrov
50ea67ba13
KT-5524 Support [platformName] annotation for class members
...
@platformName is now supported for final non-overriding class member functions
(including property accessors).
Front-end provides diagnostics for inapplicable annotation cases.
Code generation updated:
- ignore kotlin.platform.platformName annotation for Java class methods;
- bridges generation generates proper JVM declarations in case of methods renamed with @platformName.
@platformName-related tests added.
#KT-5524 Fixed
2015-06-04 17:54:08 +03:00
Pavel V. Talanov
d2592e4a2c
Companion objects have public visibility by default
...
#KT-7114 Fixed
2015-06-02 16:23:03 +03:00
Denis Zharkov
7f9d2e8a36
Refine diagnostics reported on primary constructors
2015-06-02 14:07:49 +03:00
Alexander Udalov
d14e5b8a72
Restore and deprecate Function{n}/ExtensionFunction{n} classes for easier migration
...
Users' Java code will not break in common cases (when passing functions to
Kotlin), and deprecation warnings will be reported.
Provide an inspection with a quick fix which allows to replace deprecated
function class usages to the new classes. Include this fix to the "code
cleanup" action
2015-05-28 01:20:05 +03:00
Mikhail Glukhikh
3ad06f169d
Solution for EA-66870: Foo<in *> and Foo<out *> types are now treated as incorrect.
...
#EA-66870 Fixed.
2015-05-27 19:07:46 +03:00
Dmitry Jemerov
1188e57597
rename @overloads annotation to @jvmOverloads
2015-05-27 12:23:08 +02:00
Ilya Gorbunov
84ca26719d
Deprecate meaningless or vague-defined operations with Char operands.
...
Change expected test output.
2015-05-27 00:58:35 +03:00
Alexander Udalov
90097d7e8b
Move callable reference diagnostic tests to non-stdlib
2015-05-26 14:27:40 +03:00
Denis Zharkov
89337ff51e
Change deprecation rules for annotations in brackets
...
Also adjust quickfix for deprecated syntax
2015-05-20 09:24:56 +03:00
Denis Zharkov
aa4a20dddc
Add missing 'constructor' to testData when it was necessary
2015-05-20 09:24:55 +03:00
Dmitry Jemerov
4bdf598bfe
compiler testdata: s/trait/interface
2015-05-12 19:43:17 +02:00
Dmitry Jemerov
9975bb8935
replace 'trait' keyword with 'interface' in user-visible messages and code generation tools
2015-05-12 11:49:37 +02:00
Denis Zharkov
93861e16c8
Prohibit non-constant default values for annotation parameter
...
#KT-7449 Fixed
2015-05-07 22:36:17 +03:00
Denis Zharkov
849b8acbf8
Replace annotations with brackets in testData
...
Just in tests that changed after deprecation
2015-05-07 22:36:16 +03:00
Svetlana Isakova
02301a0d70
KT-7597 ErrorType leaked into backend
...
#KT-7597 Fixed
2015-04-30 21:24:51 +03:00
Dmitry Jemerov
f374eec8f1
deprecating types after colon
2015-04-29 16:33:24 +02:00
Nikolay Krasko
90cdb19324
Add origin for generated jvm overloads and tweak equals methods to distinguish them
...
- KT-7586 Strange navigation issue
#KT-7586 Fixed
2015-04-29 15:20:31 +03:00
Denis Zharkov
fc5236244b
Deprecate java.lang.Class as annotation parameter
2015-04-29 14:03:11 +03:00
Svetlana Isakova
4f0d541493
Resolve function references independently of target type
...
KT-7564 AbstractDiagnosticsTest.checkAllResolvedCallsAreCompleted() fails on tests with function references
#KT-7564 Fixed
2015-04-27 13:32:47 +03:00
Ilya Ryzhenkov
288e1baa87
Tests, messages and infra for deprecated symbol reporting
2015-04-24 15:44:32 +03:00
Denis Zharkov
1b42e2fdcc
Deprecate calls of annotations' methods
2015-04-23 08:27:43 +03:00
Denis Zharkov
6ca7d2aad7
Regenerate test data
...
Add properties for Java annotations
2015-04-23 08:27:41 +03:00
Denis Zharkov
7325a459e5
Ignore diagnostic on tests supposed to be dropped soon
2015-04-17 18:52:16 +03:00
Denis Zharkov
f53baebf89
Show warning on usages of javaClass<T>() in annotations loaded from Java
2015-04-17 18:50:37 +03:00
Denis Zharkov
482b4e3688
Minor, split and clean tests
...
Tests that are using javaClass supposed to be deleted soon
while other ones just check that annotation loaded correctly
and shold use class literals
2015-04-17 17:40:41 +03:00
Denis Zharkov
97e4a899cf
Add specific warning when KClass literal expected
2015-04-16 10:40:20 +03:00
Denis Zharkov
98ffa3b475
Render Class-constant as javaClass<T>()
2015-04-16 10:40:20 +03:00
Denis Zharkov
294eb1dceb
Load annotation parameter's type for ctr as contravariant
...
See comment in code
2015-04-16 10:40:20 +03:00
Denis Zharkov
8f0e290dec
Create additional constructor for java annotation with Class-parameter
...
One of them with KClass<*> parameters and other with java.lang.Class<*>.
It's needed just for backward compatibility, and second one is deprecared.
2015-04-16 10:40:20 +03:00
Denis Zharkov
f5111180c3
Load Class<?> as KClass<*> for Java annotations parameters
2015-04-16 10:40:20 +03:00
Denis Zharkov
82674e56b9
Frontend: Allow using KClass as annotation parameter type
2015-04-16 10:40:19 +03:00
Ilya Gorbunov
a20f1bdb6e
Change the expected diagnostic output after reduce signature has been changed.
2015-04-15 17:34:09 +03:00
Alexander Udalov
6182b3ff5c
Prohibit Array::class, require type arguments for reified parameters
2015-04-09 19:46:47 +03:00
Denis Zharkov
1324667bc9
Prohibit use of positioned value arguments for java annotation
2015-04-07 19:31:30 +03:00
Denis Zharkov
a29c0ff9a3
Use default value if annotation vararg argument is empty
2015-04-07 19:31:30 +03:00
Denis Zharkov
9b1443954f
Refine loading annotation parameters from java
...
- Parameter named `value` is always first
- Array parameter represented as vararg iff its name is `value` and all
other parameters have default values
#KT-2576 Fixed
#KT-6641 Fixed
#KT-6220 Fixed
#KT-6652 Fixed
2015-04-07 19:31:29 +03:00
Alexander Udalov
4474005183
Fix codegen tests and overloads diagnostic test
2015-04-03 01:38:31 +03:00