mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 12:37:46 +00:00
Close #21742 Checking if there's any side-effects and if just changing typeRel is adequate for this issue before trying to look into related ones. `skipBoth` is also not that great, it can lead to code that works sometimes but fails when the proc is instantiated with branching aliases. This is mostly an issue with error clarity though. --------- Co-authored-by: SirOlaf <unknown> Co-authored-by: SirOlaf <>
10 lines
130 B
Nim
10 lines
130 B
Nim
type
|
|
Foo[T] = object
|
|
x:T
|
|
Bar[T,R] = Foo[T]
|
|
Baz = Bar[int,float]
|
|
|
|
proc qux[T,R](x: Bar[T,R]) = discard
|
|
|
|
var b:Baz
|
|
b.qux() |