www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15017] New: 2.068.1-b2 regression: assigning a Variant to be

https://issues.dlang.org/show_bug.cgi?id=15017

          Issue ID: 15017
           Summary: 2.068.1-b2 regression: assigning a Variant to be value
                    in a hashmap
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: tcdknutson gmail.com

It seems that Phobos no longer handles a variant being assigned to a value in a
hashmap.

Tested to be working in v2.068.0. 

Reduced test case: 

```
import std.variant ;
class TempleContext
{
  // context variables
  Variant[string] vars;


  ref var(string name)
  {
      vars[name] = Variant();

  }

}
```

--
Sep 05 2015