Files
doslang-mirror/fec/tests/optional/oknull1.fe
T

13 lines
170 B
Plaintext

unit oknull1;
struct Node { value: i32, }
fn accepts(p: ?^Node) -> bool { return p == null; }
fn test() -> bool {
let p: ?^Node = null;
return accepts(p);
}