We don't really want to hash the tyInferred container since that'd make the "real" type and its inferred counterpart produce different hashes and types for the very same type. Fixes #8280
16 lines
193 B
Nim
16 lines
193 B
Nim
discard """
|
|
output: "()"
|
|
"""
|
|
|
|
type
|
|
Iterable[T] = concept x
|
|
for elem in x:
|
|
elem is T
|
|
|
|
proc max[A](iter: Iterable[A]): A =
|
|
discard
|
|
|
|
type
|
|
MyType = object
|
|
|
|
echo max(@[MyType()])
|