chore: update changelog
expecting a type on List<Data> from data now only checks that type is a list and not each element
This commit is contained in:
parent
eda388fb29
commit
2f7784f31e
|
@ -11,8 +11,10 @@
|
||||||
tree abstraction.
|
tree abstraction.
|
||||||
- **aiken-lang**: Zero argument anonymous functions now are implemted as a
|
- **aiken-lang**: Zero argument anonymous functions now are implemted as a
|
||||||
delayed function body and calling them simply does force
|
delayed function body and calling them simply does force
|
||||||
- **aiken-lang**: Matching on int in expect and when cases is now implemented.
|
- **aiken-lang**: Matching on int in expect and when cases is now implemented
|
||||||
- **aiken-lang**: Using assign in nested pattern matches is now implemented.
|
- **aiken-lang**: Using assign in nested pattern matches is now implemented
|
||||||
|
- **aiken-lang**: Using List<Data> as a validator params only checks the type is
|
||||||
|
a list and does not attempt to check each item
|
||||||
|
|
||||||
### Optimization
|
### Optimization
|
||||||
|
|
||||||
|
|
|
@ -1212,6 +1212,9 @@ impl<'a> CodeGenerator<'a> {
|
||||||
|
|
||||||
let inner_list_type = &tipo.get_inner_types()[0];
|
let inner_list_type = &tipo.get_inner_types()[0];
|
||||||
|
|
||||||
|
if inner_list_type.is_data() {
|
||||||
|
value
|
||||||
|
} else {
|
||||||
let list_name = format!("__list_span_{}_{}", location.start, location.end);
|
let list_name = format!("__list_span_{}_{}", location.start, location.end);
|
||||||
let item_name = format!("__item_span_{}_{}", location.start, location.end);
|
let item_name = format!("__item_span_{}_{}", location.start, location.end);
|
||||||
|
|
||||||
|
@ -1271,6 +1274,7 @@ impl<'a> CodeGenerator<'a> {
|
||||||
);
|
);
|
||||||
|
|
||||||
assign.hoist_over(func_call)
|
assign.hoist_over(func_call)
|
||||||
|
}
|
||||||
} else if tipo.is_2_tuple() {
|
} else if tipo.is_2_tuple() {
|
||||||
let tuple_inner_types = tipo.get_inner_types();
|
let tuple_inner_types = tipo.get_inner_types();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue