diff options
Diffstat (limited to 'source/slang/core.meta.slang')
| -rw-r--r-- | source/slang/core.meta.slang | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index 919c21473..67fb201fe 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -156,6 +156,8 @@ interface IInteger : IArithmetic, ILogical int64_t toInt64(); uint toUInt(); uint64_t toUInt64(); + __init(int val); + __init(int64_t val); } interface IFloat : IArithmetic, IDifferentiable @@ -220,7 +222,7 @@ interface __BuiltinSignedArithmeticType : __BuiltinArithmeticType {} /// A type that can represent integers [sealed] [builtin] -interface __BuiltinIntegerType : __BuiltinArithmeticType +interface __BuiltinIntegerType : __BuiltinArithmeticType, IInteger {} /// A type that can represent non-integers |
