Commit Graph

27471 Commits

Author SHA1 Message Date
Alexander Udalov 477823b093 Change override rules when type parameters have multiple bounds
Instead of constructing the magic intersection type, compare sets of upper
bounds instead as javac does, modulo the substitution
2015-10-28 19:12:02 +03:00
Alexander Udalov a59ca2ea9f Simplify obsolete code in OverridingUtil 2015-10-28 19:12:00 +03:00
Alexander Udalov 996c14d071 Use representative upper bound in JetTypeMapper instead of just the first 2015-10-28 19:11:59 +03:00
Alexander Udalov 3918005364 Minor, improve compileJavaAgainstKotlin test
Render human-readable output when there are errors
2015-10-28 19:11:58 +03:00
Alexander Udalov d29757d927 Make upper bounds of type parameter a list instead of a set
The same for lower bounds, also refactor type parameter implementations
2015-10-28 19:11:56 +03:00
Alexander Udalov 1ce5f8458c Extract ClassMapperLite, add enlightening comment 2015-10-28 19:11:55 +03:00
Alexander Udalov 0302b9504f Minor, inline some other FQ name methods 2015-10-28 19:11:54 +03:00
Alexander Udalov 05f9f5a661 Drop path() from FQ names, remove weird code from FqNameUnsafe 2015-10-28 19:11:53 +03:00
Alexander Udalov 8a89662ea5 Remove FqNameBase, simplify FqName and FqNameUnsafe 2015-10-28 19:11:53 +03:00
Alexander Udalov 894a97a549 Rename field for property metadata cache to prevent problems in inline 2015-10-28 19:11:51 +03:00
Mikhail Glukhikh 6e3eef2d6f JetTypeInfo renamed to KotlinTypeInfo 2015-10-28 17:36:34 +03:00
Dmitry Petrov 4eb7458143 box test for KT-9712: tests were generated in different order. 2015-10-28 17:15:05 +03:00
Michael Nedzelsky c123af75fd issue warning instead of error in case of finite bound or non-expansive inheritance violation in java code 2015-10-28 17:02:02 +03:00
Mikhail Glukhikh d2c65a5336 Iterative call chain handling to get rid of JetTypeInfoInsideCallChain and other nasty things #KT-9754 Fixed 2015-10-28 16:00:30 +03:00
Sergey Mashkov 16b6bccd1e Eliminate IllegalArgumentException caused by possible negative sized ArrayList creation 2015-10-28 15:45:25 +03:00
Michael Bogdanov 63f7f90521 Test for obsolete KT-8047
#KT-8047 Obsolete
2015-10-28 14:43:05 +03:00
Mikhail Glukhikh f8a70302ac Cleanup: get rid of effective visibility warnings 2015-10-28 14:31:51 +03:00
Natalia Ukhorskaya 932542891b Stepping for inline functions: add test for last statement in for 2015-10-28 14:23:52 +03:00
Natalia Ukhorskaya de5c3733e9 Do not use visitor for counting lambda ordinal for debugger 2015-10-28 14:23:52 +03:00
Natalia Ukhorskaya eac6fdbaa0 Fix linenumbers in tests 2015-10-28 14:23:51 +03:00
Natalia Ukhorskaya a8008dfa26 Do not use resove in catPutAt for breakpoints 2015-10-28 14:23:50 +03:00
Natalia Ukhorskaya 67e66f74bc Minor: fix warnings 2015-10-28 14:23:49 +03:00
Natalia Ukhorskaya e534636f03 Support multiple breakpoints at one line (especially for lambdas) 2015-10-28 14:23:49 +03:00
Natalia Ukhorskaya c071bf5c63 Fix lines for FieldBreakpoints in tests 2015-10-28 14:23:48 +03:00
Natalia Ukhorskaya 17a564495d Stepping for inline function: filter out inline function body lines from step over
#KT-9665 Fixed
2015-10-28 14:23:47 +03:00
Natalia Ukhorskaya b8e649e843 Minor: rename test 2015-10-28 14:23:46 +03:00
Natalia Ukhorskaya 66a5351cd0 Do not show fake local variables for inline function/argument in Variables View for Debugger 2015-10-28 14:23:45 +03:00
Natalia Ukhorskaya cdcafb8199 Fix stepping for inline function inside while statement 2015-10-28 14:23:45 +03:00
Natalia Ukhorskaya 258790cc2f Minor: refactor tests 2015-10-28 14:23:44 +03:00
Natalia Ukhorskaya e2411f8e46 Debugger tests: catch exceptions correctly 2015-10-28 14:23:43 +03:00
Natalia Ukhorskaya 4f1af224d1 Rewrite CheckLocalVariableTableTest using assertEqualsToFile 2015-10-28 14:23:43 +03:00
Natalia Ukhorskaya dd30462fd1 Support smart step into for inline function arguments 2015-10-28 14:23:42 +03:00
Natalia Ukhorskaya c98ebffbcf Debugger: evaluate Ref$element to element value 2015-10-28 14:23:41 +03:00
Natalia Ukhorskaya 77f1a3a7f3 Minor: change test directives 2015-10-28 14:23:40 +03:00
Natalia Ukhorskaya e68700190d Use fake local variable for inline argument in debugger 2015-10-28 14:23:39 +03:00
Natalia Ukhorskaya dfbafc7173 Extract isInlineArgument for debugger 2015-10-28 14:23:39 +03:00
Michael Bogdanov 7c7cff3d6e Updated diagnostic message for INVISIBLE_MEMBER_FROM_INLINE
#KT-7323 Fixed
2015-10-28 14:10:27 +03:00
Nikolay Krasko 0fcb51f0a2 KT-1478 Quick fix for using nullable collection in "for in" expression
#KT-1478 Fixed
2015-10-28 13:39:49 +03:00
Nikolay Krasko 911432c99c Use default render to check are all errors mentioned in tests. It's far more easier to read. 2015-10-28 13:39:46 +03:00
Nikolay Krasko b8c72ec4e9 Suggest to add !! as a quick-fix for type mistmach 2015-10-28 13:39:44 +03:00
Michael Bogdanov f3e6fab68e Fix for KT-4250: IllegalAccessError when using protected java member from lambda function
#KT-4250 Fixed
2015-10-28 11:57:21 +03:00
Michael Bogdanov 0a70c80af3 Substitute superClassExpression with superCallClass in synthetic accessors 2015-10-28 11:57:20 +03:00
Dmitry Petrov 21d927b7a4 Test for KT-9712 (fixed along with KT-9717)
#KT-9712 Fixed
2015-10-28 10:39:03 +03:00
Michael Nedzelsky 190bab099c fix KT-9441 Unable to Access Internal Classes from Test Code within Same Module
#KT-9441 Fixed
2015-10-28 01:58:54 +03:00
Alexander Udalov 395c0f12b1 Fix confusing behavior in test when assertion fails 2015-10-27 23:31:29 +03:00
Ilya Gorbunov e2c9267305 Fix compiler tests with incompatible types in assertEquals arguments. 2015-10-27 21:48:29 +03:00
Ilya Gorbunov 579ce8091c Cleanup tests, specify type where it's ambiguous. 2015-10-27 21:48:27 +03:00
Ilya Gorbunov 0b74698c16 @OnlyInputTypes for assertEquals and expect 2015-10-27 21:48:24 +03:00
Ilya Gorbunov 551e0181dc Require explicit type parameter specification for filterIsInstance. 2015-10-27 21:47:50 +03:00
Zalim Bashorov a5708c9c0d Track lookups in JavaSyntheticPropertiesScope 2015-10-27 19:38:32 +03:00