diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-02-20 15:42:21 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-02-20 17:16:52 -0800 |
| commit | 2299d204e40e565396daabc7b8d5141cdef52c8b (patch) | |
| tree | d44318a7c1a3ca7d7d6e93a020626538c0a4b0e0 /src/comp/util | |
| parent | 5837e1e809af6d783984d94ca27fe488823ecfe6 (diff) | |
Further work on resolving and typechecking classes
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.
Diffstat (limited to 'src/comp/util')
| -rw-r--r-- | src/comp/util/ppaux.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/util/ppaux.rs b/src/comp/util/ppaux.rs index 2d253a1c3a9..547c2d5ee82 100644 --- a/src/comp/util/ppaux.rs +++ b/src/comp/util/ppaux.rs @@ -117,7 +117,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> str { ty_param(id, _) { "'" + str::from_bytes([('a' as u8) + (id as u8)]) } - ty_enum(did, tps) | ty_res(did, _, tps) { + ty_enum(did, tps) | ty_res(did, _, tps) | ty_class(did, tps) { // Not sure why, but under some circumstances enum or resource types // do not have an associated id. I didn't investigate enough to know // if there is a good reason for this. - Niko, 2012-02-10 |
