Skip to content

Commit 01de623

Browse files
committed
fix compiler tests
1 parent 3f8465a commit 01de623

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Compiler/test/inference.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,9 +1597,12 @@ let memoryref_tfunc(@nospecialize xs...) = Compiler.memoryref_tfunc(Compiler.fal
15971597
@test memoryref_tfunc(MemoryRef{Int}, Int, Symbol) == Union{}
15981598
@test memoryref_tfunc(MemoryRef{Int}, Int, Bool) == MemoryRef{Int}
15991599
@test memoryref_tfunc(MemoryRef{Int}, Int, Vararg{Bool}) == MemoryRef{Int}
1600-
@test memoryref_tfunc(Memory{Int}, Int) == Union{}
1601-
@test memoryref_tfunc(Any, Any, Any) == Any # also probably could be GenericMemoryRef
1602-
@test memoryref_tfunc(Any, Any) == Any # also probably could be GenericMemoryRef
1600+
@test memoryref_tfunc(Memory{Int}, Int) == MemoryRef{Int}
1601+
@test memoryref_tfunc(Memory{Int}, Int, Symbol) == Union{}
1602+
@test memoryref_tfunc(Memory{Int}, Int, Bool) == MemoryRef{Int}
1603+
@test memoryref_tfunc(Memory{Int}, Int, Vararg{Bool}) == MemoryRef{Int}
1604+
@test memoryref_tfunc(Any, Any, Any) == GenericMemoryRef
1605+
@test memoryref_tfunc(Any, Any) == GenericMemoryRef
16031606
@test memoryref_tfunc(Any) == GenericMemoryRef
16041607
@test memoryrefget_tfunc(MemoryRef{Int}, Symbol, Bool) === Int
16051608
@test memoryrefget_tfunc(MemoryRef{Int}, Any, Any) === Int

0 commit comments

Comments
 (0)