From c353c4ae7f6a9aa0d9fa6a8294c3887705696bd2 Mon Sep 17 00:00:00 2001 From: Steven Schveighoffer Date: Tue, 12 May 2015 11:27:27 -0400 Subject: [PATCH] Fix more typeof expressions that were missed --- std/range/primitives.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/std/range/primitives.d b/std/range/primitives.d index 783c8237e93..aff94f9b2d6 100644 --- a/std/range/primitives.d +++ b/std/range/primitives.d @@ -905,10 +905,10 @@ template isRandomAccessRange(R) static if(is(typeof(r[$]))) { - static assert(is(typeof(r.front) == typeof(r[$]))); + static assert(is(typeof(f) == typeof(r[$]))); static if(!isInfinite!R) - static assert(is(typeof(r.front) == typeof(r[$ - 1]))); + static assert(is(typeof(f) == typeof(r[$ - 1]))); } })); } @@ -932,12 +932,12 @@ unittest // $ must work as it does with arrays if opIndex works with $ static if(is(typeof(r[$]))) { - static assert(is(typeof(r.front) == typeof(r[$]))); + static assert(is(typeof(f) == typeof(r[$]))); // $ - 1 doesn't make sense with infinite ranges but needs to work // with finite ones. static if(!isInfinite!R) - static assert(is(typeof(r.front) == typeof(r[$ - 1]))); + static assert(is(typeof(f) == typeof(r[$ - 1]))); } }