aeneas icon indicating copy to clipboard operation
aeneas copied to clipboard

Correctly namespace default trait methods

Open Nadrieril opened this issue 9 months ago • 0 comments
trafficstars

Aeneas translates trait methods that have a default body because in the future we may want to refer to them. These methods are named Trait::method, which in Lean causes a name clash with the method field of Trait: both would be named Trait.method. To avoid this clash, in https://github.com/AeneasVerif/aeneas/pull/437 we rename these methods to Trait::default::method.

This however could still cause clashes with a method named default. We should find a naming scheme that is unlikely to clash with other names.

Nadrieril avatar Feb 12 '25 13:02 Nadrieril