Commit Graph

889 Commits

Author SHA1 Message Date
Alex Tkachman 301b55788e KT-2269 fix: hashCode & equals for primitives 2012-08-04 08:55:38 +03:00
Alex Tkachman bcec8b7c36 KT-2331 fix: proper dealing with privite property setters 2012-08-04 08:10:38 +03:00
Alex Tkachman e8debde256 test for unreproducable KT-2288 2012-08-03 12:03:36 +03:00
Alex Tkachman 0e4a8660fd KT-2416 fix contains for ranges with primitive parameters 2012-08-03 09:15:53 +03:00
Alex Tkachman 8ba9e9f51b even more exact test for KT-2509 2012-08-03 08:08:03 +03:00
Alex Tkachman 4f385e89d3 test for unreproducable KT-2509 2012-08-03 08:01:25 +03:00
Alex Tkachman abee22ccca KT2482 fix - empty if codegen 2012-08-03 07:53:12 +03:00
Alex Tkachman 2df30416cd KT-2485 fix - coercion boolean to Any? etc. 2012-08-03 07:00:25 +03:00
Alex Tkachman d6e614a2d4 KT-2566 fix - accessors naming 2012-08-02 19:07:55 +03:00
Alex Tkachman b52b92cd31 one more test for scripts 2012-08-02 09:31:32 +03:00
Alex Tkachman 29054586d3 default imports added to script definitions 2012-08-01 23:05:56 +03:00
Alex Tkachman e134969896 making script classes useful/accessable for the rest of the world 2012-08-01 09:58:01 +03:00
Alexander Udalov 926e01be9c decrease recursion depth to fix failing codegen test on Android 2012-07-31 20:45:06 +04:00
Alexander Udalov dcd5cad427 KT-2280 Recursive function declared in function results in VerifyError
#KT-2280 Fixed

A closure's constructor should not take an instance of itself as an
argument, because it would require caller to pass yet uninitialized
value. Instead it should initialize a corresponding field with 'this'
2012-07-31 19:38:14 +04:00
Alexander Udalov 7609d0de8c testcase for EA-37609 2012-07-30 20:58:42 +04:00
Alexander Udalov a286c475e4 test for KT-1939
#KT-1939 fixed
2012-07-30 19:20:04 +04:00
Alexander Udalov cb9c18b7ad KT-2498 Bridge method is not generated for method when generic parameters are substituted in superclass
#KT-2498 Fixed

generateBridgeIfNeeded() now works as follows: for a given method, find
which declared methods does this method override via breadth-first search.
For each such declared method, generate a bridge if and only if its
signature is different. Keep different methods' signatures in a set to
avoid duplicated bridge signatures.
2012-07-30 18:27:01 +04:00
Alex Tkachman 4685679eaf Merge remote branch 'origin/master' 2012-07-30 13:25:19 +03:00
Alex Tkachman a98cd7aa0f script renamed 2012-07-30 13:24:59 +03:00
Alexander Udalov b55ef01e54 KT-2382 Placing final modifier to overriden method in trait produces runtime exception
#KT-2382 Fixed
2012-07-30 13:31:11 +04:00
Alex Tkachman 7c2d394412 properr names for scripts 2012-07-29 23:58:45 +03:00
Alex Tkachman f8391619a5 configurable script languages 2012-07-29 21:32:53 +03:00
Alex Tkachman 0b327d29bc fix KT-2481: no bridge for supercall 2012-07-28 14:17:42 +03:00
Alexander Udalov fe1e6fc0d3 KT-2541 VerifyError on substituting type after inheritance from trait
#KT-2541 Fixed
2012-07-27 19:43:14 +04:00
Alexander Udalov 6eb4cf5aa5 KT-2423 Jump after condition check in inner loop is to the wrong label
#KT-2423 Fixed
2012-07-23 20:11:27 +04:00
Evgeny Gerashchenko a9564e7580 KT-2414 for (x in 0 downto 0) makes no steps
#KT-2414 fixed
2012-07-21 20:34:25 +04:00
Svetlana Isakova eb82eba121 tests for type inference
#KT-1800 fixed
 #KT-1029 fixed
 #KT-1031 fixed
 #KT-1558 fixed
 #KT-1944 fixed
 #KT-2179 fixed
 #KT-2294 fixed
 #KT-2320 fixed
 #KT-2324 fixed
2012-07-20 19:34:51 +04:00
Alexander Udalov 2ac70ee35f KT-2457 Verify error when comparing not null value with null in when
backend-side changes
2012-07-20 17:43:38 +04:00
Alexander Udalov db008d5d38 KT-2466 "When" on boolean produces VerifyError
#KT-2466 Fixed
2012-07-19 21:39:41 +04:00
Andrey Breslav bf503e9a4b KT-2363 Drop secondary constructors
#KT-2363 Fixed
2012-07-19 19:53:06 +04:00
Dmitry Jemerov 1ac60dae5e don't use PSI for calculating the type of first argument of trait function implementation 2012-07-13 16:12:33 +02:00
Dmitry Jemerov 40e4e32eab object declarations need trait methods to be generated too (KT-2399) 2012-07-12 17:45:41 +02:00
Dmitry Jemerov de3f5d0e2d avoid coercing 'this' to a supertype; cleaner handling of stackvalues for 'this' and 'super' (KT-2395) 2012-07-11 16:59:01 +02:00
Alex Tkachman 8012725d38 KT-2060 fix 2012-07-11 13:10:54 +03:00
Dmitry Jemerov 1fe9c291f1 ugly and incomplete solution for using correct bytecode instruction when accessing properties inherited from traits (KT-2391) 2012-07-10 21:21:16 +02:00
Dmitry Jemerov 57c1b05684 generate correct cast for arguments of bridge methods (KT-2390) 2012-07-10 19:59:33 +02:00
Alexander Udalov a07954eaac load 'this' instead of $classobj if we're inside class object's constructor
#KT-2384 Fixed
2012-07-09 22:16:19 +04:00
Alexander Udalov 06f2cbc891 object literals now capture expressions from 'by' delegate specifier
#KT-2224 Fixed
2012-07-09 14:51:10 +04:00
Evgeny Gerashchenko 040d2f8945 Changed "jdk headers" to "jdk annotations" in test and test data directories names. 2012-07-07 23:07:20 +04:00
Alex Tkachman b989c701e9 patch from audalov for KT-1959 2012-07-05 15:49:24 +03:00
Evgeny Gerashchenko 77df57c150 Replaced jdk-headers with jdk-annotations everywhere. 2012-07-03 13:36:58 +04:00
Andrey Breslav ac06825f08 jet.Any: modality and constructor straightened 2012-06-26 23:13:53 +02:00
Evgeny Gerashchenko 95249099eb KT-2279 Setter generated for abstract var is not abstract
#KT-2279 fixed
2012-06-20 19:15:41 +04:00
Evgeny Gerashchenko 9e727623c2 Fixed accessing namespace private members from inner classes. Added test. 2012-06-19 22:47:58 +04:00
Evgeny Gerashchenko 5ecfd71611 Private outer functions are now accessed via bridge methods. Added tests. 2012-06-19 22:36:03 +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 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 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
Natalia.Ukhorskaya 4826723c78 Add check for syntactic errors when analyzing files with error checking 2012-06-14 17:38:42 +04:00
Stepan Koltsov b0553ff651 properly handle empty lines in REPL 2012-06-09 23:25:41 +04:00