Browse files

fix Issue 8354 - Some missing "import std.math to use ^^ operator" er…

…ror messages
  • Loading branch information...
1 parent 971e828 commit 21f32ed72f75f0eaf68f06da62eb4c8e3e0a2c98 @9rnsr 9rnsr committed Aug 19, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/fail_compilation/diag8354.d
View
15 test/fail_compilation/diag8354.d
@@ -0,0 +1,15 @@
+/*
+TEST_OUTPUT:
+---
+fail_compilation/diag8354.d(3): Error: must import std.math to use ^^ operator
+fail_compilation/diag8354.d(5): Error: must import std.math to use ^^ operator
+---
+*/
+
+#line 1
+void main() {
+ int x1 = 10;
+ auto y1 = x1 ^^ 5;
+ double x2 = 10.5;
+ auto y2 = x2 ^^ 5;
+}

0 comments on commit 21f32ed

Please sign in to comment.