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 am trying to define two parametric types with circular dependency as follows (julia version 0.4.2):
abstract abstest
type t1{A <:abstest, B}
x::A
y::Bend
type t2{C, B} <:abstest
x::C
y::t1{t2{C, B}, B}end
Unfortunately it doesn't work:
ERROR: TypeError: t1: in A, expected A<:abstest, got Type{t2{C,B}}
Apparently he is complaining about the definition of field y in the definition of type t2. But t2{C, B} is a subtype of abstest, so {t2{C, B}, B} should be valid parameters for type t1. Probably I am missing something here.
The text was updated successfully, but these errors were encountered:
In continuation from https://groups.google.com/forum/#!topic/julia-users/bYPdJSUq_9g
I am trying to define two parametric types with circular dependency as follows (julia version 0.4.2):
Unfortunately it doesn't work:
Apparently he is complaining about the definition of field
y
in the definition of typet2
. Butt2{C, B}
is a subtype of abstest, so{t2{C, B}, B}
should be valid parameters for typet1
. Probably I am missing something here.The text was updated successfully, but these errors were encountered: