Skip to content

Commit

Permalink
remove unused error, it is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Feb 9, 2024
1 parent 66f24ba commit e7de6ad
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions runtime/sema/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3665,27 +3665,6 @@ func (e *InvalidIntersectionTypeDuplicateError) Error() string {
)
}

// InvalidNonConformanceIntersectionError

type InvalidNonConformanceIntersectionError struct {
Type *InterfaceType
ast.Range
}

var _ SemanticError = &InvalidNonConformanceIntersectionError{}
var _ errors.UserError = &InvalidNonConformanceIntersectionError{}

func (*InvalidNonConformanceIntersectionError) isSemanticError() {}

func (*InvalidNonConformanceIntersectionError) IsUserError() {}

func (e *InvalidNonConformanceIntersectionError) Error() string {
return fmt.Sprintf(
"intersection type does not conform to restricting type: `%s`",
e.Type.QualifiedString(),
)
}

// IntersectionMemberClashError

type IntersectionMemberClashError struct {
Expand Down

0 comments on commit e7de6ad

Please sign in to comment.