Make error message for empty new-styled concept more descriptive (#18506)

* Allow empty new-styled concept

Slightly improve error messages

* Make empty new-styled concepts an error
This commit is contained in:
konsumlamm 2021-07-18 10:49:03 +02:00 • committed by GitHub
commit ac5435ecd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 11 deletions

View file

@ -7,8 +7,7 @@ discard """
2
3
yes int
string int
true'''
string int'''
joinable: false
"""
@ -102,5 +101,5 @@ type Monoid = concept
proc z(x: typedesc[int]): int = 0
echo(int is Monoid)
doAssert int is Monoid