[Issue 11270] [REG 2.064] Initialization of struct in constructor
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Oct 15 04:07:23 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=11270
--- Comment #2 from Benjamin Thaut <code at benjamin-thaut.de> 2013-10-15 04:07:22 PDT ---
Sorry, I reduced the repro case to much. Here is the actual repro case I had
first:
struct netvar(T) {
    T value;
    alias value this;
    void opAssign(T newVal){
        value = newVal;
    }    
}
class Foo
{
  netvar!float f;
  this(float f)
  {
    this.f = f;
  }
}
void main(string[] args)
{
  new Foo(2.0f);
}
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list