gleam-lang/gleam

Qualify or import generated variants

Closed

#5,735 opened on 2026年5月19日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)Rust (21,417 stars) (960 forks)batch import
help wanted

説明

When you use the generate variant LS action for a type that lives in another module:

Event(..) -> [PlaceIn(SmokedPile)]
// Use generate variant here ^

If PlaceIn is in another module, the variant is generated correctly but it's not imported by the currrent module, so you need to manually import it.

コントリビューターガイド