Stanislav Erokhin
fa9ca54e78
Fixed local return inside function expression.
2015-03-12 17:11:47 +03:00
Stanislav Erokhin
929f1bc9ba
Fixed method hasTypeParameterListBeforeFunctionName in JetNamedFunction
2015-03-12 17:11:47 +03:00
Stanislav Erokhin
a89b48c577
Backend support for function expression
2015-03-12 17:11:46 +03:00
Stanislav Erokhin
44895a23cf
Frontend support for function as expression
2015-03-12 17:11:46 +03:00
Stanislav Erokhin
6ccd8ab764
Move method visitNamedFunction from ExpressionTypingVisitorForStatements to BasicExpressionTypingVisitor.
...
This commit done only for clean history
2015-03-12 17:11:45 +03:00
Stanislav Erokhin
a235110d44
Fixed function expression recovery
2015-03-12 17:11:45 +03:00
Stanislav Erokhin
983e1bc932
Added function as expression support to parser
2015-03-12 17:11:44 +03:00
Stanislav Erokhin
560c32c0f1
Added diagnostic error when in function declaration name was omitted
2015-03-12 17:11:44 +03:00
Stanislav Erokhin
a8536fef9b
Mute syntax error when function name was omitted
2015-03-12 17:11:44 +03:00
Stanislav Erokhin
a33450395c
Resolve parenthesized element as expression
2015-03-12 17:11:43 +03:00
Stanislav Erokhin
3b92cab9e0
Changed containing declaration for PropertyDeclarationInnerScope
2015-03-12 17:11:43 +03:00
Stanislav Erokhin
49b77a1523
Reformat code
2015-03-12 17:11:43 +03:00
Andrey Breslav
d7297304b9
Create multi-declarations-in-parameters.md
2015-03-12 17:11:42 +03:00
Stanislav Erokhin
2c8cf05f7a
Added backend tests with closure local function in local class
2015-03-12 17:11:42 +03:00
Michael Nedzelsky
7a5e54c691
jsHeaderLibraryDetectonUtil: refactoring after conversion
2015-03-12 16:35:36 +03:00
Michael Nedzelsky
a29172c1ca
jsHeaderLibraryDetectonUtil: rename .java -> .kt
2015-03-12 16:35:33 +03:00
Michael Nedzelsky
4dc4e6a021
jsHeaderLibraryDetectonUtil.java: convert to kotlin
2015-03-12 16:35:30 +03:00
Michael Nedzelsky
cea65e0770
add NotNull annotation into BasicTest
2015-03-12 16:35:25 +03:00
Michael Nedzelsky
54bbe0711d
JS backend: reuse analysisResult from K2JSCompiler in translator
2015-03-12 16:35:22 +03:00
Michael Nedzelsky
95768db9a1
fix NPE while creating new Kotlin/Javascript project
2015-03-12 15:58:14 +03:00
Andrey Breslav
2f39cb6243
Remove useless casts after fixing subtyping for star projections
2015-03-12 15:46:40 +03:00
Alexander Udalov
b8674beac0
Fix build-protobuf-java-lite macro in update_dependencies.xml
...
Apparently vmlauncher=false invokes antRun which is missing in the Ant support
plugin in IDEA, so invoking update from IDEA was failing
2015-03-12 14:33:07 +03:00
Nikolay Krasko
dcd29cb65d
Revert "Generate descriptor for trait constructor. Exception is thrown otherwise (EA-38416)"
...
This reverts commit 6ba120bba8 .
2015-03-12 14:18:22 +03:00
Nikolay Krasko
6ba120bba8
Generate descriptor for trait constructor. Exception is thrown otherwise (EA-38416)
2015-03-12 12:59:22 +03:00
Nikolay Krasko
38809761e2
Other base method
2015-03-12 12:35:11 +03:00
Michael Bogdanov
30832ed774
Properly report diagnostics on platformStatic annotations
...
#KT-6937 Fixed
2015-03-12 10:29:00 +03:00
Alexey Sedunov
84ad6c394e
Create from Usage: Respect smart-casts when suggesting parameter type candidates
...
#KT-6781 Fixed
2015-03-11 23:34:00 +03:00
Alexey Sedunov
b033c17426
Caller Hierarchy: NPE fix
...
#EA-66031 Fixed
2015-03-11 23:33:59 +03:00
Alexey Sedunov
11a4cdf7ec
Control-Flow Analysis: Fix NPE for array assignments without right-hand side
...
#EA-63602 Fixed
2015-03-11 23:33:58 +03:00
Alexey Sedunov
56031cb270
Control-Flow Analysis: Fix bug in finally-block repetition in the presence of non-local returns
...
#EA-65982 Fixed
2015-03-11 23:33:57 +03:00
Alexey Sedunov
f0b0fd07c5
Create From Usage: Add support of star projections/incorrect type arguments
...
#EA-62661 Fixed
2015-03-11 23:33:56 +03:00
Alexey Sedunov
ab5a691612
Create From Usage: Place generated declarations next to original element container if they have common parent
...
#KT-6687 Fixed
2015-03-11 23:33:55 +03:00
Alexey Sedunov
fe9b08f93d
Create From Usage: Place local variable declaration right before its usage
...
#KT-6704 Fixed
2015-03-11 23:33:54 +03:00
Alexey Sedunov
8a0808b133
Create From Usage: Do not generate type for local variables, but add dummy initializer instead
...
#KT-6705 Fixed
2015-03-11 23:33:52 +03:00
Pavel V. Talanov
2987e72d29
Do not report redeclaration when outer class and default object's members clash
...
Previously we prohibited classes and properties with the same name (now it's unnecessary)
Add test for backends that they support qualified (by default object name) member references inside class body
2015-03-11 21:06:05 +03:00
Andrey Breslav
76832df933
Do not create temp files in the project directory
2015-03-11 20:14:56 +03:00
Andrey Breslav
7b9d0cfc4f
Minor. Compilation fixed
2015-03-11 19:38:17 +03:00
Andrey Breslav
44e7df2809
Minor. Formatting and simplification
2015-03-11 19:38:17 +03:00
Andrey Breslav
704eea2eac
TraceBasedErrorReporter converted to Kotlin and [data] added to AbiVersionErrorData
2015-03-11 19:38:16 +03:00
Andrey Breslav
3146b7e1b0
Rename .java file to .kt
2015-03-11 19:38:16 +03:00
Andrey Breslav
0562ab84c2
Minor. Warnings fixed
2015-03-11 19:38:15 +03:00
Andrey Breslav
36bbd2c0e3
ErrorReporter is now Java-independent
2015-03-11 19:38:15 +03:00
Andrey Breslav
266485add3
Serialization of star projections fixed
2015-03-11 19:38:14 +03:00
Andrey Breslav
61989ba245
KT-6815 Representing raw types when used as supertypes for Java classes
...
#KT-6815 Fixed
2015-03-11 18:27:37 +03:00
Andrey Breslav
7c62d8ed83
Minor. Unused declarations removed
2015-03-11 18:27:37 +03:00
Andrey Breslav
e0b7e4efca
KT-6803 Subtyping breaks on star-projections for recursive generics
...
Star-projections have upper bounds of the form "parameter's bound where all parameter of the same class are substituted with their star-projections"
#KT-6803 Fixed
2015-03-11 18:27:36 +03:00
Alexander Udalov
11b693c3be
Add test on scripts with classpath
2015-03-11 18:08:14 +03:00
Isak Karlsson
efae5c05a1
Support classpath argument when running scripts using the -script flag
...
Signed-off-by: Isak Karlsson <isak-kar@dsv.su.se >
2015-03-11 18:08:14 +03:00
Denis Zharkov
f632a90741
Fix compiler settings for android-compiler-plugin
...
It's necessary to use bootstrap-compiler and runtime but new compiler in classpath when increasing ABI.
For example ABI was X, then we increase it to X':
- It compiles in Bootstrap (B) build with compiler that knows
old ABI version, so compiled compiler (C1) will still have version X, but new
runtime's version is X' (R1).
So when we compile android-compiler-plugin each part has version X.
- Then project compiles by new compiler (C1)
(that class-files have ABI version X, but it knows about X') in main build.
Here compiled compiler (C2) will have X' version of class-files,
either has runtime (R1) compiled on previous stage.
On this step android-compiler-plugin will be compiled fine by C1 and with C2, R1.
2015-03-11 17:45:29 +03:00
Denis Zharkov
70c573864a
Prohibit DelegationBy specifier when no primary constructor
...
Also add codegen test for case when there is primary
2015-03-11 17:45:29 +03:00