changeset 831:c60bd5cd61da

Fixed code that got broken by changes in dmd.1.033.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sun, 20 Jul 2008 01:23:43 +0200
parents aad6aeb5d12b
children 80eb3251e010
files src/SettingsLoader.d src/dil/ast/Node.d src/dil/semantic/Symbol.d
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/SettingsLoader.d	Sun Jul 20 00:40:00 2008 +0200
+++ b/src/SettingsLoader.d	Sun Jul 20 01:23:43 2008 +0200
@@ -57,7 +57,7 @@
       return error(t, "'{}' variable has no value set", name), T.init;
     T val = value.Is!(T); // Try casting to T.
     if (!val)
-      error(value.begin, "the value of '{}' is not of type {}", name, typeof(T).stringof);
+      error(value.begin, "the value of '{}' is not of type {}", name, T.stringof);
     return val;
   }
 
--- a/src/dil/ast/Node.d	Sun Jul 20 00:40:00 2008 +0200
+++ b/src/dil/ast/Node.d	Sun Jul 20 01:23:43 2008 +0200
@@ -67,7 +67,7 @@
   /// Returns a reference to Class if this node can be cast to it.
   Class Is(Class)()
   {
-    if (kind == mixin("NodeKind." ~ typeof(Class).stringof))
+    if (kind == mixin("NodeKind." ~ Class.stringof))
       return cast(Class)cast(void*)this;
     return null;
   }
--- a/src/dil/semantic/Symbol.d	Sun Jul 20 00:40:00 2008 +0200
+++ b/src/dil/semantic/Symbol.d	Sun Jul 20 01:23:43 2008 +0200
@@ -96,7 +96,7 @@
   /// Casts the symbol to Class.
   Class to(Class)()
   {
-    assert(mixin(`this.sid == mixin("SYM." ~ typeof(Class).stringof)`));
+    assert(mixin(`this.sid == mixin("SYM." ~ Class.stringof)`));
     return cast(Class)cast(void*)this;
   }