File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 364
364
365
365
@noinline _property_view (
366
366
data:: AbstractData{S} ,
367
- :: Val{Nothing } ,
367
+ :: Val{nothing } ,
368
368
name,
369
- ) where {S} = error (" Invalid field name $name for type $(S) " )
369
+ ) where {S} = error (" Invalid field name ` $name ` for type ` $(S) `. " )
370
370
371
371
# In the past, we've sometimes needed a generated function
372
372
# for inference and constant propagation:
Original file line number Diff line number Diff line change 1
1
#=
2
- julia --project=test
2
+ julia --project
3
3
using Revise; include(joinpath("test", "DataLayouts", "data0d.jl"))
4
4
=#
5
5
using Test
65
65
@test_throws MethodError data[] = SB
66
66
end
67
67
68
+ @testset " DataF error messages" begin
69
+ SA = (; a = 1.0 )
70
+ data = DataF {typeof(SA)} (ArrayType{Float64})
71
+ @test_throws ErrorException (
72
+ " Invalid field name `oops` for type `$(typeof (SA)) `." ,
73
+ ) data. oops
74
+ end
75
+
68
76
@testset " DataF broadcasting between 0D data objects and scalars" begin
69
77
for FT in TestFloatTypes
70
78
S = Complex{FT}
You can’t perform that action at this time.
0 commit comments