using System;
public class Test
{
public static void Main()
{
var x = "hello";
x = "world";
x = 42; // compilation fails here... see the error message for details
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCXZhciB4ID0gImhlbGxvIjsKCQl4ID0gIndvcmxkIjsKCQl4ID0gNDI7IC8vIGNvbXBpbGF0aW9uIGZhaWxzIGhlcmUuLi4gc2VlIHRoZSBlcnJvciBtZXNzYWdlIGZvciBkZXRhaWxzCgl9Cn0=
prog.cs(9,7): error CS0029: Cannot implicitly convert type `int' to `string'
Compilation failed: 1 error(s), 0 warnings