Skip to content

Commit

Permalink
Deprecation: .typeinfo (deprecated -> error)
Browse files Browse the repository at this point in the history
This has been deprecated since 0.093
  • Loading branch information
yebblies committed Oct 28, 2012
1 parent 7c5c8eb commit 63601bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mtype.c
Expand Up @@ -1950,7 +1950,7 @@ Expression *Type::getProperty(Loc loc, Identifier *ident)
}
else if (ident == Id::typeinfo)
{
deprecation(loc, ".typeinfo deprecated, use typeid(type)");
error(loc, ".typeinfo deprecated, use typeid(type)");
e = getTypeInfo(NULL);
}
else if (ident == Id::init)
Expand Down Expand Up @@ -2046,7 +2046,7 @@ Expression *Type::dotExp(Scope *sc, Expression *e, Identifier *ident)
}
if (ident == Id::typeinfo)
{
deprecation(e->loc, ".typeinfo deprecated, use typeid(type)");
error(e->loc, ".typeinfo deprecated, use typeid(type)");
e = getTypeInfo(sc);
}
else if (ident == Id::stringof)
Expand Down Expand Up @@ -8411,7 +8411,7 @@ Expression *TypeClass::dotExp(Scope *sc, Expression *e, Identifier *ident)

if (ident == Id::typeinfo)
{
deprecation(e->loc, ".typeinfo deprecated, use typeid(type)");
error(e->loc, ".typeinfo deprecated, use typeid(type)");
return getTypeInfo(sc);
}
if (ident == Id::outer && sym->vthis)
Expand Down

0 comments on commit 63601bb

Please sign in to comment.