-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-trait-systemArea: Trait systemArea: Trait systemA-type-systemArea: Type systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
e.g.
trait Foo {}
trait Bar {}
type Alias = Foo + Bar;
// typechecks fine:
fn bar<T: Foo + Bar>(t: T) {
baz(t)
}
fn baz<T: Alias>(t: T) {
bar(t)
}
This is similar to defining a trait inheriting from both (trait Alias: Foo + Bar {}
) but it's purely a synonym and doesn't have to be impl
'd separately.
jjpe, evanandrewrose, schneiderfelipe, appetrosyan, mormahr and 2 more
Metadata
Metadata
Assignees
Labels
A-trait-systemArea: Trait systemArea: Trait systemA-type-systemArea: Type systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.