scope(exit) was wrong since it falls through to parseDecl