Add test-cases to some fixed issues to close them (#14795)

This commit is contained in:
Danil Yarantsev 2020-06-25 06:38:08 +03:00 • committed by GitHub
commit 0327159344
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 0 deletions

View file

@ -762,3 +762,21 @@ block t3717:
var f: Foo[Foo[int]]
discard foo(f)
block: # issue #9458
type
Option[T] = object
val: T
has: bool
Bar = object
proc none(T: typedesc): Option[T] =
discard
proc foo[T](self: T; x: Option[Bar] = Bar.none) =
discard
foo(1)