Skip to content

Commit 0d103ac

Browse files
authored
concretely typed structs in interface tests (#157)
1 parent 411e5f3 commit 0d103ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_misc.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ using ArrayLayouts, BlockBandedMatrices, BandedMatrices, BlockArrays, LinearAlge
22
import BlockBandedMatrices: AbstractBandedBlockBandedMatrix, AbstractBlockBandedMatrix, block, blockindex, blockcolsupport, blockrowsupport
33
import BandedMatrices: bandwidths, AbstractBandedMatrix, BandedStyle, bandeddata, BandedColumns, _BandedMatrix
44

5-
struct MyBandedBlockBandedMatrix <: AbstractBandedBlockBandedMatrix{Float64}
6-
A::BlockMatrix{Float64}
5+
struct MyBandedBlockBandedMatrix{AT<:BlockMatrix{Float64}} <: AbstractBandedBlockBandedMatrix{Float64}
6+
A::AT
77
end
88

99
BlockBandedMatrices.blockbandwidths(::MyBandedBlockBandedMatrix) = (1,1)
@@ -17,8 +17,8 @@ function Base.getindex(A::MyBandedBlockBandedMatrix, k::Int, j::Int)
1717
end
1818

1919

20-
struct MyBlockBandedMatrix <: AbstractBlockBandedMatrix{Float64}
21-
A::BlockMatrix{Float64}
20+
struct MyBlockBandedMatrix{AT<:BlockMatrix{Float64}} <: AbstractBlockBandedMatrix{Float64}
21+
A::AT
2222
end
2323

2424
BlockBandedMatrices.blockbandwidths(::MyBlockBandedMatrix) = (1,1)

0 commit comments

Comments
 (0)