Commit Graph

945 Commits

Author SHA1 Message Date
Natalia Ukhorskaya fd3f852a93 Annotation parameter must be constant on vararg and array arguments 2014-01-28 18:21:43 +04:00
Natalia Ukhorskaya 97da2def08 Record COMPILE_TIME_INITIALIZER for all final variables 2014-01-28 18:21:42 +04:00
Nikolay Krasko 559f212cfc Redeclaration for same file in different files 2014-01-17 17:28:13 +04:00
Evgeny Gerashchenko 82af76fa85 Fixed file name case. 2014-01-16 22:57:25 +04:00
Evgeny Gerashchenko ae4c68830d Importing root scope without members. 2014-01-16 22:11:55 +04:00
Evgeny Gerashchenko c924a5d097 Test for KT-3444 Front-end doesn't check if local function or function of anonymous class returns value
#KT-3444 obsolete
2014-01-14 19:13:19 +04:00
Evgeny Gerashchenko cb78defa36 Considering static members when checking package-private visibility. 2014-01-14 19:13:16 +04:00
Evgeny Gerashchenko e994b718cb KT-4351 Cannot resolve reference to self in init of class local to function
#KT-4351 fixed
2014-01-14 19:13:16 +04:00
Evgeny Gerashchenko 958f7c862d Got rid of "namespace" word in test data. 2014-01-14 18:06:50 +04:00
Evgeny Gerashchenko 093afeb05c Renamed diagnostics (namespace → package). 2014-01-14 18:06:49 +04:00
Natalia Ukhorskaya 9fb3a22a39 Prohibit modifiers on initializer #KT-4364 Fixed 2013-12-31 12:41:54 +04:00
Svetlana Isakova 4657a4b271 fixed bug in renderer for violated upper bound error 2013-12-27 16:02:16 +04:00
Svetlana Isakova 531d337486 changed default positioning strategy:
added special handling for JetObjectLiteralExpression
2013-12-27 16:02:15 +04:00
Evgeny Gerashchenko 513be47544 KT-4349 Make jet.Boolean implement Comparable
#KT-4349
2013-12-25 21:07:55 +04:00
Natalia Ukhorskaya 4329c42e3f Make unary minus and unary plus return int for byte and short 2013-12-23 13:46:00 +04:00
Natalia Ukhorskaya 5d2cb2f97b Annotations inheritance. Either prohibit or implement correctly #KT-3225 Fixed 2013-12-23 13:45:58 +04:00
Natalia Ukhorskaya cce6b952bd Add warning when 'val' keyword on annotation parameter is missing
#KT-1900
2013-12-23 13:45:58 +04:00
Natalia Ukhorskaya 513a59d552 Check annotations on anonymous intializers
#KT-2208 Fixed
2013-12-23 13:45:57 +04:00
Natalia Ukhorskaya 359f2ddbda Prohibit instantiation of annotation classes
#KT-3465 Fixed
2013-12-23 13:45:57 +04:00
Svetlana Isakova c9f3f9ca1f added position strategy to NOTHING_TO_INLINE error 2013-12-19 22:28:47 +04:00
Svetlana Isakova cfb7bcb73b use smart cast info while adding constraint for receiver 2013-12-19 22:05:52 +04:00
Svetlana Isakova dd6940be41 added CHECK_TYPE directive to diagnostic tests 2013-12-19 13:01:05 +04:00
Natalia Ukhorskaya 145c7811a8 Named vararg arguments: don't allow to use array without spread, allow to use one value of vararg type
#KT-3802 Fixed
2013-12-18 15:13:52 +04:00
Evgeny Gerashchenko 212d303c7b Modified test checking visibility of class objects. 2013-12-17 20:28:55 +04:00
Svetlana Isakova 26f66eaea5 fixed INACCESSIBLE_OUTER_CLASS_EXPRESSION check
for extension lambda (with implicit this) in nested class
2013-12-17 19:04:41 +04:00
Svetlana Isakova 400e6d3f44 KT-4310 Check for definite returns
#KT-4310 Fixed
2013-12-17 19:04:40 +04:00
Natalia Ukhorskaya 31ad4f8451 Annotation parameter must be constant 2013-12-17 15:41:24 +04:00
Natalia Ukhorskaya 7a9d822070 'As' function for constants 2013-12-17 15:00:30 +04:00
Svetlana Isakova 4c41d19eb1 interpret class in class object as static nested class
removed hack in TaskPrioritizer for import class from class object
2013-12-16 16:24:21 +04:00
Alexander Udalov 9e5c68a8f9 Fix KotlinBuiltIns.isUnit
It didn't check type's nullability
2013-12-12 21:38:20 +04:00
Svetlana Isakova cc3f450132 added test for obsolete task
#KT-2336 Fixed
2013-12-11 19:53:52 +04:00
Svetlana Isakova 4d39dc38da fixed: smart cast of boolean variable didn't work in boolean expression 2013-12-11 19:53:52 +04:00
Svetlana Isakova cd6934bee8 fixed bug in 'DataFlowInfo.getPossibleTypes'
parent types should be enriched as well
2013-12-11 19:53:51 +04:00
Svetlana Isakova 4a26c9df04 don't report autocast on left expression in equality
if it was checked for not-null beforehand
2013-12-11 19:53:51 +04:00
Svetlana Isakova 4b89c22ba7 Check separately auto casts for nullable types.
It's necessary for functions with generics: constraint system ignores nullability divergence,
the error checks are made afterwards, the auto cast check should be made similarly.
2013-12-11 19:53:51 +04:00
Svetlana Isakova 41f2fcbb40 while resolve 'equals' as a fake call do not throw away temporary trace 2013-12-11 19:53:51 +04:00
Svetlana Isakova ab1d27dd6b don't use data flow info while checking for receiver
receiver with smart cast is checked separately
2013-12-11 19:53:50 +04:00
Svetlana Isakova 46b77f4472 don't report unnecessary smart cast on receiver 2013-12-11 19:53:50 +04:00
Svetlana Isakova 33c04bde9a changed tests where autocasts aren't needed but are reported
due to KT-4294
2013-12-11 19:53:50 +04:00
Svetlana Isakova c30259dfbe added info about smart casts to diagnostic tests 2013-12-11 19:53:50 +04:00
Andrey Breslav 71be3bcec5 All tests for TCO moved to box (with diagnostics marked up) 2013-12-06 11:29:28 +04:00
Andrey Breslav bb6ceffbbb Missing tests added 2013-12-06 00:27:31 +04:00
Andrey Breslav fe00b03279 Rename directory for diagnostic tests 2013-12-05 23:53:07 +04:00
Sergey Mashkov 1c81102941 Tail-call detection support in the front-end 2013-12-05 23:53:05 +04:00
Svetlana Isakova 8e27877817 check definite return in local functions 2013-12-05 15:51:57 +04:00
Svetlana Isakova d27c8b7d61 added test for obsolete task
#KT-4034 Fixed
2013-12-05 15:51:57 +04:00
Natalia Ukhorskaya 27e602133d Small fixes after review: do not set is_pure=true for named constants refactoring 2013-12-05 15:23:41 +04:00
Natalia Ukhorskaya e5a3518248 Parse longs with 'L' suffix. Report error if 'l' used. 2013-12-05 15:23:40 +04:00
Natalia Ukhorskaya b6ce6c5e5a Parse floats with 'F' or 'f' suffix 2013-12-05 15:22:01 +04:00
Natalia Ukhorskaya e805478d6c Get call expression type from compile time value if possible 2013-12-05 15:22:00 +04:00