Skip to content

Commit 84cd7be

Browse files
committed
move struct to top level
1 parent bea1b81 commit 84cd7be

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/rulesets/Base/indexing.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
struct FooTwoField
2+
x::Float64
3+
y::Float64
4+
end
5+
6+
17
@testset "getfield" begin
2-
struct Foo
3-
x::Float64
4-
y::Float64
5-
end
6-
test_frule(getfield, Foo(1.5, 2.5), :x, check_inferred=false)
8+
test_frule(getfield, FooTwoField(1.5, 2.5), :x, check_inferred=false)
79

810
test_frule(getfield, (; a=1.5, b=2.5), :a, check_inferred=false)
911
test_frule(getfield, (; a=1.5, b=2.5), 2)

0 commit comments

Comments
 (0)