Skip to content

Commit cca65cf

Browse files
committed
Fix all methods in a class always being marked as optional
1 parent efa33b0 commit cca65cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hackett-lib/hackett/private/class.rkt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
#:with [(~var super-constr (type t-intdef-ctx)) ...] (attribute constr)
6161

6262
#:with [method-id- ...] (generate-temporaries #'[method-id ...])
63-
#:with [method-default-id- ...] (generate-temporaries #'[method-id ...])
63+
#:attr [method-default-id- 1] (map #{and %1 %2}
64+
(attribute method-default-impl)
65+
(generate-temporaries #'[method-id ...]))
6466
#:with [method-t-expr ...] (map preservable-property->expression (attribute method-t.τ))
6567
#:with [super-constr-expr ...] (map preservable-property->expression
6668
(attribute super-constr.τ))

0 commit comments

Comments
 (0)