Skip to content
Browse files

fix Issue 9288 - Parameter(Identifier|DefaultValue)Tuple report point…

…less errors
  • Loading branch information...
1 parent 590c499 commit f6f57530a64c045c434a473efcd6492d60711068 @9rnsr 9rnsr committed
Showing with 12 additions and 0 deletions.
  1. +12 −0 std/traits.d
View
12 std/traits.d
@@ -545,8 +545,14 @@ template ParameterIdentifierTuple(func...)
}
}
else
+ {
static assert(0, func[0].stringof ~ "is not a function");
+ // Define dummy entities to avoid pointless errors
+ template Get(size_t i) { enum Get = ""; }
+ alias TypeTuple!() PT;
+ }
+
template Impl(size_t i = 0)
{
static if (i == PT.length)
@@ -627,8 +633,14 @@ template ParameterDefaultValueTuple(func...)
}
}
else
+ {
static assert(0, func[0].stringof ~ "is not a function");
+ // Define dummy entities to avoid pointless errors
+ template Get(size_t i) { enum Get = ""; }
+ alias TypeTuple!() PT;
+ }
+
template Impl(size_t i = 0)
{
static if (i == PT.length)

0 comments on commit f6f5753

Please sign in to comment.
Something went wrong with that request. Please try again.