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

Add instanceof statements #10

Merged

Conversation

biboudis
Copy link
Owner

Adds support for instanceof statements for example:

    record H<T>(T t) { }
    static class B {
        H<String> h;
        public B(H<String> s) { h = s; }

        pattern B(String s) {
            h instanceof H<String>(String ss);
            match B(ss);
        }
    }

@biboudis biboudis force-pushed the matchers-experiment-instanceof-statement branch from e25daac to af57b19 Compare September 25, 2024 14:51
@biboudis biboudis merged commit 58bfec1 into matchers-experiment Sep 25, 2024
86 of 88 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.

1 participant