Merge branch 'master' of https://github.com/MAnyKey/rust into rollup

This commit is contained in:
Erick Tryzelaar 2013-08-10 13:03:34 -07:00
commit f007a46d37

View File

@ -2195,7 +2195,7 @@ use std::float::consts::pi;
# impl Shape for CircleStruct { fn area(&self) -> float { pi * square(self.radius) } }
let concrete = @CircleStruct{center:Point{x:3f,y:4f},radius:5f};
let mycircle: Circle = concrete as @Circle;
let mycircle: @Circle = concrete as @Circle;
let nonsense = mycircle.radius() * mycircle.area();
~~~