summaryrefslogtreecommitdiff
path: root/source/slang/core.meta.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-08-28 22:32:04 -0700
committerGitHub <noreply@github.com>2024-08-28 22:32:04 -0700
commit6e32976de513d4e039c5a2b492cb8ea78f43c321 (patch)
treeb2e0e588d42561d1a0a2a4bebecb68e7f9b3f5a0 /source/slang/core.meta.slang
parentb85792f0f0525fe29e1ab38877a2abf412b4415c (diff)
Fix partial inference of variadic generic functions. (#4956)
Diffstat (limited to 'source/slang/core.meta.slang')
-rw-r--r--source/slang/core.meta.slang4
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