summaryrefslogtreecommitdiff
path: root/source/slang/syntax.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/syntax.h')
-rw-r--r--source/slang/syntax.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h
index 9b0277b56..74eda66a5 100644
--- a/source/slang/syntax.h
+++ b/source/slang/syntax.h
@@ -752,6 +752,9 @@ namespace Slang
explicit TypeExp(RefPtr<Expr> exp)
: exp(exp)
{}
+ explicit TypeExp(RefPtr<Type> type)
+ : type(type)
+ {}
TypeExp(RefPtr<Expr> exp, RefPtr<Type> type)
: exp(exp)
, type(type)