mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-25 22:26:52 +00:00
Fix additional compile inference errors under VS2015
This commit is contained in:
parent
1a50dc2eb1
commit
92d4c942f4
|
@ -101,25 +101,25 @@ module Vector4 =
|
||||||
let ``Indexed set operator throws exception for negative indices`` (x, y, z, w) =
|
let ``Indexed set operator throws exception for negative indices`` (x, y, z, w) =
|
||||||
let mutable v = Vector4(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>]
|
[<Property>]
|
||||||
let ``Indexed get operator throws exception for negative indices`` (x, y, z, w) =
|
let ``Indexed get operator throws exception for negative indices`` (x, y, z, w) =
|
||||||
let mutable v = Vector4(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>]
|
[<Property>]
|
||||||
let ``Indexed set operator throws exception for large indices`` (x, y, z, w) =
|
let ``Indexed set operator throws exception for large indices`` (x, y, z, w) =
|
||||||
let mutable v = Vector4(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>]
|
[<Property>]
|
||||||
let ``Indexed get operator throws exception for large indices`` (x, y, z, w) =
|
let ``Indexed get operator throws exception for large indices`` (x, y, z, w) =
|
||||||
let mutable v = Vector4(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> |])>]
|
[<Properties(Arbitrary = [| typeof<OpenTKGen> |])>]
|
||||||
module Length =
|
module Length =
|
||||||
|
|
Loading…
Reference in a new issue