unsigned integer constraint (uint)
This commit is contained in:
@@ -493,3 +493,19 @@ visit func(kind Kind, value Value) void {
|
||||
(sink))
|
||||
(expression
|
||||
(identifier))))))))))))
|
||||
|
||||
==================
|
||||
Unsigned constraint
|
||||
==================
|
||||
|
||||
value uint :: 255
|
||||
|
||||
---
|
||||
|
||||
(source_file
|
||||
(global_constant_declaration
|
||||
(identifier)
|
||||
(type
|
||||
(builtin_type))
|
||||
(expression
|
||||
(integer))))
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
hide helper func() void {}
|
||||
# <- keyword
|
||||
|
||||
value uint :: 1
|
||||
# ^^^^ type.builtin
|
||||
|
||||
main func() void {
|
||||
_ = sizeof!(i32)
|
||||
# ^^^^^^ function.builtin
|
||||
|
||||
Reference in New Issue
Block a user