Fix make_mono_id to take into account self types. Closes #7536.

This commit is contained in:
Michael Sullivan 2013-07-01 18:38:41 -07:00
parent 0c6fc46c03
commit 419a14772a
3 changed files with 49 additions and 36 deletions

View file

@ -39,7 +39,6 @@ fn main() {
assert_eq!(Some(Some(3)).hi(), ~"something!something!hello: 3");
assert_eq!(None::<int>.hi(), ~"hello - none");
// These fail because of a bug in monomorphization's ID generation.
//assert_eq!(Some(None::<int>).hi(), ~"something!hello - none");
//assert_eq!(Some(3).hi(), ~"something!hello: 3");
assert_eq!(Some(None::<int>).hi(), ~"something!hello - none");
assert_eq!(Some(3).hi(), ~"something!hello: 3");
}