We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E.g.
julia> @compactify begin @abstract struct AT end struct A <: AT end struct B <: AT end end ERROR: LoadError: AssertionError: no getproperty matches? Stacktrace: [1] _compactify(mod::Module, block::Expr; debug::Bool, show_methods::Bool) @ Unityper ~/.julia/packages/Unityper/vtKYP/src/compactify.jl:346 [2] var"@compactify"(__source__::LineNumberNode, __module__::Module, exs::Vararg{Any}) @ Unityper ~/.julia/packages/Unityper/vtKYP/src/compactify.jl:46 in expression starting at REPL[3]:1
If I remove the @assert expr !== ifold "no getproperty matches?" this seems to work but I'm not sure if there's some other issue.
@assert expr !== ifold "no getproperty matches?"
The text was updated successfully, but these errors were encountered:
What's the advantage over
@enum AT A B
?
Sorry, something went wrong.
I think I wanted to do MasonProtter/SumTypes.jl#15 (comment) in UniTyper but couldn’t represent the empty object
A single empty should work?
julia> @compactify begin @abstract struct AT end struct A <: AT end struct B <: AT; x::Int=0; end end
I'd guess removing the @assert like you did shouldn't cause any problems.
@assert
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
E.g.
If I remove the
@assert expr !== ifold "no getproperty matches?"
this seems to work but I'm not sure if there's some other issue.The text was updated successfully, but these errors were encountered: