Interface methods can not be used as value #11

Closed
opened 2026-06-16 10:52:10 +02:00 by st · 0 comments
Owner

Repro

> Bits.and
error: 'Bits.and' cannot be used as a value
 --> <input>:1:1
  |
1 | Bits.and
  | ^

Ideally, interface methods should have types like fn[T: Bits](T, T) -> T

Repro ``` > Bits.and error: 'Bits.and' cannot be used as a value --> <input>:1:1 | 1 | Bits.and | ^ ``` Ideally, interface methods should have types like `fn[T: Bits](T, T) -> T`
st closed this issue 2026-06-28 18:53:17 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
st/amelie#11
No description provided.