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:
parent
923a1c6ea7
commit
ac5435ecd0
3 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue