summary refs log tree commit diff
path: root/src/test/run-pass/classes-simple.rs
AgeCommit message (Collapse)AuthorLines
2012-03-28Allow references to "self" within classesTim Chevalier-1/+1
Allow writing self.f within a class that has a field f. Currently, the compiler accepts either self.f or f. In a future commit I'll require writing self.f and not f. Not sure whether self.f() works if f is a method (making sure that works next).
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-1/+1
2012-03-16Encode both private and public class fields in metadataTim Chevalier-2/+0
This is necessary to calculate the correct offsets for field references. Simple cross-crate class tests (still with fields only) now pass.
2012-03-04test: xfail-fast run-pass/classes-simple.rsBrian Anderson-0/+2
2012-03-04Translate simple classesTim Chevalier-4/+3
Programs using classes with fields only (no methods) compile and run, as long as nothing refers to a class in a different crate (todo). Also changed the AST representation of classes to have a separate record for constructor info (instead of inlining the fields in the item_class node), and fixed up spans and pretty-printing for classes.
2012-02-20Re-XFAIL test that I accidentallyTim Chevalier-0/+1
2012-02-20fix whitespace againTim Chevalier-2/+1
2012-02-20Further work on resolving and typechecking classesTim Chevalier-0/+7
Class tests aren't working yet, but they fail a little later :-) Also, make the parser correctly set a constructor's result type to its enclosing class type.
2012-02-09Further WIP on classesTim Chevalier-0/+10
Changes to resolve and typeck. Still nothning working yet.