Moved TraitExpression helpers to namespace
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Julien Valverdé
2024-02-04 22:50:13 +01:00
parent 8d2cb90f52
commit f6f56b74cd
3 changed files with 31 additions and 29 deletions

View File

@@ -119,13 +119,13 @@ type GetTraitExpression<
OwnTraits extends Trait<any, any, any>[],
AllTraits extends Trait<any, any, any>[],
> = (
Call<Tuples.IsEmpty, OwnTraits> extends true
Call<Tuples.IsEmpty, AllTraits> extends true
? "Cannot express an empty list of traits."
: AbstractMembersExtendable<Super, OwnTraits> extends false
: AbstractMembersExtendable<Super, AllTraits> extends false
? "Type conflict between the traits abstract members and/or the superclass instance."
: ImplInstanceExtendable<Super, OwnTraits> extends false
: ImplInstanceExtendable<Super, AllTraits> extends false
? "Type conflict between the traits implementation instances and/or the superclass instance."
: ImplStaticMembersExtendable<Super, OwnTraits> extends false
: ImplStaticMembersExtendable<Super, AllTraits> extends false
? "Type conflict between the traits implementation static members and/or the superclass static members."
: TraitExpression<Super, OwnTraits, AllTraits>
)