Skip to content

Commit e96d9ec

Browse files
work-around for #17
1 parent ce5bf11 commit e96d9ec

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/variable.jl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,18 @@ Default fill-value for the given type from NetCDF.
7171
_nonuniontype(::Type{T},::Type{Union{T,S}}) where {T,S} = S
7272
function nonuniontype(T,TS)
7373
if typeof(TS) == Union
74-
_nonuniontype(T,TS)
74+
# https://github.com/JuliaLang/julia/issues/53136
75+
@static if (VERSION < v"1.8") && Sys.iswindows()
76+
if TS.a == T
77+
return TS.b
78+
elseif TS.b == T
79+
return TS.a
80+
else
81+
return TS
82+
end
83+
else
84+
_nonuniontype(T,TS)
85+
end
7586
else
7687
TS
7788
end

0 commit comments

Comments
 (0)