Commit Graph

4602 Commits

Author SHA1 Message Date
Nikolay Krasko 2e27fb80f3 KT-3273 Return type coalesces to Tuple0 in when/if nested clauses
#KT-3273 Fixed
2013-01-23 19:24:00 +04:00
Andrey Breslav 3e02764603 Supporting FqNames with spaces/comments inside them for deprecated 2013-01-23 18:58:38 +04:00
Andrey Breslav a7531926a4 Properly compute STATIC for light classes 2013-01-23 18:54:04 +04:00
Andrey Breslav bd3d41e7ed JetPackageDeclarationIndex removed (replaced by JetAllPackagesIndex) 2013-01-23 18:54:03 +04:00
Andrey Breslav e1831877b7 GenerationStrategy removed 2013-01-23 18:54:03 +04:00
Andrey Breslav 5e1e6c2595 Invisible private classes are not auto-imported 2013-01-23 13:10:35 +04:00
Andrey Breslav 3e13ca3fd1 Warning suppressed 2013-01-23 13:10:35 +04:00
Andrey Breslav dd15b0e222 Package class name computation changed 2013-01-23 13:10:35 +04:00
Andrey Breslav 1671015466 Visibility of nested light classes fixed 2013-01-23 13:10:35 +04:00
Andrey Breslav aa39519323 Using isTopLevelDeclaration instaed of a direct instanceof check 2013-01-23 13:10:35 +04:00
Andrey Breslav a089054b1a @NotNull added 2013-01-23 13:10:35 +04:00
Andrey Breslav 3851de11f7 Test data fixed for generic bounds 2013-01-23 13:10:35 +04:00
Andrey Breslav fe170f383a Tests fixed for [deprecated] 2013-01-23 13:10:34 +04:00
Andrey Breslav 73f8fdb474 Package classes are final 2013-01-23 13:10:34 +04:00
Andrey Breslav 9b0092190a Test: Report all errors, not just the first one 2013-01-23 13:10:34 +04:00
Andrey Breslav 20b6eae88c Annotations are also interfaces 2013-01-23 13:10:34 +04:00
Andrey Breslav dad59b20ba Interfaces are always abstract 2013-01-23 13:10:34 +04:00
Andrey Breslav 4549ad0a5e Kotlin does not support static nested classes so far 2013-01-23 13:10:34 +04:00
Andrey Breslav a23a255ec1 Top-level private classes are public in Java 2013-01-23 13:10:34 +04:00
Andrey Breslav 3bbc1e342a Checking that light classes agree with their delegates 2013-01-23 13:10:34 +04:00
Andrey Breslav 4b5eaccb94 Load physical files from tests 2013-01-23 13:10:34 +04:00
Andrey Breslav 7668141f85 Base class for tests introduced 2013-01-23 13:10:34 +04:00
Andrey Breslav 1441f6d591 Enable temporarily disabled tests 2013-01-23 13:07:02 +04:00
Natalia.Ukhorskaya db81672d23 Refactoring in android tests 2013-01-22 20:52:03 +04:00
Alexander Udalov 3b41627b9f Regenerate tests 2013-01-22 19:49:55 +04:00
Alexander Udalov 8b5607d98f Regression tests for some old EA reports
EA-35953, EA-35743
2013-01-22 19:49:14 +04:00
Alexander Udalov ab730b7dd5 Fix CompareTo intrinsic behavior in no-dot syntax 2013-01-22 19:49:10 +04:00
Nikolay Krasko 44dcdde513 Dispose GeneratedClassLoader 2013-01-22 16:05:23 +04:00
Nikolay Krasko a6c4a36ce5 Remove warnings 2013-01-22 15:53:37 +04:00
Nikolay Krasko 731f2d51f6 Free memory in tearDown() 2013-01-22 15:53:31 +04:00
Natalia.Ukhorskaya 126c21de96 Fix EA-42958 - ISE: FqName.parent 2013-01-22 11:39:49 +04:00
Kirill Berezin e89a8c684f KT-3159 Disallow overriding var with different type #KT-3159 fixed 2013-01-21 15:42:39 -08:00
Evgeny Gerashchenko ca4751653f ability to get text from annotations xml files 2013-01-21 21:16:51 +04:00
Natalia.Ukhorskaya d7c8655966 Refactoring in Codegen Tests 2013-01-21 13:26:06 +04:00
Jack Zhou 2f47e30a1a Fixed UnsupportedOperationException when a namespace is used in place of an expression. 2013-01-21 13:10:19 +04:00
Alexander Udalov 54e5b6d476 Regenerate tests 2013-01-21 13:10:00 +04:00
Alexander Udalov 4305a009df Add regression test for KT-2673
#KT-2673 Obsolete
2013-01-18 21:27:07 +04:00
Alexander Udalov ffd62eb80e Refactor ClassGenTest
Initialize environment with JDK_ONLY in setUp(), allowing to quickly launch
tests without compilation of stdlib.

Remove duplicate/unneeded/commented out tests
2013-01-18 18:04:09 +04:00
Alexander Udalov c4a3963925 Fix nested classes codegen bug
When constructing a closure, codegen in some cases incorrectly determined if
it needed to store a reference from a nested class to the outer
2013-01-18 14:59:27 +04:00
Nikolay Krasko fb9c4b92c4 Suppress all warnings for generated test classes 2013-01-17 21:05:11 +04:00
Nikolay Krasko 6ce830e999 Add information about unsupported class for label descriptor 2013-01-17 21:05:08 +04:00
Alexander Udalov 05b482e7d5 Ignore unsupported codegen tests for Android 2013-01-17 18:44:24 +04:00
Alexander Udalov 8dff523858 Add some regression tests for obsolete issues
Regenerate tests
2013-01-17 17:38:46 +04:00
Alexander Udalov 3b43d5e874 Additional loadJava/loadKotlin tests for nested classes
#KT-1174 Fixed
2013-01-17 16:45:51 +04:00
Alexander Udalov 192a81591b Resolve qualified nested class expressions
lookupNamespaceType now returns NamespaceType of a scope not only of the
namespace found by name, but also of the classifier static classes scope found
by the same name. This allows correct resolution of expressions
"Class.Nested.member()", where Class comes from Java (previously it was
resolved into a NamespaceDescriptor with a NamespaceType).

NamespaceDescriptor.getNamespaceType() is deleted since there are no sense in
namespace's NamespaceType alone anymore.

Also some minor refactoring (referencedName param is useless)

 #KT-1174 In Progress
2013-01-16 23:11:50 +04:00
Alexander Udalov c4b5577555 Do not report NO_CLASS_OBJECT when namespacesAllowed=true
Now with nested classes the expression "A.something" makes sense even when A
doesn't have a class object ("something" could be a nested class)

Also "A" expression now gets a NamespaceType with the scope of all static
nested classes of A

 #KT-1174 In Progress
2013-01-16 23:11:50 +04:00
Alexander Udalov 85bd41dfa5 Codegen tests for inner/nested classes
#KT-1174 In Progress
2013-01-16 23:11:49 +04:00
Alexander Udalov cc5ba53c80 Support inner/nested classes in JVM back-end
#KT-1174 In Progress
2013-01-16 23:11:48 +04:00
Alexander Udalov 051e94b1c5 Get rid of MutableClassDescriptorLite.isStatic()
isStatic() is now precisely !isInner()
2013-01-16 23:11:48 +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