summary refs log tree commit diff
path: root/src/test/compile-fail/private-method.rs
AgeCommit message (Collapse)AuthorLines
2012-07-01Convert to new closure syntaxBrian Anderson-1/+1
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-1/+1
2012-03-29Require "self" as base expression for intra-class method or field referencesTim Chevalier-1/+1
All field or method references within a class must begin with "self." now. A bare reference to a field or method in the same class will no longer typecheck.
2012-03-28Allow explicit self-calls within classesTim Chevalier-1/+1
Allow writing self.f() within a class that has a method f. In a future commit, this syntax will be required. For now, you can write either self.f() or f(). I added a "privacy" field to all methods (whether class methods or not), which allowed me to refactor the AST somewhat (getting rid of the class_item type; now there's just class_member).
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-1/+1
2012-03-26In typeck, don't call ty::store_iface_methods on private methodsTim Chevalier-1/+1
This was resulting in a different error message depending on whether the private method you were trying to call was in the same crate or a different one.
2012-03-26Enforce privacy declarations for class fields and methodsTim Chevalier-0/+16