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: update code to match latest MoonBit #48

Merged
merged 21 commits into from
Aug 2, 2024

Conversation

tonyfettes
Copy link
Contributor

No description provided.

@skylee03 skylee03 changed the title update test fix: update code to match latest MoonBit Jul 23, 2024
@skylee03
Copy link
Collaborator

skylee03 commented Jul 28, 2024

It seems that the panic is caused by the redefinition of Map. Renaming it to MyMap could solve it.

// docs/09
type Map[Key, Value] @immut/list.T[(Key, Value)]
// docs/10
struct Map[K, V] {
  get : (K) -> Option[V]
  put : (K, V) -> Unit
  remove : (K) -> Unit
  size : () -> Int
}

Related issue:

@skylee03
Copy link
Collaborator

Potential breaking change:

@peter-jerry-ye peter-jerry-ye merged commit 21b780e into moonbitlang:main Aug 2, 2024
3 checks passed
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.

3 participants