class Foobar { val foo = "foo"; def foo(bar: String): String = foo + bar; // crashes the compiler }