Skip to content

Commit 0feac14

Browse files
authored
reduce ambiguities (#1072)
1 parent d36a5ef commit 0feac14

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

test/FieldMatrix.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@
9898
eval(quote
9999
struct TupleField2 <: FieldMatrix{1, 1, NTuple{2, Int}}
100100
x::NTuple{2, Int}
101+
function TupleField2(x::NTuple{2,Int})
102+
new(x)
103+
end
101104
end
102105
end)
103106

test/FieldVector.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@
103103
eval(quote
104104
struct TupleField <: FieldVector{1, NTuple{2, Int}}
105105
x::NTuple{2, Int}
106+
function TupleField(x::NTuple{2,Int})
107+
new(x)
108+
end
106109
end
107110
end)
108111

test/ambiguities.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Allow no new ambiguities (see #18), unless you fix some old ones first!
22

3-
const allowable_ambiguities = VERSION v"1.7" ? 10 :
4-
VERSION v"1.6" ? 11 : error("version must be ≥1.6")
3+
const allowable_ambiguities = VERSION v"1.7" ? 0 :
4+
VERSION v"1.6" ? 1 : error("version must be ≥1.6")
55

66
# TODO: Revisit and fix. See
77
# https://github.com/JuliaLang/julia/pull/36962

0 commit comments

Comments
 (0)