Alexander Udalov
4474005183
Fix codegen tests and overloads diagnostic test
2015-04-03 01:38:31 +03:00
Alexander Udalov
6279421094
Minor, add test on Java enum with specialized entry
2015-04-02 21:57:53 +03:00
Alexander Udalov
72aa3d1465
Use mock JDK in compiler tests where full JDK is not needed
...
- move some of boxWithStdlib tests under fullJdk/ directory, where they will be
compiled against the full JDK
- introduce FULL_JDK in-text directive for the reflection test as only 4 tests
out of 654 needed the full JDK
2015-04-02 21:57:48 +03:00
Dmitry Jemerov
7b507276ed
frontend diagnostics for kotlin.jvm.overloads
...
#KT-7203 Fixed
2015-04-02 20:30:36 +02:00
Dmitry Jemerov
39828bfd32
Implement kotlin.jvm.overloads annotation for generating all overloads of a method that has default parameter values.
...
#KT-2095 Fixed
fix backend-side issues with kotlin.jvm.overloads: support the annotation on constructors, generate nullablity annotations on parameters, generate generic signatures, add various tests
2015-04-02 20:30:26 +02:00
Dmitry Jemerov
e15b984232
Implement kotlin.jvm.overloads annotation for generating all overloads of a method that has default parameter values.
...
#KT-2095 Fixed
2015-04-02 20:30:01 +02:00
Alexander Udalov
4cea9ecca4
Minor, add reflection test on inherited Java property
2015-04-02 03:22:12 +03:00
Ilya Ryzhenkov
2f02024c24
checkLValue for array indexing expression should resolve set method #KT-7218 Fixed
2015-04-01 21:02:05 +03:00
Pavel V. Talanov
a986d913c3
Remove traces of class object constraints feature from parser, frontend, tests and psi
2015-04-01 20:09:34 +03:00
Svetlana Isakova
61d0bcdf76
KT-7068 None of the following functions can be called with two functions with extention function parameter
...
#KT-7068 Fixed
2015-04-01 11:57:15 +03:00
Denis Zharkov
99f1ab333e
Report illegal modifiers and annotations on primary constructor
...
#KT-7057 Fixed
#KT-6772 Fixed
2015-03-31 20:20:22 +03:00
Denis Zharkov
af2bcfb524
Parse primary constructor into separate PSI element
2015-03-31 20:20:22 +03:00
Mikhail Glukhikh
620b7954ac
Tests for already working KT-3993 and KT-5427. These test cases pass at least since M11
2015-03-31 17:15:46 +03:00
Mikhail Glukhikh
9c1551bca9
Implementation of smart casts for public / protected immutable properties that are not open and used in the same module.
...
DataFlowValueFactory and its environment refactoring: containing declaration is added into factory functions
as an argument and used to determine identifier stability. A few minor fixes. #KT-5907 Fixed. #KT-4450 Fixed. #KT-4409 Fixed.
New tests for KT-4409, KT-4450, KT-5907 (public and protected value properties used from the same module or not,
open properties, variable properties, delegated properties, properties with non-default getter).
Public val test and KT-362 test changed accordingly.
2015-03-31 16:19:03 +03:00
Dmitry Jemerov
1e536af87e
correctly calculate the number of mask arguments required for a method with default arguments
...
#KT-6816 Fixed
2015-03-27 18:51:07 +01:00
Denis Zharkov
418034add3
Prohibit instance access before super call
...
- Before this change members just left unresolved as they were absent in the
specific scope named scopeForSecondaryConstructorHeaderResolution that
created just to prohibit such accesses.
- Now they are resolved the same way as other members, but diagnostic is
repored by in-place injected CallChecker
- Drop obsolete type of class scope
#KT-6995 Fixed
2015-03-27 20:15:00 +03:00
Denis Zharkov
8c048c3e43
Refine recovery for constructors
2015-03-27 16:09:41 +03:00
Denis Zharkov
d0c72c2c3d
Mark value arguments in case of empty delegation call
...
It's useful for quickfixes for these diagnostics
2015-03-27 16:09:41 +03:00
Denis Zharkov
023e1a13a9
Do not try to detect cycles if delegation call resolution is unsuccessful
2015-03-27 16:09:41 +03:00
Denis Zharkov
7aa2642a2b
Unify reporting resolution errors for empty delegation calls
...
- Always report "There is no applicable constructor for call without arguments in superclass"
under `constructor` keyword by replacing default TracingStrategy
- Remove positioning strategy used for reporting non-applicable
for empty delegation calls
#KT-6971 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov
683bc4709f
Add test case: 'platformStatic' on constructors
2015-03-27 16:09:41 +03:00
Denis Zharkov
ce3bf423ad
Prohibit 'native' annotation on constructors
...
Currently doesn't work for primary ones
#KT-7000 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov
29b03e8175
Report illegal modifiers on secondary constructors
2015-03-27 16:09:41 +03:00
Denis Zharkov
66023e6f31
Prohibit platformName on secondary constructor
...
#KT-6999 Fixed
2015-03-27 16:09:41 +03:00
Denis Zharkov
8aa4e9bd94
Report error for inappropriate modifiers usages
2015-03-27 16:09:40 +03:00
Denis Zharkov
01e5ee718f
Allow secondary constructors without body
...
#KT-6967 Fixed
2015-03-27 16:09:40 +03:00
Alexey Sedunov
4ec1b9971f
Parser: Do not produce JetQualifiedExpression without receiver
...
#KT-7122 Fixed
2015-03-26 23:11:50 +03:00
Dmitry Jemerov
827d9d48c1
Correctly apply SAM conversions in superclass constructor calls
...
#KT-5452 Fixed
2015-03-26 19:03:42 +01:00
Michael Nedzelsky
2f7ebf677f
JS: allow js-file in library-files for cli compiler
2015-03-26 00:22:19 +03:00
Dmitry Jemerov
bb1410b20a
generate more correct bytecode for casting Unit to other types
2015-03-25 17:51:04 +01:00
Pavel V. Talanov
9d618ca767
Replace OBJECT$ usages in code and test data
2015-03-25 18:28:01 +03:00
Dmitry Jemerov
389498eb91
Merge pull request #621 from JetBrains/rr/yole/kt4142
...
Regression tests for some more obsolete issues in the JVM backend
2015-03-25 13:28:38 +01:00
Dmitry Jemerov
0467bba7a6
regression test for KT-5953
2015-03-24 21:05:23 +01:00
Dmitry Jemerov
f6093274ab
regression test for KT-5395
2015-03-24 20:59:56 +01:00
Dmitry Jemerov
9d229ad271
regression test for KT-4259
2015-03-24 20:49:53 +01:00
Dmitry Jemerov
4f0cf2f918
regression test for obsolete issue KT-4142
2015-03-24 19:14:18 +01:00
Dmitry Jemerov
2767e789fb
when generating coercion, take into account the original type of the expression
2015-03-24 18:01:56 +01:00
Alexey Tsvetkov
5ff5cea17a
JS: report error when js() produces empty AST
2015-03-23 16:43:49 +03:00
Alexey Tsvetkov
b5797eb15b
JS: added tests for recursion cycle in inline functions
2015-03-23 16:43:48 +03:00
Alexander Udalov
7e69a5ac9a
Don't create KProperty instance for synthetic field
...
#KT-5759 Fixed
2015-03-23 16:30:26 +03:00
Alexander Udalov
9cf0720925
Fix KClass.simpleName for local classes
2015-03-23 16:30:24 +03:00
Zalim Bashorov
d569ea5974
JS frontend: added diagnostic about secondary constructors not supported yet.
2015-03-23 13:52:56 +03:00
Zalim Bashorov
1b530887cd
Minor: fix testdata
2015-03-20 21:23:31 +03:00
Zalim Bashorov
aaa7f6d5e4
JS frontend: added diagnostic about non-toplevel classifiers are unsupported yet.
2015-03-20 21:23:31 +03:00
Denis Zharkov
eefea26d54
Recovery for initializer if no LBRACE
...
- If no LBRACE after 'init' keyword parse initializer without body
- Made getBody() nullable, appropriate checks added
2015-03-18 19:59:25 +03:00
Denis Zharkov
bd5dbb665e
Fix header scope for secondary constructors
...
Add companion object's scope and nested classes
#KT-6996 fixed
2015-03-18 19:59:24 +03:00
Michael Bogdanov
ed62e4972f
Temporary disable smap generation
2015-03-18 19:00:24 +03:00
Michael Bogdanov
6e55ea6480
Skip smap generation if there is no source information
...
#KT-7022 Fixed
2015-03-18 18:49:18 +03:00
Stanislav Erokhin
43e24f6b0d
Fixed test data for new lambda syntax
2015-03-18 16:06:44 +03:00
Stanislav Erokhin
371908a280
Temporary added DEPRECATED_LAMBDA_SYNTAX to tests.
...
It will be fixed soon.
2015-03-18 16:06:44 +03:00