mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
add inspect implementation for dict and set
This commit is contained in:
parent
79a58843b5
commit
9b181e1b3f
5 changed files with 1239 additions and 2 deletions
|
@ -29,8 +29,8 @@ pub(crate) fn derive_to_inspector(
|
|||
) -> DerivedBody {
|
||||
let (body, body_type) = match key {
|
||||
FlatInspectableKey::List() => to_inspector_list(env, def_symbol),
|
||||
FlatInspectableKey::Set() => todo!(),
|
||||
FlatInspectableKey::Dict() => todo!(),
|
||||
FlatInspectableKey::Set() => unreachable!(),
|
||||
FlatInspectableKey::Dict() => unreachable!(),
|
||||
FlatInspectableKey::Record(fields) => {
|
||||
// Generalized record var so we can reuse this impl between many records:
|
||||
// if fields = { a, b }, this is { a: t1, b: t2 } for fresh t1, t2.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue