diff --git a/generator/SymbolTable.cs b/generator/SymbolTable.cs index 7981a7744..4ace94446 100644 --- a/generator/SymbolTable.cs +++ b/generator/SymbolTable.cs @@ -214,7 +214,12 @@ namespace GtkSharp.Generation { IGeneratable cur_type = null; while (types.TryGetValue (type, out cur_type) && cur_type is AliasGen) { IGeneratable igen = cur_type as AliasGen; - types [type] = types [igen.Name]; + + IGeneratable new_type; + if (!types.TryGetValue (igen.Name, out new_type)) + new_type = null; + + types [type] = new_type; type = igen.Name; }