Yan Zhulanow
3fa506fd45
"Inapplicable operator modifier" and "Inapplicable infix modifier" are now errors
2016-01-26 17:21:44 +03:00
Denis Zharkov
f560799bb7
Support top level wildcard types
...
#EA-73650 Fixed
2016-01-26 16:41:29 +03:00
Denis Zharkov
8ec63bd4dd
Use type arguments from supertype when resolving constructor delegation call
...
#KT-3357 Fixed
2016-01-26 13:53:45 +03:00
Stanislav Erokhin
210c9ab3db
Minor. Added regression tests for: KT-3927, KT-9522, KT-10036, KT-7440, KT-9682, KT-9808, KT-9517, KT-9810, KT-9345.
2016-01-25 19:13:32 +03:00
Stanislav Erokhin
d7438d9f2b
Add mock runtime to diagnostic tests.
...
Mock runtime contains function from file Standard.kt
2016-01-25 19:13:30 +03:00
Michael Bogdanov
874560df9d
Fix for KT-10715: Verify error on incrementing backing field from accessor
2016-01-25 16:56:57 +03:00
Michael Bogdanov
cf09949354
Fix for KT-10590: IllegalAccessError when protected getter of Java base class is accessed from lambda using property access syntax
2016-01-25 16:56:56 +03:00
Stanislav Erokhin
f688b1b786
Relax rules for type parameters in property receivers
2016-01-22 22:18:57 +03:00
Ilya Gorbunov
9a41e07ac0
Use IDEA 143.1960 built with master kotlin branch.
...
Remove tweaks required to bootstrap packages.
Restore non-star imports of kotlin.text.Charsets.
2016-01-22 22:06:22 +03:00
Denis Zharkov
6c0cd70a22
Introduce PureReifiable annotation
...
It prevents reporting unsafe substitution warning on expressions
like 'arrayOf(arrayOf(""))'
2016-01-22 19:17:22 +03:00
Denis Zharkov
d7e035fd9b
Serialize annotations on type parameters in builtins
2016-01-22 19:17:22 +03:00
Denis Zharkov
70dc5b5403
Prohibit use of captured type as argument for reified parameter
...
#KT-8093 Fixed
2016-01-22 19:17:22 +03:00
Denis Zharkov
751f66c656
Report warning on generic type as argument for reified parameter
...
#KT-6484 Fixed
2016-01-22 19:17:22 +03:00
Denis Zharkov
a5c13ce8cf
Approximate projections in SAM type when creating SAM adapter
...
Use the same approach as Java 8 applies to function types
(see non-wildcard parametrization in §9.9 of JLS)
#KT-6918 Fixed
2016-01-22 19:17:22 +03:00
Denis Zharkov
d87b13931d
Create special type for missing dependencies when resolving annotations
...
#KT-10748 Fixed
2016-01-22 19:17:22 +03:00
Mikhail Glukhikh
e9af4d25d0
Handling of try / catch / finally with 'Nothing' in all catch blocks #KT-10735 Fixed
2016-01-22 16:37:22 +03:00
Mikhail Glukhikh
859059d714
Bug fix: jump out of a loop inside if condition
2016-01-22 16:37:07 +03:00
Mikhail Glukhikh
3106a8508a
Front-end and back-end test for KT-7801
2016-01-22 16:37:00 +03:00
Mikhail Glukhikh
7ac55cefcb
Extra test with smart cast to 'T'
2016-01-22 16:36:57 +03:00
Mikhail Glukhikh
7870ad2445
DataFlowInfo converted to Kotlin, DataFlowInfoFactory introduced
2016-01-22 16:36:51 +03:00
Dmitry Petrov
f371e67ce8
PatternMatchingTypingVisitor:
...
rewrite type inference for 'when' using special constructs.
This fixes several type inference issues for 'when':
KT-9929, KT-9972, KT-10439, KT-10463
along with some other diagnostics-related issues.
2016-01-22 10:41:55 +03:00
Ilya Gorbunov
f5f5a2dcc1
Move progression final element test to stdlib tests.
...
Less values are tested for iteration not to timeout in js tests.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
f4822cd757
Fix testData in compiler: add collections and ranges package to fq-names.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
98e2d27c77
Resolve types from all builtin default packages in TypeUnifierTest
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
c84cbfb36a
Allow to specify fq-names in expected resolve testData
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
3262a4ddc2
LoadBuiltinsTest inspects three packages: kotlin, kotlin.collections and kotlin.ranges
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
46a59b7550
Fix imports in java: temporary replace with star imports.
2016-01-22 05:54:38 +03:00
Alexander Udalov
0b7d2e3a68
Do not write old callable proto flags, use only new ones
2016-01-22 05:51:14 +03:00
Michael Bogdanov
bf16783fb7
Fix for KT-9591: Exception on inlining
...
#KT-9591 Fixed
2016-01-21 18:44:05 +03:00
Denis Zharkov
ba506170e9
Use 'mapToCallableMethod' for delegateTo signature calculation
...
#KT-9707 Fixed
2016-01-21 11:24:23 +03:00
Valentin Kipyatkov
3a7ed33de1
KT-10747 "Incompatible stack heights" when compiling call to Java setter with non-void return type using property syntax
...
#KT-10747 Fixed
2016-01-21 10:48:47 +03:00
Alexander Udalov
8fe964f269
Resolve array access RHS always as the last argument of the call
...
Also do not attempt to match any of the arguments in the brackets with the last
parameter of the 'set' method
#KT-10633 Fixed
2016-01-21 00:36:35 +03:00
Dmitry Jemerov
ccef1ad49e
report presence of multiple different versions of kotlin-runtime on the classpath as compilation error if other compilation errors have occurred
2016-01-20 21:02:44 +01:00
Dmitry Jemerov
bf5cdcb6b4
AnalyzerWithCompilerReport: J2K
2016-01-20 21:00:24 +01:00
Michael Bogdanov
23480a5698
Supported inline of array convention simple cases; Fix for KT-9211: M13 an extension function that is inline, and for get(v) causes an exception when called using brackets
...
#KT-9211 Fixed
2016-01-20 17:33:50 +03:00
Denis Zharkov
ede4b61980
Add tests for obsolete issue
...
#KT-7412 Obsolete
2016-01-20 14:27:53 +03:00
Denis Zharkov
06fbc9bdd3
Support reification of arrays containing reified parameters
...
#KT-10555 Fixed
2016-01-20 14:27:53 +03:00
Valentin Kipyatkov
808c7453a4
Added test for 'typealias' being keyword
2016-01-19 19:31:44 +03:00
Valentin Kipyatkov
68853fecc3
Removed support for "typealias" declarations from the parser
...
#KT-10683 Fixed
2016-01-19 19:31:44 +03:00
Valentin Kipyatkov
38d374d4b9
Added test for nested class
2016-01-19 19:30:19 +03:00
Valentin Kipyatkov
d749f85a60
Inaccessible classes from the current package to not conflict with visible classes from somewhere else
2016-01-19 19:30:18 +03:00
Valentin Kipyatkov
bfe728526a
Alias imports to hide symbols by original name from the current package too
2016-01-19 19:30:18 +03:00
Alexander Udalov
aef6d49b48
Drop isLocalClass, do not write KotlinLocalClass
2016-01-19 18:39:59 +03:00
Alexander Udalov
e17cd12c3c
Report error on generating calls to binary incompatible classes
2016-01-19 18:39:59 +03:00
Alexander Udalov
4bd1d064bb
Do not load built-ins in old format, drop class_name extension
2016-01-19 18:39:59 +03:00
Alexander Udalov
625c46d568
Delete obsolete and unused class_annotation JVM proto extension
2016-01-19 18:39:59 +03:00
Alexander Udalov
693a9c9453
Write new flags to proto messages for callables
...
This is needed to get rid of two unused bits: Flags.RESERVED_1 and
Flags.RESERVED_2. The old flags are still there temporarily because of the
bootstrap dependency on built-ins. Soon the old flags will be dropped and the
current flags will be transformed to the new format
2016-01-19 18:39:59 +03:00
Alexander Udalov
a4daa08e5c
Write module name as proto extension instead of another annotation argument
2016-01-19 18:39:59 +03:00
Alexander Udalov
d4c4515944
Refactor BinaryVersion and subclasses, get rid of static factories
2016-01-19 18:39:59 +03:00
Alexander Udalov
e37bd4eba6
Do not write and read KotlinInterfaceDefaultImpls
...
This was only used in InlineTestUtil.kt and had no effect in the condition
2016-01-19 18:39:59 +03:00