Skip to content

Commit 3760114

Browse files
committed
add tests to verify supertypes apply to structures but are ignored by AcuteML
1 parent 5a544f5 commit 3760114

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/struct_definition.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,16 @@ abstract type AbstractTestType end
5555
myfield::String, "~"
5656
end
5757

58+
@test MyParentedType <: AbstractTestType
59+
5860
# parametric with supertype
5961
@aml mutable struct MyParentedType2{T} <: AbstractTestType "MyParentedType2"
6062
myfield::T, "~"
6163
end
6264

65+
@test MyParentedType2 <: AbstractTestType
66+
@test MyParentedType2{String} <: AbstractTestType
67+
6368
################################################################
6469

6570
# empty or no aml

0 commit comments

Comments
 (0)