Alexander Udalov
9e971ed2b9
Minor, add test on enum assignability to kotlin.Enum
2014-08-13 17:19:56 +04:00
Alexander Udalov
d78d4bc44c
Disallow extension properties with backing fields
...
#KT-1682 Fixed
2014-05-29 21:24:05 +04:00
Evgeny Gerashchenko
ae4c68830d
Importing root scope without members.
2014-01-16 22:11:55 +04:00
Evgeny Gerashchenko
958f7c862d
Got rid of "namespace" word in test data.
2014-01-14 18:06:50 +04:00
Svetlana Isakova
4c41d19eb1
interpret class in class object as static nested class
...
removed hack in TaskPrioritizer for import class from class object
2013-12-16 16:24:21 +04:00
Alexander Udalov
dfd660a8e3
Try to resolve expression as class object if resolution found an inappropriate result
2013-12-03 19:00:44 +04:00
Alexander Udalov
310a70bf84
Report a separate diagnostic on inheritance from singletons
2013-12-02 19:56:16 +04:00
Alexander Udalov
c2598faa4e
Fix class object visibility check
...
ExpressionTypingContext now has a scope for visibility checking, which isn't
replaced on replaceScope()
2013-12-02 19:56:15 +04:00
Alexander Udalov
dce9fbb91c
Report a proper error on class object in enum entry or object
...
CLASS_OBJECT_NOT_ALLOWED instead of MANY_CLASS_OBJECTS
2013-12-02 19:56:13 +04:00
Alexander Udalov
2e4807856f
Don't create NamespaceType for enum entries
...
Enum entry expressions have the type of their enum, so it shouldn't be possible
to access static nested classes of enum entries from outside.
This fixes BlackBoxCodegenTestGenerated$CallableReference.testEnumNameMethod
2013-12-02 19:56:13 +04:00
Alexander Udalov
6f31692996
Import nested classes both from classes and their class objects
...
It seems that this incorrect behaviour was introduced in 726bcb5
2013-11-18 19:51:29 +04:00
Alexander Udalov
e8089cc461
Synthetic class object of enum should always be public
...
#KT-2834 Fixed
2013-11-18 19:46:01 +04:00
Alexander Udalov
776b5d0a6e
Minor, move enum diagnostic tests, add another test
2013-11-14 19:11:20 +04:00
Alexander Udalov
b612989eb0
Remove 'inner enum' hack & fix Java inner class resolve
...
Inner enum was placed into the class object of the outer class. Remove the
hack from frontend, frontend.java & backend. Fix tests
#KT-1174 In Progress
2013-01-16 23:11:47 +04:00
Alexander Udalov
37fd9cea08
Place inner enum into its parent's class object
...
#KT-2771 In Progress
ClassifierCollector now collects all enum declarations inside non-static
classes. After all declarations are done, it processes these enums: creates
a class object if it's not present, reports errors on each enum if a class
object is not allowed, and puts every enum into this class object otherwise,
recording this fact to trace.
2012-09-20 15:02:13 +04:00
Nikolay Krasko
db830c88b4
EA-38787 Exception because of enumeration without name
2012-09-18 19:26:56 +04:00
Natalia.Ukhorskaya
694f1f45f8
KT-2714 'enum' annotation should only be allowed on classes
...
#KT-2714 Fixed
2012-09-17 15:27:49 +04:00
Natalia
4303083945
KT-322 Prohibit inheriting classes from enums
...
#KT-322 Fixed
2012-09-06 17:24:37 +04:00
Natalia
07cf73ecef
KT-2697 Prohibit enum inheritance
...
#KT-2697 Fixed
2012-09-06 17:24:36 +04:00
Andrey Breslav
c027b4149b
Test for KT-2529 Support importing enum members using wildcard
...
#KT-2529 Fixed
2012-08-31 14:38:54 +04:00
Natalia.Ukhorskaya
2c4960b4fb
Test for abstract function in java enum.
2012-08-21 21:40:51 +04:00
Natalia.Ukhorskaya
6920e497d5
JetDiagnosticsTest for using java enum in kotlin.
2012-08-21 21:40:47 +04:00