You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the error when running the code below:
import Distributions: rand, logpdf
"""Generalized distributions that support sampling (and evaluating the probability of) structured data. """abstract type GDistr end@trait GDistr prefix Is, IsNot
@implement Is{GDistr} by rand(rng::AbstractRNG, _)
@implement Is{GDistr} by logpdf(_, x)
@assign Distribution with Is{GDistr}
@check Distribution
Is this the expected behavior? Or am I doing something wrong? (My Julia version is 1.7)
The custom logic was originally developed to address a Bottom type issue with julialang (JuliaLang/julia#30808). However, the custom logic does not work properly for UnionAll signatures as seen from #54.
It appears that the original Julia hasmethod issue has been resolved. See my latest comment in that issue. So, I'm removing the custom logic here. All tests pass.
Hi,
I encountered the error when running the code below:
Is this the expected behavior? Or am I doing something wrong? (My Julia version is 1.7)
The stack trace:
The text was updated successfully, but these errors were encountered: