Skip to content

Commit

Permalink
keep custom isexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter committed Jan 22, 2024
1 parent dd78b60 commit c306f06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SumTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module SumTypes
export @sum_type, @cases, Uninit, full_type

using MacroTools: MacroTools
using Base: isexpr

function constructors end
function constructor end
Expand All @@ -14,6 +13,8 @@ is_sumtype(::Type{T}) where {T} = false
function get_tag end
function tags end

isexpr(x, head) = x isa Expr && x.head == head

"""
isvariant(x::SumType, s::Symbol)
Expand Down

0 comments on commit c306f06

Please sign in to comment.