Stanislav Erokhin
da01e4a57c
Add assertion for variable as operator call.
2016-06-10 21:28:04 +03:00
Stanislav Erokhin
03241419bd
Minor. removed several tests with error calls.
2016-06-10 21:28:04 +03:00
Dmitry Petrov
c414f456a4
Like nested classes, it is not possible to reference inherited nested type alias by a child class.
2016-06-10 16:21:27 +03:00
Dmitry Petrov
7b6c1c092c
Inherited type alias capturing type parameters of generic base class:
...
doesn't work partially due to KT-11123.
2016-06-10 16:21:27 +03:00
Dmitry Petrov
bee1762b0e
'Nothing' as function return type and property type can't be abbreviated.
2016-06-10 16:21:27 +03:00
Dmitry Petrov
0ff677596f
Modifiers checking for type aliases.
...
Exposed type checking for type aliases.
2016-06-10 16:21:26 +03:00
Dmitry Petrov
139e219ebd
Star projections in type alias expansions are substituted to star projections
...
for corresponding type parameters in expanded type.
Test that type alias arguments are substituted literally,
and no type approximation is performed on substitution.
2016-06-10 16:21:26 +03:00
Dmitry Petrov
1efbd34529
Test: arguments of type aliases should be substituted literally,
...
without type approximation.
TYPE_MISMATCH is an expected error.
2016-06-10 16:21:26 +03:00
Dmitry Petrov
7da50069eb
Additional tests for illegal type in type alias expansion:
...
'Array<Nothing>' passed as an unused parameter to type alias.
2016-06-10 16:21:26 +03:00
Dmitry Petrov
115f40d371
UNUSED_TYPEALIAS_PARAMETER: special diagnostic for typealias parameters
...
explicitly telling that such type parameters are not used in type checking.
Move typealias-related utility functions on types to TypeUtils.kt.
2016-06-10 16:21:25 +03:00
Dmitry Petrov
40dd36bcf6
Recursive type alias expansion:
...
when resolving abbreviated type, do not check bounds
if the resulting type contains type aliases.
2016-06-10 16:21:25 +03:00
Nikolay Krasko
688c742802
j2k: minor fixes in KtLightClassForAnonymousDeclaration
2016-06-10 14:17:36 +03:00
Nikolay Krasko
4679ae60ab
j2k: actual convert KtLightClassForAnonymousDeclaration
2016-06-10 14:17:35 +03:00
Nikolay Krasko
81b94d0988
j2k: rename KtLightClassForAnonymousDeclaration
2016-06-10 14:17:31 +03:00
Nikolay Krasko
9e9c670ada
Minor: clean up and reformat
2016-06-10 14:17:20 +03:00
Dmitry Petrov
a4267f069d
Codegen should just skip (local) type alias declarations.
2016-06-10 10:25:10 +03:00
Dmitry Petrov
c04b16d6cc
Type parameters for type alias constructor are declared type parameters for type alias
...
(no implicit type parameters from containing scopes).
2016-06-10 10:25:09 +03:00
Dmitry Petrov
bcd1df4efe
More tests for type alias constructor type parameters.
2016-06-10 10:25:09 +03:00
Dmitry Petrov
6924ed53ec
Local type aliases: resolve
2016-06-10 10:25:09 +03:00
Dmitry Petrov
9a7bbc1516
Type alias shouldn't expand to a malformed type (e.g., 'Array<Nothing>').
2016-06-10 10:25:09 +03:00
Dmitry Petrov
d02785806d
Type alias shouldn't capture type parameters of inaccessible outer classes.
2016-06-10 10:25:09 +03:00
Dmitry Petrov
12710bec2f
Redeclaration errors for type aliases: type alias vs function.
2016-06-10 10:25:08 +03:00
Dmitry Petrov
5ad4c8b9c7
Redeclaration errors for type aliases: type alias vs property.
2016-06-10 10:25:08 +03:00
Mikhail Glukhikh
9470308fe7
If to when: more accurate comment handling #KT-12649 Fixed
2016-06-09 20:00:14 +03:00
Denis Zharkov
d2bf4cbfa0
Fix reference resolution on suspension calls
2016-06-09 17:57:15 +03:00
Denis Zharkov
f1b0204ffe
Fix public API test data after Continuation introduction
2016-06-09 17:57:15 +03:00
Denis Zharkov
036f90053e
Minor. Fix formatting
2016-06-09 17:57:15 +03:00
Denis Zharkov
92bd6880da
Add AdditionalBuiltInsMembers language feature and relevant checks
2016-06-09 17:57:15 +03:00
Denis Zharkov
072abe89cd
Minor. Replace manual checkCoroutineBuilderCall with BuilderFunctionsCallChecker
2016-06-09 17:57:15 +03:00
Denis Zharkov
1b82e43d76
Add LanguageFeatureSettings parameter to single method in checkers interfaces
...
This parameter will be used further for target-dependent checks
Also introduce SimpleDeclarationChecker/SimpleCallChecker sub-interfaces (more weak ones)
Implementing them instead of base checkers is more convenient in most cases
2016-06-09 17:57:15 +03:00
Alexander Udalov
59342000ae
Fix toString() and reflectLambda() for lambdas with generic types in signatures
...
#KT-10771 Fixed
2016-06-09 17:28:56 +03:00
Alexander Udalov
dc2972d99e
Implement copy in FunctionDescriptorImpl, call doSubstitute only in CopyConfiguration#build
2016-06-09 17:28:56 +03:00
Alexander Udalov
ee8ca0b850
J2K JavaElementCollectionFromPsiArrayUtil
2016-06-09 17:28:56 +03:00
Stanislav Erokhin
cd4c9968df
Minor. fix test
2016-06-09 16:42:42 +03:00
Stanislav Erokhin
53bf720503
Fix type alias problems after rebase.
2016-06-09 16:42:41 +03:00
Alexander Udalov
db3e0798c8
Minor, move the Lombok hack a bit higher
2016-06-09 16:38:47 +03:00
Alexander Udalov
3477f6ee85
Minor, drop java_generic_services option from .proto files
...
There are no service definitions in our .proto files, so this option had no
effect
2016-06-09 15:54:49 +03:00
Alexander Udalov
aba1cc3d83
Minor, cleanup GenerateProtoBuf.kt
2016-06-09 15:54:49 +03:00
Alexander Udalov
0c0a451d20
J2K serialization: fix compilation and prettify
2016-06-09 15:54:49 +03:00
Alexander Udalov
6692aca5f3
J2K serialization: invoke automatic J2K conversion
2016-06-09 15:54:49 +03:00
Alexander Udalov
89c0af0d80
J2K serialization: move .java -> .kt
2016-06-09 15:54:49 +03:00
Alexander Udalov
3469e980cb
Minor, remove 'depends' from kotlin-build-common-test Ant task
...
Similarly to other targets in build.xml, this simplifies manual partial
compilation of artifacts
2016-06-09 15:54:49 +03:00
Alexander Udalov
70378a07c9
Minor, fix code style in CompilerConfiguration
2016-06-09 15:54:49 +03:00
Stanislav Erokhin
4f943dcbf8
KT-11778 Exception in Lombok plugin: Rewrite at slice FUNCTION
...
#KT-11778 Fixed.
EA-64051 Fixed.
2016-06-09 14:22:23 +03:00
Stanislav Erokhin
93b27417af
Minor. update testdata.
2016-06-09 12:59:06 +03:00
Stanislav Erokhin
6bce4f6d6a
Minor. compilation after rebase.
2016-06-09 12:58:25 +03:00
Stanislav Erokhin
541b9954f5
Minor. Roll back behaviour for FlexibleType.isError.
2016-06-09 12:58:23 +03:00
Stanislav Erokhin
74be53d297
Add documentation for KotlinType.
2016-06-09 12:58:21 +03:00
Stanislav Erokhin
fd40273a0d
Removed interface LazyType.
2016-06-09 12:58:19 +03:00
Stanislav Erokhin
63b2f89356
Removed laziness from TypeDeserializer, because DeserializedMemberScope has cache for callable descriptors.
2016-06-09 12:58:18 +03:00