rsdn/nemerle — Issue #230: default in initializer
Author: igor-tkachev
Created: 2012-01-06 06:30:24+00:00
State: open

using System.Collections.Generic;
using Nemerle.Extensions;

public module DefaultValue
{
_values : Dictionary[Type,object] = Dictionary.[Type,object]() <-
[
typeof(int) = default.[int] : object, // can't compile
typeof(uint) = default.[uint],
typeof(byte) = 0b
];
}

Also type inferences does not work here.