2011-05-02 14:28:35 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
|
|
|
// error-pattern: expected the constraint name
|
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
obj f() {
|
|
|
|
fn g(q: int) -> bool { ret true; }
|
2011-05-02 14:28:35 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2011-07-27 14:19:39 +02:00
|
|
|
let z = f();
|
2011-07-27 14:48:34 +02:00
|
|
|
// should fail to typecheck, as z.g isn't an explicit name
|
|
|
|
check (z.g(42));
|
2011-07-27 14:19:39 +02:00
|
|
|
}
|