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
The type magic does not work in type sections with concept while typeof does
typeEnqueueable=concept x, type T
x isptr
x.next isAtomic[pointer]
MyChannel*[T: Enqueueable] =object
dummy: type(default(T)[])
default_concept.nim(9, 24) template/generic instantiation of `default` from here
system.nim(1818, 16) Error: invalid type: 'T: Enqueueable' in this context: 'proc (T: type T: Enqueueable): T: Enqueueable{.noSideEffect.}' for proc
Using typeof instead works.
The text was updated successfully, but these errors were encountered:
Linked to dereferencing types: #11773
The
type
magic does not work in type sections with concept whiletypeof
doesUsing typeof instead works.
The text was updated successfully, but these errors were encountered: