This commit is contained in:
Andreas Rumpf 2019-07-13 07:55:56 +02:00 • committed by GitHub
commit de1ede77fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -6,6 +6,7 @@ false
false
false
false
Foo
'''
"""
@ -98,3 +99,10 @@ proc `<=`(a, b: Id): bool {.borrow.}
var xs: array[Id, bool]
for x in xs: echo x # type mismatch: got (T) but expected 'bool'
# bug #11715
type FooD = distinct int
proc `<=`(a, b: FooD): bool {.borrow.}
for f in [FooD(0): "Foo"]: echo f