diff lphobos/internal/switch.d @ 473:373489eeaf90

Applied downs' lphobos update
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 04 Aug 2008 19:28:49 +0200
parents 36ab367572df
children
line wrap: on
line diff
--- a/lphobos/internal/switch.d	Mon Aug 04 19:08:39 2008 +0200
+++ b/lphobos/internal/switch.d	Mon Aug 04 19:28:49 2008 +0200
@@ -422,5 +422,7 @@
     }
 }
 
-
-
+void _d_switch_error(string fn, int line)
+{
+    throw new Exception(fn~toString(line)~": switch missing default");
+}