Skip to content

Commit 88f6b2d

Browse files
committed
Distill item type annotations in check mode
1 parent ecf72b2 commit 88f6b2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fathom/src/surface/distillation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl<'interner, 'arena, 'env> Context<'interner, 'arena, 'env> {
131131
r#type,
132132
expr,
133133
} => {
134-
let r#type = scope.to_scope(self.synth(r#type));
134+
let r#type = scope.to_scope(self.check(r#type));
135135
let expr = scope.to_scope(self.check(expr));
136136

137137
Item::Def(ItemDef {

tests/succeed/distillation/fresh-names.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
stdout = '''
2-
def a : () : Type = ();
2+
def a : () = ();
33
def const1 : fun (@A : Type) (@B : Type) -> A -> B -> A =
44
fun @b @c x y => let x1 : b = x;
55
let y1 : c = y;

0 commit comments

Comments
 (0)