Fix make_mono_id to take into account self types. Closes #7536.
This commit is contained in:
parent
0c6fc46c03
commit
419a14772a
3 changed files with 49 additions and 36 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue