2011-05-12 14:45:29 -05:00
|
|
|
// error-pattern:Unsatisfied precondition
|
2010-07-08 09:33:25 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn foo(x: int) { log x; }
|
2010-07-08 09:33:25 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { let x: int; if 1 > 2 { log "whoops"; } else { x = 10; } foo(x); }
|