Permalink
Browse files

Fixed the message when an unsupported template specialisation is used.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
  • Loading branch information...
ddobrev committed Aug 8, 2017
1 parent dd885a7 commit ee174c164960bd015cc3404f842f7822f55e200c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Generator/Generators/CSharp/CSharpSourcesExtensions.cs
@@ -132,7 +132,7 @@ private static void ThrowException(CSharpSources gen, Class @class)
var managedTypes = string.Join(", ", @class.TemplateParameters.Select(p => $"typeof({p.Name}).FullName"));
gen.WriteLine($"throw new ArgumentOutOfRangeException(\"{typeArguments}\", "
+ $@"string.Join("", "", new[] {{ {managedTypes} }}), "
+ $"\"{@class.Visit(typePrinter)}<{typeArguments}> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: {supportedTypes}.\");");
+ $"\"{@class.Visit(typePrinter)} maps a C++ template class and therefore it only supports a limited set of types and their subclasses: {supportedTypes}.\");");
}
}
}

0 comments on commit ee174c1

Please sign in to comment.