diff --git a/src/frontend/compiler/compiler.nim b/src/frontend/compiler/compiler.nim index 41acbbf..73a0d94 100644 --- a/src/frontend/compiler/compiler.nim +++ b/src/frontend/compiler/compiler.nim @@ -789,8 +789,7 @@ proc isAny*(typ: Type): bool = if condition.kind.isAny(): return true else: - discard - return false + return false method match*(self: Compiler, name: string, kind: Type, node: ASTNode = nil, allowFwd: bool = true): Name = diff --git a/src/peon/stdlib/builtins/values.pn b/src/peon/stdlib/builtins/values.pn index 3b38465..16fffc4 100644 --- a/src/peon/stdlib/builtins/values.pn +++ b/src/peon/stdlib/builtins/values.pn @@ -12,19 +12,19 @@ type int16* = object { #pragma[magic: "int16"] } -type int8* = object { +type int8* = object { #pragma[magic: "int8"] } -type uint64* = object { +type uint64* = object { #pragma[magic: "uint64"] } -type uint32* = object { +type uint32* = object { #pragma[magic: "uint32"] } -type uint16* = object { +type uint16* = object { #pragma[magic: "uint16"] } @@ -71,6 +71,16 @@ type auto* = object { # Some convenience aliases type int* = int64; type float* = float64; +type i64* = int64; +type u64* = uint64; +type i32* = int32; +type u32* = uint32; +type i16* = int64; +type u16* = uint64; +type i8* = int32; +type u8* = uint32; +type f64* = float64; +type f32* = float32; type SignedInteger* = int64 | int32 | int16 | int8; type UnsignedInteger* = uint64 | uint32 | uint16 | uint8; type Integer* = SignedInteger | UnsignedInteger;