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
Update: @krux02 has found this happens when constraints are specified. When the constraints are removed the code will compile.
the code below fails with: Error: cannot instantiate Data got: <type int, type float64> but expected: <T: SomeNumber, U: SomeNumber>
typeElement*[U:SomeNumber] =refobject
value*: U
Data*[T:SomeNumber, U:SomeNumber] =refobject
xs*: seq[T]
e*: Element[U]
var e =Element[float64](value:2'f64)
var xs =new_seq[int](10)
var d =Data[int, float64](xs:xs, e:e)