Skip to content

Commit ffbbc30

Browse files
committed
Bump minimal Julia version.
1 parent 6f034f7 commit ffbbc30

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
version: ['1.6', '1.7', '1.8', '1.9', '1.10', 'pre', 'nightly']
14+
version: ['1.10', 'pre', 'nightly']
1515
os: ['macOS-latest']
1616
arch: [x64]
1717
steps:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Preferences = "21216c6a-2e73-6563-6e65-726566657250"
1010
[compat]
1111
CEnum = "0.5"
1212
Preferences = "1"
13-
julia = "1.6"
13+
julia = "1.10"
1414

1515
[extras]
1616
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

src/syntax.jl

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -512,12 +512,10 @@ macro objcproperties(typ, ex)
512512
end
513513

514514
# finally, call our parent's `getproperty`
515-
final = :(invoke(getproperty, Tuple{supertype($(esc(typ))), Symbol}, object, field))
516-
if VERSION >= v"1.8"
517-
push!(current.args, :(@inline $final))
518-
else
519-
push!(current.args, :($final))
520-
end
515+
final = :(@inline invoke(getproperty,
516+
Tuple{supertype($(esc(typ))), Symbol},
517+
object, field))
518+
push!(current.args, final)
521519
getproperties_ex = quote
522520
# XXX: force const-prop on field, without inlining everything?
523521
function Base.getproperty(object::$(esc(typ)), field::Symbol)
@@ -543,14 +541,10 @@ macro objcproperties(typ, ex)
543541
end
544542

545543
# finally, call our parent's `setproperty!`
546-
final = :(invoke(setproperty!,
547-
Tuple{supertype($(esc(typ))), Symbol, Any},
548-
object, field, value))
549-
if VERSION >= v"1.8"
550-
push!(current.args, :(@inline $final))
551-
else
552-
push!(current.args, :($final))
553-
end
544+
final = :(@inline invoke(setproperty!,
545+
Tuple{supertype($(esc(typ))), Symbol, Any},
546+
object, field, value))
547+
push!(current.args, final)
554548
setproperties_ex = quote
555549
# XXX: force const-prop on field, without inlining everything?
556550
function Base.setproperty!(object::$(esc(typ)), field::Symbol, value::Any)

0 commit comments

Comments
 (0)