1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

Only set hasTyArgs if we actually had tyArgs!

This commit is contained in:
Kevin Glynn 2011-08-09 12:35:23 +02:00
parent bdc1a68ee2
commit 215f8fdd1a

View File

@ -1416,7 +1416,7 @@ type_name returns [TypeRepTemplate dotNetType, List<CommonTree> argTrees, bool h
$dotNetType = $dtg.dotNetType;
if (!$dotNetType.IsUnknownType) {
if ($dotNetType.TypeParams.Length == $dtg.argTrees.Count) {
if ($dotNetType.TypeParams.Length > 0 && $dotNetType.TypeParams.Length == $dtg.argTrees.Count) {
int i = 0;
foreach (CommonTree ty in $dtg.argTrees) {
tyMap[$dotNetType.TypeParams[i]] = wrapType(ty, $dt.tree.Token);