Evgeny Gerashchenko
cfc99b941a
Added test for ambiguous SAM adapters within one class.
2013-06-25 20:16:20 +04:00
Evgeny Gerashchenko
4980dacd33
Supported calls of SAM adapters for constructors.
2013-06-25 20:16:20 +04:00
Evgeny Gerashchenko
5e2c3fcb50
Loading SAM adapters for constructors.
2013-06-25 20:16:20 +04:00
Alexander Udalov
356c32893b
Don't use 'iinc' instruction on byte/short/char variables
...
Android run-time verifier complains when there's any possibility that a
byte/short/char local variable could contain a value not fitting into the
type's limits.
2013-06-25 18:48:28 +04:00
Alexander Udalov
68b0ad53c4
Regression test for KT-24
...
#KT-24 Obsolete
2013-06-25 18:48:20 +04:00
Alexander Udalov
aea8f3bcee
Fix and test ProgressionUtil
...
Arithmetical modulo implementation was incorrect (-10 mod 1 == 0, but was 1)
2013-06-20 22:23:02 +04:00
Alexander Udalov
53cc582040
Minor, use incrementType in for-progression codegen
...
This doesn't fix anything, just makes it easier to figure out values of what
types are used where. Progression increment is of its own type, which may be
different from asmElementType in case of Byte, Char, Short progressions
2013-06-20 22:23:02 +04:00
Alexander Udalov
8a14b62a23
KT-3574 Assertion error when using ?: in for range
...
#KT-3574 Fixed
Do not assert that resolvedCall is non-null, since getRangeAsBinaryCall can
return a BinaryCall that doesn't represent a range at all (as specified by the
comment in getRangeAsBinaryCall)
2013-06-20 16:03:00 +04:00
Alexander Udalov
3ff5acd69c
Minor, ignore android dependencies when looking for @author
2013-06-20 16:03:00 +04:00
Alexander Udalov
ee80e0b8ca
Fix loops over progressions near to MAX_VALUE/MIN_VALUE
...
#KT-492 Fixed
For Byte, Char and Short ranges, promote the type of the loop parameter to int
to avoid overflows. For Int and Long ranges at the end of the loop over a
progression we now check if the new (incremented) value of the loop parameter
is greater than the old value iff increment > 0
2013-06-20 16:03:00 +04:00
Alexander Udalov
33d6347876
Fix loop over a range literal up to MAX_VALUE
...
#KT-492 In Progress
For Byte, Char and Short explicit casting from Int is removed -- loop parameter
is already stored in an Int anyway. For Int and Long comparison "i < end" at
the beginning of the loop is replaced to "i != end" at the end of the loop + a
special check for an empty loop
2013-06-20 16:02:59 +04:00
Svetlana Isakova
eb85e9abce
fixed npe in comparing results
2013-06-20 13:43:04 +04:00
Svetlana Isakova
041505f5b8
report UNRESOLVED_REFERENCE_WRONG_RECEIVER
...
mentioning candidates with wrong receiver
2013-06-20 13:43:03 +04:00
Svetlana Isakova
342e9ebe7a
KT-3563 Compiler requiring java.io.File, and it's unclear why
...
#KT-3563 fixed
2013-06-20 13:43:02 +04:00
Svetlana Isakova
3cf133bff7
changed local extensions priority
...
local extensions aren't longer chosen before members
2013-06-20 13:43:01 +04:00
Mikhael Bogdanov
132d74200b
Partial fix for KT-3698: properly write field initializer
2013-06-19 17:02:28 +04:00
Mikhael Bogdanov
86f2a6dc69
Tests for not reproduced KT-1770, KT-3001 and KT-3414
...
#KT-3414 Can't Reproduced
#KT-3001 Can't Reproduced
#KT-1770 Can't Reproduced
2013-06-18 14:46:14 +04:00
Mikhael Bogdanov
79cf02ffb9
Fix for KT-3546: Exception when delegating to ArrayList
...
#KT-3546 Fixed
2013-06-18 13:23:54 +04:00
Mikhael Bogdanov
8ac8798266
Fix for KT-3684: IllegalAccess on a private property of the outer class
...
#KT-3684 Fixed
2013-06-18 11:20:44 +04:00
Alexander Udalov
03a818f732
Regenerate tests
2013-06-17 21:50:20 +04:00
Mikhael Bogdanov
52ead7a350
Fix for static - write NEED_SYNTHETIC flag on original descriptor
2013-06-17 17:25:40 +04:00
Mikhael Bogdanov
76d4dcef7f
Tests for renamed fields
2013-06-17 15:20:42 +04:00
Mikhael Bogdanov
4feb395dcc
Test for static
2013-06-17 15:20:41 +04:00
Mikhael Bogdanov
47fe81471a
Synthetic accessors for class object private members
...
#KT-3338 Fixed
2013-06-17 15:20:34 +04:00
Mikhael Bogdanov
4ef2f997ed
Test for not reproduced KT-2700
...
#KT-2700 Can't Reproduce
2013-06-17 10:39:23 +04:00
Andrey Breslav
6629892dad
Convert both strings to \n before comparing
2013-06-13 14:41:27 +04:00
Andrey Breslav
1f45e309d2
Do not dispose environments outside tearDown()
...
This caused exceptions (write access assertions) when tests with mock application ran after tests with full Application
2013-06-13 12:30:18 +04:00
Andrey Breslav
88c5aaeaa1
Put validation parameter into Configuration
2013-06-11 22:09:40 +04:00
Andrey Breslav
97fabf5fc2
Allow error types for some Java tests
2013-06-11 22:09:40 +04:00
Andrey Breslav
4756e9fde3
Extract method
2013-06-11 22:09:40 +04:00
Andrey Breslav
23f91e4978
Do not dispose the project before results of its analysis are used
2013-06-11 22:09:39 +04:00
Andrey Breslav
40b2478d3d
Validation integrated into NamespaceComparator
2013-06-11 22:09:38 +04:00
Andrey Breslav
d4ee6bd781
Account for error types equality
2013-06-11 22:09:37 +04:00
Andrey Breslav
9d2ea86a78
Additional checks in validator
2013-06-11 22:09:37 +04:00
Andrey Breslav
f4991fac1e
Minor changes: comment & simplify
2013-06-11 22:09:36 +04:00
Andrey Breslav
994691579b
Rename
2013-06-11 22:09:36 +04:00
Andrey Breslav
325946154b
Fix and test RecursiveDescriptorProcessor
2013-06-11 22:09:35 +04:00
Andrey Breslav
0d0d1ed300
Allow error types in some cases for lazy resolve tests
2013-06-10 15:33:11 +04:00
Andrey Breslav
77261a5922
Render properties in builtin-classes.txt
2013-06-10 15:33:10 +04:00
Andrey Breslav
3e8031acbd
Properly load objects nested into class objects from Java
2013-06-10 15:33:10 +04:00
Andrey Breslav
56f040608a
Minor: Reorder declarations
2013-06-10 15:33:10 +04:00
Andrey Breslav
aa985242ba
Some Java tests deliberately have error types
2013-06-10 15:33:09 +04:00
Andrey Breslav
a6edc21c49
Validate descriptors loaded in tests
2013-06-10 15:33:09 +04:00
Nikolay Krasko
4e67566e58
Add utility method for getting before and after text
2013-06-07 17:24:19 +04:00
Nikolay Krasko
27baad64c0
Fix recursion of checking type is supertype during resolving list of supertypes
2013-06-07 17:24:18 +04:00
Nikolay Krasko
994107ee0a
Mix class object scope to member resolution scope in lazy resolve
2013-06-07 17:24:17 +04:00
Nikolay Krasko
37cd7eb1ba
Allow resolve class declarations in class objects
...
Use INACCESSIBLE_OUTER_CLASS_EXPRESSION error for marking already resolved elements
#KT-3261 Fixed
2013-06-07 17:24:17 +04:00
Nikolay Krasko
a04ecb185e
Assert namespaces are found and remove null-pointer warning
2013-06-07 17:24:16 +04:00
Nikolay Krasko
3bd258ffa6
Refactoring: remove warnings
2013-06-07 17:24:13 +04:00
Evgeny Gerashchenko
203dd93a7a
Not loading SAM adapters from compiled Kotlin classes.
2013-06-06 21:35:02 +04:00