mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
fix typo in @require statement in builtin.c3
This commit is contained in:
committed by
Christoffer Lerno
parent
5c7a183f8a
commit
4f4476ba75
@@ -238,7 +238,7 @@ macro enum_by_name($Type, String enum_name) @builtin
|
||||
<*
|
||||
@param $Type `The type of the enum`
|
||||
@require $Type.kindof == ENUM `Only enums may be used`
|
||||
@require $defined($Type.#value1) `Expected '#value' to match an enum associated value`
|
||||
@require $defined($Type.#value) `Expected '#value' to match an enum associated value`
|
||||
@require $assignable(value, $typeof($Type{}.#value)) `Expected the value to match the type of the associated value`
|
||||
@ensure @typeis(return, $Type)
|
||||
@return! SearchResult.MISSING
|
||||
|
||||
Reference in New Issue
Block a user