Commit Graph

75 Commits

Author SHA1 Message Date
Alexander Udalov 796912bfcb Provide implicit receiver to extension property initializer
This is safe because initializers for extension properties are forbidden
anyway, we'll just won't be generating noisy error messages about non-existent
'this'
2014-05-29 21:24:06 +04:00
Alexander Udalov d78d4bc44c Disallow extension properties with backing fields
#KT-1682 Fixed
2014-05-29 21:24:05 +04:00
Natalia Ukhorskaya a0549f0ff5 Evaluate expression: allow to call invisible members
#KT-4935 Fixed
2014-05-15 13:54:22 +04:00
Alexander Udalov f7b6457139 Replace "jet" package name with "kotlin" in testData 2014-03-02 19:55:26 +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
Alexander Udalov 310a70bf84 Report a separate diagnostic on inheritance from singletons 2013-12-02 19:56:16 +04:00
Alexander Udalov 92cdb0b6e7 Fix imports from objects
This almost reverts 345ecbf, since now properties are no longer created for
objects
2013-12-02 19:56:13 +04:00
Andrey Breslav 345ecbf4c0 Never import object descriptors, for they may overwrite corresponding vals 2013-11-21 13:07:39 +04:00
Evgeny Gerashchenko e4d8e4d61b Not ignoring other properties in scope.
First one (almost randomly) was chosen instead of ambiguity.
2013-09-12 14:58:58 +04:00
Svetlana Isakova c739632c57 report 'ambiguity' on reference, not on the whole expression
as other type inference errors
2013-09-03 13:09:15 +04:00
Andrey Breslav 8a79e7ab7d .jet -> .kt 2013-04-12 21:06:54 +04:00
Mikhael Bogdanov 029b2d9770 Test fixes for 'New diagnostic error for ambiguous object expression type' 2013-02-19 17:56:56 +04:00
Nikolay Krasko ee227f01b9 Add test for checking ambiguity for root package and the same package 2013-02-04 14:23:21 +04:00
Nikolay Krasko f2e78d9064 Create scope with lazy import resolve 2013-02-04 14:23:21 +04:00
Alexander Udalov 5d92453532 Inaccessible outer class member is now an error
#KT-1174 In Progress
2013-01-16 23:11:41 +04:00
Svetlana Isakova d0a6f6252d fixed: DEBUG_INFO_ERROR_ELEMENT should be visible in tests 2012-11-20 19:53:03 +04:00
Svetlana Isakova 126f5e1668 check debug info errors in diagnostic tests 2012-11-16 15:32:59 +04:00
Svetlana Isakova cd5521d6dc rename error 2012-09-07 19:03:07 +04:00
Svetlana Isakova 7c828b9ff7 diagnostic tests changes after collections mapping 2012-09-05 18:55:16 +04:00
Svetlana Isakova 31831f2433 added 'class has Kotlin analog' error
to existing diagnostic tests
2012-09-05 18:55:16 +04:00
Andrey Breslav bf503e9a4b KT-2363 Drop secondary constructors
#KT-2363 Fixed
2012-07-19 19:53:06 +04:00
Andrey Breslav 3d8d92c7d3 JetDiagnosticsTest migrated to TestGenerator
- test data files renamed from *.jet to *.kt
2012-07-10 14:48:11 +04:00
Evgeny Gerashchenko ba92ce2172 Added protected top-level class and trait into front-end tests. 2012-06-16 19:38:21 +04:00
Stepan Koltsov 4d4a70cb83 test what happens if function is imported two times 2012-06-16 02:45:59 +04:00
Svetlana Isakova 2f0278d63b KT-2262 Cannot access protected member from inner class of subclass
#KT-2262 fixed
2012-06-13 17:03:04 +04:00
Svetlana Isakova 2286022307 get rid of 'internal protected' visibility 2012-06-09 19:43:53 +04:00
Svetlana Isakova b63d3905f9 KT-1256 Error highlighting in IDE should be less annoying
#KT-1256 fixed
2012-05-22 18:23:51 +04:00
Svetlana Isakova c2385407e0 KT-1942 Package local members from Java are visible in subclasses
#KT-1942 fixed
2012-05-21 18:32:19 +04:00
Svetlana Isakova 765d851b1a Tests for fixed issues
#KT-1736 fixed
 #KT-1244 fixed
 #KT-1738 fixed
2012-05-04 20:47:26 +04:00
Svetlana Isakova d245a10d02 KT-1822 Error 'cannot infer visibility' required
#KT-1822 fixed
2012-04-19 16:01:46 +04:00
Svetlana Isakova 08e18e5d9c KT-1806 accessing private member in object class/anonymous object is not highlighted as error
#KT-1806 fixed
2012-04-18 19:59:34 +04:00
Svetlana Isakova d08bb4e6ec test for KT-1805 Better diagnostic for access to private field of parent class
#KT-1805 Fixed
2012-04-18 19:02:24 +04:00
Svetlana Isakova 1ed79d534f KT-151 Inherit visibility when overriding
#KT-151 Fixed

Visibilities.INHERITED constant added (occurs only during resolve), changed after overridden descriptors resolve
Fake descriptors are created for invisible properties as well (is necessary for better error reporting)
2012-04-18 19:02:24 +04:00
Svetlana Isakova 2de69d8cd8 stop resolution if ambiguity is found 2012-04-06 20:42:51 +04:00
Svetlana Isakova 7863b1398e Resolve invisible references and mark them 'invisible' instead of mark them 'unresolved' 2012-04-05 18:36:46 +04:00
Svetlana Isakova 0d462bf0bf 'private' package members should be visible for subpackages 2012-04-04 19:02:26 +04:00
Svetlana Isakova ac0fd05463 test for:
#KT-323 Fixed Handle visibility interactions with overriding
2012-04-04 14:36:57 +04:00
Svetlana Isakova 2577683ce8 tests for:
#KT-1248 Fixed Control visibility of overrides needed
#KT-37 Fixed Typechecker doesn't complain about accessing non-public property
2012-04-04 14:36:57 +04:00
Svetlana Isakova 9b2eeb076e KT-1717 Don't make member visibility inherit when it is not declared explicitly
#KT-1717 Fixed
2012-04-03 19:26:28 +04:00
Svetlana Isakova e9788c12d9 member visibility inheritance; check visibility is not weaken added 2012-04-03 16:36:00 +04:00
Svetlana Isakova c47e3957a7 return type can be omitted when override 2012-04-03 16:36:00 +04:00
Svetlana Isakova 4d37672809 added classes visibility check 2012-04-02 15:37:09 +04:00
Svetlana Isakova e364fe4259 public methods in private classes visibility check 2012-04-02 15:37:09 +04:00
Svetlana Isakova b0e301ae9f Invisible call candidates removed from consideration 2012-03-30 13:38:35 +04:00
Svetlana Isakova cd6f3139f0 Changed scope for initializer of extension property /*not to resolve things like val List.length = size() */ 2012-03-28 13:14:35 +04:00
Svetlana Isakova a91a53f7f1 KT-1531 Frontend should prohibit secondary constructors
# KT-1531 Fixed
2012-03-27 17:48:04 +04:00
Svetlana Isakova 48250050f8 test for KT-1580 2012-03-27 16:38:30 +04:00
Svetlana Isakova bd5b84e697 # KT-1642 Fixed kotlin subpackages hide Java's toplevel packages 2012-03-27 16:20:59 +04:00
Svetlana Isakova f7cfb36f62 # KT-1579 Fixed Can't import nested class/trait 2012-03-27 16:20:59 +04:00