Michael Bogdanov
e1fa6491c1
Test for obsolete KT-10044: "Don't know how to generate outer expression for class" with lambda in init block
...
#KT-10044 Obsolete
2016-01-29 12:42:37 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Mikhail Glukhikh
4e44466cf9
Exposed visibility deprecation warnings made errors + relevant test fixes
2015-11-20 15:21:01 +03:00
Michael Bogdanov
9daa44566b
Fix for KT-5589: VerifyError when default value for parameter of local function is obtained from closure
...
#KT-5589 Fixed
2015-11-03 15:40:16 +03:00
Denis Zharkov
f0e3fd617d
Adjust testData to CharSequence.length transformation
2015-10-14 20:39:35 +03:00
Dmitry Jemerov
1523d5bcbf
removing static type assertions work in progress
2015-10-12 11:11:23 +02:00
Dmitry Jemerov
7c20630272
diagnostics for deprecated syntax of function type parameter list
2015-10-06 16:20:47 +02:00
Alexander Udalov
1a3209e1dc
Drop traits with required classes
...
#KT-4771 Rejected
2015-06-17 16:23:58 +03:00
Michael Bogdanov
319c5aec60
Fix for KT-7557: NoSuchMethodError when capturing receiver in object expression
...
#KT-7557 Fixed
#KT-7769 Fixed
2015-05-21 10:06:01 +03:00
Dmitry Jemerov
4bdf598bfe
compiler testdata: s/trait/interface
2015-05-12 19:43:17 +02:00
Denis Zharkov
44a55e5bf6
Adjust testData to new labels syntax
2015-04-29 14:03:11 +03:00
Stanislav Erokhin
3de0dff575
Migrate testdata to new lambda syntax
2015-04-07 13:08:53 +03:00
Stanislav Erokhin
b152211096
Added init keyword to testdata
2015-04-07 13:08:51 +03:00
Stanislav Erokhin
2c8cf05f7a
Added backend tests with closure local function in local class
2015-03-12 17:11:42 +03:00
Denis Zharkov
e65382e6ec
Support secondary constructors in JVM backend
...
There is a lot of changes about closures calculating and generating.
1. As classes can have more than one constructor each of them should
have closure arguments.
2. Captured variables set is the same for all of them.
3. Within constructors bodies/delegating calls closure parameters
should be accessed through method arguments because fields may be
not initialized yet.
2015-03-11 17:45:27 +03:00
Svetlana Isakova
4771986b32
KT-4656 Wrong capturing a function literal variable.
...
#KT-4656 Fixed
Reference for calleeExpression is recorded only in 'doResolveCallOrGetCachedResults'.
2014-03-08 20:55:45 +04:00
Alexander Udalov
a98434263b
Add regression test for outdated issue
...
#KT-3738 Obsolete
2014-02-12 19:17:55 +04:00
Alexander Udalov
35c7c4afd8
Fix capturing outer this in some cases in JVM codegen
...
When property initializer of some inner entity (e.g. anonymous object) contains
a reference to some outer entity (say, a property of the outer class), we need
to make sure we called "lookupInContext" on this entity's owner class, so that
"setCaptureThis" was called on the appropriate closure
#KT-4176 Fixed
2014-02-12 19:17:55 +04:00
svtk
95ca2d8f98
Fixed bug with property and function name clash.
...
Complete type inference dependent on function literals and expected type
for variable as function calls not for 'invoke' calls
2013-11-25 19:42:07 +04:00
Mikhael Bogdanov
c325dfffd9
KT-3523: VerifyError for invoke function in inner class
...
KT-4106: VerifyError: Can't access outer this in a lambda in inner class' constructor
KT-3152: VerifyError when accessing from a function of object to a field of outer outer class
#KT-3523 Fixed
#KT-4106 Fixed
#KT-3152 Fixed
2013-10-31 16:42:53 +04:00
Mikhael Bogdanov
e3882e2dfb
KT-4137: Verify error
...
#KT-4137 Fixed
2013-10-25 16:43:25 +04:00
Mikhael Bogdanov
6ca3a581b0
Test fix for previous commit
2013-09-24 14:31:58 +04:00
Mikhael Bogdanov
7520ff1420
KT-3308: Support local generic functions in codegen
...
#KT-3308 Fixed
2013-09-24 12:59:57 +04:00
Andrey Breslav
55eb994502
KT-3919 Automatic labeling of lambdas by receiving functions
...
#KT-3919 Fixed
2013-08-22 14:27:01 +04:00
Andrey Breslav
aa99c29d8d
JVM backend test for local returns
2013-08-21 20:12:05 +04:00
Alexander Udalov
974df0ed8e
Use FunctionImplN instead of FunctionN in codegen
...
Superclass of closures should now be FunctionImplN instead of FunctionN. Since
these -Impl classes are needed only in JVM, the corresponding descriptors and
types are created in the back-end only.
2013-04-22 17:59:29 +04:00
Evgeny Gerashchenko
0bc65321c2
KT-1547 Wrong layout of closure classes
...
#KT-1547 fixed
2013-03-28 15:54:51 +04:00
Mikhael Bogdanov
ad4eeb3f8a
Properly capture local functions
...
Local functions in local classed wasn't captured properly
2013-03-27 15:57:27 +04:00
Mikhael Bogdanov
932c1444a2
Fix for local closures
2013-03-26 15:43:25 +04:00
Alexander Udalov
9007a6214a
Fix closure's reference to outer closure
...
#KT-3276 Fixed
2013-01-29 22:41:58 +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