Skip to content

Instantly share code, notes, and snippets.

@VladD2 VladD2/infer-from-usage.n
Last active Nov 15, 2017

Embed
What would you like to do?
using System.Console;
using System.Collections.Generic;
def dic = Dictionary();
dic.Add("aaa", 123);
WriteLine(dic["aaa"]);
WriteLine(dic[42]); // error: dic has Dictionary[string, int] type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.