Alexander Udalov
e8088ec6a7
Write correct InnerClasses attribute to class files
...
InnerClasses should contain entries for every inner and every outer class,
according to the JVMS
#KT-3390 Fixed
2013-03-12 14:57:14 +04:00
Alexander Udalov
41a416da60
Move blackBoxFile() testData to box/ directory
...
Delete all test methods (and empty test classes), since they'll be
auto-generated
2013-01-28 18:20:17 +04:00
Alexander Udalov
74467df3ef
Sort out blackBox*() methods
...
- get rid of blackBox(), extract tests into files
- delete single-file usages of blackBoxMultiFile()
- inline some other blackBox methods
- suppress exception in blackBoxWithJava()
2013-01-25 23:06:42 +04:00
Alexander Udalov
de37f73c8d
Remove tests on RTTI
...
It was never implemented
2013-01-24 21:12:27 +04:00
Alexander Udalov
0df71bd696
Refactor codegen tests
...
- initialize environment only once in setUp()
- add comments on why some tests are disabled
- modify and rename some tests
- re-enable now working tests
- extract some tests into files with box()
- remove useless 'throws' declarations and commented code
2013-01-24 21:12:27 +04:00
Alexander Udalov
99827d10a8
Rename *.jet -> *.kt in codegen tests
2013-01-24 21:12:27 +04:00
Alexander Udalov
43c37398af
Labeled this & super to nested class' outer is an error
...
#KT-1174 In Progress
2013-01-16 23:11:42 +04:00
Alexander Udalov
5d92453532
Inaccessible outer class member is now an error
...
#KT-1174 In Progress
2013-01-16 23:11:41 +04:00
Alexander Udalov
288e3a7b40
Cast arguments to proper types when generating delegates
...
Also minor refactoring in a couple places to adopt this style
2012-10-30 16:47:50 +04:00
Sergey Mashkov
edb8797fa6
KT-2987 java.lang.AbstractMethodError/java.lang.NoSuchMethodError for delegated class by parameterized parent
...
#KT-2987 Fixed
2012-10-25 16:26:58 +04:00
Natalia.Ukhorskaya
c5db89e534
Generated field for classObject is now final
...
EA-38323 Fixed - Illegal field modifiers in class
2012-09-14 16:41:13 +04:00
Alex Tkachman
53f145b533
optimization of delegates by val property
2012-09-08 09:34:02 +03:00
Andrey Breslav
7b01ce5acb
Test for KT-2532 Exception on trying to override delegated member.
...
#KT-2532 Fixed
2012-09-07 14:49:02 +04:00
Kirill Berezin
6e951685de
KT-2657 Fixed incorrect stack values order in delegation methods codegen #KT-2657 Fixed
2012-09-06 23:54:14 +04:00
Kirill Berezin
82a5beddea
do not copy overrides for the delegated methods, it causes failure of delegation to traits which extend other traits
2012-09-06 20:27:43 +04:00
Kirill Berezin
1061e1ef69
do not generate delegates when the class already has such method either declared or delegated (report an ambiguity in this case)
...
Merge conflict resolved by committer
2012-09-06 20:27:43 +04:00
Kirill Berezin
b84f068c33
kt-1760 delegation to java iface:
...
- removed codegen's unnecessary lookup for a declaration
- skipped class' only supertype (if any) methods when delegating
2012-08-30 14:03:43 +04: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
Andrey Breslav
bf503e9a4b
KT-2363 Drop secondary constructors
...
#KT-2363 Fixed
2012-07-19 19:53:06 +04:00
Evgeny Gerashchenko
5ecfd71611
Private outer functions are now accessed via bridge methods. Added tests.
2012-06-19 22:36:03 +04:00
Svetlana Isakova
0fd882741b
function invocation with only type parameters prohibited
2012-05-23 22:04:22 +04:00
Stepan Koltsov
5e77ca553c
make most codegen tests are indenendent from jdk-headers/stdlib now
2012-05-01 23:49:22 +04:00
Stepan Koltsov
d71723131d
Revert "enhance tests (mostly codegen)" temporarily
...
This reverts commit 95f9bcbacb .
2012-05-01 21:21:46 +04:00
Stepan Koltsov
95f9bcbacb
enhance tests (mostly codegen)
...
* drop dependency on stdlib/alt-headers in the most tests
* assign to myEnvironment at most once in JetLiteFixture
* more tests do not compile runtime
2012-05-01 19:11:48 +04:00
Svetlana Isakova
b5bf4a626c
Reverted explicitly specifying visibility modifier while override
2012-04-18 19:02:24 +04:00
Svetlana Isakova
8d6d292150
more tests for resolve order
2012-04-18 19:02:24 +04:00
Svetlana Isakova
4d62fbad2b
changed resolution order: first priority is 'local extensions; members; nonlocal extensions', than by implicit receivers (before was vice versa)
2012-04-17 14:05:45 +04:00
Svetlana Isakova
9b2eeb076e
KT-1717 Don't make member visibility inherit when it is not declared explicitly
...
#KT-1717 Fixed
2012-04-03 19:26:28 +04:00
Alex Tkachman
18990e2c1b
bug with delegation from EA
2012-02-22 13:02:48 +02:00
svtk
6251b413a2
New check rules for inc, plus & plusAssign
...
KT-1176 arrayList[0]++. Setter is stored for array access expression when it's needed
2012-02-03 12:10:12 +04:00
svtk
70d0cd882b
KT-650 Prohibit creating class without constructor
2012-01-24 16:58:29 +04:00
Alex Tkachman
e61a9f62ba
crazy bug with constructing object of the same class as calling class
2012-01-24 13:30:38 +02:00
Andrey Breslav
6aad3b2662
GreatSyntacticShift: Codegen testdata fixed
2011-12-20 22:56:13 +04:00
Alex Tkachman
d272979b09
thread ring benchmark and related bug fixes (non null array creation and wrong signature of enclosing class)
2011-12-07 11:51:50 +02:00
svtk
734e8ee3a2
Existing tests correction: forbid val reassignment
2011-10-24 17:40:16 +04:00
Dmitry Jemerov
ec6dec0d37
separate compiler and plugin tests
2011-10-20 16:21:18 +02:00