Gears
Gears
You'll need to rebase instead, and remove the merge commit before this is merged.
Looking through the code, this issue seems to be related to [this line](https://github.com/gleam-lang/gleam/blob/475debf3fef085699ab396601867308f105a018b/compiler-core/src/dependency.rs#L264). If we remove that however (I haven't tested), I assume that we will ignore whether a version...
Does it make any sense to make a more general `replace_n` function, which allows you to specify any number of replacements to do? I can't immediately think of a usecase...
> @GearsDatapacks The replace functions default to just one, and for whatever reason they chose to implement replace all in this lib explicitly. I also don't see a use-case for...
Looking into this more, it's very strange. This code prints the warning twice: ```gleam import gleam/list pub fn main() { use
Yes that's what I thought too. Could be related to the recent changes to the ast representation of use, when the desugar code action was introduced. Or this could have...
Ok, so it looks like it was first introduced in 1.5 in d022ff05f2ac5126292e69eb46d725b2eadaf72a. My guess is that `infer_fn_with_call_context` does a second pass over the code and produces duplicate warnings. I'll...
Ok, so looking into this issue more, it's a bit tricky to figure out a way to get this to work. Basically: - To infer the arguments, we first infer...
Ah, I think that may be a bug. I'm sure I've used that feature before. I'll investigate
Go ahead! I haven't had a chance to look at it yet