-
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Summary
Renaming nested field of the first list element would not affect other elements.
Current behavior
type alias Foo =
{ foo : Bar
}
type alias Bar =
{ bar : Int }
fooBarList : List Foo
fooBarList =
[ { foo = { bar = 0 } }
, { foo = { bar = 1 } }
]Renaming bar to baz on the first element or type definition would result in:
type alias Foo =
{ foo : Bar
}
type alias Bar =
{ baz : Int }
fooBarList : List Foo
fooBarList =
[ { foo = { baz = 0 } }
, { foo = { bar = 1 } } -- unchanged
]which is a type error.
Expected behavior
[ { foo = { baz = 0 } }
, { foo = { baz = 1 } } -- the second field should also be renamed
]Metadata
Metadata
Assignees
Labels
No labels