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

fix up key in type environment for types with generic arguments

This commit is contained in:
Kevin Glynn 2011-02-18 13:51:52 +01:00
parent 85b5e57e3c
commit f82c7c8627
2 changed files with 2 additions and 1 deletions

View File

@ -261,7 +261,8 @@ namespace Twiglet.CS2J.Translator
{
Stream s = new FileStream(fullName, FileMode.Open, FileAccess.Read);
TypeRepTemplate t = TypeRepTemplate.newInstance(s);
AppEnv[t.TypeName] = t;
// Fullname has form: <path>/<key>.xml
AppEnv[t.TypeName+(t.TypeParams != null && t.TypeParams.Length > 0 ? "'" + t.TypeParams.Length.ToString() : "")] = t;
}
// Here's where we do the real work...