rsdn/nemerle — Issue #307: Can not pass null as a reference type parameter value of an attribute constructor
Author: Stitchous
Created: 2012-03-09 11:34:11+00:00
State: open

Consider following code:

public class TestAttribute : Attribute
{
public this(_arg : string) {}
}

[Test(null)]
public class TestClass {}

It did not compile but produces error message:

error : in argument #1 (_arg), needed a string, got object: System.Object is not a subtype of System.String [simple require]