Pavel V. Talanov
96e54b4872
Test accessing class object from java
2015-02-16 15:38:45 +03:00
Pavel V. Talanov
7b837e2631
Updata test data: txt files for diagnostics tests
2015-02-16 15:38:36 +03:00
Pavel V. Talanov
a1f4c06a49
Update test data that mentioned old JvmAbi constants
2015-02-16 15:38:34 +03:00
Pavel V. Talanov
894c3bceac
Test: add jvm backend test for named class object
2015-02-16 15:38:29 +03:00
Alexander Udalov
9b28e19551
Use CodegenContext to determine outer class & enclosing method
2015-02-11 18:10:49 +03:00
Alexander Udalov
c417d984c4
Minor, move tests under common directory
2015-02-11 18:10:46 +03:00
Alexander Udalov
32c371dd41
Minor, uncomment previously failing checks
...
#KT-5092 Fixed
2015-02-11 18:10:44 +03:00
Alexander Udalov
e7a744b315
Make JetTypeMapper aware of SAM constructor arguments
...
This obsoletes 'replaceName' workaround that was present in ClosureCodegen but
missing in other crucial call sites of mapSignature, e.g. generation of
EnclosingMethod info
#KT-6691 Fixed
2015-02-11 18:10:41 +03:00
Alexander Udalov
a280599969
Fix wrong checkcast for === on objects
...
#KT-6747 Fixed
2015-02-11 18:10:35 +03:00
Alexander Udalov
5c2d0c6173
Generate not-null assertions on extension receiver parameters
2015-02-03 21:40:39 +03:00
Dmitry Jemerov
6442b61db8
Don't generate redundant initializers for 'var' properties.
...
Since only 'val' properties store initializers as compile time constants in descriptors, we need to take the initializer expression from the PSI and try to evaluate it as a constant.
#KT-6661 fixed
2015-01-30 14:05:25 +01:00
Alexander Udalov
ae6ffeb88a
Skip inlined lambdas when determining EnclosingMethod
...
#KT-6368 Fixed
2015-01-20 21:02:57 +03:00
Alexander Udalov
baea660a0b
Rewrite hack in codegen for lambdas in anonymous object super calls
...
Synthetic ClassDescriptor created in codegen for lambdas and such should have
correct container, because it'll be used in generation of InnerClasses
2015-01-16 21:48:57 +03:00
Denis Zharkov
6f94ebb9d6
Refined redundant null check optimization
2015-01-15 15:13:05 +03:00
Denis Zharkov
5675d2b26b
Dead code elimination
...
#KT-6602 Fixed
#KT-6305 Fixed
#KT-5656 Fixed
2015-01-15 15:13:05 +03:00
Alexander Udalov
76d11330ee
Fix === comparison for primitive types
...
#KT-6590 Fixed
2015-01-13 17:40:21 +03:00
Alexander Udalov
f3b2193afd
Delete traces of "jet" in test data and unimportant code
2015-01-13 15:02:16 +03:00
Alexander Udalov
2b8c358614
Minor, drop irrelevant package from test data comment
2015-01-11 05:09:03 +03:00
Alexander Udalov
7f90dc3934
Regenerate tests
2015-01-03 00:20:28 +03:00
Alexander Udalov
6cd6704bcf
Remove obsolete codegen test data
2014-12-29 19:32:09 +03:00
Alexander Udalov
11dfdfc123
Minor, add test for obsolete issue
...
#KT-4228 Obsolete
2014-12-26 22:52:39 +03:00
Michael Nedzelsky
eded72d633
fix KT-6192: VerifyError when using spreads with primitive arrays
...
#KT-6192 Fixed
2014-12-25 22:07:24 +03:00
Michael Bogdanov
9e864f3c36
Fix java visibility publicity
...
#KT-6478 Fixed
2014-12-23 16:28:44 +03:00
Andrey Breslav
6728a384e4
KT-4881 Annotation resolved to package should be compile-time error
...
#KT-4881 Fixed
2014-12-23 15:18:47 +03:00
Denis Zharkov
04e560bc74
Get reified signature from JetTypeMapper
...
#KT-6485 Fixed
2014-12-18 21:12:52 +03:00
Andrey Breslav
120c344f11
Fix access to private static native functions
2014-12-16 16:23:35 +03:00
Andrey Breslav
6916c0f5cc
Test for native property accessors
2014-12-16 16:23:34 +03:00
Andrey Breslav
6596c6d943
Support native top-level functions
2014-12-16 16:23:33 +03:00
Andrey Breslav
56216c4bd8
Test for function with default parameters marked native
2014-12-16 16:23:32 +03:00
Andrey Breslav
a94a1f8a6f
Report error on native declaration with a body
2014-12-16 16:23:30 +03:00
Andrey Breslav
27d403ee23
Make native class object members delegate to static methods in the outer class
2014-12-16 16:23:28 +03:00
Andrey Breslav
d20651b881
Support native on [platformStatic] functions
2014-12-16 15:17:33 +03:00
Andrey Breslav
cba6652c05
Simplistic support for native flag
2014-12-16 15:17:33 +03:00
Svetlana Isakova
5b4f10e698
Made vararg parameters have Array<out T> type
...
instead of simply Array<T>
#KT-1638 Fixed
#KT-2163 Fixed
#KT-3213 Fixed
#KT-4172 Fixed
#KT-5534 Fixed
2014-12-12 23:08:28 +03:00
Alexander Udalov
d71220f8b1
Drop ArrayGenTest, move test case to generated
2014-12-11 16:04:04 +03:00
Denis Zharkov
c6d6aebd2f
Added tests for stdlib Array constructors
2014-12-11 16:04:04 +03:00
Denis Zharkov
654411a0b0
Refactored tests using Array constructor:
...
Some moved to tests with stdlib
Some changed to use arrayOfNulls
2014-12-11 16:04:03 +03:00
Denis Zharkov
9910f7cfbd
Added test demonstrating usage of reified TP for dependency injection
2014-12-08 21:30:54 +03:00
Stanislav Erokhin
fc8cec9509
Create PRIVATE_TO_THIS visibility
2014-12-08 18:24:30 +03:00
Michael Bogdanov
328dedc415
Fix for KT-6383: Can't access a private static member of class object
...
#KT-6383 Fixed
2014-12-03 15:49:20 +03:00
Stanislav Erokhin
b2774a9cd0
Fix classpath test for openjdk
2014-12-02 13:47:48 +03:00
Alexander Udalov
8dae1b62dd
Add CharSequence.subSequence
...
This is done primarily for JVM interoperability, otherwise it's impossible to
inherit from CharSequence there. On JS subSequence at the moment just invokes
substring.
#KT-5956 Fixed
2014-11-27 20:38:19 +03:00
Alexander Udalov
4d95bcfc7e
Rename CharSequence.get to charAt
...
This is done for JVM interoperability. There's still a member function
String.get() and an extension function "get" on CharSequence
#KT-1730 Fixed
#KT-5389 Fixed
2014-11-27 20:38:18 +03:00
Alexander Udalov
a7b88e9485
Make CharSequence.length a function instead of property
...
And String.length as well.
This is done for JVM interoperability: java.lang.CharSequence is an open class
and has a function 'length()' which should be implemented in subclasses
somehow.
A minor unexpected effect of this is that String.length() is now a compile-time
constant (it wasn't such as a property because properties are not supported in
compile-time constant evaluation)
#KT-3571 Fixed
2014-11-27 20:38:17 +03:00
Denis Zharkov
3b2d0b88f3
Supported nested reified parameter declarations
...
Also switched to using type names as identifiers instead of their
indices
2014-11-27 15:15:04 +04:00
Denis Zharkov
080610c208
Wrap parentCodegen before generating from inline
2014-11-27 14:58:04 +04:00
Alexander Udalov
a6d759ff96
Minor, add test for obsolete issue
...
#KT-3587 Obsolete
2014-11-25 23:16:56 +03:00
Michael Bogdanov
8fc3a37989
Fix for KT-6312: Compiler crashes accessing inherited property of class object
...
#KT-6312 Fixed
2014-11-24 13:10:59 +03:00
Andrey Breslav
0eee83b6ec
Lazy logs removed
2014-11-21 18:59:45 +03:00
Svetlana Isakova
b71260f54e
Moved tests
...
that are used both for codegen & diagnostics to codegen/box/diagnostics
2014-11-21 14:02:45 +03:00