Skip to content

Commit f205eec

Browse files
authored
Merge pull request #12 from cpfiffer/warn
Added warning to display(::TArray).
2 parents be8b10c + df5e5d1 commit f205eec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tarray.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ end
100100

101101
function Base.display(S::TArray)
102102
arr = S.orig_task.storage[S.ref][2]
103+
@warn "display(::TArray) prints the originating task's storage, not the current task's storage. Please use show(::TArray) to display the current task's version of a TArray."
103104
display(arr)
104105
end
105106

0 commit comments

Comments
 (0)