mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 22:33:49 +00:00
issue 1 - statics in the type: This probably only handles simple cases. It's probably too accepting only comparing the base, but that should only affect candidate selection I think. issue 2 - `tyArray` of length 3: This is just a work around since I couldn't get the fix right in previous PR issue 3 - shadowing: The part in `concepts.nim` that iterates candidates does not consider imported idents if at least once module level ident matches. It does not have to match in any other way then name. EDIT: 2 more issue 4 - composite typeclasses: when declared in both the concept and the `proc` can cause problems issue 5 - recursion: simple recursion and scenarios where more than one concepts recurse together (only tested two)
9 lines
139 B
Nim
9 lines
139 B
Nim
type
|
|
ShadowConcept* = concept
|
|
proc iGetShadowed(s: Self)
|
|
DummyFitsObj* = object
|
|
|
|
proc iGetShadowed*(s: DummyFitsObj)=
|
|
discard
|
|
|