Skip to content

Commit

Permalink
Add interface implementation check for basic block
Browse files Browse the repository at this point in the history
  • Loading branch information
kertox662 authored and jomei committed Apr 28, 2022
1 parent 0d2883b commit 3b1214f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions block.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ func (b BasicBlock) GetArchived() bool {
return b.Archived
}

var _ Block = (*BasicBlock)(nil)

type ParagraphBlock struct {
BasicBlock
Paragraph Paragraph `json:"paragraph"`
Expand Down

0 comments on commit 3b1214f

Please sign in to comment.