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

Marker trait field inconsistent naming #1221

Open
maximebuyse opened this issue Jan 7, 2025 · 0 comments
Open

Marker trait field inconsistent naming #1221

maximebuyse opened this issue Jan 7, 2025 · 0 comments
Labels
engine Issue in the engine

Comments

@maximebuyse
Copy link
Contributor

trait T2 {}

impl<U> T2 for U  {}

Open this code snippet in the playground

This code gets translated as:

class t_T2 (v_Self: Type0) = {
  __marker_trait_t_T2:Prims.unit
}

[@@ FStar.Tactics.Typeclasses.tcinstance]
let impl (#v_U: Type0) : t_T2 v_U =
  { __marker_trait = () }

There is an inconsistency between __marker_trait_t_T2 in the type class definition and __marker_trait in the impl.

@maximebuyse maximebuyse added the engine Issue in the engine label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Issue in the engine
Projects
None yet
Development

No branches or pull requests

1 participant