mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 12:07:51 +00:00
fixes #19848
Not sure why this wasn't the case already. The `if cl.allowMetaTypes:
return` line below for `tyFromExpr` [was added 10 years
ago](d5798b43de).
Hopefully it was just negligence?
17 lines
169 B
Nim
17 lines
169 B
Nim
discard """
|
|
output: '''
|
|
todo
|
|
'''
|
|
"""
|
|
|
|
type
|
|
Maybe[T] = object
|
|
List[T] = object
|
|
|
|
proc dump[M: Maybe](a: List[M]) =
|
|
echo "todo"
|
|
|
|
var a: List[Maybe[int]]
|
|
|
|
dump(a)
|