Resolve const struct types. Fixes
Call CleanCType before searching for a matching struct. This gets rid of the const qualifier.
@@ -417,6 +417,7 @@ func transpileMemberExpr(n *ast.MemberExpr, p *program.Program) (
}
lhsType = types.GenerateCorrectType(lhsType)
+ lhsType = types.CleanCType(lhsType)
preStmts, postStmts = combinePreAndPostStmts(preStmts, postStmts, newPre, newPost)
