aiken/examples/acceptance_tests/015/lib/test.ak

13 lines
241 B
Plaintext

pub opaque type Map<key, value> {
inner: List<#(key, value)>,
}
pub fn new() {
Map { inner: [] }
}
// Seems to be an issue with the parser. The TypedExpr body is excluding the Equal binop.
test new_1() {
new() == Map { inner: [] }
}