Skip to content

add eq-type#379

Merged
vekatze merged 1 commit intomainfrom
eq-type
Jan 27, 2026
Merged

add eq-type#379
vekatze merged 1 commit intomainfrom
eq-type

Conversation

@vekatze
Copy link
Owner

@vekatze vekatze commented Jan 27, 2026

Example:

define-meta sample<a>(): 'int {
  let b = magic eq-type(list(int), a);
  if b {
    quote {10}
  } else {
    quote {20}
  }
}

define use-eq-type(): unit {
  let _ = sample<list(int)>::(); // → 10
  let _ = sample<bool>::();      // → 20
  Unit
}

@vekatze vekatze enabled auto-merge January 27, 2026 04:45
@vekatze vekatze self-assigned this Jan 27, 2026
@vekatze vekatze merged commit bf206ab into main Jan 27, 2026
4 checks passed
@vekatze vekatze deleted the eq-type branch January 27, 2026 04:56
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