Skip to content

Commit aafc9da

Browse files
committed
---
yaml --- r: 1830 b: refs/heads/master c: 2c21195 h: refs/heads/master v: v3
1 parent c2422a3 commit aafc9da

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 8d8a48cfc444f212389ddac7b676c40ec5b6bbf8
2+
refs/heads/master: 2c21195b216a93b8a97de1cab45da76ddb24b90b

trunk/src/comp/middle/typeck.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@ fn ty_params_and_ty_for_def(@fn_ctxt fcx, &ast.def defn)
184184
ret tup(none[vec[ast.def_id]], plain_ty(ty.ty_nil));
185185
}
186186

187+
case (ast.def_ty(_)) {
188+
fcx.ccx.sess.err("expected value but found type");
189+
fail;
190+
}
191+
187192
case (_) {
188193
// FIXME: handle other names.
189194
fcx.ccx.sess.unimpl("definition variant");

0 commit comments

Comments
 (0)