Pavel V. Talanov
5540f09751
Report default object specific diagnostics on 'default' modifier
2015-03-06 19:37:02 +03:00
Pavel V. Talanov
012d25dbca
Add test for soon to be deprecated 'class object' syntax
2015-03-06 19:37:00 +03:00
Pavel V. Talanov
59f192ef90
Replace 'class object' with 'default object' in renderers and test data
...
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Pavel V. Talanov
913724f0e9
Allow default object to be denoted with 'default' modifier
...
Report 'default' modifier in illegal positions
2015-03-06 12:41:50 +03:00
Dmitry Jemerov
e9266481c5
allow delegated properties to have getters and setters without bodies
2015-03-05 19:04:17 +03:00
Evgeny Gerashchenko
af7eba64f7
Disallow PropertyMetadataImpl in conventions for delegated properties
2015-03-05 18:42:17 +03:00
Evgeny Gerashchenko
056daeaadb
Don't mark parameters of get/set/propertyDelegated functions as unused.
...
#KT-5974 fixed
2015-03-05 18:42:16 +03:00
Pavel V. Talanov
afe8773e41
Minor: rename OVERRIDE_CANNOT_BE_STATIC and improve message
2015-03-05 13:06:00 +03:00
Nikolay Krasko
518c35fae1
Intrinsic default objects implementation: old test data modification
2015-03-05 01:30:39 +03:00
Nikolay Krasko
30a50746b5
Intrinsic default objects implementation: tests
2015-03-05 01:30:38 +03:00
Pavel V. Talanov
48fbce9582
Refactor: process mentions of class object
...
Rename usages that refer to "default object" concept now
Test data file names are left as is
2015-03-03 20:57:08 +03:00
Pavel V. Talanov
989f07962b
Write to trace in case class qualifier is a short reference to default object
...
This allows to fix some cases when there is a difference between explicit and short reference to default object
Fix shorten reference, optimize imports and import insert helper for default objects
ShortenReferences always transforms default object references to shorter form for now
Fix DescriptorUtils#getFqName() for default objects (affects test data mostly)
Fix DescriptorUtils#getImportableDescriptor()
2015-03-03 13:04:30 +03:00
Pavel V. Talanov
ffabe19229
Prohibit accessing nested classes/objects of class object using class literal
...
The fqname of class should be clear from code
Example: can't shorten A.Default.B.Default.C to A.B.C
Also fixes problem when nested class of enum class could be accessed via enum entry
2015-03-03 13:04:29 +03:00
Pavel V. Talanov
cceb5738c8
Can't omit default object name in imports and types
...
There should be only one way to denote a type (A.Default.B can't be denoted as A.B)
2015-03-03 13:04:28 +03:00
Pavel V. Talanov
88c5379424
Change importing rules for objects:
...
Allow importing classes from object, prohibit import-on-demand from objects
It's unclear what import-on-demand from object should mean so we prohibit it for now
2015-03-03 13:04:27 +03:00
Andrey Breslav
4c84b19b33
KT-5488 Invalid ambiguity between plus and plusAssign
...
#KT-5488 Fixed
2015-02-27 19:32:58 +03:00
Stanislav Erokhin
602689892e
Wrong diagnostic when last expression in lambda contains assignment operation
...
#KT-6769 Fixed
2015-02-27 14:16:20 +03:00
Andrey Breslav
b0422990d9
KT-6527 Wrong diagnostics when compare dynamic to null
...
#KT-6527 Fixed
2015-02-25 14:59:22 +03:00
Andrey Breslav
a00a118f94
EA-63343 - assert: DescriptorUtils.getClassDescriptorForTypeConstructor
...
#KT-6835 Fixed
2015-02-25 14:59:22 +03:00
Andrey Breslav
d70d2ca146
Nullability of error types is not known
...
#KT-6829 Fixed
2015-02-25 14:59:21 +03:00
Nikolay Krasko
377209f0c3
Do not report CONFLICTING_JVM_DECLARATIONS on delegated origin element
2015-02-24 21:33:55 +03:00
Stanislav Erokhin
c6f8a1cfcc
Add support local return from lambda with implicit unit type.
2015-02-24 14:14:49 +03:00
Stanislav Erokhin
57fd5cc84c
Support local return in lambda without explicit return type
2015-02-24 14:14:49 +03:00
Alexey Tsvetkov
fabcfc7b7f
JS: added js() diagnostics tests
2015-02-20 16:01:26 +03:00
Pavel V. Talanov
ca3096a948
Prohibit inner classes in objects
...
Using inner classes in objects makes little sense since objects have single static instance
2015-02-20 14:47:37 +03:00
Pavel V. Talanov
460c1e328f
Improve error message for inner class in trait
2015-02-20 14:47:36 +03:00
Michael Nedzelsky
608b603f58
serialization of compile time constant: add support for expressions <const>: <type>
2015-02-20 02:33:35 +03:00
Svetlana Isakova
204e9a0c34
KT-6751 References to type arguments of a type argument not resolved when wrong number of them
...
#KT-6751 Fixed
2015-02-19 14:43:18 +03:00
Andrey Breslav
ab93b530f1
Don't use annotations after nullability was forced upon a platform type
...
#KT-6762 Fixed
#KT-6763 Fixed
2015-02-17 18:44:46 +03:00
Andrey Breslav
54483dbb95
KT-6118 Redundant type cast can be not redundant?
...
#KT-6118 Fixed
2015-02-16 18:50:10 +03:00
Andrey Breslav
c61a29d4f5
KT-6774 Cannot find equals() when comparing with null
...
#KT-6774 Fixed
2015-02-16 18:50:09 +03:00
Pavel V. Talanov
ed5e2a21d1
Restore some of the tests for deprecated OBJECT$ field
2015-02-16 15:38:45 +03:00
Pavel V. Talanov
2d59791cf2
Improve LazyClassDescriptor#getDefaultObjectDescriptor()
...
To cover the case when default object's name is not unique (redeclaration)
(Calling getClassifier is wrong for this case)
2015-02-16 15:38:44 +03:00
Pavel V. Talanov
514a551c04
Update diagnostics test for many class objects
2015-02-16 15:38:38 +03:00
Pavel V. Talanov
0ea69dea95
Update duplicate jvm signature test for class objects
2015-02-16 15:38:37 +03:00
Pavel V. Talanov
1972c2f177
Update test data for various tests
...
Due to slight semantic changes after class object refactor
2015-02-16 15:38:37 +03:00
Pavel V. Talanov
7b837e2631
Updata test data: txt files for diagnostics tests
2015-02-16 15:38:36 +03:00
Nikolay Krasko
52f1c4048a
More test for conflicting declarations with delegation
2015-02-13 20:28:50 +03:00
Andrey Breslav
fcb6055913
SenselessComparisonChecker used for @NotNull values from Java
2015-02-10 06:55:49 +01:00
Andrey Breslav
f36d6ce5b2
Reporting USELESS_ELVIS and UNNECESSARY_NOT_NULL_ASSERTION on Java's @NotNull values
2015-02-10 06:55:48 +01:00
Andrey Breslav
30f5c1b953
Reporting unnecessary safe calls on Java's @NotNull values
2015-02-10 06:55:48 +01:00
Andrey Breslav
1d4109aec1
Retaining annotations on Java array types
2015-02-10 06:55:48 +01:00
Andrey Breslav
fcac449c70
Nullability-related warnings for receivers
...
#KT-6723 In Progress
2015-02-10 06:55:47 +01:00
Andrey Breslav
5db6bb04e3
Basic Java nullability warnings implemented
...
#KT-6723 In Progress
2015-02-10 06:55:47 +01:00
Andrey Breslav
0e972acf8c
== turned into a safe-call
2015-02-10 06:55:46 +01:00
Alexander Udalov
cafc1ea24d
Fix resolution of inherited Kotlin properties in Java classes
...
#KT-6720 Fixed
2015-02-04 14:57:47 +03:00
Andrey Breslav
fecf6f9fdf
Star projection information preserved in substitutions
...
#KT-6700 Fixed
2015-02-02 19:52:01 +03:00
Andrey Breslav
da639039bd
KT-6698 Bad class file when using a star-projection on a Java's recursive generic parameter
...
#KT-6698 Fixed
2015-02-02 19:52:00 +03:00
Svetlana Isakova
a2f03f2d52
Fix: constraint T? >: Int! should transform to T >: Int
2015-01-30 13:33:37 +03:00
Andrey Breslav
9c469a7dff
Don't make generated methods of local data classes LOCAL
2015-01-29 16:07:30 +03:00