Mercurial > projects > ddmd
diff dmd/DotVarExp.d @ 137:09c858522d55
merge
author | Trass3r |
---|---|
date | Mon, 13 Sep 2010 23:29:00 +0200 |
parents | af1bebfd96a4 |
children | b0d41ff5e0df |
line wrap: on
line diff
--- a/dmd/DotVarExp.d Mon Sep 13 23:27:38 2010 +0200 +++ b/dmd/DotVarExp.d Mon Sep 13 23:29:00 2010 +0200 @@ -187,7 +187,7 @@ if (!t1.isMutable() || (t1.ty == TY.Tpointer && !t1.nextOf().isMutable()) || !var.type.isMutable() || !var.type.isAssignable() || var.storage_class & STC.STCmanifest) { - error("cannot modify const/immutable expression %s", toChars()); + error("cannot modify const/immutable/inout expression %s", toChars()); } } } @@ -242,10 +242,15 @@ { e = se.getField(type, v.offset); if (!e) + { + error("couldn't find field %s in %s", v.toChars(), type.toChars()); e = EXP_CANT_INTERPRET; + } return e; } - } else { + } + else + { error("%s.%s is not yet implemented at compile time", ex.toChars(), var.toChars()); } }