We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 561096a commit cf60d71Copy full SHA for cf60d71
src/var.jl
@@ -43,12 +43,13 @@ end
43
44
struct PolyVar{C} <: AbstractVariable
45
id::Int
46
- name::AbstractString
+ name::String
47
+
48
function PolyVar{C}(name::AbstractString) where {C}
49
# gensym returns something like Symbol("##42")
50
# we first remove "##" and then parse it into an Int
51
id = parse(Int, string(gensym())[3:end])
- new(id, name)
52
+ new(id, convert(String, name))
53
end
54
55
0 commit comments