diff options
author | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-21 20:30:20 +0800 |
---|---|---|
committer | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-21 20:30:20 +0800 |
commit | 8d1acfa3993e64b0266365379602799350855f3f (patch) | |
tree | 8ebd1c2c02a322714d2ea64776ac504f955d5fd6 /samples/std.rs | |
parent | 15284f127f4c622bf4d67d8d8c44e1799f84e7cb (diff) | |
download | mrust-8d1acfa3993e64b0266365379602799350855f3f.tar.gz |
Type propagation coming along
Diffstat (limited to 'samples/std.rs')
-rw-r--r-- | samples/std.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/std.rs b/samples/std.rs index 4f152fc6..a0110c40 100644 --- a/samples/std.rs +++ b/samples/std.rs @@ -45,9 +45,9 @@ pub mod iter pub mod char { - pub fn from_u32(v: u32) -> char + pub fn from_u32(v: u32) -> ::option::Option<char> { - v // TODO: This should generate a typecheck failure, but that part is incomplete + ::option::Option::Some(v as char) // Will eventually need a version of mem::transmute() } } |