Commit Graph

811 Commits

Author SHA1 Message Date
Alexander Udalov 646451ae96 test for KT-2216 2012-06-19 16:25:03 +04:00
Alexander Udalov 85760405dc fix tests 2012-06-19 16:24:59 +04:00
Alexander Udalov 845c3198bd KT-2164 !! does not propagate nullability information 2012-06-19 16:22:43 +04:00
Evgeny Gerashchenko ba92ce2172 Added protected top-level class and trait into front-end tests. 2012-06-16 19:38:21 +04:00
Evgeny Gerashchenko 86c8e4bf18 Tests for KT-1714 Reference to function is generated with private getter method
#KT-1714 fixed
2012-06-16 19:38:21 +04:00
Evgeny Gerashchenko e45833b213 Test for KT-2197 Reference to function is generated with private getter method
#KT-2197 fixed
2012-06-16 19:38:21 +04:00
Evgeny Gerashchenko 6a56cf04cb Test for KT-2155 Run-time error accessing internal value from other package
#KT-2155 fixed
2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 258623cb5f Added tests cases for internal visibility in ReadKotlinBinaryClass 2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 085b9704b8 Added checking for overridden properties number in NamespaceComparator. 2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 4fd520f2ea Updated test data for some of lazy resolve tests. 2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 70a8151e87 Regenerated test data for ReadJavaBinaryClassTest. 2012-06-16 19:38:19 +04:00
Evgeny Gerashchenko da1aceb090 Fixed test data for ReadJavaBinaryClassTest, avoiding "package" visibility. 2012-06-16 15:39:36 +04:00
Evgeny Gerashchenko c389264a21 Regenerated test data for ReadKotlinBinaryClassTest. 2012-06-16 15:39:36 +04:00
Evgeny Gerashchenko 9f45e7cc08 Fixed visibility generated by backend for internal members. Now they are public in JVM, but have special flag in annotation. 2012-06-16 14:36:06 +04:00
Evgeny Gerashchenko 221e412ba7 Visibilities of property accessors were not resolved for properties overriding others. They had "internal" visibility after analysis passed. 2012-06-16 14:36:05 +04:00
Stepan Koltsov 4d4a70cb83 test what happens if function is imported two times 2012-06-16 02:45:59 +04:00
Nikolay Krasko 0d46b394f3 Fix test 2012-06-15 21:26:11 +04:00
Alexander Udalov c110309bab test for KT-2212
#KT-2212 Fixed
2012-06-15 20:23:07 +04:00
Alexander Udalov efe70955dd dataFlowInfoTraversal tests 2012-06-15 17:06:41 +04:00
Stepan Koltsov 85737609b2 missing file 2012-06-14 18:49:31 +04:00
Stepan Koltsov 1c306eefd8 test for repl evaluation exception 2012-06-14 18:30:49 +04:00
Stepan Koltsov 970c2ae1f9 do not exit repl if something went wrong 2012-06-14 18:30:49 +04:00
Natalia.Ukhorskaya 4826723c78 Add check for syntactic errors when analyzing files with error checking 2012-06-14 17:38:42 +04:00
Svetlana Isakova bf05e8dd79 no error for elements with ide templates 2012-06-14 16:06:57 +04:00
Svetlana Isakova 8b1c76992f KT-2142 function local classes do not work
#KT-2142 fixed
except KT-2277 Check overloads for local declarations
2012-06-14 16:06:57 +04:00
Stepan Koltsov d0cd37528a move some cli tests from CompilerSmokeTest to CliTest 2012-06-14 16:05:16 +04:00
Stepan Koltsov 40fe33045d cli test template 2012-06-14 15:29:17 +04:00
Stepan Koltsov 1d0ef01eea REPL overload resolution ambiguity
Fix overload resolution ambiguity in REPL. Note, resolution for
functions declared in script is very different from regular programs:
in scripts function declared later wins. See
functionOverloadResolutionAnyBeatsString for example.

#KT-2272 Fixed
2012-06-14 14:06:17 +04:00
Andrey Breslav bdae2021b5 Enum test case extracted 2012-06-14 12:36:12 +04:00
Stepan Koltsov 55ffd797a4 test imports work in the following lines of REPL 2012-06-13 22:32:36 +04:00
Stepan Koltsov 6384ee9393 test imports in scripts 2012-06-13 22:32:36 +04:00
Stepan Koltsov 4d06660243 parse imports in scripts 2012-06-13 22:32:36 +04:00
Svetlana Isakova 2f0278d63b KT-2262 Cannot access protected member from inner class of subclass
#KT-2262 fixed
2012-06-13 17:03:04 +04:00
Andrey Breslav 15086258c0 Missing test data file added 2012-06-13 16:39:29 +04:00
Stepan Koltsov b0553ff651 properly handle empty lines in REPL 2012-06-09 23:25:41 +04:00
Stepan Koltsov f11767319a repl: fix two anonymous functions 2012-06-09 23:25:40 +04:00
Svetlana Isakova 2286022307 get rid of 'internal protected' visibility 2012-06-09 19:43:53 +04:00
Dmitry Jemerov ba76e1467c correct argument index for object that has outer this and closure arguments
#KT-1737 Fixed
2012-06-09 16:20:11 +02:00
Svetlana Isakova 74f4fde180 KT-2240 Wrong overload resolution ambiguity when object literal is involved
#KT-2240 fixed
2012-06-09 17:40:22 +04:00
Evgeny Gerashchenko d5b32ba70e KT-2206 ClassFormatError on loading class with property inherited from trait
#KT-2206 fixed
2012-06-09 17:13:38 +04:00
Evgeny Gerashchenko 64d1d3eda6 KT-2193 Nullability information lost for functions inherited from traits
#KT-2193 fixed
2012-06-09 17:13:38 +04:00
Evgeny Gerashchenko 208dd4e35d Revert commit because two commits fixing separate bugs were accidentally stuck together. Will recommit bugfixes separately.
Revert "KT-2193 Nullability information lost for functions inherited from traits".

This reverts commit d60818fd3e.
2012-06-09 17:13:38 +04:00
Dmitry Jemerov 0a05197454 remove attempt to optimize using 'if' statement as the last one in a loop which created far more problems that it fixed
#KT-1978 Fixed
2012-06-09 15:14:33 +02:00
Evgeny Gerashchenko d60818fd3e KT-2193 Nullability information lost for functions inherited from traits
#KT-2193 fixed
2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko f83defaa7f KT-2228 Open and final trait members are loaded as abstract from binary Kotlin classes.
Added storing modality for trait members in @JetMethod annotations.

 #KT-2228 Fixed
2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko bb0f3f733b Added alternative signature test with vararg parameter. 2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko 0d47bf5472 Added test with syntax error in alternative signature annotation. 2012-06-09 16:46:36 +04:00
Evgeny Gerashchenko 35e020e742 Removed unnecessary copyright comment in test data. 2012-06-09 16:46:36 +04:00
Dmitry Jemerov c9125d3f59 correctly call properties on annotation classes
#KT-1932 Fixed
2012-06-09 14:48:04 +02:00
Andrey Breslav d6f279926c Lazy resolve: Support for imports and Java interop 2012-06-09 15:53:29 +04:00