parent
fce4b7cd62
commit
2f9a698e87
2 changed files with 13 additions and 1 deletions
12
tests/generics/tobjecttyperel3.nim
Normal file
12
tests/generics/tobjecttyperel3.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
discard """
|
||||
output: '''OK'''
|
||||
"""
|
||||
#bug #5632
|
||||
type
|
||||
Option*[T] = object
|
||||
|
||||
proc point*[A](v: A, t: typedesc[Option[A]]): Option[A] =
|
||||
discard
|
||||
|
||||
discard point(1, Option)
|
||||
echo "OK"
|
||||
Loading…
Add table
Add a link
Reference in a new issue