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
explicit template instantiation accepts value when type is expected
Example
type A[T] =object# ditto with A[T: string]let a1 =A[string]() # oklet a2 =A["abc"]() # should not compilestatic: doAsserttype(a1) istype(a2)
type B[T: staticstring] =objectlet b2 =B["abc"]() # ok
timotheecour
changed the title
explicit template instantiation accepts value when type is expected
explicit generic instantiation accepts value when type is expected
Feb 18, 2020
explicit template instantiation accepts value when type is expected
Example
Current Output
compiles
Expected Output
CT error: expected type, got value
Additional Information
latest devel f22d3c7
The text was updated successfully, but these errors were encountered: