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:
parent
bdc1a68ee2
commit
215f8fdd1a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user