Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the extracted name of some clone methods #378

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Conversation

sonmarcho
Copy link
Member

This is related to #375 (comment)
The following code:

#[derive(Clone)]
pub struct Record {
    age: u32,
    zip: u32,
    salary: u32,
}

extracted to:

... -- Omitting the struct

def ClonekanonRecord.clone (self : Record) : Result Record :=
  let i := core.clone.CloneU32.clone self.age
  let i1 := core.clone.CloneU32.clone self.zip
  let i2 := core.clone.CloneU32.clone self.salary
  Result.ok { age := i, zip := i1, salary := i2 }

while it was supposed to extract to:

def CloneissueRecord.clone (self : Record) : Result Record :=
  let i := core.clone.impls.CloneU32.clone self.age
  let i1 := core.clone.impls.CloneU32.clone self.zip
  let i2 := core.clone.impls.CloneU32.clone self.salary
  Result.ok { age := i, zip := i1, salary := i2 }

@sonmarcho sonmarcho marked this pull request as ready for review December 2, 2024 10:55
@sonmarcho sonmarcho merged commit 95fb853 into main Dec 2, 2024
12 checks passed
@sonmarcho sonmarcho deleted the son/extract branch December 2, 2024 11:13
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.

1 participant