Fix additional compile inference errors under VS2015
This commit is contained in:
parent
1a50dc2eb1
commit
92d4c942f4
1 changed files with 4 additions and 4 deletions
|
@ -101,25 +101,25 @@ module Vector4 =
|
|||
let ``Indexed set operator throws exception for negative indices`` (x, y, z, w) =
|
||||
let mutable v = Vector4(x, y, z, w)
|
||||
|
||||
(fun() -> v.[-1] <- x) |> Assert.Throws<IndexOutOfRangeException> |> ignore
|
||||
(fun() -> v.[-1] <- x) |> Assert.ThrowsIndexExn
|
||||
|
||||
[<Property>]
|
||||
let ``Indexed get operator throws exception for negative indices`` (x, y, z, w) =
|
||||
let mutable v = Vector4(x, y, z, w)
|
||||
|
||||
(fun() -> v.[-1] |> ignore) |> Assert.Throws<IndexOutOfRangeException> |> ignore
|
||||
(fun() -> v.[-1] |> ignore) |> Assert.ThrowsIndexExn
|
||||
|
||||
[<Property>]
|
||||
let ``Indexed set operator throws exception for large indices`` (x, y, z, w) =
|
||||
let mutable v = Vector4(x, y, z, w)
|
||||
|
||||
(fun() -> v.[4] <- x) |> Assert.Throws<IndexOutOfRangeException> |> ignore
|
||||
(fun() -> v.[4] <- x) |> Assert.ThrowsIndexExn
|
||||
|
||||
[<Property>]
|
||||
let ``Indexed get operator throws exception for large indices`` (x, y, z, w) =
|
||||
let mutable v = Vector4(x, y, z, w)
|
||||
|
||||
(fun() -> v.[4] |> ignore) |> Assert.Throws<IndexOutOfRangeException> |> ignore
|
||||
(fun() -> v.[4] |> ignore) |> Assert.ThrowsIndexExn
|
||||
|
||||
[<Properties(Arbitrary = [| typeof<OpenTKGen> |])>]
|
||||
module Length =
|
||||
|
|
Loading…
Reference in a new issue