Commit Graph

46 Commits

Author SHA1 Message Date
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
Svetlana Isakova 114988ac82 KT-1579 "Can't import nested class/trait" partially: Entry can be imported, but Map.Entry in code is still unresolved 2012-03-16 17:09:28 +04:00
Stepan Koltsov 3748507ac1 disable +JDK macro in JetDiagnosticsTest and fix (actually hide) revealed bugs
+JDK was not very helpful
2012-03-12 22:54:24 +04:00
Stepan Koltsov 07ff53d456 add trailing newlines to test files
otherwise I have to rollback dozens of files after using sed that follows conventions
2012-03-12 22:54:14 +04:00
Stepan Koltsov 8be79b3f22 split some tests in JetDiagnosticsTest 2012-03-12 22:53:50 +04:00
svtk c9cba3e1cc KT-939 CommonSupertypes erases scopes associated to types 2012-01-25 13:53:07 +04:00
svtk 8ec8fa47a4 KT-1078 Problem with visibility in do-while 2012-01-20 14:52:48 +04:00
svtk 7fae503a38 KT-1080 Don't use previously imported packages while resolving import references 2012-01-20 11:58:17 +04:00
svtk a07e164076 KT-955 Unable to import a Kotlin package into a Kotlin file with no package header 2012-01-13 18:18:18 +04:00
svtk 119783ef31 warning on hidden imports 2012-01-13 13:28:05 +04:00
svtk 390eb0cde3 forbid import of functions and properties from objects 2012-01-12 18:39:25 +04:00
svtk 3e8e8bd3c8 import from objects before properties resolve 2012-01-11 14:19:01 +04:00
svtk a22b78d60d Import all members from class object 2012-01-10 22:20:02 +04:00
svtk e50e3f8ec8 KT-900 Inaccessible class should be unresolved 2012-01-10 17:48:02 +04:00
svtk e25446a708 resolve imports from objects; error "cannot import from"; ClassDescriptorBoundToReceiver added 2011-12-30 16:19:10 +04:00
svtk 244d390d71 KT-587 Unresolved reference 2011-12-30 16:17:32 +04:00
svtk 533bab41ef objects or variables members import resolve functionality rollback 2011-12-29 17:00:39 +04:00
svtk ee2fdbf0a9 Merge remote-tracking branch 'origin/master' 2011-12-27 17:00:54 +04:00
svtk 979dfdcd1e resolve of import all members from objects and variables 2011-12-27 17:00:43 +04:00
Andrey Breslav 1704247534 Merge remote branch 'origin/master'
Conflicts:
	idea/testData/checker/RecursiveTypeInference.jet
2011-12-27 15:00:33 +04:00
svtk 7060f6ef80 Added imports resolve from objects and variables 2011-12-27 14:35:52 +04:00
Andrey Breslav fa5be15852 Diagnostics test data fixed 2011-12-26 19:55:29 +04:00
Andrey Breslav f52eae71d0 GreatSyntacticShift: 'namespace' -> 'package' 2011-12-25 15:51:59 +04:00
Andrey Breslav 41fd43b5e5 GreatSyntacticShift: Syntax for function types, function literals, when and tuples
Bug:
fun loop(var times : Int) {
   while(times > 0) {
        val u : (value : Int) -> Unit = { // This arrow is confusing the lookahead
            System.out?.println(it)
        }
        u(times--)
   }
}
2011-12-20 22:55:25 +04:00
svtk 66bbddf217 changed imports resolve 2011-12-20 20:14:04 +04:00
svtk 39ac205b55 KT-250 Incorrect variable resolve in constructor arguments of superclass
KT-10 Don't allow to use properties in supertype initializers
KT-617 Prohibit dollars in call to superclass constructors
2011-12-02 14:18:36 +04:00