File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11name = " LibAwsCommon"
22uuid = " c6e421ba-b5f8-4792-a1c4-42948de3ed9d"
3- version = " 1.3.2 "
3+ version = " 1.3.3 "
44
55[deps ]
66CEnum = " fa961155-64e5-5f13-b03f-caf6b980ea82"
77aws_c_common_jll = " 73048d1d-b8c4-5092-a58d-866c5e8d1e50"
88
99[compat ]
10- Aqua = " 0.7"
10+ Aqua = " 0.7,0.8 "
1111CEnum = " 0.5"
1212aws_c_common_jll = " =0.12.3"
1313julia = " 1.6"
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ function init(allocator=default_aws_allocator())
7272end
7373
7474# utilities for interacting with AWS library APIs
75+ concrete_or_concreteunion (T) =
76+ isconcretetype (T) || (T isa Union && concrete_or_concreteunion (T. a) && concrete_or_concreteunion (T. b))
7577
7678# like a Ref, but for a field of a struct
7779# many AWS APIs take a pointer to an aws struct, so this makes it convenient to to pass
@@ -83,7 +85,7 @@ struct FieldRef{T, S}
8385 function FieldRef (x:: T , field:: Symbol ) where {T}
8486 @assert isconcretetype (T) && ismutabletype (T) " only fields of mutable types are supported with FieldRef"
8587 S = fieldtype (T, field)
86- @assert isconcretetype (S) && ! ismutabletype (S) " field type must be concrete and immutable for FieldRef"
88+ @assert concrete_or_concreteunion (S) && ! ismutabletype (S) " field type must be concrete and immutable for FieldRef"
8789 return new {T, S} (x, field)
8890 end
8991end
You can’t perform that action at this time.
0 commit comments