ahhhh!  ok, thanks.

On Sunday, 22 November 2015 10:40:04 UTC-3, Simon Danisch wrote:
>
> As far as I know, triangular dispatch hasn't hit the shores yet 
> (especially not in 0.4).
> This sort of works, because I is actually a global variable in Base (I::
> UniformScaling{Int64})
> Try some other name, and it will tell you that the variable is undefined, 
> as expected.
>
> Best,
> Simon
>
> Am Sonntag, 22. November 2015 13:38:29 UTC+1 schrieb andrew cooke:
>>
>>
>> Out of my depth here - no idea if this is a bug or me...
>>
>> julia> foo{I<:Integer,U<:UnitRange{I}}(u::U) = 1
>> ERROR: TypeError: UnitRange: in T, expected T<:Real, got UniformScaling{
>> Int64}
>>
>> Version 0.4.1-pre+22 (2015-11-01 00:06 UTC)
>>
>> Thanks, Andrew
>>
>

Reply via email to