[swift-evolution] For-loop revisited

Dave Abrahams dabrahams at apple.com
Thu Feb 25 20:26:55 CST 2016


on Thu Feb 25 2016, ted van gaalen <swift-evolution at swift.org> wrote:

> (btw: If I don't put () around -60 , then the compiler complains with
> "Unary operator '-' cannot be applied to an operand of type 'StrideTo<Double>' "
> Could this be a compiler error? Shouldn't it first instantiate or evaluate the 
> numerical object,before glueing the .stride()  to it? ) 

Please file a bug report!

-- 
-Dave



More information about the swift-evolution mailing list