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(compiler): runtime type matching system #395

Merged
merged 8 commits into from
Feb 12, 2023
Merged

Conversation

mtshiba
Copy link
Member

@mtshiba mtshiba commented Feb 11, 2023

Fix runtime type matching system and related things.

This patch resolves the following issues:

  • Parameters cannot be hovered or renamed
  • Cannot match using types belonging to a module
# this script is now compilable
re = pyimport "re"

badge_pattern = re.compile "a+"
badge_match = badge_pattern.search "aaaa"
match! badge_match:
    (some: re.Match) => print! "matched: \{some.group 0}"
    _ => print! "not matched"

@mtshiba mtshiba merged commit ffaf757 into main Feb 12, 2023
@mtshiba mtshiba deleted the fix-type-matching branch February 12, 2023 17:39
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