Skip to content

Commit 7560711

Browse files
String: alias for new String or old UTF8String
1 parent 937f7d0 commit 7560711

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Compat.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,4 +1077,12 @@ if !isdefined(Base, :Threads)
10771077
export Threads
10781078
end
10791079

1080+
if isdefined(Core, :String)
1081+
typealias String Core.String
1082+
export String
1083+
else
1084+
typealias String Base.UTF8String
1085+
export String
1086+
end
1087+
10801088
end # module

0 commit comments

Comments
 (0)