fixes #20391; make of operator work with generics for ORC (#20395)

This commit is contained in:
ringabout 2022-09-21 16:29:39 +08:00 • committed by GitHub
commit e0c1159fb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -160,3 +160,11 @@ proc main() =
main()
block: # bug #20391
type Container[T] = ref object of RootRef
item: T
let a = Container[int]()
doAssert a of Container[int]
doAssert not (a of Container[string])