Denis Zharkov
6ca7d2aad7
Regenerate test data
...
Add properties for Java annotations
2015-04-23 08:27:41 +03:00
Zalim Bashorov
1ef9b9db1f
JS backend: add the support function expression
...
#KT-7242 Fixed
2015-04-22 12:48:22 +03:00
Zalim Bashorov
02071c5bdd
Minor: move function expression tests to separate directory
2015-04-22 12:48:21 +03:00
Alexey Sedunov
d815634233
Control-Flow: Assign pseudo-values to local functions (except those
...
declared directly in the block)
2015-04-21 17:10:46 +03:00
Alexey Sedunov
5b1906fb13
Control-Flow: Add tests for pseudo-values of labeled expressions
2015-04-21 17:10:45 +03:00
Mikhail Glukhikh
27625b04e1
Refactoring of JetTypeInfo / BindingContext. Loop data flow analysis corrected.
...
Now BindingContext includes expression type info instead of jump out possible, data flow info and expression type.
getType() was added into BindingContext, getType() and recordType() were added into BindingTrace.
JetTypeInfo now includes also jump possible flag and jump point data flow info.
Old TypeInfoWithJumpInfo deleted.
TypeInfoFactory introduced to create JetTypeInfo instances.
A pack of extra tests for break / continue in loops added.
2015-04-21 15:29:07 +03:00
Dmitry Jemerov
14b92404cd
add test for private-to-this visibility in traits
2015-04-21 14:13:30 +02:00
Dmitry Jemerov
8d922dda4d
private members of traits are not open by default
...
#KT-4171 Fixed
2015-04-21 14:13:29 +02:00
Denis Zharkov
6ef2340eb5
Migrate type of throws parameter to KClass
...
Change declaration, testData and codegen parts for `throws`
2015-04-21 08:08:31 +03:00
Alexander Udalov
6f8694976d
Fix test data
2015-04-20 23:30:05 +03:00
Alexander Udalov
2a3f658ea7
Minor, add missing space to error message
2015-04-20 18:57:31 +03:00
Michael Bogdanov
2f88f830b8
Test for KT-5969: Codegen overrides all java 8 default methods with delegation to unexisting Timpl
...
#KT-5969 Fixed
2015-04-18 14:45:16 +03:00
Michael Bogdanov
115c4b78c0
Added sam test on java8 interface with default method
2015-04-18 14:45:16 +03:00
Michael Bogdanov
7e3403f602
Add java8 test module and run configuration with initial test
2015-04-18 14:45:15 +03:00
Denis Zharkov
7325a459e5
Ignore diagnostic on tests supposed to be dropped soon
2015-04-17 18:52:16 +03:00
Denis Zharkov
f53baebf89
Show warning on usages of javaClass<T>() in annotations loaded from Java
2015-04-17 18:50:37 +03:00
Denis Zharkov
482b4e3688
Minor, split and clean tests
...
Tests that are using javaClass supposed to be deleted soon
while other ones just check that annotation loaded correctly
and shold use class literals
2015-04-17 17:40:41 +03:00
Michael Bogdanov
48aef1eb28
Fix for KT-6895: Compile error on Android (EXCEPTION FROM SIMULATION) when declaring locals in an inline function
...
#KT-6895 Fixed
2015-04-17 14:24:35 +03:00
Michael Bogdanov
0080ebd386
Fix for KT-7273: Bad local variable type when using non-local return
...
#KT-7273 Fixed
2015-04-17 14:24:34 +03:00
Svetlana Isakova
d40fd440b0
KT-7433 Type inference pushes Unit inside generic function with lower bound constraint
...
#KT-7433 Fixed
#KT-7351 Fixed
2015-04-16 21:02:42 +03:00
Mikhail Glukhikh
109e0abb6d
Review fixes for mutable variable smart casting (mostly refactoring).
...
DataFlowValue.isPredictable() introduced instead of isStableIdentifier().
Parenthesized assignments are treated correctly.
2015-04-16 20:11:03 +03:00
Mikhail Glukhikh
e97e792674
Review fixes for smart casts in / out loops.
...
LoopTypeInfo became TypeInfoWithJumpInfo rewritten in Kotlin.
Fixed a bug with break inside Elvis inside a loop, a pack of related tests added.
isTrueConstant moved to JetPsiUtil.
2015-04-16 20:11:01 +03:00
Mikhail Glukhikh
d5aed62410
Smart casts for local variables not captured in a closure and not changed in a loop, see #KT-3175.
...
isLocalVariable added. Assignment / initialization analysis.
Control whether a variable is changed in a loop at the beginning and at the end of the loop.
Control whether a variable is captured in a closure. #KT-3175 Fixed. #KT-2266 Fixed.
Tests for variable null safety and for variables is/as operations.
Loop / closure / variable property tests are included.
Old tests changed in accordance with KT-3175. In particular, all three of testSmartcastImpossible were fixed.
2015-04-16 20:10:58 +03:00
Pavel V. Talanov
818a6b5c2e
Fix various tests and test data
...
Since we now distinguish between binaries and java source roots
2015-04-16 16:40:37 +03:00
Pavel V. Talanov
94cc847c48
Drop module "ktm" scripts and support java source roots in "xml" modules
...
Drop kotlin.modules package from runtime
Move adapted classes into compiler
Unsupport files with "ktm" extension
Delete code for loading module scripts
Drop tests for module scripts
Separate section for java source roots in xml script generator/parser
2015-04-16 16:40:19 +03:00
Denis Zharkov
b2a2e4ae92
Add bytecodeText test for annotation with default value
...
It checks that no value is emitted if argument is not specified
2015-04-16 10:40:20 +03:00
Denis Zharkov
97e4a899cf
Add specific warning when KClass literal expected
2015-04-16 10:40:20 +03:00
Denis Zharkov
98ffa3b475
Render Class-constant as javaClass<T>()
2015-04-16 10:40:20 +03:00
Denis Zharkov
2a03994ecb
JVM: Write signature for annotation parameter
2015-04-16 10:40:20 +03:00
Denis Zharkov
294eb1dceb
Load annotation parameter's type for ctr as contravariant
...
See comment in code
2015-04-16 10:40:20 +03:00
Denis Zharkov
8f0e290dec
Create additional constructor for java annotation with Class-parameter
...
One of them with KClass<*> parameters and other with java.lang.Class<*>.
It's needed just for backward compatibility, and second one is deprecared.
2015-04-16 10:40:20 +03:00
Denis Zharkov
f5111180c3
Load Class<?> as KClass<*> for Java annotations parameters
2015-04-16 10:40:20 +03:00
Denis Zharkov
cc17f7d82d
JVM: Support using KClass as annotation parameter type
2015-04-16 10:40:19 +03:00
Denis Zharkov
82674e56b9
Frontend: Allow using KClass as annotation parameter type
2015-04-16 10:40:19 +03:00
Dmitry Jemerov
5bbbadeb37
add a token for inline Markdown links; add test for identifier links with labels
2015-04-15 19:48:46 +02:00
Ilya Gorbunov
a20f1bdb6e
Change the expected diagnostic output after reduce signature has been changed.
2015-04-15 17:34:09 +03:00
Michael Nedzelsky
6842c98285
JS: tests for KT-7357: extension functions from external KJS library couldn't be called in some cases
2015-04-15 17:00:06 +03:00
Mikhail Glukhikh
1544755838
Test refactoring
2015-04-14 19:11:26 +03:00
Mikhail Glukhikh
8184bccda1
Extended loop data flow analysis was implemented. #KT-6283 Fixed. #KT-6284 Fixed.
...
A local descendant of JetTypeInfo added to save separately current data flow info and jump point data flow info together with jump opportunity.
Now data flow analysis know about loop bodies that must be executed at least once (do...while, while(true) until the first break/continue).
A set of tests for smart casts in and after loops.
Existing DoWhile and WhileTrue resolve tests corrected in accordance.
2015-04-14 19:11:22 +03:00
Dmitry Jemerov
9434e4bee9
mark wrapper methods that pass default values of parameters as synthetic
...
#KT-7314 Fixed
2015-04-13 15:26:20 +02:00
Dmitry Jemerov
900a16a315
deprecate required classes for traits
2015-04-13 16:22:22 +03:00
Michael Bogdanov
7b0f6018dc
Fix nameless function inlining
2015-04-13 16:11:21 +03:00
Michael Bogdanov
7025a4f933
Test framewrk update: check lambda inlining
2015-04-13 16:11:21 +03:00
Michael Bogdanov
e200b97ca4
Inline callable references
...
#KT-6900 Fixed
2015-04-13 16:11:21 +03:00
Dmitry Jemerov
991db29731
drop covariant specialisation for supertypes
2015-04-13 15:28:50 +03:00
Evgeny Gerashchenko
508c7a58b6
KT-7377 Throwable: Empty PSI elements should not be passed to createDescriptor from UnusedReceiverParameterInspection
...
#KT-7377 fixed
2015-04-13 15:04:00 +03:00
Alexander Udalov
92fa107471
Delete three diagnostic tests which rendered parts of JRE
...
- PackageLocalClassNotImportedWithDefaultImport.kt goes to codegen multi-file
tests. File in java.lang moved to kotlin.jvm, which seems irrelevant to the
test, because java.lang is prohibited by the VM
- MergePackagesWithJava.kt (KT-689, Java and Kotlin in the same package) and
kt955.kt (Unable to import from default package) are considered too obsolete
to even test and are thus deleted
Also check that there's no more than 1000 lines in the .txt file in diagnostic
tests.
2015-04-10 20:35:18 +03:00
Alexander Udalov
5c06204658
Move ExpectLoadError from tests to testData
...
To avoid loading all sources under "compiler/tests" in each test. Saves about
20-25% when running LoadJavaTestGenerated
2015-04-10 20:26:33 +03:00
Michael Bogdanov
67c2f7105b
Fix for KT-6863: Internal compiler error folding functions
...
#KT-6863 Fixed
2015-04-10 08:59:27 +03:00
Michael Bogdanov
a24d845bd0
Test for KT-7009: VerifyError: Bad type on operand stack in daload
...
#KT-7009 Obsolete
2015-04-10 08:59:27 +03:00