Skip to content

add code action to replace underscore with corresponding type#5450

Open
giacomocavalieri wants to merge 1 commit intogleam-lang:mainfrom
giacomocavalieri:replace-underscore
Open

add code action to replace underscore with corresponding type#5450
giacomocavalieri wants to merge 1 commit intogleam-lang:mainfrom
giacomocavalieri:replace-underscore

Conversation

@giacomocavalieri
Copy link
Member

This PR closes #5447

//                trigger here! v
-pub fn wibble() -> Result(List(_), String) {
+pub fn wibble() -> Result(List(Int), String) {
  Ok([1 + 1])
}

  • The changes in this PR have been discussed beforehand in an issue
  • The issue for this PR has been linked
  • Tests have been added for new behaviour
  • The changelog has been updated for any user-facing changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a code action to replace _ with type

1 participant